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