]> git.pld-linux.org Git - packages/amanda.git/commitdiff
- SUCCESS and CHUNK was renamed to DONE and PART
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 28 Oct 2008 22:29:13 +0000 (22:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  patch by Marek Marczykowski <marmarek@staszic.waw.pl>

Changed files:
    amanda-amtoc.patch -> 1.1

amanda-amtoc.patch [new file with mode: 0644]

diff --git a/amanda-amtoc.patch b/amanda-amtoc.patch
new file mode 100644 (file)
index 0000000..0144399
--- /dev/null
@@ -0,0 +1,35 @@
+--- amanda-2.6.0/server-src/amtoc.pl.orig      2008-10-26 15:21:44.691836813 +0100
++++ amanda-2.6.0/server-src/amtoc.pl   2008-10-26 15:32:17.076007801 +0100
+@@ -191,10 +191,14 @@
+       &pr("#","Server","/partition","date", "level","size[Kb]","part");
+       &pr("$filenumber","$chunk","","$disk","-","-","-");
+       last switch; };
+-    /^(?:SUCCESS|CHUNK) taper/ && do {
+-      if(/SUCCESS/){
+-      $level = $chunk;
+-      $chunk = "-";
++    /^(?:PART) taper/ && do {
++      if(/PART/){
++      /^([A-Z]+) taper (\S+) (\S+) (\S+) (\S+) (\S+) (\S+) (\S+)/;
++      $host = $4;
++      $disk = $5;
++      $date = $6;
++      $chunk = $7;
++      $level = $8;
+       }
+       $mysize = 0;
+       if(/ kb (\d+) /){
+@@ -206,11 +210,11 @@
+       if (defined($flash_mode)) {
+           &pr("$filenumber","${host}","${disk}","${date}","${level}","$mysize","${chunk}");
+       } else {
+-        if (defined($osize{$host}{$disk}) && !/^CHUNK/) {
++        if (defined($osize{$host}{$disk}) && !/^PART/) {
+             &pr("$filenumber","${host}","${disk}","${date}","${level}","$osize{$host}{$disk}","${chunk}");
+         } else {
+           $note = "";
+-          if(!/^CHUNK/){
++          if(!/^PART/){
+               # this case should never happend: 
+           $strange=1;
+             $note = "*";
This page took 0.093353 seconds and 4 git commands to generate.