summaryrefslogtreecommitdiffstats
path: root/tools/pvresize.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/pvresize.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/pvresize.c')
-rw-r--r--tools/pvresize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pvresize.c b/tools/pvresize.c
index 13c37616..f0a6471b 100644
--- a/tools/pvresize.c
+++ b/tools/pvresize.c
@@ -226,7 +226,7 @@ int pvresize(struct cmd_context *cmd, int argc, char **argv)
params.done = 0;
params.total = 0;
- ret = process_each_pv(cmd, argc, argv, NULL, LCK_VG_WRITE, &params,
+ ret = process_each_pv(cmd, argc, argv, NULL, LCK_VG_WRITE, 0, &params,
_pvresize_single);
log_print("%d physical volume(s) resized / %d physical volume(s) "