From 905240f91da66571da073df8784f1f42b2888328 Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Mon, 14 Sep 2009 19:44:15 +0000 Subject: Use vg_is_exported(vg) macro everywhere. This patch is all just cleanup and no other patch depends on it. Replace explicit dereference and check with vg_is_exported(). Update a few copyrights and remove unnecessary whitespace. Should be no functional change. --- tools/vgscan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/vgscan.c') diff --git a/tools/vgscan.c b/tools/vgscan.c index 769c5cfa1..a7aef5f05 100644 --- a/tools/vgscan.c +++ b/tools/vgscan.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. * @@ -23,7 +23,7 @@ static int vgscan_single(struct cmd_context *cmd, const char *vg_name, return ECMD_FAILED; log_print("Found %svolume group \"%s\" using metadata type %s", - (vg_status(vg) & EXPORTED_VG) ? "exported " : "", vg_name, + vg_is_exported(vg) ? "exported " : "", vg_name, vg->fid->fmt->name); check_current_backup(vg); -- cgit v1.2.1