diff options
author | David Teigland <teigland@redhat.com> | 2015-11-30 17:00:26 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2015-12-01 09:36:45 -0600 |
commit | ea74215fa1f76cc965efd4f4656ad74321827161 (patch) | |
tree | e78cfb9328ea3ccb69fe279505a6cd7b80b625ac /tools/toollib.h | |
parent | 3bcdf5d14b930ba71c4dc5b03fcde0b19a5c8515 (diff) | |
download | lvm2-ea74215fa1f76cc965efd4f4656ad74321827161.tar.gz |
vgextend: pass single vgname as process_each_vg arg
Pass the single vgname as a new process_each_vg arg
instead of setting a cmd flag to tell process_each_vg
to take only the first vgname arg from argv.
Other commands with different argv formats will be
able to use it this way.
Diffstat (limited to 'tools/toollib.h')
-rw-r--r-- | tools/toollib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/toollib.h b/tools/toollib.h index 2dc5ad73f..400bac520 100644 --- a/tools/toollib.h +++ b/tools/toollib.h @@ -97,7 +97,8 @@ typedef int (*process_single_pvseg_fn_t) (struct cmd_context * cmd, struct processing_handle *handle); int process_each_vg(struct cmd_context *cmd, int argc, char **argv, - uint32_t flags, struct processing_handle *handle, + const char *one_vgname, uint32_t flags, + struct processing_handle *handle, process_single_vg_fn_t process_single_vg); int process_each_pv(struct cmd_context *cmd, int argc, char **argv, |