]> sourceware.org Git - lvm2.git/commitdiff
vg_read: remove unused inconsistent check
authorDavid Teigland <teigland@redhat.com>
Fri, 23 Oct 2015 17:19:11 +0000 (12:19 -0500)
committerDavid Teigland <teigland@redhat.com>
Fri, 23 Oct 2015 17:19:11 +0000 (12:19 -0500)
Commit 1a74171ca5682a684d0e05c6090c3d33cab8795b 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.

tools/toollib.c

index 39bf0ac12beea01063a18917ea095a507ec393c9..fba075a0e8bf7a8d8863960cdfec69d61b88992b 100644 (file)
@@ -195,12 +195,6 @@ static int _ignore_vg(struct volume_group *vg, const char *vg_name,
                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))
                read_error &= ~FAILED_INCONSISTENT; /* Check for other errors */
 
This page took 0.043273 seconds and 5 git commands to generate.