[Qemu-devel] [RFC PATCH 0/2] s/size/entries/ when dealing with non-byte units

Eric Blake posted 2 patches 6 years, 2 months ago
Failed in applying to current master (apply log)
docs/interop/qcow2.txt |  4 ++--
block/qcow2.h          |  4 ++--
block/qcow2.c          | 21 +++++++++++----------
3 files changed, 15 insertions(+), 14 deletions(-)
[Qemu-devel] [RFC PATCH 0/2] s/size/entries/ when dealing with non-byte units
Posted by Eric Blake 6 years, 2 months ago
I mentioned this while reviewing Berto's series on L2 slice handling;
this is a first cut at patches that I think are worth doing throughout
the qcow2 code base if we like the idea.

Eric Blake (2):
  qcow2: Prefer 'entries' over 'size' for non-byte values in spec
  qcow2: Prefer 'entries' over 'size' during cache creation

 docs/interop/qcow2.txt |  4 ++--
 block/qcow2.h          |  4 ++--
 block/qcow2.c          | 21 +++++++++++----------
 3 files changed, 15 insertions(+), 14 deletions(-)

-- 
2.14.3


Re: [Qemu-devel] [RFC PATCH 0/2] s/size/entries/ when dealing with non-byte units
Posted by Max Reitz 6 years, 2 months ago
On 2018-02-14 00:33, Eric Blake wrote:
> I mentioned this while reviewing Berto's series on L2 slice handling;
> this is a first cut at patches that I think are worth doing throughout
> the qcow2 code base if we like the idea.

I like the idea. :-)

The patches look good to me.

Max

> Eric Blake (2):
>   qcow2: Prefer 'entries' over 'size' for non-byte values in spec
>   qcow2: Prefer 'entries' over 'size' during cache creation
> 
>  docs/interop/qcow2.txt |  4 ++--
>  block/qcow2.h          |  4 ++--
>  block/qcow2.c          | 21 +++++++++++----------
>  3 files changed, 15 insertions(+), 14 deletions(-)
> 


Re: [Qemu-devel] [RFC PATCH 0/2] s/size/entries/ when dealing with non-byte units
Posted by Alberto Garcia 6 years, 2 months ago
On Wed 14 Feb 2018 12:33:22 AM CET, Eric Blake wrote:
> I mentioned this while reviewing Berto's series on L2 slice handling;
> this is a first cut at patches that I think are worth doing throughout
> the qcow2 code base if we like the idea.
>
> Eric Blake (2):
>   qcow2: Prefer 'entries' over 'size' for non-byte values in spec
>   qcow2: Prefer 'entries' over 'size' during cache creation

I also like the idea. We'd need to change a lot of variables all over
the place, but things will look much more readable.

Berto

Re: [Qemu-devel] [Qemu-block] [RFC PATCH 0/2] s/size/entries/ when dealing with non-byte units
Posted by Kevin Wolf 6 years, 2 months ago
Am 14.02.2018 um 00:33 hat Eric Blake geschrieben:
> I mentioned this while reviewing Berto's series on L2 slice handling;
> this is a first cut at patches that I think are worth doing throughout
> the qcow2 code base if we like the idea.

I agree it's a good change.

While we're at it, something I noticed in your block status series:
If something points to bytes, it should be an 'offset', and if it
points to entries, it's an 'index'. You changed a few things to byte
granularity, but still call them 'index'. Maybe we should clean that up
as well.

Kevin