summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2013-08-29 16:53:32 -0500
committerDavid Teigland <teigland@redhat.com>2013-08-29 16:53:32 -0500
commit478661241058ff9c18e3757fb92fd9ff8aa281cb (patch)
treebe3a595be3c0af2ac5b11b4296d234e87b51350b
parentec18f2495ff54a6bd752cac677340fce4c46622b (diff)
downloadlvm2-478661241058ff9c18e3757fb92fd9ff8aa281cb.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 0c6496280..26adf7841 100644
--- a/tools/commands.h
+++ b/tools/commands.h
@@ -616,7 +616,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"
@@ -691,7 +691,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 {