summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-10-23 12:19:11 -0500
committerDavid Teigland <teigland@redhat.com>2015-10-23 12:19:11 -0500
commit8f269697d21035035ffb4954f31bd702a6dd7ca8 (patch)
tree0426aec62a1d331c491c8ae6b234de58f796e0fb
parent98d81a43ea31ec963a36b8610f3b5a9be28b4cc1 (diff)
downloadlvm2-8f269697d21035035ffb4954f31bd702a6dd7ca8.tar.gz
vg_read: remove unused inconsistent check
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.
-rw-r--r--tools/toollib.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/toollib.c b/tools/toollib.c
index 39bf0ac12..fba075a0e 100644
--- a/tools/toollib.c
+++ b/tools/toollib.c
@@ -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 */