From patchwork Tue Jul 5 08:12:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Christie X-Patchwork-Id: 9213783 X-Patchwork-Delegate: christophe.varoqui@free.fr 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 333336048B for ; Tue, 5 Jul 2016 08:17:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2537928903 for ; Tue, 5 Jul 2016 08:17:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A2162894B; Tue, 5 Jul 2016 08:17:10 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham 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 B84EF28903 for ; Tue, 5 Jul 2016 08:17:09 +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 u658DR9j010559; Tue, 5 Jul 2016 04:13:27 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u658Cixq023478 for ; Tue, 5 Jul 2016 04:12:44 -0400 Received: from localhost.localdomain (unused [10.10.51.89] (may be forged)) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u658CdBx024633; Tue, 5 Jul 2016 04:12:43 -0400 From: Mike Christie To: dm-devel@redhat.com, christophe.varoqui@opensvc.com Date: Tue, 5 Jul 2016 03:12:33 -0500 Message-Id: <1467706353-16878-5-git-send-email-mchristi@redhat.com> In-Reply-To: <1467706353-16878-1-git-send-email-mchristi@redhat.com> References: <1467706353-16878-1-git-send-email-mchristi@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-loop: dm-devel@redhat.com Cc: Mike Christie Subject: [dm-devel] [PATCH 4/4] multipath-tools: Add rbd to the hwtable 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 Add rbd to hwtable. These defaults are for the HA type of setup supported by the checker. We do no support features like multibus at the dm-multipath level yet. Signed-off-by: Mike Christie --- libmultipath/hwtable.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c index 6116124..27a6ff1 100644 --- a/libmultipath/hwtable.c +++ b/libmultipath/hwtable.c @@ -1206,6 +1206,21 @@ static struct hwentry default_hw[] = { .pgfailback = 30, .minio = 128, }, + { + .vendor = "Ceph", + .product = "RBD", + .features = DEFAULT_FEATURES, + .hwhandler = DEFAULT_HWHANDLER, + .pgpolicy = FAILOVER, + .pgfailback = -FAILBACK_IMMEDIATE, + .no_path_retry = NO_PATH_RETRY_FAIL, + .checker_name = RBD, + .user_friendly_names = USER_FRIENDLY_NAMES_ON, + .uid_attribute = "ID_UID", + .prio_name = PRIO_CONST, + .deferred_remove = DEFERRED_REMOVE_ON, + }, + /* * EOL */