From ea0cdd28c1cdf282b535e059a2f94510c84387d9 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Mon, 9 Feb 2009 09:45:49 +0000 Subject: 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.) --- tools/vgreduce.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/vgreduce.c') 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); } -- cgit