master - vg_read: remove unused inconsistent check
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8f269697d21035035ffb4954f31bd702a6dd7ca8 Commit: 8f269697d21035035ffb4954f31bd702a6dd7ca8 Parent: 98d81a43ea31ec963a36b8610f3b5a9be28b4cc1 Author: David Teigland <[email protected]> AuthorDate: Fri Oct 23 12:19:11 2015 -0500 Committer: David Teigland <[email protected]> CommitterDate: Fri Oct 23 12:19:11 2015 -0500
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.
--- tools/toollib.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-)
tools/toollib.c +0 -6
@@ -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 */