diff options
author | das <das@FreeBSD.org> | 2003-08-05 06:47:49 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2003-08-05 06:47:49 +0000 |
commit | 63846048bd4bbbddcd4f900202761f9fab79a9fa (patch) | |
tree | b7f7ba1efb677d022b6f4adea1b3b0da9abbaff3 /usr.bin/quota/quota.c | |
parent | aa4433feb65c74a058d18aa27115fbfde6847fa0 (diff) | |
download | FreeBSD-src-63846048bd4bbbddcd4f900202761f9fab79a9fa.zip FreeBSD-src-63846048bd4bbbddcd4f900202761f9fab79a9fa.tar.gz |
Don't overflow the block quota calculations for NFS mounts.
PR: 47607
Submitted by: Eric van Gyzen <vangyzen@stat.duke.edu>
Diffstat (limited to 'usr.bin/quota/quota.c')
-rw-r--r-- | usr.bin/quota/quota.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c index a2b89ec..21430e9 100644 --- a/usr.bin/quota/quota.c +++ b/usr.bin/quota/quota.c @@ -583,13 +583,13 @@ getnfsquota(struct statfs *fst, struct quotause *qup, long id, int quotatype) /* blocks*/ dqp->dqb_bhardlimit = gq_rslt.getquota_rslt_u.gqr_rquota.rq_bhardlimit * - gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE; + (gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE); dqp->dqb_bsoftlimit = gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsoftlimit * - gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE; + (gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE); dqp->dqb_curblocks = gq_rslt.getquota_rslt_u.gqr_rquota.rq_curblocks * - gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE; + (gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize / DEV_BSIZE); /* inodes */ dqp->dqb_ihardlimit = gq_rslt.getquota_rslt_u.gqr_rquota.rq_fhardlimit; |