From patchwork Sun Mar 8 03:31:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Marzinski X-Patchwork-Id: 5961191 X-Patchwork-Delegate: christophe.varoqui@free.fr Return-Path: X-Original-To: patchwork-dm-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 00395BF440 for ; Sun, 8 Mar 2015 04:40:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1B6F9203B0 for ; Sun, 8 Mar 2015 04:40:05 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 0FDFE20251 for ; Sun, 8 Mar 2015 04:40:04 +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 t284aKip022368; Sat, 7 Mar 2015 23:36:20 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id t284Zldu009467 for ; Sat, 7 Mar 2015 23:35:47 -0500 Received: from redhat.com (ask-08.lab.msp.redhat.com [10.15.85.8]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with SMTP id t284Zjm8029261; Sat, 7 Mar 2015 23:35:45 -0500 Received: by redhat.com (sSMTP sendmail emulation); Sat, 07 Mar 2015 21:32:12 -0600 From: "Benjamin Marzinski" To: device-mapper development Date: Sat, 7 Mar 2015 21:31:46 -0600 Message-Id: <1425785506-20419-16-git-send-email-bmarzins@redhat.com> In-Reply-To: <1425785506-20419-1-git-send-email-bmarzins@redhat.com> References: <1425785506-20419-1-git-send-email-bmarzins@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-loop: dm-devel@redhat.com Cc: Christophe Varoqui Subject: [dm-devel] [PATCH 15/15] libmultipath: autodetect ALUA CLARiiON configurations X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: device-mapper development 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-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch enables ALUA autodetection on EMC CLARiiON devices. EMC has tested the change. Signed-off-by: Benjamin Marzinski --- libmultipath/hwtable.c | 2 ++ multipath.conf.defaults | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c index bf2c2ca..d51dcb8 100644 --- a/libmultipath/hwtable.c +++ b/libmultipath/hwtable.c @@ -272,6 +272,8 @@ static struct hwentry default_hw[] = { .checker_name = EMC_CLARIION, .prio_name = PRIO_EMC, .prio_args = NULL, + .retain_hwhandler = RETAIN_HWHANDLER_ON, + .detect_prio = DETECT_PRIO_ON, }, { .vendor = "EMC", diff --git a/multipath.conf.defaults b/multipath.conf.defaults index 5f43c57..a12a4f4 100644 --- a/multipath.conf.defaults +++ b/multipath.conf.defaults @@ -263,6 +263,8 @@ # failback "immediate" # rr_weight "uniform" # no_path_retry 60 +# retain_attached_hw_handler yes +# detect_prio yes # } # device { # vendor "EMC"