]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/encrypt: support custom data unit size
authorEric Biggers <ebiggers@google.com>
Tue, 21 Nov 2023 22:39:08 +0000 (14:39 -0800)
committerZorro Lang <zlang@kernel.org>
Sun, 14 Jan 2024 12:39:09 +0000 (20:39 +0800)
commit077698f5211d4b237de752655e0a2ff3d55d7fa0
tree310959baacfea85a5a13d60ad307a567cd541380
parent8716ac9a3eeadab0dc2a888bc75979213b35c392
common/encrypt: support custom data unit size

Make _require_scratch_encryption() and
_require_encryption_policy_support() support the new '-s' option to
set_encpolicy to specify a custom value of log2_data_unit_size.

Likewise, make _verify_ciphertext_for_encryption_policy() accept an
argument "log2_dusize=*" to cause it to use the specified data unit size
for the test and verify that the file contents are encrypted as expected
for that data unit size.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/encrypt