projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7242411
)
qcow2: fix the return value -ENOENT -> -EEXIST
author
Zhi Yong Wu
<wuzhy@linux.vnet.ibm.com>
Thu, 26 Apr 2012 08:11:37 +0000
(16:11 +0800)
committer
Kevin Wolf
<kwolf@redhat.com>
Wed, 2 May 2012 16:39:39 +0000
(18:39 +0200)
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-snapshot.c
patch
|
blob
|
history
diff --git
a/block/qcow2-snapshot.c
b/block/qcow2-snapshot.c
index 42f971b590930c2fb6a0a432e76a94a903e359ad..4561a2abf91792f0643e1f4b505d4a7eb3316204 100644
(file)
--- a/
block/qcow2-snapshot.c
+++ b/
block/qcow2-snapshot.c
@@
-331,7
+331,7
@@
int qcow2_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info)
/* Check that the ID is unique */
if (find_snapshot_by_id(bs, sn_info->id_str) >= 0) {
- return -E
NOEN
T;
+ return -E
EXIS
T;
}
/* Populate sn with passed data */