FreeBSD/sys/fs/nfs/nfs_commonport.c
/*
 * Get the file system info for the server. For now, just assume FFS.
 */
Get the file system info for the server. For now, just assume FFS.
Get the file system info for the server . For now just assume FFS .
void
nfsvno_getfs(struct nfsfsinfo *sip, int isdgram)
{
	int pref;
	if (isdgram)
		pref = NFS_MAXDGRAMDATA;
	else
		pref = NFS_SRVMAXIO;
	sip->fs_rtmax = NFS_SRVMAXIO;
	sip->fs_rtpref = pref;
	sip->fs_rtmult = NFS_FABLKSIZE;
	sip->fs_wtmax = NFS_SRVMAXIO;
	sip->fs_wtpref = pref;
	sip->fs_wtmult = NFS_FABLKSIZE;
	sip->fs_dtpref = pref;
	sip->fs_maxfilesize = 0xffffffffffffffffull;
	sip->fs_timedelta.tv_sec = 0;
	sip->fs_timedelta.tv_nsec = 1;
	sip->fs_properties = (NFSV3FSINFO_LINK |
	    NFSV3FSINFO_SYMLINK | NFSV3FSINFO_HOMOGENEOUS |
	    NFSV3FSINFO_CANSETTIME);
}
void nfsvno_getfs ( struct nfsfsinfo * sip , int isdgram ) { int pref ; if ( isdgram ) pref = NFS_MAXDGRAMDATA ; else pref = NFS_SRVMAXIO ; sip -> fs_rtmax = NFS_SRVMAXIO ; sip -> fs_rtpref = pref ; sip -> fs_rtmult = NFS_FABLKSIZE ; sip -> fs_wtmax = NFS_SRVMAXIO ; sip -> fs_wtpref = pref ; sip -> fs_wtmult = NFS_FABLKSIZE ; sip -> fs_dtpref = pref ; sip -> fs_maxfilesize = 0xffffffffffffffffull ; sip -> fs_timedelta . tv_sec = 0 ; sip -> fs_timedelta . tv_nsec = 1 ; sip -> fs_properties = ( NFSV3FSINFO_LINK | NFSV3FSINFO_SYMLINK | NFSV3FSINFO_HOMOGENEOUS | NFSV3FSINFO_CANSETTIME ) ; }
Get the file system info for the server.
Get the file system info for the server .
/*
	 * XXX
	 * There should be file system VFS OP(s) to get this information.
	 * For now, assume ufs.
	 */