1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Correct order of consistency/exists checks.

This commit is contained in:
Alasdair Kergon 2003-09-15 15:00:01 +00:00
parent 6a5b803539
commit 364a71ca82

View File

@ -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;
}