diff options
author | jkar8572 <jkar8572> | 2002-02-27 21:23:55 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2002-02-27 21:23:55 +0000 |
commit | 9f04804a8da0547a6d6d18bbd83501a5db164e1a (patch) | |
tree | a79272d513b79f632cb7d6a7244675873b05095d | |
parent | 5d3392cbdbb422993125b5aa8a8de402fcbc4b04 (diff) |
Fixed minor bug in grace time printing (Jan Kara)
Fixed quotaon behaviour with "too new" kernels (Jan Kara)
-rw-r--r-- | Changelog | 4 | ||||
-rw-r--r-- | quotaon.c | 6 | ||||
-rw-r--r-- | repquota.c | 4 |
3 files changed, 10 insertions, 4 deletions
@@ -6,7 +6,9 @@ Changes in quota-tools from 3.03 to 3.04 * added -q <quotatab> and -c <configfile> options to warnquota(8) (Jan Kara) * added some notes about quotatab to warnquota manpage (Jan Kara) * fixed bug in options parsing of warnquota(8) (Michael Meskes) -* Ignore automount mountpoints (Philippe Troin) +* ignore automount mountpoints (Philippe Troin) +* fixed minor bug in printing grace times (Jan Kara) +* fixed quotaon(8) behaviour when it sees newer kernel then it's able to handle (Jan Kara) Changes in quota-tools from 3.02 to 3.03 @@ -34,7 +34,7 @@ #ident "$Copyright: (c) 1980, 1990 Regents of the University of California $" #ident "$Copyright: All rights reserved. $" -#ident "$Id: quotaon.c,v 1.12 2002/02/22 14:58:32 jkar8572 Exp $" +#ident "$Id: quotaon.c,v 1.13 2002/02/27 21:23:55 jkar8572 Exp $" /* * Turn quota on/off for a filesystem. @@ -173,6 +173,10 @@ int main(int argc, char **argv) } kqf = kern_quota_format(); + if (kqf == QF_TOONEW) { + errstr(_("WARNING - Kernel quota newer than supported! Quota need not work properly.\n")); + kqf = 1 << QF_VFSV0; + } if (init_mounts_scan(aflag ? 0 : argc, argv) < 0) return 1; @@ -133,7 +133,7 @@ static void print(struct dquot *dquot, char *name) sstrncpy(pname, name, sizeof(pname)); if (flags & FL_TRUNCNAMES) pname[PRINTNAMELEN] = 0; - if (entry->dqb_bsoftlimit && toqb(entry->dqb_curspace) >= entry->dqb_bsoftlimit) + if (entry->dqb_bsoftlimit && toqb(entry->dqb_curspace) > entry->dqb_bsoftlimit) difftime2str(entry->dqb_btime, time); else time[0] = 0; @@ -144,7 +144,7 @@ static void print(struct dquot *dquot, char *name) overlim(qb2kb(toqb(entry->dqb_curspace)), qb2kb(entry->dqb_bsoftlimit), qb2kb(entry->dqb_bhardlimit)), overlim(entry->dqb_curinodes, entry->dqb_isoftlimit, entry->dqb_ihardlimit), numbuf[0], numbuf[1], numbuf[2], time); - if (entry->dqb_isoftlimit && entry->dqb_curinodes >= entry->dqb_isoftlimit) + if (entry->dqb_isoftlimit && entry->dqb_curinodes > entry->dqb_isoftlimit) difftime2str(entry->dqb_itime, time); else time[0] = 0; |