From d4e41896432ed8eae2180d419fdb9bd1e236e186 Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Wed, 9 Jan 2013 09:50:38 -0500 Subject: [PATCH] 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. --- check_afs_quotas | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5