Skip to content

RFC fstests: add btrfs encryption testing

Sweet Tea Dorminy fstests fsverity linux-btrfs linux-fscrypt 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest9 patches 3 repliesIn review
  2. v2 RFC8 patches 1 replySuperseded
  3. v1 RFC8 patches 1 replySuperseded

Changes in v3 from the cover letter

- add test of snapshotting encrypted subvol
- updated f2fs/002 to match edits to common/encrypt, thanks Anand.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9common/encrypt: separate data and inode noncescommon/encrypt tests/f2fs/002 tests/generic/613+29 -100 replies
2/9common/encrypt: add btrfs to get_encryption_*noncecommon/encrypt tests/generic/613+35 -01 reply
3/9common/encrypt: add btrfs to get_ciphertext_filenamecommon/encrypt+16 -00 replies
4/9common/encrypt: enable making a encrypted btrfs filesystemcommon/encrypt+6 -00 replies
5/9generic/613: write some actual data for btrfstests/generic/613+2 -20 replies
6/9tests: adjust generic/429 for extent encryptiontests/generic/429+6 -01 reply
7/9common/verity: explicitly don't allow btrfs encryptioncommon/verity+4 -00 replies
8/9btrfs: add simple test of reflink of encrypted datatests/btrfs/613 tests/btrfs/613.out+72 -00 replies
9/9btrfs: test snapshotting encrypted subvoltests/btrfs/614 tests/btrfs/614.out+187 -01 reply

Reviews trailers per patch

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

Read the v3 thread

Cover letter [RFC PATCH v3 0/9] fstests: add btrfs encryption testing

This is a preliminary fstests side of the btrfs encryption feature. This requires the latest related progs and kernel changesets.

Marked as RFC because they're not ready to merge until all its dependencies finish landing; this is primarily to demonstrate that extent encryption, between fscrypt and btrfs, does not significantly change user-visible behavior.

Changelog:

RFC v3:
- add test of snapshotting encrypted subvol
- updated f2fs/002 to match edits to common/encrypt, thanks Anand.

RFC v2:
- https://lore.kernel.org/linux-btrfs/[email protected]/
- Reverted changes to generic/580 and generic/595 to match the new 'soft-delete' behavior introduced in v2 of kernel patchset
"fscrypt: add extent encryption". (change 6)
- Removed extraneous syncs/drop_caches and added copyright to new test (change 8), as per Filipe's comments.

RFC v1:
- https://lore.kernel.org/linux-btrfs/[email protected]/T/#t

Sweet Tea Dorminy (9):
common/encrypt: separate data and inode nonces common/encrypt: add btrfs to get_encryption_*nonce common/encrypt: add btrfs to get_ciphertext_filename common/encrypt: enable making a encrypted btrfs filesystem generic/613: write some actual data for btrfs
tests: adjust generic/429 for extent encryption common/verity: explicitly don't allow btrfs encryption
btrfs: add simple test of reflink of encrypted data
btrfs: test snapshotting encrypted subvol

 common/encrypt      |  86 +++++++++++++++++++++++++++++++---
 common/verity       |   4 ++
 tests/btrfs/613     |  59 +++++++++++++++++++++++
 tests/btrfs/613.out |  13 ++++++
 tests/btrfs/614     |  76 ++++++++++++++++++++++++++++++
 tests/btrfs/614.out | 111 ++++++++++++++++++++++++++++++++++++++++++++
 tests/f2fs/002      |   2 +-
 tests/generic/429   |   6 +++
 tests/generic/613   |  12 +++--
 9 files changed, 357 insertions(+), 12 deletions(-)
 create mode 100755 tests/btrfs/613
 create mode 100644 tests/btrfs/613.out
 create mode 100755 tests/btrfs/614
 create mode 100644 tests/btrfs/614.out

base-commit: 8de535c53887bb49adae74a1b2e83e77d7e8457d

Signature · 1 line
2.41.0