master - tests: more pvchange options examined
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4ebdfcfb596bc2611c8b54d46c0a4ce6cc05ba9f Commit: 4ebdfcfb596bc2611c8b54d46c0a4ce6cc05ba9f Parent: 04a6918518d9c74b761a5ca74e8f67cf2b170d71 Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Mar 27 11:23:08 2014 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Mar 27 13:13:22 2014 +0100
tests: more pvchange options examined
--- test/shell/pvchange-usage.sh | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
test/shell/pvchange-usage.sh +9 -0
@@ -30,8 +30,10 @@ do # "vgchange disable/enable allocation for pvs with metadatacopies = $mda (bz452982)" pvchange "$dev1" -x n + pvchange "$dev1" -x n # already disabled check pv_field "$dev1" pv_attr --- pvchange "$dev1" -x y + pvchange "$dev1" -x y # already enabled check pv_field "$dev1" pv_attr a-- # 'remove pv'
@@ -46,6 +48,13 @@ vgcreate $vg1 "$dev1" "$dev2" pvchange -u "$dev1" pvchange -u "$dev2" check pvlv_counts $vg1 2 0 0 + +# -a needs more params +not pvchange -a +# -a is searching for devs, so passing it some is error +not pvchange -a "$dev1" +not pvchange -u "$dev1-notfound" + pvchange -u --all check pvlv_counts $vg1 2 0 0