Re: [Qemu-devel] [PATCH 08/21] backup: skip unallocated clusters for full mode

2017-01-31 Thread Stefan Hajnoczi
On Fri, Dec 23, 2016 at 05:28:51PM +0300, Vladimir Sementsov-Ogievskiy wrote: > In case of full backup we can skip unallocated clusters if the target > disk is already zero-initialized. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > block/backup.c | 8 ++-- > tests/qemu-iote

Re: [Qemu-devel] [PATCH 08/21] backup: skip unallocated clusters for full mode

2017-01-31 Thread Stefan Hajnoczi
On Fri, Dec 23, 2016 at 05:28:51PM +0300, Vladimir Sementsov-Ogievskiy wrote: > +if (is_top || bdrv_has_zero_init(blk_bs(job->target))) { /* * Returns 1 if newly created images are guaranteed to contain * only zeros, 0 otherwise. */ int (*bdrv_has_zero_init)(BlockDriverSta

Re: [Qemu-devel] [PATCH 08/21] backup: skip unallocated clusters for full mode

2017-01-24 Thread Fam Zheng
On Tue, 01/24 13:13, Vladimir Sementsov-Ogievskiy wrote: > 24.01.2017 12:36, Fam Zheng wrote: > > On Tue, 01/24 12:18, Vladimir Sementsov-Ogievskiy wrote: > > > 24.01.2017 10:59, Fam Zheng wrote: > > > > On Fri, 12/23 17:28, Vladimir Sementsov-Ogievskiy wrote: > > > > > diff --git a/tests/qemu-iote

Re: [Qemu-devel] [PATCH 08/21] backup: skip unallocated clusters for full mode

2017-01-24 Thread Vladimir Sementsov-Ogievskiy
24.01.2017 12:36, Fam Zheng wrote: On Tue, 01/24 12:18, Vladimir Sementsov-Ogievskiy wrote: 24.01.2017 10:59, Fam Zheng wrote: On Fri, 12/23 17:28, Vladimir Sementsov-Ogievskiy wrote: diff --git a/tests/qemu-iotests/055 b/tests/qemu-iotests/055 index 1d3fd04..388b7b2 100755 --- a/tests/qemu-io

Re: [Qemu-devel] [PATCH 08/21] backup: skip unallocated clusters for full mode

2017-01-24 Thread Fam Zheng
On Tue, 01/24 12:18, Vladimir Sementsov-Ogievskiy wrote: > 24.01.2017 10:59, Fam Zheng wrote: > > On Fri, 12/23 17:28, Vladimir Sementsov-Ogievskiy wrote: > > > diff --git a/tests/qemu-iotests/055 b/tests/qemu-iotests/055 > > > index 1d3fd04..388b7b2 100755 > > > --- a/tests/qemu-iotests/055 > > >

Re: [Qemu-devel] [PATCH 08/21] backup: skip unallocated clusters for full mode

2017-01-24 Thread Vladimir Sementsov-Ogievskiy
24.01.2017 10:59, Fam Zheng wrote: On Fri, 12/23 17:28, Vladimir Sementsov-Ogievskiy wrote: diff --git a/tests/qemu-iotests/055 b/tests/qemu-iotests/055 index 1d3fd04..388b7b2 100755 --- a/tests/qemu-iotests/055 +++ b/tests/qemu-iotests/055 @@ -30,6 +30,7 @@ target_img = os.path.join(iotests.tes

Re: [Qemu-devel] [PATCH 08/21] backup: skip unallocated clusters for full mode

2017-01-24 Thread Fam Zheng
On Fri, 12/23 17:28, Vladimir Sementsov-Ogievskiy wrote: > diff --git a/tests/qemu-iotests/055 b/tests/qemu-iotests/055 > index 1d3fd04..388b7b2 100755 > --- a/tests/qemu-iotests/055 > +++ b/tests/qemu-iotests/055 > @@ -30,6 +30,7 @@ target_img = os.path.join(iotests.test_dir, 'target.img') > bloc

[Qemu-devel] [PATCH 08/21] backup: skip unallocated clusters for full mode

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
In case of full backup we can skip unallocated clusters if the target disk is already zero-initialized. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/backup.c | 8 ++-- tests/qemu-iotests/055 | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/block/backup.