]> git.michaelhowe.org Git - packages/a/afs-monitor.git/commitdiff
check_afs_quotas: Return to only checking quota for RW volumes
authorRuss Allbery <rra@stanford.edu>
Thu, 10 Jan 2013 03:50:40 +0000 (19:50 -0800)
committerRuss Allbery <rra@stanford.edu>
Thu, 10 Jan 2013 03:50:40 +0000 (19:50 -0800)
After Michael Meffie's fix, we can restore the behavior of not
checking quota on RO and BK volumes, where the concept isn't
really meaningful.

check_afs_quotas

index 943455d37a2f1a45e07cdab609a4b709a34b6d5e..5e6dd096de27675a2e6832a03495d3a4e0b118f1 100755 (executable)
@@ -103,7 +103,7 @@ sub serverinfo {
     my ($volume, %results);
     local $_;
     while (<LVOL>) {
-        if (/^(\S+)\s+\d+ (?:RW|RO|BK)\s+(\d+) K\s+On-line\s*$/) {
+        if (/^(\S+)\s+\d+ RW\s+(\d+) K\s+On-line\s*$/) {
             $volume = $1;
             $results{$volume}{size} = $2;
         } elsif (/^\s+MaxQuota\s+(\d+) K\s*$/) {