[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 7/9] qcow2: fix the return value -ENOENT -> -EEXIST
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 7/9] qcow2: fix the return value -ENOENT -> -EEXIST |
Date: |
Wed, 2 May 2012 19:16:16 +0200 |
From: Zhi Yong Wu <address@hidden>
Signed-off-by: Zhi Yong Wu <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
block/qcow2-snapshot.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/block/qcow2-snapshot.c b/block/qcow2-snapshot.c
index 42f971b..4561a2a 100644
--- 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 -ENOENT;
+ return -EEXIST;
}
/* Populate sn with passed data */
--
1.7.6.5
- [Qemu-devel] [PULL 0/9] Block patches (master and 1.1), Kevin Wolf, 2012/05/02
- [Qemu-devel] [PATCH 2/9] block/qcow2: Add missing GCC_FMT_ATTR to function report_unsupported(), Kevin Wolf, 2012/05/02
- [Qemu-devel] [PATCH 1/9] qemu-iotests: ignore fragmentation information for qed, Kevin Wolf, 2012/05/02
- [Qemu-devel] [PATCH 3/9] docs: fix one issue in qcow2 specs, Kevin Wolf, 2012/05/02
- [Qemu-devel] [PATCH 8/9] rbd: add discard support, Kevin Wolf, 2012/05/02
- [Qemu-devel] [PATCH 4/9] qemu-iotests: Many parallel allocating I/O requests, Kevin Wolf, 2012/05/02
- [Qemu-devel] [PATCH 7/9] qcow2: fix the return value -ENOENT -> -EEXIST,
Kevin Wolf <=
- [Qemu-devel] [PATCH 9/9] ATA: Allow WIN_SECURITY_FREEZE_LOCK as nop, Kevin Wolf, 2012/05/02
- [Qemu-devel] [PATCH 5/9] qcow2: Remove unused parameter in do_alloc_cluster_offset, Kevin Wolf, 2012/05/02
- [Qemu-devel] [PATCH 6/9] qcow2: Don't hold cache references across yield, Kevin Wolf, 2012/05/02