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
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
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
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
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
> > >
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
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
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.