Skip to content

xfstests: test custom crypto data unit size

Eric Biggers fstests linux-ext4 linux-f2fs-devel linux-fscrypt 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesIn review
  2. v14 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Updated the cover letter, commit message, and a comment to reflect that the kernel commit that added this feature was merged in 6.7.
- Rebased onto latest for-next branch of xfstests.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4fscrypt-crypt-util: rename block to data unitcommon/encrypt src/fscrypt-crypt-util.c tests/f2fs/002+55 -540 replies
2/4common/rc: fix _require_xfs_io_command with digits in argumentcommon/rc+1 -10 replies
3/4common/encrypt: support custom data unit sizecommon/encrypt+30 -80 replies
4/4generic: add test for custom crypto data unit sizetests/generic/900 tests/generic/900.out+40 -01 reply

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchZorro Lang
1/4
2/4
3/4
4/4R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/4] xfstests: test custom crypto data unit size

This series adds a test that verifies the on-disk format of encrypted files that use a crypto data unit size that differs from the filesystem block size. This tests the functionality that was introduced in Linux 6.7 by kernel commit 5b1188847180 ("fscrypt: support crypto data unit size less than filesystem block size").

This depends on the xfsprogs patch
"xfs_io/encrypt: support specifying crypto data unit size"
(https://lore.kernel.org/r/[email protected])
which adds the '-s' option to the set_encpolicy command of xfs_io.

As usual, the test skips itself when any prerequisite isn't met.

I've tested the new test on both ext4 and f2fs.

Changed in v2:
- Updated the cover letter, commit message, and a comment to reflect that the kernel commit that added this feature was merged in 6.7.
- Rebased onto latest for-next branch of xfstests.

Eric Biggers (4):
fscrypt-crypt-util: rename block to data unit common/rc: fix _require_xfs_io_command with digits in argument common/encrypt: support custom data unit size
generic: add test for custom crypto data unit size

 common/encrypt           | 42 +++++++++++++-----
 common/rc                |  2 +-
 src/fscrypt-crypt-util.c | 93 ++++++++++++++++++++--------------------
 tests/f2fs/002           |  6 +--
 tests/generic/900        | 29 +++++++++++++
 tests/generic/900.out    | 11 +++++
 6 files changed, 123 insertions(+), 60 deletions(-)
 create mode 100755 tests/generic/900
 create mode 100644 tests/generic/900.out

base-commit: b9e1a88f8198ac02f3b82fe3b127d4e14f4a97b7

Signature · 1 line
2.42.1