oh ok, good catch. Thanks Michael for the report.
I'll try to make a patch this week. ----- Mail original ----- De: "Dietmar Maurer" <diet...@proxmox.com> À: "Alexandre DERUMIER" <aderum...@odiso.com>, "Michael Rasmussen" <m...@datanom.net> Cc: pve-devel@pve.proxmox.com Envoyé: Lundi 14 Avril 2014 06:30:06 Objet: RE: [pve-devel] grave bug in move disk discovered > > after move disk, if you remove the original disk in gui, and that a > > snasphot exist with this disk, the disk is removed from the current > > config, but the datas are not removed. > > AFAIK we keep a reference as 'unusedX' disk. This reference should not be > removed as long as there are snapshots? Looking at the code reveals: if ($param->{delete}) { eval { PVE::Storage::vdisk_free($storecfg, $old_volid); }; warn $@ if $@; } We must not unconditionally delete a volume if the volume is used by snapshots! Anybody wants to write a patch for that? _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel