Skip to contentSkip to conversation

master - pvchange: Use process_each_pv.

PATCH Alasdair Kergon 1 participant 1 message Feb 12, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e4e703ab60dc912d3d8c7ff198c98962338341b2
Commit:        e4e703ab60dc912d3d8c7ff198c98962338341b2
Parent:        acb6c062078fbfd5ccd5aa92fbfd8db081b39b19
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Thu Feb 12 16:37:47 2015 +0000
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Thu Feb 12 16:37:47 2015 +0000

pvchange: Use process_each_pv.

Invalid devices no longer included in the counters printed at the end. May now need to use --ignoreskippedcluster if relying upon exit status. If more than one change is requested per-PV, attempt to perform them all. Note that different arguments still handle exit status differently.

---
 WHATS_NEW        |    3 +
 tools/commands.h |    6 +-
 tools/pvchange.c |  194 +++++++++++++++++++----------------------------------
 3 files changed, 77 insertions(+), 126 deletions(-)
WHATS_NEW +3 -0
index 7691649..2c50c78 100644
@@ -1,5 +1,8 @@
 Version 2.02.117 - 
 ====================================
+  Add --ignoreskippedcluster to pvchange.
+  Allow pvchange to modify several properties at once.
+  Update pvchange to use process_each_pv.
   Fix pvs -a used with lvmetad to filter out devices unsuitable for PVs.
   Fix selection to recognize units for ba_start, vg_free and seg_start fields.
   Add support for -S/--select to vgexport and vgimport.
tools/commands.h +4 -2
index 5221f79..febd851 100644
@@ -640,11 +640,12 @@ xx(pvchange,
    "\t[-d|--debug]\n"
    "\t[-f|--force]\n"
    "\t[-h|--help]\n"
+   "\t[--ignoreskippedcluster]\n"
+   "\t[--metadataignore y|n]\n"
    "\t[-S|--select Selection]\n"
    "\t[-t|--test]\n"
    "\t[-u|--uuid]\n"
    "\t[-x|--allocatable y|n]\n"
-   "\t[--metadataignore y|n]\n"
    "\t[-v|--verbose]\n"
    "\t[--addtag Tag]\n"
    "\t[--deltag Tag]\n"
@@ -652,7 +653,8 @@ xx(pvchange,
    "\t[PhysicalVolumePath...]\n",
 
    all_ARG, allocatable_ARG, allocation_ARG, autobackup_ARG, deltag_ARG,
-   addtag_ARG, force_ARG, metadataignore_ARG, select_ARG, test_ARG, uuid_ARG)
+   addtag_ARG, force_ARG, ignoreskippedcluster_ARG, metadataignore_ARG,
+   select_ARG, test_ARG, uuid_ARG)
 
 xx(pvresize,
    "Resize physical volume(s)",
tools/pvchange.c +70 -124

331 lines not on this page · raw message