[dm-devel] [PATCH 03/26] config: set 'deferred_remove' defaults at correct call
Hannes Reinecke
hare at suse.de
Mon Jun 20 08:08:50 UTC 2016
We should be setting the defaults for 'deferred_remove' when
loading the configuration file, not when creating the hardware
entries.
Signed-off-by: Hannes Reinecke <hare at suse.com>
---
libmultipath/config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libmultipath/config.c b/libmultipath/config.c
index 00f3e53..6f3c4e8 100644
--- a/libmultipath/config.c
+++ b/libmultipath/config.c
@@ -419,7 +419,6 @@ store_hwe (vector hwtable, struct hwentry * dhwe)
hwe->user_friendly_names = dhwe->user_friendly_names;
hwe->retain_hwhandler = dhwe->retain_hwhandler;
hwe->detect_prio = dhwe->detect_prio;
- conf->deferred_remove = DEFAULT_DEFERRED_REMOVE;
if (dhwe->bl_product && !(hwe->bl_product = set_param_str(dhwe->bl_product)))
goto out;
@@ -622,6 +621,7 @@ load_config (char * file, struct udev *udev)
conf->retrigger_tries = DEFAULT_RETRIGGER_TRIES;
conf->retrigger_delay = DEFAULT_RETRIGGER_DELAY;
conf->uev_wait_timeout = DEFAULT_UEV_WAIT_TIMEOUT;
+ conf->deferred_remove = DEFAULT_DEFERRED_REMOVE;
/*
* preload default hwtable
--
2.6.6
More information about the dm-devel
mailing list