qcow2: Return real error in qcow2_snapshot_goto
authorKevin Wolf <kwolf@redhat.com>
Wed, 16 Nov 2011 14:04:11 +0000 (15:04 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Dec 2011 13:51:36 +0000 (14:51 +0100)
commit589f284b7690bbb4ed37170590bae9527ed31b42
tree283187088f5bbdc0692bbdde711dcf53dc2d73b1
parentd1ea98d56dc2485b4637a1ca19feef786b3aee8f
qcow2: Return real error in qcow2_snapshot_goto

Besides fixing the return code, this adds some comments that make clear
how the code works and that it potentially breaks images if we fail in
the wrong place. Actually fixing this is left for the next patch.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
block/qcow2-snapshot.c