Blame SOURCES/0147-RHBZ-1272620-fail-rm-msg.patch

4ae388
---
4ae388
 multipathd/cli_handlers.c |    8 ++++----
4ae388
 multipathd/main.c         |    4 ++--
4ae388
 2 files changed, 6 insertions(+), 6 deletions(-)
4ae388
4ae388
Index: multipath-tools-130222/multipathd/cli_handlers.c
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/multipathd/cli_handlers.c
4ae388
+++ multipath-tools-130222/multipathd/cli_handlers.c
4ae388
@@ -459,7 +459,7 @@ cli_del_path (void * v, char ** reply, i
4ae388
 	pp = find_path_by_dev(vecs->pathvec, param);
4ae388
 	if (!pp) {
4ae388
 		condlog(0, "%s: path already removed", param);
4ae388
-		return 0;
4ae388
+		return 1;
4ae388
 	}
4ae388
 	return ev_remove_path(pp, vecs);
4ae388
 }
4ae388
@@ -520,19 +520,19 @@ cli_del_map (void * v, char ** reply, in
4ae388
 	minor = dm_get_minor(param);
4ae388
 	if (minor < 0) {
4ae388
 		condlog(2, "%s: not a device mapper table", param);
4ae388
-		return 0;
4ae388
+		return 1;
4ae388
 	}
4ae388
 	major = dm_get_major(param);
4ae388
 	if (major < 0) {
4ae388
 		condlog(2, "%s: not a device mapper table", param);
4ae388
-		return 0;
4ae388
+		return 1;
4ae388
 	}
4ae388
 	sprintf(dev_path,"dm-%d", minor);
4ae388
 	alias = dm_mapname(major, minor);
4ae388
 	if (!alias) {
4ae388
 		condlog(2, "%s: mapname not found for %d:%d",
4ae388
 			param, major, minor);
4ae388
-		return 0;
4ae388
+		return 1;
4ae388
 	}
4ae388
 	rc = ev_remove_map(param, alias, minor, vecs);
4ae388
 	FREE(alias);
4ae388
Index: multipath-tools-130222/multipathd/main.c
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/multipathd/main.c
4ae388
+++ multipath-tools-130222/multipathd/main.c
4ae388
@@ -437,12 +437,12 @@ ev_remove_map (char * devname, char * al
4ae388
 	if (!mpp) {
4ae388
 		condlog(2, "%s: devmap not registered, can't remove",
4ae388
 			devname);
4ae388
-		return 0;
4ae388
+		return 1;
4ae388
 	}
4ae388
 	if (strcmp(mpp->alias, alias)) {
4ae388
 		condlog(2, "%s: minor number mismatch (map %d, event %d)",
4ae388
 			mpp->alias, mpp->dmi->minor, minor);
4ae388
-		return 0;
4ae388
+		return 1;
4ae388
 	}
4ae388
 	return flush_map(mpp, vecs, 0);
4ae388
 }