]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commite23ec21b773e2413cd8904d3dad98fad769ff2db
tree97e1e30fb85d07a08165ccd76c2786c40af8690e
parent3d556a43e70f0fe93e29ca7030dfb23ebbae0fee
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