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:
parent
6a5b803539
commit
364a71ca82
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user