2 libmultipath/configure.c | 11 +++++++++++
3 libmultipath/configure.h | 1 +
4 libmultipath/devmapper.c | 3 +--
5 3 files changed, 13 insertions(+), 2 deletions(-)
7 Index: multipath-tools-130222/libmultipath/configure.c
8 ===================================================================
9 --- multipath-tools-130222.orig/libmultipath/configure.c
10 +++ multipath-tools-130222/libmultipath/configure.c
11 @@ -394,6 +394,8 @@ select_action (struct multipath * mpp, v
12 cmpp->alias, mpp->alias);
13 strncpy(mpp->alias_old, cmpp->alias, WWID_SIZE);
14 mpp->action = ACT_RENAME;
16 + mpp->action = ACT_RENAME2;
19 mpp->action = ACT_CREATE;
20 @@ -632,6 +634,15 @@ domap (struct multipath * mpp, char * pa
21 r = dm_rename(mpp->alias_old, mpp->alias);
25 + r = dm_rename(mpp->alias_old, mpp->alias);
27 + r = dm_addmap_reload(mpp, params);
29 + r = dm_simplecmd_noflush(DM_DEVICE_RESUME, mpp->alias, MPATH_UDEV_RELOAD_FLAG);
36 Index: multipath-tools-130222/libmultipath/configure.h
37 ===================================================================
38 --- multipath-tools-130222.orig/libmultipath/configure.h
39 +++ multipath-tools-130222/libmultipath/configure.h
40 @@ -18,6 +18,7 @@ enum actions {
48 Index: multipath-tools-130222/libmultipath/devmapper.c
49 ===================================================================
50 --- multipath-tools-130222.orig/libmultipath/devmapper.c
51 +++ multipath-tools-130222/libmultipath/devmapper.c
52 @@ -565,10 +565,9 @@ dm_dev_t (const char * mapname, char * d
53 if (!dm_task_run(dmt))
56 - if (!dm_task_get_info(dmt, &info))
57 + if (!dm_task_get_info(dmt, &info) || !info.exists)
60 - r = info.open_count;
61 if (snprintf(dev_t, len, "%i:%i", info.major, info.minor) > len)