main - test: check read_only_volume_list tagging works
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=ae2af1d5eda8fa4e082e67429758f731ca6fcef6 Commit: ae2af1d5eda8fa4e082e67429758f731ca6fcef6 Parent: 51c83f14837c8647c3522abb23707da3ece2085c Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Feb 2 19:53:28 2021 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Feb 2 21:23:39 2021 +0100
test: check read_only_volume_list tagging works
--- test/shell/tags.sh | 5 +++++ 1 file changed, 5 insertions(+)
test/shell/tags.sh +5 -0
@@ -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