fs: fat: flush new directory cluster
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 26 Nov 2020 18:06:55 +0000 (19:06 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 10 Dec 2020 08:14:59 +0000 (09:14 +0100)
commit569b0e1938a5c78b6f4152704ef8c8a4e04fcb09
tree97e1e30fb85d07a08165ccd76c2786c40af8690e
parent7557c8485517aa9d2602abb0010c10ab64feee72
fs: fat: flush new directory cluster

When handling long file names directory entries may be split over multiple
clusters. We must make sure that new clusters are zero filled on disk.

When allocating a new cluster for a directory flush it.

The flushing should be executed before updating the FAT. This way if
flushing fails, we still have a valid directory structure.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
fs/fat/fat_write.c