qcow2: Allow requests with multiple l2metas
authorKevin Wolf <kwolf@redhat.com>
Tue, 26 Mar 2013 16:50:11 +0000 (17:50 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 28 Mar 2013 10:52:44 +0000 (11:52 +0100)
commit88c6588c5165da1526f735ed850861c5b74670bd
tree9ad34c64a0ead016b0c384a319e9721837d7f81a
parent710c2496d8cecc92568d439a3cf9d5874b3a55e2
qcow2: Allow requests with multiple l2metas

Instead of expecting a single l2meta, have a list of them. This allows
to still have a single I/O request for the guest data, even though
multiple l2meta may be needed in order to describe both a COW overwrite
and a new cluster allocation (typical sequential write case).

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-cluster.c
block/qcow2.c
block/qcow2.h