mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 2 years ago
Clone

Blame SOURCES/lvm2-2_03_12-test-check-read_only_volume_list-tagging-works.patch

abb29f
 test/shell/tags.sh | 5 +++++
abb29f
 1 file changed, 5 insertions(+)
abb29f
abb29f
diff --git a/test/shell/tags.sh b/test/shell/tags.sh
abb29f
index fd1b332..5b636a8 100644
abb29f
--- a/test/shell/tags.sh
abb29f
+++ b/test/shell/tags.sh
abb29f
@@ -52,6 +52,11 @@ check lv_field @firstlvtag1 tags "firstlvtag1"
abb29f
 not check lv_field @secondlvtag1 tags "firstlvtag1"
abb29f
 check lv_field $vg1/$lv2 tags "secondlvtag1"
abb29f
 not check lv_field $vg1/$lv1 tags "secondlvtag1"
abb29f
+
abb29f
+# LV is not zeroed when tag matches read only volume list
abb29f
+lvcreate -l1 $vg1 --addtag "RO" --config "activation/read_only_volume_list = [ \"@RO\" ]" 2>&1 | tee out
abb29f
+grep "not zeroed" out
abb29f
+
abb29f
 vgremove -f $vg1
abb29f
 
abb29f
 # lvchange with --addtag and --deltag