summaryrefslogtreecommitdiffstats
path: root/0163-UPBZ-1333492-resize-map.patch
blob: cc24b6ff6d7e4cf608fbd33df19cecafd5708cb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
 multipathd/cli_handlers.c |    2 ++
 1 file changed, 2 insertions(+)

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