]> git.michaelhowe.org Git - packages/a/afs-monitor.git/commitdiff
Handle partitions with no RW volumes in check_afs_quotas
authorRuss Allbery <rra@stanford.edu>
Thu, 23 Dec 2010 22:40:06 +0000 (14:40 -0800)
committerRuss Allbery <rra@stanford.edu>
Thu, 23 Dec 2010 22:40:06 +0000 (14:40 -0800)
Correctly handle partitions containing no read/write volumes in
check_afs_quotas.  Thanks, Daniel Scott.

NEWS
check_afs_quotas

diff --git a/NEWS b/NEWS
index c1139b18cf5cd35698ae4898f4314232187fea52..78d320e9b472d16662324c6dac07cf16fa3ce15c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,9 @@ afs-monitor 2.2 (unreleased)
     data for the percent usage of each partition checked.  Based on a
     patch by Breandan Dezendorf.
 
+    Correctly handle partitions containing no read/write volumes in
+    check_afs_quotas.  Thanks, Daniel Scott.
+
     The vos binary is installed in sbin by the Red Hat packages and the
     default upstream installation rules, so check in sbin as well as bin.
     Patch from Daniel Scott.  Also fall back, for all AFS binaries, to
index 4dd02f39bc9a04770b82c64f858381e2e04ab71d..ee578898fda661c525990de9ca8ac4889d4176e5 100755 (executable)
@@ -106,7 +106,7 @@ sub serverinfo {
             $volume = $1;
             $results{$volume}{size} = $2;
         } elsif (/^\s+MaxQuota\s+(\d+) K\s*$/) {
-            $results{$volume}{quota} = $1;
+            $results{$volume}{quota} = $1 if defined $volume;
         }
     }
     return %results;