On (Mon) 12 Jan 2015 [01:12:41], Yi Wang wrote: > From b119164ba6715f53594facfc4d1022c198852e9d Mon Sep 17 00:00:00 2001 > From: Yi Wang <up2w...@gmail.com> > Date: Mon, 12 Jan 2015 00:05:40 +0800 > Subject: [PATCH] savevm: create snapshot failed when id_str already exits > > Create snapshot failed in this case: > 1) vm has two or more qcow2 disks; > 2) the first disk has snapshot with id_str 1, and the second disk has > snapshots with id_str 2 and 3, for example; > 3) create snapshot using virsh snapshot-create/snapshot-create-as will > fail, 'cause id_str 2 has already existed in disk two. > > The reason is that do_savevm() didn't check id_str before create > bdrv_snapshot_create(), and this patch fixed this. > > Signed-off-by: Yi Wang <up2w...@gmail.com>
I'll defer to the block people on this patch. Amit