[U-Boot] [PATCH 0/4] fs: fat: fixes for write under root directory
Heinrich Schuchardt
xypron.debian at gmx.de
Mon May 20 17:10:10 UTC 2019
On 5/13/19 7:49 AM, AKASHI Takahiro wrote:
> 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
Hello Takahiro,
I would be really happy if these patches would make it into v2019.07.
When running the SCT they make a big difference. I hope you have time to
resubmit these.
Best regards
Heinrich
>
> 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(-)
>
More information about the U-Boot
mailing list