mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Better user experience for errata 4
This patch attempts to address some user concerns that have arisen since errata 4 was introduced. * The errata warning has been made less scary for users without any encrypted datasets. * The errata warning now clears itself without a pool reimport if the bookmark_v2 feature is enabled and no encrypted datasets exist. * It is no longer possible to create new encrypted datasets without enabling the bookmark_v2 feature, thus helping to ensure that the errata is resolved. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tom Caputi <tcaputi@datto.com> Issue ##8308 Closes #8504
This commit is contained in:
committed by
Brian Behlendorf
parent
98310e5d1a
commit
eaed840542
@@ -75,9 +75,12 @@ log_must eval "ls $old_mntpnt | grep -q testfile"
|
||||
block_device_wait
|
||||
log_mustnot dd if=/dev/zero of=/dev/zvol/$POOL_NAME/testvol bs=512 count=1
|
||||
log_must dd if=/dev/zvol/$POOL_NAME/testvol of=/dev/null bs=512 count=1
|
||||
|
||||
log_must zpool set feature@bookmark_v2=enabled $POOL_NAME # necessary for Errata #4
|
||||
|
||||
log_must eval "echo 'password' | zfs create \
|
||||
-o encryption=on -o keyformat=passphrase -o keylocation=prompt \
|
||||
cryptv0/encroot"
|
||||
$POOL_NAME/encroot"
|
||||
log_mustnot eval "zfs send -w $POOL_NAME/testfs@snap1 | \
|
||||
zfs recv $POOL_NAME/encroot/testfs"
|
||||
log_mustnot eval "zfs send -w $POOL_NAME/testvol@snap1 | \
|
||||
|
||||
Reference in New Issue
Block a user