From patchwork Mon Aug 8 12:01:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Christie X-Patchwork-Id: 9268227 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 BFE7C60754 for ; Mon, 8 Aug 2016 12:06:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF71127BA5 for ; Mon, 8 Aug 2016 12:06:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A445928387; Mon, 8 Aug 2016 12:06:16 +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 5427827BA5 for ; Mon, 8 Aug 2016 12:06:15 +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 u78C2gB8032537; Mon, 8 Aug 2016 08:02:42 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u78C1t62019622 for ; Mon, 8 Aug 2016 08:01:55 -0400 Received: from rh2.redhat.com (unused [10.10.52.169] (may be forged)) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u78C1p2U009926; Mon, 8 Aug 2016 08:01:55 -0400 From: Mike Christie To: dm-devel@redhat.com, christophe.varoqui@opensvc.com Date: Mon, 8 Aug 2016 07:01:50 -0500 Message-Id: <1470657710-28081-5-git-send-email-mchristi@redhat.com> In-Reply-To: <1470657710-28081-1-git-send-email-mchristi@redhat.com> References: <1470657710-28081-1-git-send-email-mchristi@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 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. Changes since v1: 1. Drop settings that were defaults and follow template. 2. Drop ID_UID use. 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 8c074f9..c307477 100644 --- a/libmultipath/hwtable.c +++ b/libmultipath/hwtable.c @@ -839,6 +839,21 @@ static struct hwentry default_hw[] = { .flush_on_last_del = FLUSH_ENABLED, .dev_loss = 30, }, + { + /* + * Red Hat + * + * Maintainer: Mike Christie + * Mail: mchristi@redhat.com + */ + .vendor = "Ceph", + .product = "RBD", + .pgpolicy = FAILOVER, + .no_path_retry = NO_PATH_RETRY_FAIL, + .checker_name = RBD, + .deferred_remove = DEFERRED_REMOVE_ON, + }, + /* * Tegile Systems */