FreeBSD Bugzilla – Attachment 185644 Details for
Bug 221697
/usr/bin/quota incorrectly calculates NFS quota values.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to correct quota.c NFS calculation.
quota.patch (text/plain), 1.05 KB, created by
Stephen Usher
on 2017-08-21 16:41:46 UTC
(
hide
)
Description:
Patch to correct quota.c NFS calculation.
Filename:
MIME Type:
Creator:
Stephen Usher
Created:
2017-08-21 16:41:46 UTC
Size:
1.05 KB
patch
obsolete
>--- quota.c.orig 2017-08-21 17:29:51.322721000 +0100 >+++ quota.c 2017-08-21 17:29:01.921212000 +0100 >@@ -619,14 +619,14 @@ > gettimeofday(&tv, NULL); > /* 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_bhardlimit / >+ (DEV_BSIZE / gq_rslt.getquota_rslt_u.gqr_rquota.rq_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_bsoftlimit / >+ (DEV_BSIZE / gq_rslt.getquota_rslt_u.gqr_rquota.rq_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_curblocks / >+ (DEV_BSIZE / gq_rslt.getquota_rslt_u.gqr_rquota.rq_bsize); > /* inodes */ > dqp->dqb_ihardlimit = > gq_rslt.getquota_rslt_u.gqr_rquota.rq_fhardlimit;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221697
: 185644 |
185645