[pve-devel] savevm tests
Dietmar Maurer
dietmar at proxmox.com
Fri Aug 31 11:00:03 CEST 2012
> I thing I didn't have check, is where the vmstate is stored if we have multiple
> devices.
> On the first disk ? on the boot disk ?
I think it is the first drive able to create snapshots.
They simply do a stupid loop in block.c:
BlockDriverState *bdrv_snapshots(void)
{
BlockDriverState *bs;
if (bs_snapshots) {
return bs_snapshots;
}
bs = NULL;
while ((bs = bdrv_next(bs))) {
if (bdrv_can_snapshot(bs)) {
bs_snapshots = bs;
return bs;
}
}
return NULL;
}
More information about the pve-devel
mailing list