SOURCES: amanda-amtoc.patch (NEW) - SUCCESS and CHUNK was renamed to DONE a...

baggins baggins at pld-linux.org
Tue Oct 28 23:29:18 CET 2008


Author: baggins                      Date: Tue Oct 28 22:29:18 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- SUCCESS and CHUNK was renamed to DONE and PART
  patch by Marek Marczykowski <marmarek at staszic.waw.pl>

---- Files affected:
SOURCES:
   amanda-amtoc.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/amanda-amtoc.patch
diff -u /dev/null SOURCES/amanda-amtoc.patch:1.1
--- /dev/null	Tue Oct 28 23:29:19 2008
+++ SOURCES/amanda-amtoc.patch	Tue Oct 28 23:29:13 2008
@@ -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 = "*";
================================================================


More information about the pld-cvs-commit mailing list