[pve-devel] [PATCH qemu-server 03/10] qm mtunnel: add tunnel version

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Aug 4 12:11:31 CEST 2017


On Fri, Aug 04, 2017 at 11:53:27AM +0200, Thomas Lamprecht wrote:
> On 08/04/2017 10:55 AM, Fabian Grünbichler wrote:
> > to allow detection of supported features/commands for these
> > and future mtunnel changes.
> > 
> > Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> > ---
> >   PVE/CLI/qm.pm | 3 +++
> >   1 file changed, 3 insertions(+)
> > 
> > diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm
> > index e192153..77fd983 100755
> > --- a/PVE/CLI/qm.pm
> > +++ b/PVE/CLI/qm.pm
> > @@ -268,6 +268,9 @@ __PACKAGE__->register_method ({
> >   	print "tunnel online\n";
> >   	*STDOUT->flush();
> > +	print "ver 1.0\n";
> 
> nitpick: I'd just use a integer, this is internal versioning, makes the
> regex in the next patch a bit easier and I see no real value in using float
> here.
> 

I originally thought we could do something like only add compatible
changes within a major tunnel version, but we probably don't need such a
complicated scheme.

@all: any objections to adopting a simple counting version instead?

> 
> > +	*STDOUT->flush();
> > +
> >   	while (my $line = <>) {
> >   	    chomp $line;
> >   	    last if $line =~ m/^quit$/;
> > 
> 
> 




More information about the pve-devel mailing list