545c4d7632
Add 0032-RHBZ-956464-mpathconf-defaults.patch * fix defaults listed in usage Add 0033-RHBZ-829963-e-series-conf.patch Add 0034-RHBZ-851416-mpathconf-display.patch * display whether or not multipathd is running in the status Add 0035-RHBZ-891921-list-mpp.patch * add a new path format wilcard to list the multipath device associated with a path Add 0036-RHBZ-949239-load-multipath-module.patch * load the dm-multipath kernel module when multipathd starts Add 0037-RHBZ-768873-fix-rename.patch * When deciding on a multipth devices name on reload, don't default to the existing name if there is no config file alias and user_friendly_names isn't set. Use the wwid. Modify multipath.conf Resolves: bz #768873, #950252
34 lines
1003 B
Diff
34 lines
1003 B
Diff
---
|
|
libmultipath/print.c | 11 +++++++++++
|
|
1 file changed, 11 insertions(+)
|
|
|
|
Index: multipath-tools-130222/libmultipath/print.c
|
|
===================================================================
|
|
--- multipath-tools-130222.orig/libmultipath/print.c
|
|
+++ multipath-tools-130222/libmultipath/print.c
|
|
@@ -422,6 +422,16 @@ snprint_path_serial (char * buff, size_t
|
|
}
|
|
|
|
static int
|
|
+snprint_path_mpp (char * buff, size_t len, struct path * pp)
|
|
+{
|
|
+ if (!pp->mpp)
|
|
+ return snprintf(buff, len, "[orphan]");
|
|
+ if (!pp->mpp->alias)
|
|
+ return snprintf(buff, len, "[unknown]");
|
|
+ return snprint_str(buff, len, pp->mpp->alias);
|
|
+}
|
|
+
|
|
+static int
|
|
snprint_path_checker (char * buff, size_t len, struct path * pp)
|
|
{
|
|
struct checker * c = &pp->checker;
|
|
@@ -464,6 +474,7 @@ struct path_data pd[] = {
|
|
{'p', "pri", 0, snprint_pri},
|
|
{'S', "size", 0, snprint_path_size},
|
|
{'z', "serial", 0, snprint_path_serial},
|
|
+ {'m', "multipath", 0, snprint_path_mpp},
|
|
{0, NULL, 0 , NULL}
|
|
};
|
|
|