]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Preset the maximum file size before we get to nfs_fsinfo(), based on
authorpeter <peter@FreeBSD.org>
Mon, 1 Jun 1998 10:01:31 +0000 (10:01 +0000)
committerpeter <peter@FreeBSD.org>
Mon, 1 Jun 1998 10:01:31 +0000 (10:01 +0000)
commitaca365c43ea635f7c64e0fddd6234658ee37755f
treef7cc96146b5de248a1c0621d89af4b72ec6200f4
parentdaec9421536dea043301b78b1811faf425e5595c
Preset the maximum file size before we get to nfs_fsinfo(), based on
an (over?) conservative assumption about what the client can store in it's
buffer cache using a signed 32-bit 512-byte block number index.  Otherwise
it's possible for some file access when maxfilesize = 0 (eg: /usr is nfs
mounted and doing an execve())
Pointed out by:  bde

XXX It might make sense to do a preemptive nfs_fsinfo() call at mount time.
sys/nfs/nfs_vfsops.c
sys/nfsclient/nfs_vfsops.c