]> git.michaelhowe.org Git - packages/a/afs-monitor.git/commitdiff
fix incorrect quotas in check_afs_quotas
authorMichael Meffie <mmeffie@sinenomine.net>
Wed, 9 Jan 2013 14:50:38 +0000 (09:50 -0500)
committerRuss Allbery <rra@stanford.edu>
Thu, 10 Jan 2013 03:50:02 +0000 (19:50 -0800)
Correctly handle partitions which contain a mix of read-write, read-
only, and backup partitions. This corrects an error in the parsing of
the vos listvol when a read-only or backup volume follows a read-
write volume.

check_afs_quotas

index 267d4b7ec0c4411f124c85c72f8b214a7341c14b..943455d37a2f1a45e07cdab609a4b709a34b6d5e 100755 (executable)
@@ -108,6 +108,8 @@ sub serverinfo {
             $results{$volume}{size} = $2;
         } elsif (/^\s+MaxQuota\s+(\d+) K\s*$/) {
             $results{$volume}{quota} = $1 if defined $volume;
+        } elsif (/^\s*$/) { # next volume
+            $volume = undef;
         }
     }
     return %results;