diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2009-09-14 19:44:15 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2009-09-14 19:44:15 +0000 |
commit | 905240f91da66571da073df8784f1f42b2888328 (patch) | |
tree | 070f57080ddf3e5cb67534db4ab7833a32ca5b0a /tools/vgimport.c | |
parent | fca434258aa399ac3bb475d27d43d4dd656a7cd7 (diff) | |
download | lvm2-905240f91da66571da073df8784f1f42b2888328.tar.gz |
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/vgimport.c')
-rw-r--r-- | tools/vgimport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/vgimport.c b/tools/vgimport.c index 864a70098..5161b6236 100644 --- a/tools/vgimport.c +++ b/tools/vgimport.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. * @@ -26,7 +26,7 @@ static int vgimport_single(struct cmd_context *cmd __attribute((unused)), if (vg_read_error(vg)) goto error; - if (!(vg_status(vg) & EXPORTED_VG)) { + if (!vg_is_exported(vg)) { log_error("Volume group \"%s\" is not exported", vg_name); goto error; } |