Skip to content

Data in direntry (dirdata) feature

Artem Blagodarenko linux-ext4 syzbot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ext4: make dirdata work with metadata_csumfs/ext4/namei.c+89 -880 replies
2/3ext4: add dirdata support structures and helpersfs/ext4/ext4.h+119 -40 replies
3/3ext4: dirdata featurefs/ext4/dir.c fs/ext4/ext4.h fs/ext4/inline.c +3 more+219 -760 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAndreas Dilger[email protected]
SeriesT-b
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Data in direntry (dirdata) feature

EXT4 currently stores a hash in the directory entry (dirent) immediately after the file name to support simultaneous fscrypt and casefold functionality.

It has been discussed within the EXT4 community that this hash could instead be stored in dirdata. This would make it the second (or third, in the case of 64-bit inode counts) user of dirdata.

At the same time, the existing format—where the hash is placed after the file name—must continue to be supported. With these patches, EXT4 can handle the hash in both formats.

The first user of this feature, LUFID, has been tested in the Lustre filesystem backend (LDISKFS) [1].

Support for fscrypt and case-insensitive directories with dirdata enabled has been verified using a dedicated xfstest submitted to the EXT4 community as a separate patch.

e2fsprogs support is provided in a separate patch.

[1] https://review.whamcloud.com/c/fs/lustre-release/+/64439

Artem Blagodarenko (3):
ext4: make dirdata work with metadata_csum
ext4: add dirdata support structures and helpers
ext4: dirdata feature

 fs/ext4/dir.c    |   9 +-
 fs/ext4/ext4.h   | 169 +++++++++++++++++++--
 fs/ext4/inline.c |  22 +--
 fs/ext4/namei.c  | 379 ++++++++++++++++++++++++++++++-----------------
 fs/ext4/super.c  |   4 +-
 fs/ext4/sysfs.c  |   2 +
 6 files changed, 422 insertions(+), 163 deletions(-)
Signature · 1 line
2.43.5