From patchwork Tue Aug 16 12:38:49 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: 9283771 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 3AE5C60839 for ; Tue, 16 Aug 2016 12:42:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D4E228A1A for ; Tue, 16 Aug 2016 12:42:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2136628BAB; Tue, 16 Aug 2016 12:42:55 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UPPERCASE_50_75 autolearn=unavailable version=3.3.1 Received: from mx3-phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 879D628A1A for ; Tue, 16 Aug 2016 12:42:54 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx3-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u7GCdL9o031924; Tue, 16 Aug 2016 08:39:22 -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 u7GCdKJX022251 for ; Tue, 16 Aug 2016 08:39:20 -0400 Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.39]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u7GCdKJa012744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 16 Aug 2016 08:39:20 -0400 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) (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 7952861E5B for ; Tue, 16 Aug 2016 12:39:19 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id i138so16144974wmf.3 for ; Tue, 16 Aug 2016 05:39:19 -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=2AfgMl0GoGjKQ7mX66J/dS88E1ZPakXTyrI568hK/AM=; b=jNc4H17Q+fpEIeA2xc70SThopw516946mi+YNxLnj0+h5dEVwUBDNrqwq8CcuyfFai 5Bqdsnakt+e0DaiQDhjrDb/PUNV8m9/+H7kaxfxueHqh31err833REFkmgt7D03fDabp kuwXuS6ZMI/smX8sKNu7CF+6BdZ9bUodrU0QXd0SWNVG6ikjNdM4ziaGJbm+wdoMrvXG MBlEZbmPjk6ah8WojH4TKOPD0FZ46lJ1W2AehTBEJU9NDsv1teTThznABoHNBae97fxx 6bBGG8cchYKh5XBX6voNltJEgAdptUPDrG3Qb8N0sspE3GIbQxILTIA2XDuLdFikjh3f yLZw== 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=2AfgMl0GoGjKQ7mX66J/dS88E1ZPakXTyrI568hK/AM=; b=kcqXDUdWMB0AK50wAOm1KsN8jt5ZQzPlPshtYsQ5oumEugRsHwPZzFC12HwJ56QQRP t54Ggbw67uTVD3ZyRk6sLvP38MEOmE7YnP9Un5IOWTVMsaHhP3kxM3JtFOBlIx6EnAAk dVODhSzPnkZwjpoXC0UglbsWE1AR7nPIWL+gPC/uZTquS+bhgeiNMK2Jb+kWLCq06PKB 8yDFtQ4QBIi7z20kcPmYqJGl7bVFExZP2FeZoSy0aNx2zeRHHVgR7BbQsntD/iZqFrHu uzRYWelVnpgbvJzb/jiEQArmo6ULv60DF+ILLu/j98X9iWGK+0VsYOwo+onGEJmIlZ64 3e1w== X-Gm-Message-State: AEkooutYsRjKtvsuVW0ENr2GNYGh1dROcbGibUjHMbiJ8MpF8ABGe5R1fD+oub36o2bpbQ== X-Received: by 10.194.82.99 with SMTP id h3mr4799666wjy.9.1471351158150; Tue, 16 Aug 2016 05:39:18 -0700 (PDT) Received: from localhost ([31.221.161.126]) by smtp.gmail.com with ESMTPSA id jd4sm26561870wjb.6.2016.08.16.05.39.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Aug 2016 05:39:17 -0700 (PDT) From: Xose Vazquez Perez To: Date: Tue, 16 Aug 2016 14:38:49 +0200 Message-Id: <1471351133-7892-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.39]); Tue, 16 Aug 2016 12:39:19 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 16 Aug 2016 12:39:19 +0000 (UTC) for IP:'74.125.82.65' DOMAIN:'mail-wm0-f65.google.com' HELO:'mail-wm0-f65.google.com' FROM:'xose.vazquez@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.012 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS, UPPERCASE_50_75) 74.125.82.65 mail-wm0-f65.google.com 74.125.82.65 mail-wm0-f65.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.39 X-loop: dm-devel@redhat.com Cc: Xose Vazquez Perez , "Martin K . Petersen" , SCSI ML , "James E . J . Bottomley" , device-mapper development Subject: [dm-devel] [PATCH 1/5] multipath-tools: document how to add devices that need special flags in the SCSI subsystem 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 Full flags list at include/scsi/scsi_devinfo.h Arrays controllers included currently: {"3PARdata", "VV", NULL, BLIST_REPORTLUN2}, {"DEC", "HSG80", NULL, BLIST_REPORTLUN2 | BLIST_NOSTARTONADD}, {"HP", "A6189A", NULL, BLIST_SPARSELUN | BLIST_LARGELUN}, {"COMPAQ", "MSA1000", NULL, BLIST_SPARSELUN | BLIST_NOSTARTONADD}, {"COMPAQ", "MSA1000 VOLUME", NULL, BLIST_SPARSELUN | BLIST_NOSTARTONADD}, {"COMPAQ", "HSV110", NULL, BLIST_REPORTLUN2 | BLIST_NOSTARTONADD}, {"HP", "HSV100", NULL, BLIST_REPORTLUN2 | BLIST_NOSTARTONADD}, {"COMPAQ", "LOGICAL VOLUME", NULL, BLIST_FORCELUN | BLIST_MAX_512}, {"DDN", "SAN DataDirector", "*", BLIST_SPARSELUN}, {"DGC", "RAID", NULL, BLIST_SPARSELUN}, {"DGC", "DISK", NULL, BLIST_SPARSELUN}, <-- mising VDISK ?? {"EMC", "SYMMETRIX", NULL, BLIST_SPARSELUN | BLIST_LARGELUN | BLIST_FORCELUN}, {"EMC", "Invista", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, {"FSC", "CentricStor", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, {"HITACHI", "OPEN-", "*", BLIST_REPORTLUN2}, {"HP", "OPEN-", "*", BLIST_REPORTLUN2}, {"HITACHI", "DF400", "*", BLIST_REPORTLUN2}, {"HITACHI", "DF500", "*", BLIST_REPORTLUN2}, {"HP", "DF400", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, {"HP", "DF500", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, {"HP", "DF600", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, <-- bug, also apply: 627511e3e {"IBM", "ProFibre 4000R", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, {"NETAPP", "LUN C-Mode", NULL, BLIST_SYNC_ALUA}, <-- ontap {"NETAPP", "INF-01-00", NULL, BLIST_SYNC_ALUA}, <-- rdac!! {"SGI", "TP9100", "*", BLIST_REPORTLUN2}, {"Intel", "Multi-Flex", NULL, BLIST_NO_RSOC}, {"SGI", "Universal Xport", "*", BLIST_NO_ULD_ATTACH}, {"IBM", "Universal Xport", "*", BLIST_NO_ULD_ATTACH}, {"SUN", "Universal Xport", "*", BLIST_NO_ULD_ATTACH}, {"DELL", "Universal Xport", "*", BLIST_NO_ULD_ATTACH}, Cc: Christophe Varoqui Cc: James E.J. Bottomley Cc: Martin K. Petersen Cc: SCSI ML Cc: device-mapper development Signed-off-by: Xose Vazquez Perez --- libmultipath/hwtable.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c index 1bc6f2c..4e1740a 100644 --- a/libmultipath/hwtable.c +++ b/libmultipath/hwtable.c @@ -22,6 +22,9 @@ * * Devices with a proprietary handler must also be included in * the kernel side. Currently at drivers/scsi/scsi_dh.c + * + * Moreover, if a device needs a special treatment by the SCSI + * subsystem it should be included in drivers/scsi/scsi_devinfo.c */ static struct hwentry default_hw[] = { /*