[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] vmdk: fix cluster size check for flat extent
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v2] vmdk: fix cluster size check for flat extents |
Date: |
Tue, 24 Sep 2013 14:53:21 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Sep 23, 2013 at 05:18:29PM +0800, Fam Zheng wrote:
> We use the extent size as cluster size for flat extents (where no L1/L2
> table is allocated so it's safe) reuse sector calculating code with
> sparse extents.
>
> Don't pass in the cluster size for adding flat extent, just set it to
> sectors later, then the cluster size checking will not fail.
This is a little hacky, the next person that modifies vmdk may not be
aware of this trick. I would avoid using ->cluster_sectors at all with
flat extents. But I didn't investigate how feasible that approach is...
Reviewed-by: Stefan Hajnoczi <address@hidden>
- Re: [Qemu-devel] [PATCH v2 2/2] qemu-iotests: add monolithicFlat creation test to 059, (continued)
[Qemu-devel] [PATCH v3 0/2] Fix and add test into 059., Fam Zheng, 2013/09/25
[Qemu-devel] [PATCH v4 0/2] Fix and add test into 059., Fam Zheng, 2013/09/25
[Qemu-devel] [PATCH v2 0/2] Fix and add test into 059., Fam Zheng, 2013/09/23
Re: [Qemu-devel] [PATCH v2] vmdk: fix cluster size check for flat extents,
Stefan Hajnoczi <=
Re: [Qemu-devel] [PATCH v2] vmdk: fix cluster size check for flat extents, Fam Zheng, 2013/09/25