This is a preliminary fstests side of the btrfs encryption feature; more tests are needed, but this gets the existing encryption tests working with btrfs. This requires the progs and the kernel changes: [1] [2]. Marked as RFC because they're not ready to merge until all its dependencies finish landing. [1] https://lore.kernel.org/linux-btrfs/cover.1688068420.git.sweettea-kernel@xxxxxxxxxx/T/#t [2] https://lore.kernel.org/linux-btrfs/cover.1687988380.git.sweettea-kernel@xxxxxxxxxx/T/#t Sweet Tea Dorminy (8): 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 encryption tests for extent encryption common/verity: explicitly don't allow btrfs encryption btrfs: add simple test of reflink of encrypted data common/encrypt | 86 +++++++++++++++++++++++++++++++++++++++++---- common/verity | 4 +++ tests/btrfs/613 | 62 ++++++++++++++++++++++++++++++++ tests/btrfs/613.out | 13 +++++++ tests/generic/429 | 6 ++++ tests/generic/580 | 4 +++ tests/generic/595 | 4 +++ tests/generic/613 | 12 ++++--- 8 files changed, 180 insertions(+), 11 deletions(-) create mode 100755 tests/btrfs/613 create mode 100644 tests/btrfs/613.out base-commit: 87f90a2dae7a4adb7a0a314e27abae9aa1de78fb -- 2.40.1