qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 2/6] add basic backup support to block driver


From: Dietmar Maurer
Subject: Re: [Qemu-devel] [PATCH v3 2/6] add basic backup support to block driver
Date: Thu, 21 Feb 2013 11:40:52 +0000

> > > I think you do.  You're wasting time reading unallocated clusters
> > > and checking that they are zero.  bdrv_is_allocated_above gives you
> > > the same information much more efficiently.
> >
> > I thought that just returns information if the data is allocated, or
> > if data is on backing file?
> >
> > Or is data guaranteed to be zero if bdrv_is_allocated_above() return 0?
> 
> Oh, I need to pass NULL for base to get that information?

I just posted v5 of the patch. But I get a slow down of 15% if I use 
bdrv_is_allocated_above.
(tested with empty qcow2 files.)

Please can you take a look at the code - maybe I am doing something wrong?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]