mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: readonly snapshot thick origin can't be merged
When user sets snapshot thick origin as read-only - lvconvert --merge refuses to merge until user swiches origin to 'read-write'.
This commit is contained in:
parent
868b733588
commit
b9846bdc3e
@ -55,6 +55,12 @@ setup_merge_ $vg $lv1
|
||||
# make sure lvconvert --merge requires explicit LV listing
|
||||
not lvconvert --merge
|
||||
|
||||
# check read-only origin is protected from being merge
|
||||
lvchange -pr $vg/$lv1
|
||||
not lvconvert --merge "$vg/$(snap_lv_name_ "$lv1")" |& tee out
|
||||
grep "read-only origin" out
|
||||
lvchange -prw $vg/$lv1
|
||||
|
||||
# check exclusive lock is preserved after merge
|
||||
check lv_field "$vg/$lv1" lv_active_exclusively "active exclusively"
|
||||
lvconvert --merge "$vg/$(snap_lv_name_ "$lv1")"
|
||||
|
Loading…
Reference in New Issue
Block a user