X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=application-src%2Famsuntar.pl;h=96917d1ebed0c7c0cb15115ee38180179b660c41;hb=4f0b86f7a23848c16cfe82fae81e639917fcff27;hp=ad32c160278e08befe62448941d765853bb8fb0f;hpb=99080c663209a733fd597a2fcab96a45c9c41291;p=debian%2Famanda diff --git a/application-src/amsuntar.pl b/application-src/amsuntar.pl index ad32c16..96917d1 100755 --- a/application-src/amsuntar.pl +++ b/application-src/amsuntar.pl @@ -1,5 +1,5 @@ #!@PERL@ -# Copyright (c) 2009, 2010 Zmanda, Inc. All Rights Reserved. +# Copyright (c) 2009-2012 Zmanda, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 as published @@ -35,7 +35,7 @@ use Amanda::Constants; use Amanda::Config qw( :init :getconf config_dir_relative ); use Amanda::Debug qw( :logging ); use Amanda::Paths; -use Amanda::Util qw( :constants ); +use Amanda::Util qw( :constants quote_string ); sub new { my $class = shift; @@ -144,6 +144,11 @@ sub command_support { sub command_selfcheck { my $self = shift; + $self->print_to_server("disk " . quote_string($self->{disk})); + + $self->print_to_server("amsuntar version " . $Amanda::Constants::VERSION, + $Amanda::Script_App::GOOD); + if (!-e $self->{suntar}) { $self->print_to_server_and_die( "application binary $self->{suntar} doesn't exist", @@ -157,7 +162,6 @@ sub command_selfcheck { if (!defined $self->{disk} || !defined $self->{device}) { return; } - print "OK " . $self->{disk} . "\n"; print "OK " . $self->{device} . "\n"; print "OK " . $self->{directory} . "\n" if defined $self->{directory}; $self->validate_inexclude();