1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

vg_read: remove unused inconsistent check

Commit 1a74171ca5 added
a check to ignore a VG that was FAILED_INCONSISTENT
if the command doesn't care if the VG is not found.
Remove that check because that case is never reached
by the current code.
This commit is contained in:
David Teigland 2015-10-23 12:19:11 -05:00
parent 98d81a43ea
commit 8f269697d2

View File

@ -195,12 +195,6 @@ static int _ignore_vg(struct volume_group *vg, const char *vg_name,
return 0; return 0;
} }
if ((read_error & FAILED_INCONSISTENT) && (read_flags & READ_OK_NOTFOUND)) {
read_error &= ~FAILED_INCONSISTENT;
*skip = 1;
return 0;
}
if ((read_error & FAILED_INCONSISTENT) && (read_flags & READ_ALLOW_INCONSISTENT)) if ((read_error & FAILED_INCONSISTENT) && (read_flags & READ_ALLOW_INCONSISTENT))
read_error &= ~FAILED_INCONSISTENT; /* Check for other errors */ read_error &= ~FAILED_INCONSISTENT; /* Check for other errors */