summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2013-08-29 16:53:32 -0500
committerDavid Teigland <teigland@redhat.com>2014-04-22 13:39:49 -0500
commit54edb2369cd632eb77dceb07a41b65be22d51d3d (patch)
tree93d2bb7b0cea3a7ec01c0521cdb8236973a04c1b
parentd7e3750f5c5a067a57b109206ea1f75dc466c8c9 (diff)
downloadlvm2-54edb2369cd632eb77dceb07a41b65be22d51d3d.tar.gz
toollib: add ENABLE_ALL_DEVS flag
The ENABLE_ALL_DEVS flag is added to the command structure for commands that should process all devs (pvs and non-pvs) when they call process_each_pv and the command includes the --all arg. This will be used in a later process_each_pv patch.
-rw-r--r--tools/commands.h4
-rw-r--r--tools/tools.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/commands.h b/tools/commands.h
index e3f6d0dc7..ec8142fa3 100644
--- a/tools/commands.h
+++ b/tools/commands.h
@@ -679,7 +679,7 @@ xx(pvdata,
xx(pvdisplay,
"Display various attributes of physical volume(s)",
- CACHE_VGMETADATA | PERMITTED_READ_ONLY,
+ CACHE_VGMETADATA | PERMITTED_READ_ONLY | ENABLE_ALL_DEVS,
"pvdisplay\n"
"\t[-c|--colon]\n"
"\t[-d|--debug]\n"
@@ -764,7 +764,7 @@ xx(pvremove,
xx(pvs,
"Display information about physical volumes",
- CACHE_VGMETADATA | PERMITTED_READ_ONLY | ENABLE_ALL_VGS,
+ CACHE_VGMETADATA | PERMITTED_READ_ONLY | ENABLE_ALL_VGS | ENABLE_ALL_DEVS,
"pvs" "\n"
"\t[-a|--all]\n"
"\t[--aligned]\n"
diff --git a/tools/tools.h b/tools/tools.h
index 78fa7cefa..edc0f6b23 100644
--- a/tools/tools.h
+++ b/tools/tools.h
@@ -103,6 +103,7 @@ struct arg_value_group_list {
#define CACHE_VGMETADATA 0x00000001
#define PERMITTED_READ_ONLY 0x00000002
#define ENABLE_ALL_VGS 0x00000004 /* run cmd on all vgs if none are named */
+#define ENABLE_ALL_DEVS 0x00000008
/* a register of the lvm commands */
struct command {