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)
commitc5924118c03dc8db30d633de98afe6ad6eb7f277
tree36f5e0411cab19ffdfeb13e4cd221cc3cef49f42
parent03f1f78a9b44b5fd6fc09faf81639879d2d0f85f
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: 31a18d570d96 ("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