The units shown in /usr/sbin/edquota ("blocks in use", "soft limit", "hard limit") are called "blocks" but really are kbytes, which is quite confusing. How-To-Repeat: configure a filesystem with quotas, run "edquota <user>".
State Changed From-To: open->patched Committed to -current. Thanks!
Responsible Changed From-To: freebsd-bugs->schweikh My MFC reminder.
On Fri, Aug 23, 2002 at 03:40:55PM +0200, Lukas Ertl wrote: > > >Number: 41936 > >Synopsis: [PATCH] edquota units are shown as blocks, but are kbytes > >Class: sw-bug > The units shown in /usr/sbin/edquota ("blocks in use", "soft limit", > "hard limit") are called "blocks" but really are kbytes, which is quite > confusing. > --- edquota.c Fri Aug 23 15:24:45 2002 > +++ edquota.c.new Fri Aug 23 15:28:20 2002 > @@ -423,7 +423,7 @@ > fprintf(fd, "Quotas for %s %s:\n", qfextension[quotatype], name); > for (qup = quplist; qup; qup = qup->next) { > fprintf(fd, "%s: %s %lu, limits (soft = %lu, hard = %lu)\n", > - qup->fsname, "blocks in use:", > + qup->fsname, "kbytes in use:", > (unsigned long)(dbtob(qup->dqblk.dqb_curblocks) / 1024), > (unsigned long)(dbtob(qup->dqblk.dqb_bsoftlimit) / 1024), > (unsigned long)(dbtob(qup->dqblk.dqb_bhardlimit) / 1024)); > @@ -474,7 +474,7 @@ > return (0); > } > cnt = sscanf(cp, > - " blocks in use: %lu, limits (soft = %lu, hard = %lu)", > + " kbytes in use: %lu, limits (soft = %lu, hard = %lu)", > &curblocks, &bsoftlimit, &bhardlimit); > if (cnt != 3) { > warnx("%s:%s: bad format", fsp, cp); > --- edquota.diff ends here --- Maybe it should be better not to divide by 1024, but use BLOCKSIZE environment variable? Sinceherely yours, Artem 'Zazoobr' Ignatjev.
State Changed From-To: patched->closed Committed to -stable. No, we don't want to divide by blocksize as it is not clear to the user how big a block is (and the block size may differ across file systems).