Received: from eggs.gnu.org ([2001:4830:134:3::10]:43348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWS3T-0008O2-KP for qemu-devel@nongnu.org; Thu, 18 Feb 2016 12:07:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWS3Q-0007sH-C4 for qemu-devel@nongnu.org; Thu, 18 Feb 2016 12:07:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWS3Q-0007rp-7j for qemu-devel@nongnu.org; Thu, 18 Feb 2016 12:07:48 -0500 From: Markus Armbruster References: <1454151394-52320-1-git-send-email-vsementsov@virtuozzo.com> <20160203081418.GC25746@ad.usersys.redhat.com> <56B45D3A.405@virtuozzo.com> <20160209142852.GA13149@stefanha-x1.localdomain> <56B9FAAE.8040503@virtuozzo.com> <20160210101004.GB7317@stefanha-x1.localdomain> <20160216170943.GA31393@stefanha-x1.localdomain> <56C35A6C.8090200@virtuozzo.com> <20160218163914.GA13271@stefanha-x1.localdomain> Date: Thu, 18 Feb 2016 18:07:45 +0100 In-Reply-To: <20160218163914.GA13271@stefanha-x1.localdomain> (Stefan Hajnoczi's message of "Thu, 18 Feb 2016 16:39:14 +0000") Message-ID: <87a8my6j6m.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 0/6] external backup api List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: kwolf@redhat.com, Vladimir Sementsov-Ogievskiy , Fam Zheng , "Denis V. Lunev" , qemu-devel@nongnu.org, jsnow@redhat.com Stefan Hajnoczi writes: > On Tue, Feb 16, 2016 at 08:20:44PM +0300, Denis V. Lunev wrote: >> the idea seems feasible at the first glance. I'll need to check >> the amount of the overhead of this approach. If we'll need >> to perform an additional request for each >> block - the overhead is toooooo much. > > Regarding overhead, thankfully it's not one-block-at-a-time :). > >> Do you have the link to the spec/implementation? > > You can reference SCSI Block Commands (SBC-3) 5.4 GET LBA STATUS > command. The filename is sbc3r25.pdf and it's available from t10.org > although other sites seem to host copies too. > > The approach is similar to the QMP command you have proposed. Input > parameters are "starting LBA" and "allocation length". Outputs are a > list of "status descriptors" which consists of an LBA, number of blocks, > and a provisioning status field (allocated/unallocated/etc). > > This means a single call can retrieve information for a whole range of > the disk. It's slightly more efficient than QMP since the data is > binary and not JSON text. Moreover, it avoids abusing control-plane QMP as data plane.