]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC: r290970
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 1 Dec 2015 02:35:12 +0000 (02:35 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 1 Dec 2015 02:35:12 +0000 (02:35 +0000)
commit270cb1ec6c907108895e57101c79bbbc22d96a5b
tree3409220e3559d14a23b0c2c36224b4fbad475302
parentabbaad5c9833c69dd459b3ac374399ed37bc223f
MFC: r290970
mnt_stat.f_iosize (which is used to set bo_bsize) must be set to
the largest size of buffer cache block or the mapping of the buffer
is bogus. When a mount with rsize=4096,wsize=4096 was done, f_iosize
would be set to 4096. This resulted in corrupted directory data, since
the buffer cache block size for directories is NFS_DIRBLKSIZ (8192).
This patch fixes the code so that it always sets f_iosize to at least
NFS_DIRBLKSIZ.

git-svn-id: svn://svn.freebsd.org/base/stable/9@291552 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfsclient/nfs_clvfsops.c