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