qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 2/6 v11 v11] block: make some functions public


From: Dong Xu Wang
Subject: Re: [Qemu-devel] [PATCH 2/6 v11 v11] block: make some functions public
Date: Thu, 2 Aug 2012 15:10:49 +0800

On Wed, Aug 1, 2012 at 9:53 PM, Eric Blake <address@hidden> wrote:
> On 07/31/2012 10:51 AM, Dong Xu Wang wrote:
>> In add-cow file format, we will use path_has_protocol and we will read
>> a NUL-terminated string from image , qed_read_string has done the samething,
>
> s/image ,/image,/
> s/samething/same thing/
>
>> so make the two functions public, then we will reuse them directly.
>>
>> While creating images files, if no size is specified, will use size of 
>> backing
>> file. If no backing file is specified, we will use the size of image file.
>>
>> Signed-off-by: Dong Xu Wang <address@hidden>
>> ---
>>  block.c     |   37 +++++++++++++++++++++++++++++++++----
>>  block.h     |    3 +++
>>  block/qed.c |   29 +----------------------------
>>  3 files changed, 37 insertions(+), 32 deletions(-)
>>
>> +    /* The size for the image must always be specified, with one exception:
>> +     If we are using a backing file, we can obtain the size from there,
>> +     but if not, and we are using an image file, we will obtain the size 
>> from it.*/
>
> grammar:
> The size for the image must be known, either by direct specification, or
> by reading it from a backing file or image file.
>
> --
> Eric Blake   address@hidden    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
>

Nod, Thank you, Eric



reply via email to

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