]> git.baikalelectronics.ru Git - uboot.git/commit
fs: fat: correct first cluster for '..'
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 24 Nov 2020 20:04:07 +0000 (21:04 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 10 Dec 2020 08:14:58 +0000 (09:14 +0100)
commit6ed8b92c8d3c1d697a8b3192ee54669b2ce707cc
tree36f5e0411cab19ffdfeb13e4cd221cc3cef49f42
parent9630fed0f9367942a4c35d9db9d0ff7c9194c11b
fs: fat: correct first cluster for '..'

The FAT specification [1] requires that for a '..' directory entry pointing
to the root directory the fields DIR_FstClusHi and DIR_FstClusLo are 0.

[1] Microsoft FAT Specification, Microsoft Corporation, August 30 2005

Fixes: dd93ad071138 ("fs: fat: support mkdir")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
fs/fat/fat_write.c