[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] qcow2: fix the return value -ENOENT -> -EEXIST
From: |
zwu . kernel |
Subject: |
[Qemu-devel] [PATCH] qcow2: fix the return value -ENOENT -> -EEXIST |
Date: |
Thu, 26 Apr 2012 16:11:37 +0800 |
From: Zhi Yong Wu <address@hidden>
Signed-off-by: Zhi Yong Wu <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
- [Qemu-devel] [PATCH] qcow2: fix the return value -ENOENT -> -EEXIST,
zwu . kernel <=