Date: Wed, 3 May 1995 21:30:01 -0700 From: ted@wiz.plymouth.edu To: freebsd-bugs Subject: bin/381: Quota commands (repquota/edquota/quota) not giving correct info. Message-ID: <199505040430.VAA18479@freefall.cdrom.com> In-Reply-To: Your message of Thu, 4 May 1995 00:25:37 GMT <199505040025.AAA04099@localhost.plymouth.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
>Number: 381 >Category: bin >Synopsis: Quota commands (repquota/edquota/quota) not giving correct info. >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 3 21:30:01 1995 >Originator: Ted Wisniewski >Organization: Plymouth State College >Release: FreeBSD 2.1.0-Development i386 >Environment: >Description: edquota, repquota & quota not reporting blocks of quota correctly, always reporting incorrect information including an (NULL) under the Warning info part of 'quota'. >How-To-Repeat: Enable quota's give a user a quota and do repquota/quota/edquota the problem is clear. >Fix: Enclosed are the diffs to correct each: ******* for usr.sbin/edquota/edquota.c 385,387c385,387 < qup->dqblk.dqb_curblocks / 2, < qup->dqblk.dqb_bsoftlimit / 2, < qup->dqblk.dqb_bhardlimit / 2); --- > dbtob(qup->dqblk.dqb_curblocks) / 1024, > dbtob(qup->dqblk.dqb_bsoftlimit) / 1024, > dbtob(qup->dqblk.dqb_bhardlimit) / 1024); 438,440c438,440 < dqblk.dqb_curblocks = (dqblk.dqb_curblocks * 2); < dqblk.dqb_bsoftlimit = (dqblk.dqb_bsoftlimit * 2); < dqblk.dqb_bhardlimit = (dqblk.dqb_bhardlimit * 2); --- > dqblk.dqb_curblocks = btodb(dqblk.dqb_curblocks * 1024); > dqblk.dqb_bsoftlimit = btodb(dqblk.dqb_bsoftlimit * 1024); > dqblk.dqb_bhardlimit = btodb(dqblk.dqb_bhardlimit * 1024); ******* For usr.bin/quota/quota.c 320c320 < , qup->dqblk.dqb_curblocks / 2 --- > , dbtob(qup->dqblk.dqb_curblocks) / 1024 322,323c322,323 < , qup->dqblk.dqb_bsoftlimit / 2 < , qup->dqblk.dqb_bhardlimit / 2 --- > , dbtob(qup->dqblk.dqb_bsoftlimit) / 1024 > , dbtob(qup->dqblk.dqb_bhardlimit) / 1024 ******* for usr.sbin/repquota/repquota.c 223,225c223,225 < fup->fu_dqblk.dqb_curblocks / 2, < fup->fu_dqblk.dqb_bsoftlimit / 2, < fup->fu_dqblk.dqb_bhardlimit / 2, --- > dbtob(fup->fu_dqblk.dqb_curblocks) / 1024, > dbtob(fup->fu_dqblk.dqb_bsoftlimit) / 1024, > dbtob(fup->fu_dqblk.dqb_bhardlimit) / 1024, >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505040430.VAA18479>