From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Dillaman Subject: Re: blueprint: consistency groups Date: Tue, 3 May 2016 08:05:15 -0400 Message-ID: References: <20160325071933.GA14634@gmail.com> Reply-To: dillaman@redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mail-pa0-f47.google.com ([209.85.220.47]:34937 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750728AbcECMFQ (ORCPT ); Tue, 3 May 2016 08:05:16 -0400 Received: by mail-pa0-f47.google.com with SMTP id iv1so8829726pac.2 for ; Tue, 03 May 2016 05:05:15 -0700 (PDT) In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Victor Denisov Cc: Gregory Farnum , Mykola Golub , ceph-devel , Josh Durgin On Mon, May 2, 2016 at 8:26 PM, Victor Denisov wrote: > As such, I can't open another ioctx when I'm already inside rbd > class. You actually can open a new IoCtx against a new pool -- we do this internally for journaling handling, scanning pools for children during the snapshot unprotect operation, opening a parent image of a clone, etc. You can extract the "librados::Rados" object from the "librados::IoCtx" and then use "librados::Rados::ioctx_create2" to create a new IoCtx by pool id. Also agree with Mykola in that the API should return resolved image names. -- Jason