Re: [Qemu-devel] [PATCH V3 1/7] snapshot: distinguish id and name in load_tmp

2013-10-09 Thread Wenchao Xia
于 2013/10/1 22:35, Eric Blake 写道: On 09/25/2013 06:16 PM, Wenchao Xia wrote: 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 t

Re: [Qemu-devel] [PATCH V3 1/7] snapshot: distinguish id and name in load_tmp

2013-10-01 Thread Eric Blake
On 09/25/2013 06:16 PM, Wenchao Xia wrote: > 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

[Qemu-devel] [PATCH V3 1/7] snapshot: distinguish id and name in load_tmp

2013-09-25 Thread Wenchao Xia
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 le