mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
tests: more pvchange tests
This commit is contained in:
parent
79f4665243
commit
37b4dc7775
@ -77,7 +77,11 @@ check pvlv_counts $vg1 2 0 0
|
|||||||
|
|
||||||
# some args are needed
|
# some args are needed
|
||||||
invalid pvchange
|
invalid pvchange
|
||||||
|
# some PV needed
|
||||||
|
invalid pvchange --addtag tag
|
||||||
|
invalid pvchange --deltag tag
|
||||||
|
# some --all & PV can go together
|
||||||
|
invalid pvchange -a "$dev1" --addtag tag
|
||||||
# '-a' needs more params
|
# '-a' needs more params
|
||||||
invalid pvchange -a
|
invalid pvchange -a
|
||||||
# '-a' is searching for devs, so specifying device is invalid
|
# '-a' is searching for devs, so specifying device is invalid
|
||||||
@ -91,6 +95,11 @@ not pvchange -u "$dev1"
|
|||||||
|
|
||||||
vgremove -f $vg1
|
vgremove -f $vg1
|
||||||
|
|
||||||
# "pvchange reject --addtag to lvm1 pv"
|
# cannot change PV tag to PV that is not in VG"
|
||||||
|
fail pvchange "$dev1" --addtag test
|
||||||
|
fail pvchange "$dev1" --deltag test
|
||||||
|
|
||||||
|
# cannot add PV tag to lvm1 format
|
||||||
pvcreate -M1 "$dev1"
|
pvcreate -M1 "$dev1"
|
||||||
not pvchange "$dev1" --addtag test
|
vgcreate -M1 $vg1 "$dev1"
|
||||||
|
fail pvchange "$dev1" --addtag test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user