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

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