mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: add check for rename of cached vdopool
This commit is contained in:
parent
cfc4dd4c7c
commit
39cdc1469d
@ -32,10 +32,22 @@ export MKE2FS_CONFIG="$TESTDIR/lib/mke2fs.conf"
|
||||
|
||||
aux prepare_vg 1 9000
|
||||
|
||||
lvcreate --vdo -L4G -V2G --name $lv1 $vg/vpool
|
||||
lvcreate --vdo -L4G -V2G --name $lv1 $vg/vpool1
|
||||
|
||||
# Test caching VDOPoolLV
|
||||
lvcreate -H -L10 $vg/vpool
|
||||
lvcreate -H -L10 $vg/vpool1
|
||||
|
||||
# Current VDO target driver cannot handle online rename
|
||||
# once this will be supported - update this test
|
||||
not lvrename $vg/vpool1 $vg/vpool 2>&1 | tee out
|
||||
grep "Cannot rename" out
|
||||
|
||||
lvchange -an $vg
|
||||
|
||||
# Ofline should work
|
||||
lvrename $vg/vpool1 $vg/vpool
|
||||
|
||||
lvchange -ay $vg
|
||||
|
||||
mkfs.ext4 -E nodiscard "$DM_DEV_DIR/$vg/$lv1"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user