Don't overflow the block quota calculations for NFS mounts.
PR: 47607 Submitted by: Eric van Gyzen <vangyzen@stat.duke.edu>
This commit is contained in:
parent
f4a3d9da6e
commit
923e62f953
@ -583,13 +583,13 @@ getnfsquota(struct statfs *fst, struct quotause *qup, long id, int quotatype)
|
|||||||
/* blocks*/
|
/* blocks*/
|
||||||
dqp->dqb_bhardlimit =
|
dqp->dqb_bhardlimit =
|
||||||
gq_rslt.getquota_rslt_u.gqr_rquota.rq_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 =
|
dqp->dqb_bsoftlimit =
|
||||||
gq_rslt.getquota_rslt_u.gqr_rquota.rq_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 =
|
dqp->dqb_curblocks =
|
||||||
gq_rslt.getquota_rslt_u.gqr_rquota.rq_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 */
|
/* inodes */
|
||||||
dqp->dqb_ihardlimit =
|
dqp->dqb_ihardlimit =
|
||||||
gq_rslt.getquota_rslt_u.gqr_rquota.rq_fhardlimit;
|
gq_rslt.getquota_rslt_u.gqr_rquota.rq_fhardlimit;
|
||||||
|
Loading…
Reference in New Issue
Block a user