aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mdioctl.h
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-09-17 05:17:59 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-09-17 05:17:59 +0000
commit24579ca1d7a4ffaa220af5bd7593aa759e1d9c38 (patch)
tree04e96ec9a43de92c3bcf105738e09ef09accc346 /sys/sys/mdioctl.h
parent4dcc5c2d1d86e7fc50d32458979049a3def253e4 (diff)
downloadsrc-24579ca1d7a4ffaa220af5bd7593aa759e1d9c38.tar.gz
src-24579ca1d7a4ffaa220af5bd7593aa759e1d9c38.zip
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>
Notes
Notes: svn path=/head/; revision=51340
Diffstat (limited to 'sys/sys/mdioctl.h')
0 files changed, 0 insertions, 0 deletions