All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/4] fs: fat: fixes for write under root directory
@ 2019-05-13  5:49 AKASHI Takahiro
  2019-05-13  5:49 ` [U-Boot] [PATCH 1/4] fs: fat: write to non-cluster-aligned " AKASHI Takahiro
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: AKASHI Takahiro @ 2019-05-13  5:49 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-05-20 17:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-13  5:49 [U-Boot] [PATCH 0/4] fs: fat: fixes for write under root directory AKASHI Takahiro
2019-05-13  5:49 ` [U-Boot] [PATCH 1/4] fs: fat: write to non-cluster-aligned " AKASHI Takahiro
2019-05-14 17:26   ` Heinrich Schuchardt
2019-05-13  5:49 ` [U-Boot] [PATCH 2/4] fs: fat: flush a directory cluster properly AKASHI Takahiro
2019-05-14 17:29   ` Heinrich Schuchardt
2019-05-13  5:49 ` [U-Boot] [PATCH 3/4] fs: fat: allocate a new cluster for root directory of fat32 AKASHI Takahiro
2019-05-14 17:30   ` Heinrich Schuchardt
2019-05-13  5:49 ` [U-Boot] [PATCH 4/4] test/py: test_fs: add tests for creating/deleting many files AKASHI Takahiro
2019-05-14 18:09   ` Heinrich Schuchardt
2019-05-15  6:05     ` AKASHI Takahiro
2019-05-15 12:49       ` Tom Rini
2019-05-20 17:10 ` [U-Boot] [PATCH 0/4] fs: fat: fixes for write under root directory Heinrich Schuchardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.