summaryrefslogtreecommitdiffstats
path: root/tools/vgscan.c
diff options
context:
space:
mode:
authorDave Wysochanski <dwysocha@redhat.com>2009-09-14 19:44:15 +0000
committerDave Wysochanski <dwysocha@redhat.com>2009-09-14 19:44:15 +0000
commit905240f91da66571da073df8784f1f42b2888328 (patch)
tree070f57080ddf3e5cb67534db4ab7833a32ca5b0a /tools/vgscan.c
parentfca434258aa399ac3bb475d27d43d4dd656a7cd7 (diff)
downloadlvm2-905240f91da66571da073df8784f1f42b2888328.tar.gz
lvm2-905240f91da66571da073df8784f1f42b2888328.tar.xz
lvm2-905240f91da66571da073df8784f1f42b2888328.zip
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.
Diffstat (limited to 'tools/vgscan.c')
-rw-r--r--tools/vgscan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/vgscan.c b/tools/vgscan.c
index 769c5cfa..a7aef5f0 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);