Blame SOURCES/0015-multipathd-ignore-disable_changed_wwids.patch

b7ef27
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
b7ef27
From: Martin Wilck <mwilck@suse.com>
b7ef27
Date: Mon, 18 Mar 2019 13:12:35 +0100
b7ef27
Subject: [PATCH] multipathd: ignore "disable_changed_wwids"
b7ef27
b7ef27
This option has no effect any more.
b7ef27
b7ef27
Signed-off-by: Martin Wilck <mwilck@suse.com>
b7ef27
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
b7ef27
---
b7ef27
 libmultipath/config.c      |  1 -
b7ef27
 libmultipath/config.h      |  1 -
b7ef27
 libmultipath/dict.c        | 18 +++++++++++++++---
b7ef27
 multipath/multipath.conf.5 |  8 ++------
b7ef27
 4 files changed, 17 insertions(+), 11 deletions(-)
b7ef27
b7ef27
diff --git a/libmultipath/config.c b/libmultipath/config.c
b7ef27
index 24d71ae..141f092 100644
b7ef27
--- a/libmultipath/config.c
b7ef27
+++ b/libmultipath/config.c
b7ef27
@@ -715,7 +715,6 @@ load_config (char * file)
b7ef27
 	conf->retrigger_tries = DEFAULT_RETRIGGER_TRIES;
b7ef27
 	conf->retrigger_delay = DEFAULT_RETRIGGER_DELAY;
b7ef27
 	conf->uev_wait_timeout = DEFAULT_UEV_WAIT_TIMEOUT;
b7ef27
-	conf->disable_changed_wwids = DEFAULT_DISABLE_CHANGED_WWIDS;
b7ef27
 	conf->remove_retries = 0;
b7ef27
 	conf->ghost_delay = DEFAULT_GHOST_DELAY;
b7ef27
 	conf->all_tg_pt = DEFAULT_ALL_TG_PT;
b7ef27
diff --git a/libmultipath/config.h b/libmultipath/config.h
b7ef27
index b938c26..f5bf5b1 100644
b7ef27
--- a/libmultipath/config.h
b7ef27
+++ b/libmultipath/config.h
b7ef27
@@ -182,7 +182,6 @@ struct config {
b7ef27
 	int delayed_reconfig;
b7ef27
 	int uev_wait_timeout;
b7ef27
 	int skip_kpartx;
b7ef27
-	int disable_changed_wwids;
b7ef27
 	int remove_retries;
b7ef27
 	int max_sectors_kb;
b7ef27
 	int ghost_delay;
b7ef27
diff --git a/libmultipath/dict.c b/libmultipath/dict.c
b7ef27
index eaad4f1..96815f8 100644
b7ef27
--- a/libmultipath/dict.c
b7ef27
+++ b/libmultipath/dict.c
b7ef27
@@ -156,6 +156,12 @@ out:
b7ef27
 	return len;
b7ef27
 }
b7ef27
 
b7ef27
+static int
b7ef27
+print_ignored (char *buff, int len)
b7ef27
+{
b7ef27
+	return snprintf(buff, len, "ignored");
b7ef27
+}
b7ef27
+
b7ef27
 static int
b7ef27
 print_yes_no (char *buff, int len, long v)
b7ef27
 {
b7ef27
@@ -548,9 +554,15 @@ declare_hw_handler(skip_kpartx, set_yes_no_undef)
b7ef27
 declare_hw_snprint(skip_kpartx, print_yes_no_undef)
b7ef27
 declare_mp_handler(skip_kpartx, set_yes_no_undef)
b7ef27
 declare_mp_snprint(skip_kpartx, print_yes_no_undef)
b7ef27
-
b7ef27
-declare_def_handler(disable_changed_wwids, set_yes_no)
b7ef27
-declare_def_snprint(disable_changed_wwids, print_yes_no)
b7ef27
+static int def_disable_changed_wwids_handler(struct config *conf, vector strvec)
b7ef27
+{
b7ef27
+	return 0;
b7ef27
+}
b7ef27
+static int snprint_def_disable_changed_wwids(struct config *conf, char *buff,
b7ef27
+					     int len, const void *data)
b7ef27
+{
b7ef27
+	return print_ignored(buff, len);
b7ef27
+}
b7ef27
 
b7ef27
 declare_def_handler(remove_retries, set_int)
b7ef27
 declare_def_snprint(remove_retries, print_int)
b7ef27
diff --git a/multipath/multipath.conf.5 b/multipath/multipath.conf.5
b7ef27
index 864d7eb..646c156 100644
b7ef27
--- a/multipath/multipath.conf.5
b7ef27
+++ b/multipath/multipath.conf.5
b7ef27
@@ -1148,12 +1148,8 @@ The default is: \fBno\fR
b7ef27
 .
b7ef27
 .TP
b7ef27
 .B disable_changed_wwids
b7ef27
-If set to \fIyes\fR, multipathd will check the path wwid on change events, and
b7ef27
-if it has changed from the wwid of the multipath device, multipathd will
b7ef27
-disable access to the path until the wwid changes back.
b7ef27
-.RS
b7ef27
-.TP
b7ef27
-The default is: \fBno\fR
b7ef27
+This option is deprecated and ignored. If the WWID of a path suddenly changes,
b7ef27
+multipathd handles it as if it was removed and then added again.
b7ef27
 .RE
b7ef27
 .
b7ef27
 .
b7ef27
-- 
b7ef27
2.17.2
b7ef27