zfs-verify stuff

This commit is contained in:
Edwin Eefting
2022-01-18 20:54:19 +01:00
parent 6791bc4abd
commit 86d504722c
5 changed files with 85 additions and 1 deletions

View File

@ -32,6 +32,7 @@ class TestZfsEncryption(unittest2.TestCase):
def prepare_encrypted_dataset(self, key, path, unload_key=False):
# create encrypted source dataset
shelltest("rm /tmp/zfstest.key 2>/dev/null;true")
shelltest("echo {} > /tmp/zfstest.key".format(key))
shelltest("zfs create -o keylocation=file:///tmp/zfstest.key -o keyformat=passphrase -o encryption=on {}".format(path))