From patchwork Wed Sep 5 14:53:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Dryomov X-Patchwork-Id: 10589005 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9B19B920 for ; Wed, 5 Sep 2018 14:53:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77B302A367 for ; Wed, 5 Sep 2018 14:53:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B8A62A373; Wed, 5 Sep 2018 14:53:51 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 11DCF2A367 for ; Wed, 5 Sep 2018 14:53:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727195AbeIETYV (ORCPT ); Wed, 5 Sep 2018 15:24:21 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:46898 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726335AbeIETYV (ORCPT ); Wed, 5 Sep 2018 15:24:21 -0400 Received: by mail-wr1-f67.google.com with SMTP id a108-v6so7941331wrc.13 for ; Wed, 05 Sep 2018 07:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=bNLn8nXRb8xmkqyn3V+csp6eBBAKeRxbTskh+cYjqsU=; b=KQ5g9HP7MOrF/3YSBILzWaQL4H9/Tu9Uqg6TYHh6RZUZ3EBvDURkKR/h6NMwUQIGGW 5jbGhMi7vpGRmfPETnAYgRJFgHgSjpup0L05fhpheUKVA8qjKYtVXLeZNkdhdtKrRo2j 5b7NEmexkawbuoX3TDXAAKj4WMXc2pE4vplfLh59eSGzjbcsfyOzvaZ1ZuMyxH8BnK7f N5tg9NXXBVvIoa1EMllh0kpvq+ZLitQ8BPoEyQ94vh5Srn8T++0yo/5LbQWqBVIhGmFN oXNED2jrAJtk4NUbuDl/UPiJ2rTIwKQeP873dT8FBm28TgoEdrtexUwNWTOCEqDAvWAv cBHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=bNLn8nXRb8xmkqyn3V+csp6eBBAKeRxbTskh+cYjqsU=; b=E/bHv9PctrdBmLdo1EaE81fiNS32xuEBOiyy0v26102jILUKFKCIcPi6HfcWDDjx0f OD/afXdSs0x9xj8DVlcKO/UwxEIP8hX4/E39kVNqDJwHZH1/+U09Mcy5BRkgge1QMFEQ 1+7UT3JDcuKjX5HzPGWcIdh5dwsOmLekYLQ6c579qFi5J3nNYZZLmgxQtdkKpF0JrEjD 2JfHPBwntsfXDMctBYJRstKDy+6aAHsiAVSOnQbNurr/jhkl/JwEb8oOu3BCuydCDQtv QvTxaNoe4nSNjNUGk5xWks9kSNsIXi0DlIPnJBZsTM5PcXHLKkogP9hhDuf8+sly/5XB jm2w== X-Gm-Message-State: APzg51Cfwq59AtfAVU2eLIc5YuogEvGfh/yvn2foHfXk53fD6/g0VoTI Vg/UOh1sPEK2YzKEFkAJFG9/3UnE X-Google-Smtp-Source: ANB0VdYA+9ZXRQ2sk43NO7FFhgIm/ZWmR7DWJ3q6xb5kctksMNg/LXHJlc8UV+R1XmSybmYtwYpp4w== X-Received: by 2002:adf:9ae5:: with SMTP id a92-v6mr28148250wrc.125.1536159227345; Wed, 05 Sep 2018 07:53:47 -0700 (PDT) Received: from orange.redhat.com ([213.175.37.12]) by smtp.gmail.com with ESMTPSA id j44-v6sm2517315wre.40.2018.09.05.07.53.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Sep 2018 07:53:46 -0700 (PDT) From: Ilya Dryomov To: ceph-devel@vger.kernel.org Subject: [PATCH v2 0/2] rbd: support cloning across namespaces Date: Wed, 5 Sep 2018 16:53:20 +0200 Message-Id: <20180905145322.7311-1-idryomov@gmail.com> X-Mailer: git-send-email 2.14.4 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 Hello, This adds support for cross-namespace cloning based on the new class methods from https://github.com/ceph/ceph/pull/23662. v1 -> v2: - refactor to avoid the appearance of a memory leak - update to the new parent_overlap_get API (optional of u64) Thanks, Ilya Ilya Dryomov (2): rbd: factor out get_parent_info() rbd: support cloning across namespaces drivers/block/rbd.c | 235 +++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 178 insertions(+), 57 deletions(-) Reviewed-by: Jason Dillaman