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