1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

test: Can not attach writecache to active volume

This commit is contained in:
Marian Csontos 2020-03-18 14:30:09 +01:00
parent 957904933b
commit fc32787c1b

View File

@ -139,8 +139,10 @@ mount "$DM_DEV_DIR/$vg/$lv1" $mount_dir
cp pattern1 $mount_dir/pattern1
ls -l $mount_dir
lvconvert --yes --type writecache --cachevol $lv2 $vg/$lv1
# TODO BZ 1808012 - can not convert active volume to writecache:
not lvconvert --yes --type writecache --cachevol $lv2 $vg/$lv1
if false; then
check lv_field $vg/$lv1 segtype writecache
lvs -a $vg/${lv2}_cvol --noheadings -o segtype >out
@ -162,6 +164,7 @@ diff pattern1 $mount_dir/pattern1.after
umount $mount_dir
lvchange -an $vg/$lv1
lvremove $vg/$lv1
fi
vgremove -ff $vg