Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nfsclient/nfs_clvfsops.c
Show First 20 Lines • Show All 1,588 Lines • ▼ Show 20 Lines | #endif | ||||
if (nmp->nm_tprintf_delay < 0) | if (nmp->nm_tprintf_delay < 0) | ||||
nmp->nm_tprintf_delay = 0; | nmp->nm_tprintf_delay = 0; | ||||
nmp->nm_tprintf_initial_delay = nfs_tprintf_initial_delay; | nmp->nm_tprintf_initial_delay = nfs_tprintf_initial_delay; | ||||
if (nmp->nm_tprintf_initial_delay < 0) | if (nmp->nm_tprintf_initial_delay < 0) | ||||
nmp->nm_tprintf_initial_delay = 0; | nmp->nm_tprintf_initial_delay = 0; | ||||
nmp->nm_fhsize = argp->fhsize; | nmp->nm_fhsize = argp->fhsize; | ||||
if (nmp->nm_fhsize > 0) | if (nmp->nm_fhsize > 0) | ||||
bcopy((caddr_t)argp->fh, (caddr_t)nmp->nm_fh, argp->fhsize); | bcopy((caddr_t)argp->fh, (caddr_t)nmp->nm_fh, argp->fhsize); | ||||
bcopy(hst, mp->mnt_stat.f_mntfromname, MNAMELEN); | strlcpy(mp->mnt_stat.f_mntfromname, hst, MNAMELEN); | ||||
nmp->nm_nam = nam; | nmp->nm_nam = nam; | ||||
/* Set up the sockets and per-host congestion */ | /* Set up the sockets and per-host congestion */ | ||||
nmp->nm_sotype = argp->sotype; | nmp->nm_sotype = argp->sotype; | ||||
nmp->nm_soproto = argp->proto; | nmp->nm_soproto = argp->proto; | ||||
nmp->nm_sockreq.nr_prog = NFS_PROG; | nmp->nm_sockreq.nr_prog = NFS_PROG; | ||||
if ((argp->flags & NFSMNT_NFSV4)) | if ((argp->flags & NFSMNT_NFSV4)) | ||||
nmp->nm_sockreq.nr_vers = NFS_VER4; | nmp->nm_sockreq.nr_vers = NFS_VER4; | ||||
else if ((argp->flags & NFSMNT_NFSV3)) | else if ((argp->flags & NFSMNT_NFSV3)) | ||||
▲ Show 20 Lines • Show All 551 Lines • Show Last 20 Lines |