Created attachment 192491 [details]
Quota calculation for NFS quotas over 2Tbyte fails due to overflow.
It also fails if the remote rpc.rquotad sends rq_bsize less than DEV_BSIZE, in this case underflow.
See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221697
A commit references this bug:
Date: Mon Apr 16 19:33:04 UTC 2018
New revision: 332632
quota(1): Fix calculation overflow and underflow
For very large quotas, do the multiplication as a 64 bit value to avoid
For very small block sizes (smaller than DEV_BSIZE), multiple first
before dividing by block size to avoid underflow.
Submitted by: Per Andersson <pa AT chalmers.se>
Sponsored by: Dell EMC Isilon
*** Bug 221697 has been marked as a duplicate of this bug. ***