Re: [pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-29 Thread Dietmar Maurer
> Also, if name is not provided, > maybe can we add a default name : " Copy of".$orignalname ? > > To avoid duplicate name ? Yes. will do that. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-dev

Re: [pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-29 Thread Alexandre DERUMIER
r" À: "Alexandre DERUMIER" Cc: pve-devel@pve.proxmox.com Envoyé: Mardi 30 Avril 2013 07:03:21 Objet: RE: [pve-devel] [PATCH 1/5] add qemu_img_convert > I think it could be great to add a "name" parameter yes, and a 'description' > For full clo

Re: [pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-29 Thread Dietmar Maurer
> I think it could be great to add a "name" parameter yes, and a 'description' > For full clone, we should add a target storage and output format options. > (I think that only 1 target storage/output format for all disks is enough) OK for me. ___ pve-d

Re: [pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-29 Thread Dietmar Maurer
> >>My plan was to get this basic functionality stable so that we can > >>include this with 3.0? > > Yes, I think it could be a start, we can add features step by step. Yes (will try to do that asap). > When do you plan to release 3.0 ? AFAIK Debian Wheeze is planned this weekend. We want RC1 s

Re: [pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-29 Thread Alexandre DERUMIER
- Mail original - De: "Alexandre DERUMIER" À: "Dietmar Maurer" Cc: pve-devel@pve.proxmox.com Envoyé: Lundi 29 Avril 2013 12:59:03 Objet: Re: [pve-devel] [PATCH 1/5] add qemu_img_convert >>I think create_vm is already too complex to add more functionality. >

Re: [pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-29 Thread Alexandre DERUMIER
can add features step by step. When do you plan to release 3.0 ? I'll test your code today - Mail original - De: "Dietmar Maurer" À: "Alexandre Derumier" , pve-devel@pve.proxmox.com Envoyé: Lundi 29 Avril 2013 11:03:50 Objet: RE: [pve-devel] [PATCH 1/5]

Re: [pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-29 Thread Dietmar Maurer
Derumier > Sent: Montag, 29. April 2013 08:41 > To: pve-devel@pve.proxmox.com > Subject: [pve-devel] [PATCH 1/5] add qemu_img_convert > > also work with snapshot as source for qcow2,rbd,sheepdog. > ___ pve-devel mailing list pve

[pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-28 Thread Alexandre Derumier
also work with snapshot as source for qcow2,rbd,sheepdog. Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 61 + 1 file changed, 61 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 4d2710a..70ca3b1 100644 --- a

Re: [pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-27 Thread Alexandre DERUMIER
I'll resend an improved version monday - Mail original - De: "Alexandre DERUMIER" À: "Dietmar Maurer" Cc: pve-devel@pve.proxmox.com Envoyé: Vendredi 26 Avril 2013 13:59:42 Objet: Re: [pve-devel] [PATCH 1/5] add qemu_img_convert >>Why do you s

Re: [pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-26 Thread Alexandre DERUMIER
redi 26 Avril 2013 13:36:44 Objet: RE: [pve-devel] [PATCH 1/5] add qemu_img_convert > + my $parser = sub { > + my $line = shift; > + print $line."\n"; > + }; > + > + eval { run_command($cmd, timeout => undef, errfunc => sub {}, outfunc > =>

Re: [pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-26 Thread Dietmar Maurer
> + my $parser = sub { > + my $line = shift; > + print $line."\n"; > + }; > + > + eval { run_command($cmd, timeout => undef, errfunc => sub {}, outfunc > => $parser); }; Why do you suppress messages to stderr, and why do we need a $parser here? ___

Re: [pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-22 Thread Dietmar Maurer
> >>Why is it necessary to specify source and destination format? > > It's more by security, > > from doc: > > "fmt is the disk image format. It is guessed automatically in most cases." > > I don't like too much "in most cases" ;) OK, lets keep that code. __

Re: [pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-22 Thread Alexandre DERUMIER
al - De: "Dietmar Maurer" À: "Alexandre Derumier" , pve-devel@pve.proxmox.com Envoyé: Mardi 23 Avril 2013 06:19:51 Objet: RE: [pve-devel] [PATCH 1/5] add qemu_img_convert > + my $src_format = qemu_img_format($src_scfg, $src_volname); > + my $dst_format = qem

Re: [pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-22 Thread Dietmar Maurer
> + my $src_format = qemu_img_format($src_scfg, $src_volname); > + my $dst_format = qemu_img_format($dst_scfg, $dst_volname); > + > + my $src_path = PVE::Storage::path($storecfg, $src_volid, $snapname); > + my $dst_path = PVE::Storage::path($storecfg, $dst_volid); > + > + my $cm

[pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-22 Thread Alexandre Derumier
also work with snapshot as source for qcow2,rbd,sheepdog. Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 54 + 1 file changed, 54 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 4d2710a..c7b32c3 100644 --- a

[pve-devel] [PATCH 1/5] add qemu_img_convert

2013-04-01 Thread Alexandre Derumier
also work with snapshot as source for qcow2,rbd,sheepdog. Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 51 +++ 1 file changed, 51 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index fb672eb..b55a68e 100644 --- a/P