diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-02-02 19:53:28 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-02-02 21:23:39 +0100 |
commit | ae2af1d5eda8fa4e082e67429758f731ca6fcef6 (patch) | |
tree | bcea87b60d47df1dc57ca13654c9347f3c7a8082 | |
parent | 51c83f14837c8647c3522abb23707da3ece2085c (diff) | |
download | lvm2-ae2af1d5eda8fa4e082e67429758f731ca6fcef6.tar.gz |
test: check read_only_volume_list tagging works
-rw-r--r-- | test/shell/tags.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/shell/tags.sh b/test/shell/tags.sh index fd1b33229..5b636a877 100644 --- a/test/shell/tags.sh +++ b/test/shell/tags.sh @@ -52,6 +52,11 @@ check lv_field @firstlvtag1 tags "firstlvtag1" not check lv_field @secondlvtag1 tags "firstlvtag1" check lv_field $vg1/$lv2 tags "secondlvtag1" not check lv_field $vg1/$lv1 tags "secondlvtag1" + +# LV is not zeroed when tag matches read only volume list +lvcreate -l1 $vg1 --addtag "RO" --config "activation/read_only_volume_list = [ \"@RO\" ]" 2>&1 | tee out +grep "not zeroed" out + vgremove -f $vg1 # lvchange with --addtag and --deltag |