See my example ('copy' qcow2 snapshot while VM is running). I thought it is dangerous to access a qcow2 snapshot while the file is in use?
> -----Original Message----- > From: Alexandre DERUMIER [mailto:aderum...@odiso.com] > Sent: Montag, 06. Mai 2013 06:41 > To: Dietmar Maurer > Cc: pve-devel@pve.proxmox.com > Subject: Re: PVE::Storage::volume_has_feature > > Yes, Currently I don't use use it, because I think we can do snapshots,full > clone, > linked cloned online or offline for each storage. > > Do you see a storage with a feature available offline and not online by > example > ? > > ----- Mail original ----- > > De: "Dietmar Maurer" <diet...@proxmox.com> > À: "Alexandre DERUMIER (aderum...@odiso.com)" <aderum...@odiso.com> > apsho > Cc: pve-devel@pve.proxmox.com > Envoyé: Lundi 6 Mai 2013 06:24:05 > Objet: PVE::Storage::volume_has_feature > > That function seems to ignore the 'running'parameter, for example: > > --------test code------ > #!/usr/bin/perl -w > > use strict; > use PVE::Storage; > > my $volid = "local:200/vm-200-disk-1.qcow2"; my $snapname = "firstboot"; my > $runnung = 1; > > my $storecfg = PVE::Storage::config(); > > die "got unexpected result" if PVE::Storage::volume_has_feature($storecfg, > 'copy', $volid, $snapname, 1);; > > ----- end test code--------- > > how can we fix that? _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel