* [PATCH] multipath-tools: add template to add new hardware
@ 2016-07-12 14:41 Xose Vazquez Perez
2016-07-22 9:50 ` Christophe Varoqui
2016-08-02 20:34 ` Xose Vazquez Perez
0 siblings, 2 replies; 3+ messages in thread
From: Xose Vazquez Perez @ 2016-07-12 14:41 UTC (permalink / raw)
Cc: device-mapper development, Xose Vazquez Perez
Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>
Cc: device-mapper development <dm-devel@redhat.com>
Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
---
libmultipath/hwtable.c | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
index 5b896ee..a1fc3e8 100644
--- a/libmultipath/hwtable.c
+++ b/libmultipath/hwtable.c
@@ -16,6 +16,8 @@
* family. Please mail the currently enlisted maintainer and
* the upstream package maintainer.
*
+ * Please, use the TEMPLATE below to add new hardware.
+ *
* WARNING:
*
* Devices with a proprietary handler must also be included in
@@ -756,6 +758,46 @@ static struct hwentry default_hw[] = {
.pgfailback = 30,
.minio = 128,
},
+#if 0
+ /*
+ * Copy this TEMPLATE to add new hardware.
+ *
+ * Keep only mandatory and modified attributes.
+ * Standard attributes must be removed.
+ *
+ * COMPANY_NAME
+ *
+ * Maintainer : XXX
+ * Mail : XXX
+ */
+ {
+ .vendor = "VENDOR", (Mandatory)
+ .product = "PRODUCT", (Mandatory)
+ .revision = "REVISION",
+ .bl_product = "BL_PRODUCT",
+ .pgpolicy = GROUP_BY_PRIO,
+ .uid_attribute = "ID_SERIAL",
+ .selector = "service-time 0",
+ .checker_name = TUR,
+ .features = "0",
+ .hwhandler = "0",
+ .prio_name = "const",
+ .prio_args = "",
+ .pgfailback = -FAILBACK_IMMEDIATE,
+ .rr_weight = RR_WEIGHT_NONE,
+ .no_path_retry = NO_PATH_RETRY_UNDEF,
+ .minio = 1000,
+ .minio_rq = 1,
+ .flush_on_last_del = FLUSH_DISABLED,
+ .fast_io_fail = 5,
+ .dev_loss = 600,
+ .retain_hwhandler = RETAIN_HWHANDLER_ON,
+ .detect_prio = DETECT_PRIO_ON,
+ .deferred_remove = DEFERRED_REMOVE_OFF,
+ .delay_watch_checks = DELAY_CHECKS_OFF,
+ .delay_wait_checks = DELAY_CHECKS_OFF,
+ },
+#endif
/*
* EOL
*/
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] multipath-tools: add template to add new hardware
2016-07-12 14:41 [PATCH] multipath-tools: add template to add new hardware Xose Vazquez Perez
@ 2016-07-22 9:50 ` Christophe Varoqui
2016-08-02 20:34 ` Xose Vazquez Perez
1 sibling, 0 replies; 3+ messages in thread
From: Christophe Varoqui @ 2016-07-22 9:50 UTC (permalink / raw)
To: Xose Vazquez Perez; +Cc: device-mapper development
[-- Attachment #1.1: Type: text/plain, Size: 2619 bytes --]
Merged.
Thanks.
On Tue, Jul 12, 2016 at 4:41 PM, Xose Vazquez Perez <xose.vazquez@gmail.com>
wrote:
> Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>
> Cc: device-mapper development <dm-devel@redhat.com>
> Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
> ---
> libmultipath/hwtable.c | 42 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 42 insertions(+)
>
> diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
> index 5b896ee..a1fc3e8 100644
> --- a/libmultipath/hwtable.c
> +++ b/libmultipath/hwtable.c
> @@ -16,6 +16,8 @@
> * family. Please mail the currently enlisted maintainer and
> * the upstream package maintainer.
> *
> + * Please, use the TEMPLATE below to add new hardware.
> + *
> * WARNING:
> *
> * Devices with a proprietary handler must also be included in
> @@ -756,6 +758,46 @@ static struct hwentry default_hw[] = {
> .pgfailback = 30,
> .minio = 128,
> },
> +#if 0
> + /*
> + * Copy this TEMPLATE to add new hardware.
> + *
> + * Keep only mandatory and modified attributes.
> + * Standard attributes must be removed.
> + *
> + * COMPANY_NAME
> + *
> + * Maintainer : XXX
> + * Mail : XXX
> + */
> + {
> + .vendor = "VENDOR", (Mandatory)
> + .product = "PRODUCT", (Mandatory)
> + .revision = "REVISION",
> + .bl_product = "BL_PRODUCT",
> + .pgpolicy = GROUP_BY_PRIO,
> + .uid_attribute = "ID_SERIAL",
> + .selector = "service-time 0",
> + .checker_name = TUR,
> + .features = "0",
> + .hwhandler = "0",
> + .prio_name = "const",
> + .prio_args = "",
> + .pgfailback = -FAILBACK_IMMEDIATE,
> + .rr_weight = RR_WEIGHT_NONE,
> + .no_path_retry = NO_PATH_RETRY_UNDEF,
> + .minio = 1000,
> + .minio_rq = 1,
> + .flush_on_last_del = FLUSH_DISABLED,
> + .fast_io_fail = 5,
> + .dev_loss = 600,
> + .retain_hwhandler = RETAIN_HWHANDLER_ON,
> + .detect_prio = DETECT_PRIO_ON,
> + .deferred_remove = DEFERRED_REMOVE_OFF,
> + .delay_watch_checks = DELAY_CHECKS_OFF,
> + .delay_wait_checks = DELAY_CHECKS_OFF,
> + },
> +#endif
> /*
> * EOL
> */
> --
> 2.7.4
>
>
[-- Attachment #1.2: Type: text/html, Size: 3800 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] multipath-tools: add template to add new hardware
2016-07-12 14:41 [PATCH] multipath-tools: add template to add new hardware Xose Vazquez Perez
2016-07-22 9:50 ` Christophe Varoqui
@ 2016-08-02 20:34 ` Xose Vazquez Perez
1 sibling, 0 replies; 3+ messages in thread
From: Xose Vazquez Perez @ 2016-08-02 20:34 UTC (permalink / raw)
To: Christophe Varoqui, Hannes Reinecke, Benjamin Marzinski
Cc: device-mapper development
On 07/12/2016 04:41 PM, Xose Vazquez Perez wrote:
> + /*
> + * Copy this TEMPLATE to add new hardware.
> + *
> + * Keep only mandatory and modified attributes.
> + * Standard attributes must be removed.
> + *
> + * COMPANY_NAME
> + *
> + * Maintainer : XXX
> + * Mail : XXX
> + */
> + {
> + .vendor = "VENDOR", (Mandatory)
> + .product = "PRODUCT", (Mandatory)
> + .revision = "REVISION",
> + .bl_product = "BL_PRODUCT",
> + .pgpolicy = GROUP_BY_PRIO,
> + .uid_attribute = "ID_SERIAL",
> + .selector = "service-time 0",
> + .checker_name = TUR,
> + .features = "0",
> + .hwhandler = "0",
> + .prio_name = "const",
> + .prio_args = "",
> + .pgfailback = -FAILBACK_IMMEDIATE,
> + .rr_weight = RR_WEIGHT_NONE,
> + .no_path_retry = NO_PATH_RETRY_UNDEF,
> + .minio = 1000,
> + .minio_rq = 1,
> + .flush_on_last_del = FLUSH_DISABLED,
> + .fast_io_fail = 5,
> + .dev_loss = 600,
> + .retain_hwhandler = RETAIN_HWHANDLER_ON,
> + .detect_prio = DETECT_PRIO_ON,
> + .deferred_remove = DEFERRED_REMOVE_OFF,
> + .delay_watch_checks = DELAY_CHECKS_OFF,
> + .delay_wait_checks = DELAY_CHECKS_OFF,
Note that ".getuid" ".alias_prefix" and ".user_friendly_names" were hidden
consciously from the TEMPLATE.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-02 20:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-12 14:41 [PATCH] multipath-tools: add template to add new hardware Xose Vazquez Perez
2016-07-22 9:50 ` Christophe Varoqui
2016-08-02 20:34 ` Xose Vazquez Perez
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.