summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vnconfig
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-09-17 05:17:59 +0000
committerdillon <dillon@FreeBSD.org>1999-09-17 05:17:59 +0000
commit124cdf53462edef3fd859a8d3c9d6bf6be840e98 (patch)
treea918b30bd92a3bd11cf65a89d2beb954d8720724 /usr.sbin/vnconfig
parent7a0052d268ee8736620e4c44ba2fd3149196391d (diff)
downloadFreeBSD-src-124cdf53462edef3fd859a8d3c9d6bf6be840e98.zip
FreeBSD-src-124cdf53462edef3fd859a8d3c9d6bf6be840e98.tar.gz
The vnode pager (used when you do file-backed mmaps) must use the
underlying physical sector size when aligning I/O transfer sizes. It cannot assume 512 bytes. We assume the underlying sector size is a power of 2. If it isn't, mmap() will break badly anyway (in the same way mmap broke with NFS when NFS tried to cache piecemeal write ranges in buffers, before we enforced read-buffer-before-write-piecemeal for NFS). Reviewed by: Alan Cox <alc@cs.rice.edu>, David Greenman <dg@root.com>
Diffstat (limited to 'usr.sbin/vnconfig')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud