summaryrefslogtreecommitdiff
path: root/tools/vgdisplay.c
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2015-08-26 21:11:46 +0100
committerAlasdair G Kergon <agk@redhat.com>2015-08-26 21:11:46 +0100
commit8740b7cb77699dbb78e80ed4e8bd6c742626558e (patch)
treea44e2c3762f4f60df461a5fbccc01ee1c29ee664 /tools/vgdisplay.c
parent746b1bcf2ad08b0a15dbf6ea0e140c2eb71ff87a (diff)
downloadlvm2-8740b7cb77699dbb78e80ed4e8bd6c742626558e.tar.gz
vgdisplay: Drop error message for exported VGs.
Originally when vgdisplay encountered an exported VG it issued a WARNING. Commit d6b1de30 replaced this with an error message but still exited with success (incorrect). A backtrace was recently added in commit b19380998739b9971d27845a70a78511c2335cb0. As vgdisplay already states that the VG is exported in its output, just drop these messages completely.
Diffstat (limited to 'tools/vgdisplay.c')
-rw-r--r--tools/vgdisplay.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/vgdisplay.c b/tools/vgdisplay.c
index 0127e7cff..1acb3ece7 100644
--- a/tools/vgdisplay.c
+++ b/tools/vgdisplay.c
@@ -22,9 +22,6 @@ static int vgdisplay_single(struct cmd_context *cmd, const char *vg_name,
if (arg_count(cmd, activevolumegroups_ARG) && !lvs_in_vg_activated(vg))
return ECMD_PROCESSED;
- if (!vg_check_status(vg, EXPORTED_VG))
- stack;
-
if (arg_count(cmd, colon_ARG)) {
vgdisplay_colons(vg);
return ECMD_PROCESSED;