[U-Boot] [PATCH 0/4] fs: fat: fixes for write under root directory

AKASHI Takahiro takahiro.akashi at linaro.org
Mon May 13 05:49:23 UTC 2019


This patch set contains three (independent) bug fixes relating to
write operations to root directory. See each commit message
for more details.

Without those fixes, you may lose files that you created under root
directory or will see the file system corrupted. This will happen
particularly when you create (or even delete) many files repeatedly
under root directory.
(Non-root directory won't be affected.)

I only tested my patches on limited number of file system instances,
and hope that other people will also try them.

-Takahiro Akashi

AKASHI Takahiro (4):
  fs: fat:  write to non-cluster-aligned root directory
  fs: fat: flush a directory cluster properly
  fs: fat: allocate a new cluster for root directory of fat32
  test/py: test_fs: add tests for creating/deleting many files

 fs/fat/fat.c                      |  15 ++--
 fs/fat/fat_write.c                | 117 +++++++++++++++++++-----------
 test/py/tests/test_fs/test_ext.py |  84 +++++++++++++++++++++
 3 files changed, 165 insertions(+), 51 deletions(-)

-- 
2.21.0



More information about the U-Boot mailing list