Added a Module Config option to sort user lists by the percentage of soft quota used.
---- Changes since 1.350 ----
Added a Module Config option to show both hard and/or soft quota percentages.
+---- Changes since 1.380 ----
+Quotas are considered active for a filesystem if the usrquota or grpquota options are on in /etc/mtab, even if missing from /etc/fstab.
# 3 = User and group quotas
sub quota_can
{
-return ($_[1]->[3] =~ /usrquota/ ? 1 : 0) +
- ($_[1]->[3] =~ /grpquota/ ? 2 : 0);
+return ($_[1]->[3] =~ /usrquota/ ||
+ $_[0]->[3] =~ /usrquota/ ? 1 : 0) +
+ ($_[1]->[3] =~ /grpquota/ ||
+ $_[0]->[3] =~ /usrquota/ ? 2 : 0);
}
# quota_now(&mnttab, &fstab)