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

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