From patchwork Wed Aug 16 16:22:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Dryomov X-Patchwork-Id: 9904137 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 A0BF460231 for ; Wed, 16 Aug 2017 16:22:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 928302898F for ; Wed, 16 Aug 2017 16:22:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 873E028A0F; Wed, 16 Aug 2017 16:22:29 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B3892898F for ; Wed, 16 Aug 2017 16:22:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751642AbdHPQW1 (ORCPT ); Wed, 16 Aug 2017 12:22:27 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:35431 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751638AbdHPQWZ (ORCPT ); Wed, 16 Aug 2017 12:22:25 -0400 Received: by mail-wr0-f193.google.com with SMTP id w63so3904227wrc.2 for ; Wed, 16 Aug 2017 09:22:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=IPOXKhmOQDBMxJ1rKI2RFfCUT5PDiQhFYvvlMxfUACs=; b=vhQ+XH/yfHXOs1B5mO2BP5fQa1/Qn/A5KtSP0fSiSwD6SkiRPg6w8UgA18/apZB897 URX9jxk7n/hATcg/F6TsNR7Xxtim5/f5VTOZpgfbQH6xwgyiuiLWwq2c7x7uz/chLDk4 tc+mMm85kcIMVe/gTvqUqFjWpM/TQVLNyYu5MlgW7jmgMRLkPors8zcaHcr7uxJNLQ5p PEksMHtRHNQkO8qP8yM3d4d2sCi2tQ6lvw2z5w/3fqLEfEWAVC1/av/XPSLs31uPb3II rV6cLc1LweWtSQ9M0kRvFkFhirGq/48iM8GFiGmjJG7XAppkFn09SpO2iTLHC6k4ddhs 2/4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IPOXKhmOQDBMxJ1rKI2RFfCUT5PDiQhFYvvlMxfUACs=; b=N9YxGdTPoUfrmoIKHU1gjSXYJK4HC2H+TxzUmfaq3YSicj/9tpqSsk6th1GCWKvyPs hYjib/LMnBBtKL54Ti4EIoVfDNsKrI62E8sPUDrZ09IicNRRx87zbFQ1PCbX0qf6K+BM oxJsLMGDzniczq/btcDdY59ZxwTca/LSgu5Hal7SXMHh0rt4rB9WucESUcV30Ppgq5qg jOk60puIKoGqVW0HXoRg8iBq9R7ThZ5d9NxX1f/kVMZxwcgz0C3dodMVTzWUeHsQP12K gkUp/5urU1HY0tsGYA/uzoPwI9/q2kmDwdB7u138UlZJEp3f1GeVDPIqsGTO0FVYx/km Te0Q== X-Gm-Message-State: AHYfb5h5/jNsb79P+3kwLAiJSLr/Uf8oZBpyeL6dbVMHhnE74Negok6j Znm41/copivS1Q== X-Received: by 10.223.139.7 with SMTP id n7mr272579wra.138.1502900544363; Wed, 16 Aug 2017 09:22:24 -0700 (PDT) Received: from orange.brq.redhat.com. (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id v38sm1584774wrb.53.2017.08.16.09.22.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Aug 2017 09:22:23 -0700 (PDT) From: Ilya Dryomov To: lvm-devel@redhat.com Cc: ceph-devel@vger.kernel.org Subject: [PATCH] devices: recognise rbd devices Date: Wed, 16 Aug 2017 18:22:05 +0200 Message-Id: <1502900525-23375-1-git-send-email-idryomov@gmail.com> X-Mailer: git-send-email 2.4.3 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Under single_major scheme introduced in kernel 3.14, rbd devices support up to 16 partitions. In pre-single_major mode, rbd driver takes up the whole major. Signed-off-by: Ilya Dryomov --- WHATS_NEW | 1 + lib/device/device-types.h | 1 + 2 files changed, 2 insertions(+) diff --git a/WHATS_NEW b/WHATS_NEW index c8f072f3c387..b1f16cb054b5 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.174 - ================================= + Recognise RADOS block devices (RBD) in filter. Fix check for 2nd mda at end of disk fits if using pvcreate --restorefile. Use maximum metadataarea size that fits with pvcreate --restorefile. Always clear cached bootloaderarea when wiping label e.g. in pvcreate. diff --git a/lib/device/device-types.h b/lib/device/device-types.h index 2834cd11fd3a..57b430173e56 100644 --- a/lib/device/device-types.h +++ b/lib/device/device-types.h @@ -64,5 +64,6 @@ static const dev_known_type_t _dev_known_types[] = { {"nvme", 64, "NVM Express"}, {"zvol", 16, "ZFS Zvols"}, {"VxDMP", 16, "Veritas Dynamic Multipathing"}, + {"rbd", 16, "RADOS block device (RBD)"}, {"", 0, ""} };