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-04 13:09:24 -0500
commit9b9da7c1317ffc8ca02e560b456afd645dbb0bf5 (patch)
tree83886c03bc3632c544ae3cdc0f577aef7faa1aa3
parent1ae331aa44ae5e7bd3e05bd9e32c103be6bf930b (diff)
downloadlvm2-9b9da7c1317ffc8ca02e560b456afd645dbb0bf5.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 2dd73218c..4bd5b91a3 100644
--- a/tools/commands.h
+++ b/tools/commands.h
@@ -672,7 +672,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"
@@ -754,7 +754,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 {