From patchwork Tue Jul 12 14:41:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xose Vazquez Perez X-Patchwork-Id: 9225521 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 31CA96086B for ; Tue, 12 Jul 2016 14:45:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22A1D27D29 for ; Tue, 12 Jul 2016 14:45:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1676C27DCD; Tue, 12 Jul 2016 14:45:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx5-phx2.redhat.com (mx5-phx2.redhat.com [209.132.183.37]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A557527E78 for ; Tue, 12 Jul 2016 14:45:42 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx5-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6CEftc5034394; Tue, 12 Jul 2016 10:41:56 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u6CEfsgu019733 for ; Tue, 12 Jul 2016 10:41:54 -0400 Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.25]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6CEfs9r001684 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 12 Jul 2016 10:41:54 -0400 Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 199328E3C6 for ; Tue, 12 Jul 2016 14:41:53 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id w75so2272902wmd.1 for ; Tue, 12 Jul 2016 07:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=jX8EGQb1Zo6R3Yyj0aIKz8EobIs1J8+RUUpFhsjPIBI=; b=pqFPMoRiCZRX/Vj1z5RmddDuIqRt1N+gy09SS3TCycq8h18owLw1rSygyoGzgGzfTF f2dJBc/h1tCnVruR/1UAOyJCNaC14RAmsRMVf0AL6h9eWISkkASWMGKdrmJJL/uuOkO4 +N/tGnhIbfOUZb838ro6NrGwJfwjYQTotSaAeM7l84jGqlPc22ROiAW7tjofleHtg8M5 lH5sXGasN4xbpoiFuppc4KYYvVGl5iUH56yHGKIRk/ebaymIdQP2esPkoKqpsugjPsax 0U1EUqvxs5ZJxZWFcBkKu+LiK+0mLCxISWOcPBc1DrkydTSfdwAitIwV8oXmXRMAgsd7 WOrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jX8EGQb1Zo6R3Yyj0aIKz8EobIs1J8+RUUpFhsjPIBI=; b=Ib/nmGQQplcfg0lYujzkk69z2+C9y+ixW73ZcPkbQ3/9bsEyz53q9OmlzT3oxtPTIb GLcFflKGlR3vDWl8O/KTcrPYmDf/YNh1yQ0+l+yhDSTjEVrTShcDAqH81cAjMCweTjNX 8NZox7XDbsyIzUu1oOM5FlN7fTdzyue96dWdBJn0m3QKo7liryHW78bYoL7Z81RImbSh Rp2PQeUTnCs88q9MxlSFaniIqMxRh44O6Yd1R3XUcesrBu1PeecpFXQ+7PSF4+6EEgxE bYdZF5BZNgkkeCdWapCbQrRfHkfANJvI10o1pDdo+cihsCtqKMVMAhUtlujiGg3PqO0B Y/Iw== X-Gm-Message-State: ALyK8tLIshFl9CK7z4ZpMEG0edC6WaY1P+N9sfJnhH9mJPLoIiCV0JT48eXeH6GUVS7pKQ== X-Received: by 10.28.199.4 with SMTP id x4mr10371345wmf.70.1468334511671; Tue, 12 Jul 2016 07:41:51 -0700 (PDT) Received: from localhost ([37.29.242.128]) by smtp.gmail.com with ESMTPSA id a2sm22870663wma.2.2016.07.12.07.41.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jul 2016 07:41:50 -0700 (PDT) From: Xose Vazquez Perez To: Date: Tue, 12 Jul 2016 16:41:47 +0200 Message-Id: <1468334507-7531-1-git-send-email-xose.vazquez@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 12 Jul 2016 14:41:53 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 12 Jul 2016 14:41:53 +0000 (UTC) for IP:'74.125.82.67' DOMAIN:'mail-wm0-f67.google.com' HELO:'mail-wm0-f67.google.com' FROM:'xose.vazquez@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.12 (BAYES_50, DCC_REPUT_13_19, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 74.125.82.67 mail-wm0-f67.google.com 74.125.82.67 mail-wm0-f67.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Scanned-By: MIMEDefang 2.75 on 10.5.110.25 X-loop: dm-devel@redhat.com Cc: device-mapper development , Xose Vazquez Perez Subject: [dm-devel] [PATCH] multipath-tools: add template to add new hardware X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP Cc: Christophe Varoqui Cc: device-mapper development Signed-off-by: Xose Vazquez Perez --- 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 */