summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/_spinlock_stub.c
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2010-04-25 00:05:51 +0000
committermckusick <mckusick@FreeBSD.org>2010-04-25 00:05:51 +0000
commitf40c3a9dc50f808e512fcc9f9f738717013b483b (patch)
tree6bc6ff802ba7031f5951b92a7d6f6f11bed1ca04 /lib/libc/gen/_spinlock_stub.c
parentf63b97928b6dff04ed1652eee2d75a7577479818 (diff)
downloadFreeBSD-src-f40c3a9dc50f808e512fcc9f9f738717013b483b.zip
FreeBSD-src-f40c3a9dc50f808e512fcc9f9f738717013b483b.tar.gz
The NFS quota-reporting RPC uses 32-bit sized fields. We approximate
64-bit quota sizes by scaling down the sizes by the minimum amount necessary to fit in a 32-bit field and then upscale the filesystem block size to compensate. For example, if the hard block limit is 0x300000008 then we set the hard block limit to 0xA0000002 and claim that the blocksize is 4 * DEV_BSIZE. This will lose the minimal amount of information thus delivering nearly correct answers.
Diffstat (limited to 'lib/libc/gen/_spinlock_stub.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud