Re: [Qemu-devel] [PATCH v2 07/21] qcow2: Helper function for refcount modification

2014-11-17 Thread Max Reitz
On 2014-11-15 at 18:02, Eric Blake wrote: On 11/14/2014 06:06 AM, Max Reitz wrote: Since refcounts do not always have to be a uint16_t, all refcount blocks and arrays in memory should not have a specific type (thus they become pointers to void) and for accessing them, two helper functions are us

Re: [Qemu-devel] [PATCH v2 07/21] qcow2: Helper function for refcount modification

2014-11-15 Thread Eric Blake
On 11/14/2014 06:06 AM, Max Reitz wrote: > Since refcounts do not always have to be a uint16_t, all refcount blocks > and arrays in memory should not have a specific type (thus they become > pointers to void) and for accessing them, two helper functions are used > (a getter and a setter). Those fun

[Qemu-devel] [PATCH v2 07/21] qcow2: Helper function for refcount modification

2014-11-14 Thread Max Reitz
Since refcounts do not always have to be a uint16_t, all refcount blocks and arrays in memory should not have a specific type (thus they become pointers to void) and for accessing them, two helper functions are used (a getter and a setter). Those functions are called indirectly through function poi