qcow2: Simplify image creation
authorKevin Wolf <kwolf@redhat.com>
Fri, 11 Jun 2010 19:37:37 +0000 (21:37 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Oct 2010 12:49:35 +0000 (14:49 +0200)
commitdb5e8e4989e6adaa6b5da2d5b7bcd785236ed875
tree3d611548654c1567cd5293c3a144c5cc3d6819a1
parent250e6ffdd2b7961a932ccc19a561750768381302
qcow2: Simplify image creation

Instead of doing lots of magic for setting up initial refcount blocks and stuff
create a minimal (inconsistent) image, open it and initialize the rest with
regular qcow2 functions.

This is a complete rewrite of the image creation function. The old
implementating is #ifdef'd out and will be removed by the next patch (removing
it here would have made the diff unreadable because diff tries to find
similarities when it's really a rewrite)

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c