Blame SOURCES/0163-UPBZ-1333492-resize-map.patch

4728c8
---
4728c8
 multipathd/cli_handlers.c |    2 ++
4728c8
 1 file changed, 2 insertions(+)
4728c8
4728c8
Index: multipath-tools-130222/multipathd/cli_handlers.c
4728c8
===================================================================
4728c8
--- multipath-tools-130222.orig/multipathd/cli_handlers.c
4728c8
+++ multipath-tools-130222/multipathd/cli_handlers.c
4728c8
@@ -571,6 +571,7 @@ int resize_map(struct multipath *mpp, un
4728c8
 	       struct vectors * vecs)
4728c8
 {
4728c8
 	char params[PARAMS_SIZE] = {0};
4728c8
+	unsigned long long orig_size = mpp->size;
4728c8
 
4728c8
 	mpp->size = size;
4728c8
 	update_mpp_paths(mpp, vecs->pathvec);
4728c8
@@ -579,6 +580,7 @@ int resize_map(struct multipath *mpp, un
4728c8
 	if (domap(mpp, params) <= 0) {
4728c8
 		condlog(0, "%s: failed to resize map : %s", mpp->alias,
4728c8
 			strerror(errno));
4728c8
+		mpp->size = orig_size;
4728c8
 		return 1;
4728c8
 	}
4728c8
 	return 0;