]> git.baikalelectronics.ru Git - uboot.git/commit
fs: fat: search file should not allocate cluster
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 26 Nov 2020 15:10:01 +0000 (16:10 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 10 Dec 2020 08:14:59 +0000 (09:14 +0100)
commitc31433624316b4508746084ada4d37f91db8ed92
treefce39644a08905d3b21cc8dd5eb943e703a58018
parent32e9c8a757db188b6568effae2a12c3a9659ea7c
fs: fat: search file should not allocate cluster

Searching for a file is not a write operation. So it should not lead to the
allocation of a new cluster to the directory.

If we reuse deleted entries, we might not even use the new cluster and due
to not flushing it the directory could be corrupted.

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