<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Verdana; font-size: 10pt; color: #000000'><span style="font-family: monospace; font-size: medium; background-color: rgb(255, 255, 255);">If it is allowed or not is another question.</span><br style="font-family: monospace; font-size: medium;"><br style="font-family: monospace; font-size: medium;"><span style="font-family: monospace; font-size: medium; background-color: rgb(255, 255, 255);">>>My question was if we can detect if a volume is in use ?</span><br style="font-family: monospace; font-size: medium;"><div style="font-family: Verdana; font-size: 10pt;"><br></div><div id="94879180-9244-4670-8790-002e21e44846" style="font-family: Verdana; font-size: 10pt;">I think we can find easily if a volume/snapshot is a parent of a cloned volume.</div><div id="94879180-9244-4670-8790-002e21e44846" style="font-family: Verdana; font-size: 10pt;">It can be done fast for ceph,sheepdog,zfs. (1api call)</div><div id="94879180-9244-4670-8790-002e21e44846" style="font-family: Verdana; font-size: 10pt;"><br></div><div id="94879180-9244-4670-8790-002e21e44846" style="font-family: Verdana; font-size: 10pt;"><br></div><div id="94879180-9244-4670-8790-002e21e44846" style="font-family: Verdana; font-size: 10pt;"><span name="x"></span>for qcow2, it's a pain, because we need to parse all files with qemu-img info to find the parent relationship. </div><div id="94879180-9244-4670-8790-002e21e44846" style="font-family: Verdana; font-size: 10pt;">But it's not a problem, as we can't clone from snapshot with files.</div><div id="94879180-9244-4670-8790-002e21e44846" style="font-family: Verdana; font-size: 10pt;"><br></div><div id="94879180-9244-4670-8790-002e21e44846" style="font-family: Verdana; font-size: 10pt;"><span style="font-family: monospace; font-size: medium; background-color: rgb(255, 255, 255);">>>(AFAIK we have such check for base volumes)</span></div><div id="94879180-9244-4670-8790-002e21e44846"><font face="monospace">Yes, indeed.</font></div><div id="94879180-9244-4670-8790-002e21e44846"><font face="monospace"><br class="Apple-interchange-newline"></font><table cellspacing="3" cellpadding="0" border="0" style="font-family: Calibri; font-size: 10pt; background-color: rgb(255, 255, 255); height: 150px;"><tbody><tr><td class="style2"><p><span style="font-size: 12pt; "><img width="248" height="150" src="http://www.odiso.com/library/img/signature/logo_blanc.png" src="http://www.odiso.com/library/img/signature/logo_blanc.png"></span></p></td><td width="100%" class="style3" style="padding-left: 10px; "><table cellspacing="5" cellpadding="5" border="0" class="MsoNormalTable"><tbody><tr><td><p><b><span style="font-size: 12.5pt; "><font color="#198ea3">Alexandre </font></span></b><b><span style="font-size: 12.5pt; color: rgb(66, 66, 66); ">D</span></b><b style="font-size: 10pt; "><span style="font-size: 12.5pt; color: rgb(66, 66, 66); ">e</span></b><b style="font-size: 10pt; "><span style="font-size: 12.5pt; color: rgb(66, 66, 66); ">rumier</span></b><span style="font-size: 10pt; "> </span></p><p><b><span style="color: rgb(66, 66, 66); "><font size="2">Ingénieur Systèmes et Réseaux</font></span></b></p></td></tr><tr><td><p><font size="2"><b><span style="color: rgb(66, 66, 66); ">Fixe </span><span style="color: rgb(66, 66, 66); ">: </span></b><span style="color: rgb(99, 100, 102); ">03 20 68 88 90</span> <br> <br><b><span style="color: rgb(66, 66, 66); ">Fax : </span></b><span style="color: rgb(99, 100, 102); ">03 20 68 90 81</span></font></p></td></tr><tr><td class="style1"><p><font size="2"><span style="color: gray; ">45 Bvd du Général Leclerc 59100 Roubaix </span><br><span style="color: gray; ">12 rue Marivaux 75002 Paris</span></font><span style="font-size: 12pt; "></span></p></td></tr></tbody></table></td></tr></tbody></table><font size="2"><span style="font-family: Arial; background-color: rgb(255, 255, 255); "></span></font><br style="font-family: Arial; background-color: rgb(255, 255, 255); "><font face="Verdana" size="2"><span name="x"></span></font><br></div><hr id="zwchr" style="font-family: Verdana; font-size: 10pt;"><div style="font-family: Helvetica, Arial, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none;"><b>De: </b>"Dietmar Maurer" <dietmar@proxmox.com><br><b>À: </b>"Stefan Priebe" <s.priebe@profihost.ag>, pve-devel@pve.proxmox.com<br><b>Envoyé: </b>Mercredi 12 Février 2014 20:23:37<br><b>Objet: </b>Re: [pve-devel] qemu-server: allow clone from snapshot Patch V2<br><br>> As this truly depends on storage backend - for example this is allowed for<br>> sheepdog. Or do you just mean it must be a feature flag in the Storage Plugin?<br><br>If it is allowed or not is another question.<br><br>My question was if we can detect if a volume is in use (AFAIK we have such check for base volumes)?<br><br>But this seems to be a minor issue (no blocker).<br><br><br><br>_______________________________________________<br>pve-devel mailing list<br>pve-devel@pve.proxmox.com<br>http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel<br></div><br></div></body></html>