# Make sure the hard limits reported are what was set.
# It is entirely too clever...
# It exploits the fact that we've set the soft and hard limits to
-# the same value, and as a result the value in the fourth field in
+# the same value, and as a result the value in the second field in
# both the "df" and the "report" output. For "report", the line we're
# interested in contains our project name in the first field. For "df"
# it contains our project directory in the last field.
# But if the device name is too long, the "df" output is broke into two
-# lines, the fourth field is not correct, so take $(NF-2) of "df"
+# lines, the second field is not correct, so take $(NF-4) of "df"
_filter_quota_rpt() {
awk '
BEGIN {
bsize = byte_size($4);
} else if ($NF ~ proj_dir) {
# this is the "df" output
- bsize = byte_size($(NF-2));
+ bsize = byte_size($NF-4));
} else {
next;
}