SCCS-vsn: usr.bin/quota/quota.c 5.3
SCCS-vsn: usr.sbin/repquota/repquota.c 5.3
SCCS-vsn: usr.sbin/edquota/edquota.c 5.3
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)quota.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)quota.c 5.3 (Berkeley) %G%";
heading(uid, name);
printf("%10s%8d%c%7d%8d%8s%8d%c%7d%8d%8s\n"
, fs->fs_file
heading(uid, name);
printf("%10s%8d%c%7d%8d%8s%8d%c%7d%8d%8s\n"
, fs->fs_file
- , (dqblk.dqb_curblocks / btodb(1024))
+ , dbtob(dqblk.dqb_curblocks) / 1024
, (msgb == (char *)0) ? ' ' : '*'
, (msgb == (char *)0) ? ' ' : '*'
- , (dqblk.dqb_bsoftlimit / btodb(1024))
- , (dqblk.dqb_bhardlimit / btodb(1024))
+ , dbtob(dqblk.dqb_bsoftlimit) / 1024
+ , dbtob(dqblk.dqb_bhardlimit) / 1024
, dwarn
, dqblk.dqb_curinodes
, (msgi == (char *)0) ? ' ' : '*'
, dwarn
, dqblk.dqb_curinodes
, (msgi == (char *)0) ? ' ' : '*'
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)edquota.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)edquota.c 5.3 (Berkeley) %G%";
fprintf(fd,
"fs %s blocks (soft = %d, hard = %d) inodes (soft = %d, hard = %d)\n"
, dqf[i]
fprintf(fd,
"fs %s blocks (soft = %d, hard = %d) inodes (soft = %d, hard = %d)\n"
, dqf[i]
- , dq[i].dq_bsoftlimit / btodb(1024)
- , dq[i].dq_bhardlimit / btodb(1024)
+ , dbtob(dq[i].dq_bsoftlimit) / 1024
+ , dbtob(dq[i].dq_bhardlimit) / 1024
, dq[i].dq_isoftlimit
, dq[i].dq_ihardlimit
);
, dq[i].dq_isoftlimit
, dq[i].dq_ihardlimit
);
fprintf(stderr, "%s: bad format\n", cp);
continue;
}
fprintf(stderr, "%s: bad format\n", cp);
continue;
}
- dq[i].dq_bsoftlimit *= btodb(1024);
- dq[i].dq_bhardlimit *= btodb(1024);
+ dq[i].dq_bsoftlimit = btodb(dq[i].dq_bsoftlimit * 1024);
+ dq[i].dq_bhardlimit = btodb(dq[i].dq_bhardlimit * 1024);
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)repquota.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)repquota.c 5.3 (Berkeley) %G%";
fup->fu_dqblk.dqb_isoftlimit &&
fup->fu_dqblk.dqb_curinodes >=
fup->fu_dqblk.dqb_isoftlimit ? '+' : '-',
fup->fu_dqblk.dqb_isoftlimit &&
fup->fu_dqblk.dqb_curinodes >=
fup->fu_dqblk.dqb_isoftlimit ? '+' : '-',
- fup->fu_dqblk.dqb_curblocks / btodb(1024),
- fup->fu_dqblk.dqb_bsoftlimit / btodb(1024),
- fup->fu_dqblk.dqb_bhardlimit / btodb(1024),
+ dbtob(fup->fu_dqblk.dqb_curblocks) / 1024,
+ dbtob(fup->fu_dqblk.dqb_bsoftlimit) / 1024,
+ dbtob(fup->fu_dqblk.dqb_bhardlimit) / 1024,
fup->fu_dqblk.dqb_bwarn,
fup->fu_dqblk.dqb_curinodes,
fup->fu_dqblk.dqb_isoftlimit,
fup->fu_dqblk.dqb_bwarn,
fup->fu_dqblk.dqb_curinodes,
fup->fu_dqblk.dqb_isoftlimit,