NetBSD/sys/nfs
mlelstv 3679de0323 NFSv2 is limited to use only 32bit in metadata. Prevent that larger
metadata values are simply truncated.

-> clamp filesystem block counts to signed 32bit.
-> clamp file sizes to signed 32bit (*)

Some NFSv2 clients also have problems to handle buffer sizes larger
than (signed) 16bit.
-> clamp buffer sizes to signed 16bit for better compatibility.

(*) This can lead to erroneous behaviour for files larger than 2GB
that NFSv2 cannot handle but it is still better than before.
An alternative would be to (partially) reject operations on files
larger than 2GB, but which causes other problems.
2020-04-04 07:07:20 +00:00
..
files.nfs Default NFS mounts to using TCP transport instead of UDP. 2018-05-17 02:34:31 +00:00
krpc_subr.c
krpc.h
Makefile
nfs_bio.c Process concurrent page faults on individual uvm_objects / vm_amaps in 2020-03-22 18:32:41 +00:00
nfs_boot.c Default NFS mounts to using TCP transport instead of UDP. 2018-05-17 02:34:31 +00:00
nfs_bootdhcp.c
nfs_bootparam.c Appease GCC and initialize arps_ip 2019-06-29 17:42:36 +00:00
nfs_bootstatic.c
nfs_clntsocket.c
nfs_clntsubs.c UVM locking changes, proposed on tech-kern: 2020-02-23 15:46:38 +00:00
nfs_export.c VFS_VGET(), VFS_ROOT(), VFS_FHTOVP(): give them a "int lktype" argument, to 2020-01-17 20:08:06 +00:00
nfs_iod.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
nfs_kq.c
nfs_node.c v_interlock -> vmobjlock 2020-02-24 20:11:45 +00:00
nfs_serv.c NFSv2 is limited to use only 32bit in metadata. Prevent that larger 2020-04-04 07:07:20 +00:00
nfs_socket.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
nfs_srvcache.c
nfs_srvsocket.c
nfs_srvsubs.c VFS_VGET(), VFS_ROOT(), VFS_FHTOVP(): give them a "int lktype" argument, to 2020-01-17 20:08:06 +00:00
nfs_subs.c NFSv2 is limited to use only 32bit in metadata. Prevent that larger 2020-04-04 07:07:20 +00:00
nfs_syscalls.c - Hide the details of SPCF_SHOULDYIELD and related behind a couple of small 2020-03-14 18:08:38 +00:00
nfs_var.h
nfs_vfsops.c Use the module subsystem's ability to process SYSCTL_SETUP() entries to 2020-03-16 21:20:09 +00:00
nfs_vnops.c UVM locking changes, proposed on tech-kern: 2020-02-23 15:46:38 +00:00
nfs.h - Cleanup for dynamic sysctl: 2018-08-22 01:05:21 +00:00
nfsdiskless.h
nfsm_subs.h NFSv2 is limited to use only 32bit in metadata. Prevent that larger 2020-04-04 07:07:20 +00:00
nfsmount.h
nfsnode.h
nfsproto.h
nfsrtt.h
nfsrvcache.h
rpcv2.h
xdr_subs.h