qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v4 04/21] block: keep bs->total_sectors up to da


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v4 04/21] block: keep bs->total_sectors up to date even for growable block devices
Date: Thu, 29 Aug 2013 13:51:12 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8

On 08/29/2013 08:00 AM, Paolo Bonzini wrote:
> If a BlockDriverState is growable, after every write we need to
> check if bs->total_sectors might have changed.  With this change,
> bdrv_getlength does not need anymore a system call.
> 
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
>         v4: use cache in bdrv_getlength
>  block.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 

Reviewed-by: Eric Blake <address@hidden>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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