Skip to content

fs: fixes found by file system conformance tests

Sascha Hauer barebox 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20261118-fs-conformance-fixes-e768eedf4a27

Versions newest first

  1. v1 Latest13 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/13fs: ramfs: zero the rest of a chunk when truncatingfs/ramfs.c+8 -00 replies
2/13fs: fat: zero-fill files grown by truncatefs/fat/fat.c+40 -60 replies
3/13fs: keep the file size when O_TRUNC failsfs/fs.c+1 -10 replies
4/13fs: legacy: return -EPERM when a driver can't create symlinksfs/legacy.c+2 -10 replies
5/13fs: uimagefs: allow opening a file more than oncefs/uimagefs.c include/uimagefs.h+28 -90 replies
6/13fs: nfs: drop the write and truncate stubsfs/nfs.c+0 -120 replies
7/13fs: fat: fix building without CONFIG_FS_FAT_LFNfs/fat/fat.c+7 -40 replies
8/13fs: bpkfs: skip the data of ignored duplicatesfs/bpkfs.c+10 -60 replies
9/13fs: bpkfs: allow opening a file more than oncefs/bpkfs.c include/bpkfs.h+25 -90 replies
10/13fs: bpkfs: make room for the NUL after the checksum stringinclude/bpkfs.h+2 -10 replies
11/13fs: pstore: read from the file positionfs/pstore/fs.c+1 -140 replies
12/13fs: pstore: don't free the records when unmountingfs/pstore/fs.c+0 -100 replies
13/13fs: efivarfs: zero-fill variables grown by truncatefs/efivarfs.c+4 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/13] fs: fixes found by file system conformance tests

I am currently working on filesystem conformance tests and removal of the legacy filesystem layer. While this is not ready yet, here are fixes for several issues that the tests have found.

Assisted-by Claude:claude-opus-5-5

---
Sascha Hauer (13):
fs: ramfs: zero the rest of a chunk when truncating
fs: fat: zero-fill files grown by truncate
fs: keep the file size when O_TRUNC fails
fs: legacy: return -EPERM when a driver can't create symlinks
fs: uimagefs: allow opening a file more than once
fs: nfs: drop the write and truncate stubs
fs: fat: fix building without CONFIG_FS_FAT_LFN
fs: bpkfs: skip the data of ignored duplicates
fs: bpkfs: allow opening a file more than once
fs: bpkfs: make room for the NUL after the checksum string
fs: pstore: read from the file position
fs: pstore: don't free the records when unmounting
fs: efivarfs: zero-fill variables grown by truncate

 fs/bpkfs.c         | 49 ++++++++++++++++++++++++++++++++--------------
 fs/efivarfs.c      |  5 ++++-
 fs/fat/fat.c       | 57 ++++++++++++++++++++++++++++++++++++++++++++----------
 fs/fs.c            |  2 +-
 fs/legacy.c        |  3 ++-
 fs/nfs.c           | 12 ------------
 fs/pstore/fs.c     | 25 +-----------------------
 fs/ramfs.c         |  8 ++++++++
 fs/uimagefs.c      | 36 ++++++++++++++++++++++++++--------
 include/bpkfs.h    |  4 ++--
 include/uimagefs.h |  1 -
 11 files changed, 128 insertions(+), 74 deletions(-)

---
base-commit: 09dbb295e9107a256d73e218dca96f420f4e344d
change-id: 20261118-fs-conformance-fixes-e768eedf4a27

Best regards,

Signature · 1 line
Sascha Hauer <[email protected]>