[pve-devel] savevm tests

Alexandre DERUMIER aderumier at odiso.com
Fri Aug 31 11:17:45 CEST 2012


>>I think it is the first drive able to create snapshots. 
Yes, but what's is the drives order ?
pci slots order ?
maybe this is the order of the "info block" monitor command result?



----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Vendredi 31 Août 2012 11:00:03 
Objet: RE: [pve-devel] savevm tests 

> 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; 
} 




-- 

-- 



	

Alexandre D e rumier 

Ingénieur Systèmes et Réseaux 


Fixe : 03 20 68 88 85 

Fax : 03 20 68 90 88 


45 Bvd du Général Leclerc 59100 Roubaix 
12 rue Marivaux 75002 Paris 



More information about the pve-devel mailing list