freebsd-src/sys/fs/nfsclient
Rick Macklem f315383406 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.

Tested by:	krichy@cflinux.hu
PR:		177971
MFC after:	2 weeks
2015-11-17 01:44:26 +00:00
..
nfs.h Fix kernel builds with "options NFS_DEBUG" that 2014-12-23 14:24:36 +00:00
nfs_clbio.c o Un-inline vm_pager_get_pages(), vm_pager_get_pages_async(). 2015-06-17 22:44:27 +00:00
nfs_clcomsubs.c Modify the NFSv4 client create/mkdir RPC so that it acquires 2014-04-20 22:19:00 +00:00
nfs_clkdtrace.c Fix build. 2013-11-26 10:34:34 +00:00
nfs_clkrpc.c Crashes have been observed for NFSv4.1 mounts when the system 2013-09-04 22:47:56 +00:00
nfs_clnfsiod.c When an NFS unmount occurs, once vflush() writes the last dirty 2013-04-18 23:20:16 +00:00
nfs_clnode.c Remove the old NFS client and server from head, 2014-12-23 00:47:46 +00:00
nfs_clport.c nfsclient: Protest loudly when GETATTR responses are invalid 2015-08-05 22:27:30 +00:00
nfs_clrpcops.c Alex Burlyga reported a POLA violation for the new NFS client as 2015-07-03 01:15:21 +00:00
nfs_clstate.c Merge the NFSv4.1 server code in projects/nfsv4.1-server over 2014-07-01 20:47:16 +00:00
nfs_clsubs.c - For kernel compiled only with KDTRACE_HOOKS and not any lock debugging 2013-11-25 07:38:45 +00:00
nfs_clvfsops.c mnt_stat.f_iosize (which is used to set bo_bsize) must be set to 2015-11-17 01:44:26 +00:00
nfs_clvnops.c The NFS client wasn't handling getdirentries(2) requests for sizes 2015-05-21 23:14:18 +00:00
nfs_kdtrace.h - Nuke a second copy of nfscl_attrcache extern declarations from under 2013-11-26 22:41:40 +00:00
nfsmount.h Move the NFSv4.1 client patches over from projects/nfsv4.1-client 2012-12-08 22:52:39 +00:00
nfsnode.h For software builds, the NFS client does many small 2013-12-07 23:05:59 +00:00
nlminfo.h