Skip to contentSkip to conversation

multipath: Make sure we store all the hwentry attributes.

PATCH Applied Benjamin Marzinski 2 participants 2 messages May 23, 2012 Device mapper

lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

PATCH 1/1 multipath: Make sure we store all the hwentry attributes.

Not all of the attributes from the hardware table entries were getting stored when the built-in devices configurations were being setup.

---
 libmultipath/config.c |    4 ++++
 1 file changed, 4 insertions(+)
libmultipath/config.c +4 -0
Index: multipath-tools-120518/libmultipath/config.c
===================================================================
@@ -379,6 +379,10 @@ store_hwe (vector hwtable, struct hwentr
 	hwe->no_path_retry = dhwe->no_path_retry;
 	hwe->minio = dhwe->minio;
 	hwe->minio_rq = dhwe->minio_rq;
+	hwe->pg_timeout = dhwe->pg_timeout;
+	hwe->flush_on_last_del = dhwe->flush_on_last_del;
+	hwe->fast_io_fail = dhwe->fast_io_fail;
+	hwe->dev_loss = dhwe->dev_loss;
 
 	if (dhwe->bl_product && !(hwe->bl_product = set_param_str(dhwe->bl_product)))
 		goto out;
#1 lore raw
Quoted 3 lines · Benjamin Marzinski

Not all of the attributes from the hardware table entries were getting stored when the built-in devices configurations were being setup.

Applied.

Quoted 20 lines
---
 libmultipath/config.c |    4 ++++
 1 file changed, 4 insertions(+)

Index: multipath-tools-120518/libmultipath/config.c
===================================================================

libmultipath/config.c +4 -0
@@ -379,6 +379,10 @@ store_hwe (vector hwtable, struct hwentr
 	hwe->no_path_retry = dhwe->no_path_retry;
 	hwe->minio = dhwe->minio;
 	hwe->minio_rq = dhwe->minio_rq;
+	hwe->pg_timeout = dhwe->pg_timeout;
+	hwe->flush_on_last_del = dhwe->flush_on_last_del;
+	hwe->fast_io_fail = dhwe->fast_io_fail;
+	hwe->dev_loss = dhwe->dev_loss;
 
 	if (dhwe->bl_product && !(hwe->bl_product = set_param_str(dhwe->bl_product)))
 		goto out;