[Qemu-devel] Re: [PATCH] loadvm: improve tests before bdrv_snapshot_goto()

2010-07-19 Thread Miguel Di Ciurcio Filho
On Mon, Jul 19, 2010 at 11:22 AM, Kevin Wolf wrote: >> >> -    /* Verify if there is a device that doesn't support snapshots and is >> writable */ >> +    bs_vm_state = bdrv_snapshots(); >> +    if (!bs_vm_state) { >> +        error_report("No block device supports snapshots"); >> +        return

[Qemu-devel] Re: [PATCH] loadvm: improve tests before bdrv_snapshot_goto()

2010-07-19 Thread Kevin Wolf
Am 14.07.2010 20:27, schrieb Miguel Di Ciurcio Filho: > This patch improves the resilience of the load_vmstate() function, doing > further and better ordered tests. > > In load_vmstate(), if there is any error on bdrv_snapshot_goto(), except if > the > error is on VM state device, load_vmstate()