summaryrefslogtreecommitdiff
path: root/tools/vgck.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-11-30 17:00:26 -0600
committerDavid Teigland <teigland@redhat.com>2015-12-01 09:36:45 -0600
commitea74215fa1f76cc965efd4f4656ad74321827161 (patch)
treee78cfb9328ea3ccb69fe279505a6cd7b80b625ac /tools/vgck.c
parent3bcdf5d14b930ba71c4dc5b03fcde0b19a5c8515 (diff)
downloadlvm2-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/vgck.c')
-rw-r--r--tools/vgck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgck.c b/tools/vgck.c
index 16312891b..b73544b7e 100644
--- a/tools/vgck.c
+++ b/tools/vgck.c
@@ -38,6 +38,6 @@ static int vgck_single(struct cmd_context *cmd __attribute__((unused)),
int vgck(struct cmd_context *cmd, int argc, char **argv)
{
lvmetad_set_active(cmd, 0);
- return process_each_vg(cmd, argc, argv, 0, NULL,
+ return process_each_vg(cmd, argc, argv, NULL, 0, NULL,
&vgck_single);
}