mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-25 21:57:45 +03:00
tests: select-tools.sh: add test for fix in commit c9f021de0b4d2c873ef5b97d17c602d0380359fd
This commit is contained in:
parent
8759f7d755
commit
9dbe2d760f
@ -273,3 +273,18 @@ pvchange -a --deltag 309 --deltag tag
|
||||
# iterates over LVs with process_each_lv_in_vg - so internally it actually
|
||||
# operates per-LV, but we still need the selection to be done per-VG)
|
||||
vgremove --yes -S 'lv_name=lv2' # should remove whole vg1, not just the lv2
|
||||
|
||||
# if calling lvremove and an LV is removed that is related to other LV
|
||||
# and we're doing selection based on this relation, check if we're
|
||||
# selecting on initial state (here, thin origin LV thin_orig is removed
|
||||
# first, but thin snap should be still selectable based on origin=thin_orig
|
||||
# condition even though thin_orig has just been removed)
|
||||
vgcreate -s 4m $vg1 $dev1 $dev2
|
||||
lvcreate -l100%FREE -T $vg1/pool
|
||||
lvcreate -V4m -T $vg1/pool -n thin_orig
|
||||
lvcreate -s $vg1/thin_orig -n thin_snap
|
||||
lvremove -ff -S 'lv_name=thin_orig || origin=thin_orig' > out
|
||||
grep "Logical volume \"thin_orig\" successfully removed" out
|
||||
grep "Logical volume \"thin_snap\" successfully removed" out
|
||||
not lvs $vg1/thin_orig
|
||||
not lvs $vg1/thin_snap
|
||||
|
Loading…
x
Reference in New Issue
Block a user