diff options
author | David Teigland <teigland@redhat.com> | 2013-08-29 16:53:32 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2014-04-15 11:34:27 -0500 |
commit | 43fde85d1aa785187783207742d830612bb9a5cb (patch) | |
tree | b724385527c2bd3caf753dd6a56ff20f6a4d008f | |
parent | 1d81d0396f0c14244767917e5ba906f32b657172 (diff) | |
download | lvm2-43fde85d1aa785187783207742d830612bb9a5cb.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.h | 4 | ||||
-rw-r--r-- | tools/tools.h | 1 |
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 { |