Skip to content
Commit 9c709c7b authored by AKASHI Takahiro's avatar AKASHI Takahiro Committed by Tom Rini
Browse files

fs: fat: flush a directory cluster properly



When a long name directory entry is created, multiple directory entries
may be occupied across a directory cluster boundary. Since only one
directory cluster is cached in a directory iterator, a first cluster must
be written back to device before switching over a second cluster.

Without this patch, some added files may be lost even if you don't see
any failures on write operation.

Signed-off-by: default avatarAKASHI Takahiro <takahiro.akashi@linaro.org>
Tested-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent a9f6706c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment