diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-01 04:31:12 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-01 04:31:12 +0000 |
commit | 6afc2b8cc3a9965d9562b77d0064c2d279278022 (patch) | |
tree | dc55bf88834c3750b7fc7a094b53aff71a8249de /usr.sbin | |
parent | 993c30216a698d38dc60ba5c3992a160f667aafb (diff) |
these commands said "blocks" when they meant "KBytes" (they even calculated
it so). pointed out by janc@cyberspace.org, pr 3956
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/edquota/edquota.c | 6 | ||||
-rw-r--r-- | usr.sbin/repquota/repquota.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c index 17f0ab7e668..0b2ee5a61e5 100644 --- a/usr.sbin/edquota/edquota.c +++ b/usr.sbin/edquota/edquota.c @@ -38,7 +38,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)edquota.c 8.1 (Berkeley) 6/6/93";*/ -static char *rcsid = "$Id: edquota.c,v 1.41 2004/03/09 18:26:42 tedu Exp $"; +static char *rcsid = "$Id: edquota.c,v 1.42 2005/04/01 04:31:11 deraadt Exp $"; #endif /* not lint */ /* @@ -420,7 +420,7 @@ writeprivs(struct quotause *quplist, int outfd, char *name, int quotatype) (void)fprintf(fd, "Quotas for %s %s:\n", qfextension[quotatype], name); for (qup = quplist; qup; qup = qup->next) { (void)fprintf(fd, "%s: %s %d, limits (soft = %d, hard = %d)\n", - qup->fsname, "blocks in use:", + qup->fsname, "KBytes in use:", (int)(dbtob((u_quad_t)qup->dqblk.dqb_curblocks) / 1024), (int)(dbtob((u_quad_t)qup->dqblk.dqb_bsoftlimit) / 1024), (int)(dbtob((u_quad_t)qup->dqblk.dqb_bhardlimit) / 1024)); @@ -466,7 +466,7 @@ readprivs(struct quotause *quplist, int infd) return(0); } cnt = sscanf(cp, - " blocks in use: %d, limits (soft = %d, hard = %d)", + " KBytes in use: %d, limits (soft = %d, hard = %d)", &dqblk.dqb_curblocks, &dqblk.dqb_bsoftlimit, &dqblk.dqb_bhardlimit); if (cnt != 3) { diff --git a/usr.sbin/repquota/repquota.c b/usr.sbin/repquota/repquota.c index 6eaa914a754..a50f16df954 100644 --- a/usr.sbin/repquota/repquota.c +++ b/usr.sbin/repquota/repquota.c @@ -38,7 +38,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)repquota.c 8.1 (Berkeley) 6/6/93";*/ -static char *rcsid = "$Id: repquota.c,v 1.25 2003/06/26 19:47:10 deraadt Exp $"; +static char *rcsid = "$Id: repquota.c,v 1.26 2005/04/01 04:31:11 deraadt Exp $"; #endif /* not lint */ /* @@ -208,7 +208,7 @@ repquota(struct fstab *fs, int type, char *qfpathname) fup->fu_dqblk = dqbuf; } fclose(qf); - printf(" Block limits File limits\n"); + printf(" KByte limits File limits\n"); printf("User used soft hard grace used soft hard grace\n"); for (id = 0; id <= highid[type]; id++) { fup = lookup(id, type); |