summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2015-12-01 02:30:41 +0000
committerrmacklem <rmacklem@FreeBSD.org>2015-12-01 02:30:41 +0000
commitf72e7ffb5712fdd5cb7a3e9462df25b7f9863c53 (patch)
treece737d375df39c6ef3617b5a6f73069fe671cf1b /lib
parentee4f71729301a1493ad1cdae15cf8e8ce7d84a4f (diff)
downloadFreeBSD-src-f72e7ffb5712fdd5cb7a3e9462df25b7f9863c53.zip
FreeBSD-src-f72e7ffb5712fdd5cb7a3e9462df25b7f9863c53.tar.gz
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.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud