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

AKASHI Takahiro takahiro.akashi at linaro.org
Fri May 24 05:10:34 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.

Changes in v2 (May 24, 2019)
* remove a debug message modification (patch#1)
* clarify a package dependency for test_fs (adding patch#5)

-Takahiro Akashi

AKASHI Takahiro (5):
  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
  test/py: clarify a package dependency for test_fs

 fs/fat/fat_write.c                | 117 +++++++++++++++++++-----------
 test/py/README.md                 |  19 ++---
 test/py/tests/test_fs/test_ext.py |  84 +++++++++++++++++++++
 3 files changed, 167 insertions(+), 53 deletions(-)

-- 
2.21.0



More information about the U-Boot mailing list