Blame SOURCES/0231-RHBZ-1458852-delay-readying.patch

4ae388
---
4ae388
 libmultipath/config.c      |    4 +
4ae388
 libmultipath/config.h      |    3 +
4ae388
 libmultipath/defaults.h    |    1 
4ae388
 libmultipath/devmapper.c   |   19 ++++++--
4ae388
 libmultipath/dict.c        |  104 +++++++++++++++++++++++++++++++++++++++++++++
4ae388
 libmultipath/propsel.c     |   26 +++++++++++
4ae388
 libmultipath/propsel.h     |    1 
4ae388
 libmultipath/structs.h     |    7 +++
4ae388
 multipath/multipath.conf.5 |   13 +++++
4ae388
 multipath/multipath.rules  |    1 
4ae388
 multipathd/main.c          |   27 +++++++++++
4ae388
 11 files changed, 202 insertions(+), 4 deletions(-)
4ae388
4ae388
Index: multipath-tools-130222/libmultipath/config.c
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/libmultipath/config.c
4ae388
+++ multipath-tools-130222/libmultipath/config.c
4ae388
@@ -348,6 +348,7 @@ merge_hwe (struct hwentry * dst, struct
4ae388
 	merge_num(skip_kpartx);
4ae388
 	merge_num(max_sectors_kb);
4ae388
 	merge_num(unpriv_sgio);
4ae388
+	merge_num(ghost_delay);
4ae388
 
4ae388
 	/*
4ae388
 	 * Make sure features is consistent with
4ae388
@@ -412,6 +413,7 @@ overwrite_hwe (struct hwentry * dst, str
4ae388
 	overwrite_num(skip_kpartx);
4ae388
 	overwrite_num(max_sectors_kb);
4ae388
 	overwrite_num(unpriv_sgio);
4ae388
+	overwrite_num(ghost_delay);
4ae388
 
4ae388
 	/*
4ae388
 	 * Make sure features is consistent with
4ae388
@@ -482,6 +484,7 @@ store_hwe (vector hwtable, struct hwentr
4ae388
 	hwe->retain_hwhandler = dhwe->retain_hwhandler;
4ae388
 	hwe->detect_prio = dhwe->detect_prio;
4ae388
 	hwe->detect_checker = dhwe->detect_checker;
4ae388
+	hwe->ghost_delay = dhwe->ghost_delay;
4ae388
 
4ae388
 	if (dhwe->bl_product && !(hwe->bl_product = set_param_str(dhwe->bl_product)))
4ae388
 		goto out;
4ae388
@@ -694,6 +697,7 @@ load_config (char * file, struct udev *u
4ae388
 	conf->disable_changed_wwids = 0;
4ae388
 	conf->max_sectors_kb = DEFAULT_MAX_SECTORS_KB;
4ae388
 	conf->unpriv_sgio = DEFAULT_UNPRIV_SGIO;
4ae388
+	conf->ghost_delay = DEFAULT_GHOST_DELAY;
4ae388
 
4ae388
 	/*
4ae388
 	 * preload default hwtable
4ae388
Index: multipath-tools-130222/libmultipath/config.h
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/libmultipath/config.h
4ae388
+++ multipath-tools-130222/libmultipath/config.h
4ae388
@@ -70,6 +70,7 @@ struct hwentry {
4ae388
 	int skip_kpartx;
4ae388
 	int max_sectors_kb;
4ae388
 	int unpriv_sgio;
4ae388
+	int ghost_delay;
4ae388
 	char * bl_product;
4ae388
 };
4ae388
 
4ae388
@@ -100,6 +101,7 @@ struct mpentry {
4ae388
 	int skip_kpartx;
4ae388
 	int max_sectors_kb;
4ae388
 	int unpriv_sgio;
4ae388
+	int ghost_delay;
4ae388
 	uid_t uid;
4ae388
 	gid_t gid;
4ae388
 	mode_t mode;
4ae388
@@ -159,6 +161,7 @@ struct config {
4ae388
 	int disable_changed_wwids;
4ae388
 	int max_sectors_kb;
4ae388
 	int unpriv_sgio;
4ae388
+	int ghost_delay;
4ae388
 	unsigned int version[3];
4ae388
 
4ae388
 	char * dev;
4ae388
Index: multipath-tools-130222/libmultipath/defaults.h
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/libmultipath/defaults.h
4ae388
+++ multipath-tools-130222/libmultipath/defaults.h
4ae388
@@ -28,6 +28,7 @@
4ae388
 #define DEFAULT_SKIP_KPARTX SKIP_KPARTX_OFF
4ae388
 #define DEFAULT_MAX_SECTORS_KB	MAX_SECTORS_KB_UNDEF
4ae388
 #define DEFAULT_UNPRIV_SGIO UNPRIV_SGIO_OFF
4ae388
+#define DEFAULT_GHOST_DELAY GHOST_DELAY_OFF
4ae388
 
4ae388
 #define DEFAULT_CHECKINT	5
4ae388
 #define MAX_CHECKINT(a)		(a << 2)
4ae388
Index: multipath-tools-130222/libmultipath/devmapper.c
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/libmultipath/devmapper.c
4ae388
+++ multipath-tools-130222/libmultipath/devmapper.c
4ae388
@@ -23,6 +23,7 @@
4ae388
 #include "sysfs.h"
4ae388
 #include "discovery.h"
4ae388
 #include "log_pthread.h"
4ae388
+#include "propsel.h"
4ae388
 #include <sys/types.h>
4ae388
 #include <time.h>
4ae388
 
4ae388
@@ -334,7 +335,7 @@ static uint16_t build_udev_flags(const s
4ae388
 	/* DM_UDEV_DISABLE_LIBRARY_FALLBACK is added in dm_addmap */
4ae388
 	return  (mpp->skip_kpartx == SKIP_KPARTX_ON ?
4ae388
 		 MPATH_UDEV_NO_KPARTX_FLAG : 0) |
4ae388
-		(mpp->nr_active == 0 ?
4ae388
+		((mpp->nr_active == 0 || mpp->ghost_delay_tick > 0)?
4ae388
 		 MPATH_UDEV_NO_PATHS_FLAG : 0) |
4ae388
 		(reload && !mpp->force_udev_reload ?
4ae388
 		 MPATH_UDEV_RELOAD_FLAG : 0);
4ae388
@@ -343,8 +344,16 @@ static uint16_t build_udev_flags(const s
4ae388
 extern int
4ae388
 dm_addmap_create (struct multipath *mpp, char * params) {
4ae388
 	int ro;
4ae388
-	uint16_t udev_flags = build_udev_flags(mpp, 0);
4ae388
+	uint16_t udev_flags;
4ae388
 
4ae388
+	select_ghost_delay(mpp);
4ae388
+	if (conf->daemon && mpp->ghost_delay > 0 && mpp->nr_active &&
4ae388
+	    pathcount(mpp, PATH_GHOST) == mpp->nr_active)
4ae388
+		mpp->ghost_delay_tick = mpp->ghost_delay;
4ae388
+	else
4ae388
+		mpp->ghost_delay = 0;
4ae388
+
4ae388
+	udev_flags = build_udev_flags(mpp, 0);
4ae388
 	sysfs_set_max_sectors_kb(mpp, 0);
4ae388
 	for (ro = 0; ro <= 1; ro++) {
4ae388
 		int err;
4ae388
@@ -373,7 +382,11 @@ dm_addmap_create (struct multipath *mpp,
4ae388
 extern int
4ae388
 dm_addmap_reload (struct multipath *mpp, char *params, int flush) {
4ae388
 	int r = 0;
4ae388
-	uint16_t udev_flags = build_udev_flags(mpp, 1);
4ae388
+	uint16_t udev_flags;
4ae388
+
4ae388
+	if (mpp->ghost_delay_tick > 0 && pathcount(mpp, PATH_UP))
4ae388
+		mpp->ghost_delay_tick = mpp->ghost_delay = 0;
4ae388
+	udev_flags = build_udev_flags(mpp, 1);
4ae388
 
4ae388
 	sysfs_set_max_sectors_kb(mpp, 1);
4ae388
 	if (!mpp->force_readonly)
4ae388
Index: multipath-tools-130222/libmultipath/dict.c
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/libmultipath/dict.c
4ae388
+++ multipath-tools-130222/libmultipath/dict.c
4ae388
@@ -1032,6 +1032,25 @@ def_unpriv_sgio_handler(vector strvec)
4ae388
 	return 0;
4ae388
 }
4ae388
 
4ae388
+static int
4ae388
+def_ghost_delay_handler(vector strvec)
4ae388
+{
4ae388
+	char * buff;
4ae388
+
4ae388
+	buff = set_value(strvec);
4ae388
+	if (!buff)
4ae388
+		return 1;
4ae388
+
4ae388
+	if ((strlen(buff) == 2 && !strcmp(buff, "no")) ||
4ae388
+	    (strlen(buff) == 1 && !strcmp(buff, "0")))
4ae388
+		conf->ghost_delay = GHOST_DELAY_OFF;
4ae388
+	if ((conf->ghost_delay = atoi(buff)) < 0)
4ae388
+		conf->ghost_delay = DEFAULT_GHOST_DELAY;
4ae388
+
4ae388
+	FREE(buff);
4ae388
+	return 0;
4ae388
+}
4ae388
+
4ae388
 /*
4ae388
  * blacklist block handlers
4ae388
  */
4ae388
@@ -1895,6 +1914,29 @@ hw_unpriv_sgio_handler(vector strvec)
4ae388
 	return 0;
4ae388
 }
4ae388
 
4ae388
+static int
4ae388
+hw_ghost_delay_handler(vector strvec)
4ae388
+{
4ae388
+	struct hwentry *hwe = VECTOR_LAST_SLOT(conf->hwtable);
4ae388
+	char * buff;
4ae388
+
4ae388
+	if (!hwe)
4ae388
+		return 1;
4ae388
+
4ae388
+	buff = set_value(strvec);
4ae388
+	if (!buff)
4ae388
+		return 1;
4ae388
+
4ae388
+	if ((strlen(buff) == 2 && !strcmp(buff, "no")) ||
4ae388
+	    (strlen(buff) == 1 && !strcmp(buff, "0")))
4ae388
+		hwe->ghost_delay = GHOST_DELAY_OFF;
4ae388
+	if ((hwe->ghost_delay = atoi(buff)) < 0)
4ae388
+		hwe->ghost_delay = DEFAULT_GHOST_DELAY;
4ae388
+
4ae388
+	FREE(buff);
4ae388
+	return 0;
4ae388
+}
4ae388
+
4ae388
 /*
4ae388
  * multipaths block handlers
4ae388
  */
4ae388
@@ -2474,6 +2516,29 @@ mp_unpriv_sgio_handler(vector strvec)
4ae388
 	return 0;
4ae388
 }
4ae388
 
4ae388
+static int
4ae388
+mp_ghost_delay_handler(vector strvec)
4ae388
+{
4ae388
+	struct mpentry *mpe = VECTOR_LAST_SLOT(conf->mptable);
4ae388
+	char * buff;
4ae388
+
4ae388
+	if (!mpe)
4ae388
+		return 1;
4ae388
+
4ae388
+	buff = set_value(strvec);
4ae388
+	if (!buff)
4ae388
+		return 1;
4ae388
+
4ae388
+	if ((strlen(buff) == 2 && !strcmp(buff, "no")) ||
4ae388
+	    (strlen(buff) == 1 && !strcmp(buff, "0")))
4ae388
+		mpe->ghost_delay = GHOST_DELAY_OFF;
4ae388
+	if ((mpe->ghost_delay = atoi(buff)) < 0)
4ae388
+		mpe->ghost_delay = DEFAULT_GHOST_DELAY;
4ae388
+
4ae388
+	FREE(buff);
4ae388
+	return 0;
4ae388
+}
4ae388
+
4ae388
 /*
4ae388
  * config file keywords printing
4ae388
  */
4ae388
@@ -2788,6 +2853,19 @@ snprint_mp_unpriv_sgio (char * buff, int
4ae388
 }
4ae388
 
4ae388
 static int
4ae388
+snprint_mp_ghost_delay (char * buff, int len, void * data)
4ae388
+{
4ae388
+	struct mpentry * mpe = (struct mpentry *)data;
4ae388
+
4ae388
+	if (mpe->ghost_delay == GHOST_DELAY_UNDEF)
4ae388
+		return 0;
4ae388
+	else if (mpe->ghost_delay == GHOST_DELAY_OFF)
4ae388
+		return snprintf(buff, len, "no");
4ae388
+	else
4ae388
+		return snprintf(buff, len, "%d", mpe->ghost_delay);
4ae388
+}
4ae388
+
4ae388
+static int
4ae388
 snprint_hw_fast_io_fail(char * buff, int len, void * data)
4ae388
 {
4ae388
 	struct hwentry * hwe = (struct hwentry *)data;
4ae388
@@ -3202,6 +3280,19 @@ snprint_hw_unpriv_sgio(char * buff, int
4ae388
 }
4ae388
 
4ae388
 static int
4ae388
+snprint_hw_ghost_delay (char * buff, int len, void * data)
4ae388
+{
4ae388
+	struct hwentry * hwe = (struct hwentry *)data;
4ae388
+
4ae388
+	if (hwe->ghost_delay == GHOST_DELAY_UNDEF)
4ae388
+		return 0;
4ae388
+	else if (hwe->ghost_delay == GHOST_DELAY_OFF)
4ae388
+		return snprintf(buff, len, "no");
4ae388
+	else
4ae388
+		return snprintf(buff, len, "%d", hwe->ghost_delay);
4ae388
+}
4ae388
+
4ae388
+static int
4ae388
 snprint_def_polling_interval (char * buff, int len, void * data)
4ae388
 {
4ae388
 	return snprintf(buff, len, "%i", conf->checkint);
4ae388
@@ -3696,6 +3787,16 @@ snprint_def_unpriv_sgio(char * buff, int
4ae388
 }
4ae388
 
4ae388
 static int
4ae388
+snprint_def_ghost_delay (char * buff, int len, void * data)
4ae388
+{
4ae388
+	if (conf->ghost_delay == GHOST_DELAY_OFF ||
4ae388
+	    conf->ghost_delay == GHOST_DELAY_UNDEF)
4ae388
+		return snprintf(buff, len, "no");
4ae388
+	else
4ae388
+		return snprintf(buff, len, "%d", conf->ghost_delay);
4ae388
+}
4ae388
+
4ae388
+static int
4ae388
 snprint_ble_simple (char * buff, int len, void * data)
4ae388
 {
4ae388
 	struct blentry * ble = (struct blentry *)data;
4ae388
@@ -3792,6 +3893,7 @@ init_keywords(void)
4ae388
 	install_keyword("disable_changed_wwids", &def_disable_changed_wwids_handler, &snprint_def_disable_changed_wwids);
4ae388
 	install_keyword("max_sectors_kb", &def_max_sectors_kb_handler, &snprint_def_max_sectors_kb);
4ae388
 	install_keyword("unpriv_sgio", &def_unpriv_sgio_handler, &snprint_def_unpriv_sgio);
4ae388
+	install_keyword("ghost_delay", &def_ghost_delay_handler, &snprint_def_ghost_delay);
4ae388
 	__deprecated install_keyword("default_selector", &def_selector_handler, NULL);
4ae388
 	__deprecated install_keyword("default_path_grouping_policy", &def_pgpolicy_handler, NULL);
4ae388
 	__deprecated install_keyword("default_uid_attribute", &def_uid_attribute_handler, NULL);
4ae388
@@ -3863,6 +3965,7 @@ init_keywords(void)
4ae388
 	install_keyword("skip_kpartx", &hw_skip_kpartx_handler, &snprint_hw_skip_kpartx);
4ae388
 	install_keyword("max_sectors_kb", &hw_max_sectors_kb_handler, &snprint_hw_max_sectors_kb);
4ae388
 	install_keyword("unpriv_sgio", &hw_unpriv_sgio_handler, &snprint_hw_unpriv_sgio);
4ae388
+	install_keyword("ghost_delay", &hw_ghost_delay_handler, &snprint_hw_ghost_delay);
4ae388
 	install_sublevel_end();
4ae388
 
4ae388
 	install_keyword_root("overrides", &nop_handler);
4ae388
@@ -3923,5 +4026,6 @@ init_keywords(void)
4ae388
 	install_keyword("skip_kpartx", &mp_skip_kpartx_handler, &snprint_mp_skip_kpartx);
4ae388
 	install_keyword("max_sectors_kb", &mp_max_sectors_kb_handler, &snprint_mp_max_sectors_kb);
4ae388
 	install_keyword("unpriv_sgio", &mp_unpriv_sgio_handler, &snprint_mp_unpriv_sgio);
4ae388
+	install_keyword("ghost_delay", &mp_ghost_delay_handler, &snprint_mp_ghost_delay);
4ae388
 	install_sublevel_end();
4ae388
 }
4ae388
Index: multipath-tools-130222/libmultipath/propsel.c
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/libmultipath/propsel.c
4ae388
+++ multipath-tools-130222/libmultipath/propsel.c
4ae388
@@ -966,3 +966,29 @@ select_unpriv_sgio (struct multipath * m
4ae388
 	condlog(3, "unpriv_sgio = DISABLED (internal default)");
4ae388
 	return 0;
4ae388
 }
4ae388
+
4ae388
+extern int
4ae388
+select_ghost_delay (struct multipath * mp)
4ae388
+{
4ae388
+	if (mp->mpe && mp->mpe->ghost_delay != GHOST_DELAY_UNDEF) {
4ae388
+		mp->ghost_delay = mp->mpe->ghost_delay;
4ae388
+		condlog(3, "ghost_delay = %i (multipath setting)",
4ae388
+				mp->ghost_delay);
4ae388
+		return 0;
4ae388
+	}
4ae388
+	if (mp->hwe && mp->hwe->ghost_delay != GHOST_DELAY_UNDEF) {
4ae388
+		mp->ghost_delay = mp->hwe->ghost_delay;
4ae388
+		condlog(3, "ghost_delay = %i (controler setting)",
4ae388
+				mp->ghost_delay);
4ae388
+		return 0;
4ae388
+	}
4ae388
+	if (conf->ghost_delay != GHOST_DELAY_UNDEF) {
4ae388
+		mp->ghost_delay = conf->ghost_delay;
4ae388
+		condlog(3, "ghost_delay = %i (config file default)",
4ae388
+				mp->ghost_delay);
4ae388
+		return 0;
4ae388
+	}
4ae388
+	mp->ghost_delay = DEFAULT_GHOST_DELAY;
4ae388
+	condlog(3, "ghost_delay = DISABLED (internal default)");
4ae388
+	return 0;
4ae388
+}
4ae388
Index: multipath-tools-130222/libmultipath/propsel.h
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/libmultipath/propsel.h
4ae388
+++ multipath-tools-130222/libmultipath/propsel.h
4ae388
@@ -27,3 +27,4 @@ int select_delay_wait_checks (struct mul
4ae388
 int select_skip_kpartx (struct multipath * mp);
4ae388
 int select_max_sectors_kb (struct multipath * mp);
4ae388
 int select_unpriv_sgio (struct multipath * mp);
4ae388
+int select_ghost_delay (struct multipath * mp);
4ae388
Index: multipath-tools-130222/libmultipath/structs.h
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/libmultipath/structs.h
4ae388
+++ multipath-tools-130222/libmultipath/structs.h
4ae388
@@ -176,6 +176,11 @@ enum prkey_sources {
4ae388
 	PRKEY_SOURCE_FILE,
4ae388
 };
4ae388
 
4ae388
+enum ghost_delay_states {
4ae388
+	GHOST_DELAY_OFF = -1,
4ae388
+	GHOST_DELAY_UNDEF = 0,
4ae388
+};
4ae388
+
4ae388
 struct sg_id {
4ae388
 	int host_no;
4ae388
 	int channel;
4ae388
@@ -273,6 +278,8 @@ struct multipath {
4ae388
 	int max_sectors_kb;
4ae388
 	int force_readonly;
4ae388
 	int unpriv_sgio;
4ae388
+	int ghost_delay;
4ae388
+	int ghost_delay_tick;
4ae388
 	unsigned int dev_loss;
4ae388
 	uid_t uid;
4ae388
 	gid_t gid;
4ae388
Index: multipath-tools-130222/multipathd/main.c
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/multipathd/main.c
4ae388
+++ multipath-tools-130222/multipathd/main.c
4ae388
@@ -195,6 +195,8 @@ sync_map_state(struct multipath *mpp)
4ae388
 			    pp->state == PATH_WILD ||
4ae388
 			    pp->state == PATH_DELAYED)
4ae388
 				continue;
4ae388
+			if (mpp->ghost_delay_tick > 0)
4ae388
+				continue;
4ae388
 			if ((pp->dmstate == PSTATE_FAILED ||
4ae388
 			     pp->dmstate == PSTATE_UNDEF) &&
4ae388
 			    (pp->state == PATH_UP || pp->state == PATH_GHOST))
4ae388
@@ -535,7 +537,7 @@ ev_add_path (struct path * pp, struct ve
4ae388
 	if (mpp && mpp->wait_for_udev) {
4ae388
 		if (pathcount(mpp, PATH_UP) == 0 &&
4ae388
 		    (pathcount(mpp, PATH_GHOST) == 0 ||
4ae388
-		     pp->tpgs == TPGS_IMPLICIT))
4ae388
+		     mpp->ghost_delay_tick > 0 || pp->tpgs == TPGS_IMPLICIT))
4ae388
 			mpp->force_udev_reload = 1;
4ae388
 		else {
4ae388
 			condlog(2, "%s [%s]: delaying path addition until %s is fully initialized", pp->dev, pp->dev_t, mpp->alias);
4ae388
@@ -1215,6 +1217,28 @@ missing_uev_wait_tick(struct vectors *ve
4ae388
 }
4ae388
 
4ae388
 static void
4ae388
+ghost_delay_tick(struct vectors *vecs)
4ae388
+{
4ae388
+	struct multipath * mpp;
4ae388
+	unsigned int i;
4ae388
+
4ae388
+	vector_foreach_slot (vecs->mpvec, mpp, i) {
4ae388
+		if (mpp->ghost_delay_tick <= 0)
4ae388
+			continue;
4ae388
+		if (--mpp->ghost_delay_tick <= 0) {
4ae388
+			condlog(0, "%s: timed out waiting for active path",
4ae388
+				mpp->alias);
4ae388
+			if (update_map(mpp, vecs) != 0) {
4ae388
+				/* update_map removed map */
4ae388
+				i--;
4ae388
+				continue;
4ae388
+			}
4ae388
+			mpp->ghost_delay = mpp->ghost_delay_tick = 0;
4ae388
+		}
4ae388
+	}
4ae388
+}
4ae388
+
4ae388
+static void
4ae388
 defered_failback_tick (vector mpvec)
4ae388
 {
4ae388
 	struct multipath * mpp;
4ae388
@@ -1560,6 +1584,7 @@ checkerloop (void *ap)
4ae388
 			defered_failback_tick(vecs->mpvec);
4ae388
 			retry_count_tick(vecs->mpvec);
4ae388
 			missing_uev_wait_tick(vecs);
4ae388
+			ghost_delay_tick(vecs);
4ae388
 		}
4ae388
 		if (count)
4ae388
 			count--;
4ae388
Index: multipath-tools-130222/multipath/multipath.rules
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/multipath/multipath.rules
4ae388
+++ multipath-tools-130222/multipath/multipath.rules
4ae388
@@ -55,6 +55,7 @@ ENV{DM_SUBSYSTEM_UDEV_FLAG1}=="1", GOTO=
4ae388
 ENV{DM_ACTIVATION}=="1", ENV{DM_MULTIPATH_NEED_KPARTX}="1"
4ae388
 ENV{DM_SUSPENDED}=="1", GOTO="end_mpath"
4ae388
 ENV{DM_ACTION}=="PATH_FAILED", GOTO="end_mpath"
4ae388
+ENV{DM_NOSCAN}=="1", GOTO="end_mpath"
4ae388
 ENV{DM_ACTIVATION}!="1", ENV{DM_MULTIPATH_NEED_KPARTX}!="1", GOTO="end_mpath"
4ae388
 RUN+="$env{MPATH_SBIN_PATH}/kpartx -an $tempnode", \
4ae388
 	ENV{DM_MULTIPATH_NEED_KPARTX}=""
4ae388
Index: multipath-tools-130222/multipath/multipath.conf.5
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/multipath/multipath.conf.5
4ae388
+++ multipath-tools-130222/multipath/multipath.conf.5
4ae388
@@ -601,6 +601,15 @@ device to the specified value. Default i
4ae388
 If set to \fIyes\fR, multipath will set upriv_sgio on the multipath device and
4ae388
 all its paths, when it is created or reloaded. The default is
4ae388
 .I no
4ae388
+.TP
4ae388
+.B ghost_delay
4ae388
+Sets the number of seconds that multipath will wait after creating a device
4ae388
+with only ghost paths before marking it ready for use in systemd. This gives
4ae388
+the active paths time to appear before the multipath runs the hardware handler
4ae388
+to switch the ghost paths to active ones. Setting this to \fI0\fR or \fIoff\fR
4ae388
+makes multipath immediately mark a device with only ghost paths as ready. The
4ae388
+default is
4ae388
+.I off
4ae388
 .
4ae388
 .SH "blacklist section"
4ae388
 The
4ae388
@@ -716,6 +725,8 @@ section:
4ae388
 .B max_sectors_kb
4ae388
 .TP
4ae388
 .B unpriv_sgio
4ae388
+.TP
4ae388
+.B ghost_delay
4ae388
 .RE
4ae388
 .PD
4ae388
 .LP
4ae388
@@ -820,6 +831,8 @@ section:
4ae388
 .B max_sectors_kb
4ae388
 .TP
4ae388
 .B unpriv_sgio
4ae388
+.TP
4ae388
+.B ghost_delay
4ae388
 .RE
4ae388
 .PD
4ae388
 .LP