diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2020-06-23 14:10:18 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2020-06-24 15:01:03 +0200 |
commit | 094d6f80ddb6d8a1c64977dfaae4073827063fe3 (patch) | |
tree | d2a6b067dd1c629ea0d806d254c78c87d3694d6c | |
parent | 88b92d4225b90db82047f3bac55d8059918e9c1b (diff) | |
download | lvm2-094d6f80ddb6d8a1c64977dfaae4073827063fe3.tar.gz |
tests: failure of zeroing fails command
-rw-r--r-- | test/shell/lvcreate-signature-wiping.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/shell/lvcreate-signature-wiping.sh b/test/shell/lvcreate-signature-wiping.sh index 73fea54fd..18d7a2f7e 100644 --- a/test/shell/lvcreate-signature-wiping.sh +++ b/test/shell/lvcreate-signature-wiping.sh @@ -42,6 +42,13 @@ init_lv_ test_blkid_ || skip lvremove -f $vg/$lv1 +# Zeroing stops the command when there is a failure (write error in this case) +aux error_dev "$dev1" "$(get first_extent_sector "$dev1"):2" +not lvcreate -l1 -n $lv1 $vg 2>&1 | tee out +grep "Failed to initialize" out +aux enable_dev "$dev1" + + aux lvmconf "allocation/wipe_signatures_when_zeroing_new_lvs = 0" lvcreate -y -Zn -l1 -n $lv1 $vg 2>&1 | tee out |