[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Add qcow2 documentation
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] Add qcow2 documentation |
Date: |
Wed, 9 Mar 2011 21:46:31 +0000 |
On Wed, Mar 9, 2011 at 6:08 PM, Dushyant Bansal
<address@hidden> wrote:
> On Tuesday 08 March 2011 05:17 PM, Kevin Wolf wrote:
>> + l2_entries = (cluster_size / sizeof(uint64_t))
>> +
>> + l2_index = (offset / cluster_size) % l2_entries
>> + l1_index = (offset / cluster_size) / l2_entries
>> +
>> + l2_table = load_cluster(l1_table[l1_index]);
>> + cluster_offset = refcount_block[l2_index];
>>
>
> It should be cluster_offset = l2_table[l2_index];
> Right?
Good catch.
Kevin, besides what Dushyant found it looks good.
Stefan