From: Michael Meffie Date: Wed, 9 Jan 2013 14:50:38 +0000 (-0500) Subject: fix incorrect quotas in check_afs_quotas X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d4e41896432ed8eae2180d419fdb9bd1e236e186;p=packages%2Fa%2Fafs-monitor.git fix incorrect quotas in check_afs_quotas 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. --- diff --git a/check_afs_quotas b/check_afs_quotas index 267d4b7..943455d 100755 --- a/check_afs_quotas +++ b/check_afs_quotas @@ -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;