Re: [Qemu-devel] [PATCH v2 11/12] qcow2/overlaps: Protect inactive L2 tables

2015-01-21 Thread Max Reitz
On 2015-01-21 at 10:23, Stefan Hajnoczi wrote: On Mon, Nov 24, 2014 at 04:56:59PM +0100, Max Reitz wrote: @@ -136,6 +138,34 @@ int qcow2_read_snapshots(BlockDriverState *bs) size_to_clusters(s, sn->l1_size *

Re: [Qemu-devel] [PATCH v2 11/12] qcow2/overlaps: Protect inactive L2 tables

2015-01-21 Thread Stefan Hajnoczi
On Mon, Nov 24, 2014 at 04:56:59PM +0100, Max Reitz wrote: > @@ -136,6 +138,34 @@ int qcow2_read_snapshots(BlockDriverState *bs) >size_to_clusters(s, sn->l1_size * >sizeof(uint64_t)), >

[Qemu-devel] [PATCH v2 11/12] qcow2/overlaps: Protect inactive L2 tables

2014-11-24 Thread Max Reitz
Keep track of the inactive L2 tables in the metadata list to protect them against accidental modifications. Signed-off-by: Max Reitz --- block/qcow2-refcount.c | 20 block/qcow2-snapshot.c | 41 +++-- 2 files changed, 59 insertions(+), 2 d