]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2-snapshot.c
snapshot: distinguish id and name in load_tmp
authorWenchao Xia <xiawenc@linux.vnet.ibm.com>
Wed, 4 Dec 2013 09:10:54 +0000 (17:10 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Dec 2013 14:19:00 +0000 (15:19 +0100)
commit7b4c4781e390a041fa0ef70817678f1b97fc6db6
tree3506ed0d0b5789ee3af96cff47b66ad064466c83
parent34602dd6424c4f1cc414ba672f4f430182b5d9f2
snapshot: distinguish id and name in load_tmp

Since later this function will be used so improve it. The only caller of it
now is qemu-img, and it is not impacted by introduce function
bdrv_snapshot_load_tmp_by_id_or_name() that call bdrv_snapshot_load_tmp()
twice to keep old search logic. bdrv_snapshot_load_tmp_by_id_or_name() return
int to let caller know the errno, and errno will be used later.
Also fix a typo in comments of bdrv_snapshot_delete().

Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-snapshot.c
block/qcow2.h
block/snapshot.c
include/block/block_int.h
include/block/snapshot.h
qemu-img.c