diff options
author | Kevin Wolf <kwolf@redhat.com> | 2011-11-16 12:43:59 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-12-05 14:51:36 +0100 |
commit | d1ea98d56dc2485b4637a1ca19feef786b3aee8f (patch) | |
tree | e2f7b247199b3f261b696af7e3f55ae34cca8044 /ui | |
parent | 03343166f703d5c8f02b8519f8493c56e5541ae7 (diff) |
qcow2: Rework qcow2_snapshot_create error handling
Increase refcounts only after allocating a new L1 table has succeeded in
order to make leaks less likely. If writing the snapshot table fails,
revert in-memory state to be consistent with that on disk.
While at it, make it return the real error codes instead of -1.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'ui')
0 files changed, 0 insertions, 0 deletions