summaryrefslogtreecommitdiffstats
path: root/tools/vgreduce.c
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2009-02-09 09:45:49 +0000
committerMilan Broz <mbroz@redhat.com>2009-02-09 09:45:49 +0000
commitea0cdd28c1cdf282b535e059a2f94510c84387d9 (patch)
tree30e0b64578f0c67ca42448794df3115233b8c981 /tools/vgreduce.c
parent284f4496c3eead8a0f676f3b69aff6458b76bc06 (diff)
downloadlvm2-ea0cdd28c1cdf282b535e059a2f94510c84387d9.tar.gz
lvm2-ea0cdd28c1cdf282b535e059a2f94510c84387d9.tar.xz
lvm2-ea0cdd28c1cdf282b535e059a2f94510c84387d9.zip
Separate PV label attributes which do not need parse metadata when reporting.
When reporting explicitly label attributes (pv_uuid for example), we do not need to read metadata. This patch separate the label fileds and removes scan_vgs_for_pvs in process_each_pv() if not needed. (There should be no user visible change in output.)
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r--tools/vgreduce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c
index 79bf3e09..3b20a61d 100644
--- a/tools/vgreduce.c
+++ b/tools/vgreduce.c
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
- * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
+ * Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved.
*
* This file is part of LVM2.
*
@@ -584,7 +584,7 @@ int vgreduce(struct cmd_context *cmd, int argc, char **argv)
/* FIXME: Pass private struct through to all these functions */
/* and update in batch here? */
- ret = process_each_pv(cmd, argc, argv, vg, LCK_NONE, NULL,
+ ret = process_each_pv(cmd, argc, argv, vg, LCK_NONE, 0, NULL,
_vgreduce_single);
}