From 364a71ca824b9269649dee34fac00ba311268448 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Mon, 15 Sep 2003 15:00:01 +0000 Subject: Correct order of consistency/exists checks. --- tools/vgck.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/vgck.c') diff --git a/tools/vgck.c b/tools/vgck.c index 6a6eb1ec..e6e1bdb6 100644 --- a/tools/vgck.c +++ b/tools/vgck.c @@ -23,13 +23,13 @@ static int vgck_single(struct cmd_context *cmd, const char *vg_name, struct volume_group *vg, int consistent, void *handle) { - if (!consistent) { - log_error("Volume group \"%s\" inconsistent", vg_name); + if (!vg) { + log_error("Volume group \"%s\" not found", vg_name); return ECMD_FAILED; } - if (!vg) { - log_error("Volume group \"%s\" not found", vg_name); + if (!consistent) { + log_error("Volume group \"%s\" inconsistent", vg_name); return ECMD_FAILED; } -- cgit