Home
last modified time | relevance | path

Searched refs:timeo (Results 1 – 8 of 8) sorted by relevance

/xnu-8020.101.4/bsd/nfs/
H A Dnfs_lock.c427 int timeo, wentdown = 0; in nfs3_lockd_request() local
460 timeo = 4; in nfs3_lockd_request()
494 endtime = now.tv_sec + timeo; in nfs3_lockd_request()
611 timeo = 2; in nfs3_lockd_request()
653 timeo = 2; in nfs3_lockd_request()
662 timeo *= 2; in nfs3_lockd_request()
664 if (timeo > 30) { in nfs3_lockd_request()
665 timeo = 30; in nfs3_lockd_request()
689 timeo = 30; in nfs3_lockd_request()
H A Dnfs_socket.c707 struct timeval timeo; in nfs_socket_options() local
710 timeo.tv_usec = 0; in nfs_socket_options()
711 timeo.tv_sec = (NMFLAG(nmp, SOFT) || nfs_can_squish(nmp)) ? 5 : 60; in nfs_socket_options()
712 sock_setsockopt(nso->nso_so, SOL_SOCKET, SO_RCVTIMEO, &timeo, sizeof(timeo)); in nfs_socket_options()
713 sock_setsockopt(nso->nso_so, SOL_SOCKET, SO_SNDTIMEO, &timeo, sizeof(timeo)); in nfs_socket_options()
1220 nfs_connect(struct nfsmount *nmp, int verbose, int timeo) in nfs_connect() argument
1277 nss.nss_timeo = timeo; in nfs_connect()
1483 nso->nso_so, NFS_PROG, nfsvers, nso->nso_sotype, timeo); in nfs_connect()
1566 … nso->nso_so, RPCPROG_MNT, mntvers, mntproto == IPPROTO_UDP ? SOCK_DGRAM : SOCK_STREAM, timeo); in nfs_connect()
1628 NULL, RPCPROG_MNT, mntvers, so_type, timeo); in nfs_connect()
[all …]
H A Dnfs_subs.c1885 long timeo; in nfs_attrcachetimeout() local
1896 timeo = isdir ? nmp->nm_acdirmax : nmp->nm_acregmax; in nfs_attrcachetimeout()
1901 timeo = isdir ? nmp->nm_acdirmin : nmp->nm_acregmin; in nfs_attrcachetimeout()
1907 timeo = (now.tv_sec - (np)->n_vattr.nva_timesec[NFSTIME_MODIFY]) / 10; in nfs_attrcachetimeout()
1909 if (timeo < nmp->nm_acdirmin) { in nfs_attrcachetimeout()
1910 timeo = nmp->nm_acdirmin; in nfs_attrcachetimeout()
1911 } else if (timeo > nmp->nm_acdirmax) { in nfs_attrcachetimeout()
1912 timeo = nmp->nm_acdirmax; in nfs_attrcachetimeout()
1915 if (timeo < nmp->nm_acregmin) { in nfs_attrcachetimeout()
1916 timeo = nmp->nm_acregmin; in nfs_attrcachetimeout()
[all …]
H A Dnfs_syscalls.c942 struct timeval timeo; in nfssvc_addsock() local
995 timeo.tv_usec = 0; in nfssvc_addsock()
996 timeo.tv_sec = 1; in nfssvc_addsock()
997 error |= sock_setsockopt(so, SOL_SOCKET, SO_RCVTIMEO, &timeo, sizeof(timeo)); in nfssvc_addsock()
998 timeo.tv_sec = 30; in nfssvc_addsock()
999 error |= sock_setsockopt(so, SOL_SOCKET, SO_SNDTIMEO, &timeo, sizeof(timeo)); in nfssvc_addsock()
H A Dnfs_vfsops.c1094 args.timeo = tempargs.timeo; in nfs_convert_old_nfs_args()
1275 if ((args.flags & NFSMNT_TIMEO) && (args.timeo > 0)) { in nfs_convert_old_nfs_args()
1393 xb_add_32(error, &xb, args.timeo / 10); in nfs_convert_old_nfs_args()
1394 xb_add_32(error, &xb, (args.timeo % 10) * 100000000); in nfs_convert_old_nfs_args()
2185 int done = 0, timeo, tries, maxtries; in nfs_mount_connect_thread() local
2188 timeo = nfs_mount_quick_timeout >= 1 ? nfs_mount_quick_timeout : NFS_MOUNT_QUICK_TIMEOUT; in nfs_mount_connect_thread()
2191 timeo = nfs_mount_timeout >= 1 ? nfs_mount_timeout : NFS_MOUNT_TIMEOUT; in nfs_mount_connect_thread()
2196 error = nfs_connect(nmp, 1, timeo); in nfs_mount_connect_thread()
4000 nfs3_check_lockmode(struct nfsmount *nmp, struct sockaddr *sa, int sotype, int timeo) in nfs3_check_lockmode() argument
4010 …ckaddr*)&ss, NULL, RPCPROG_STAT, RPCMNT_VER1, NM_OMFLAG(nmp, MNTUDP) ? SOCK_DGRAM : sotype, timeo); in nfs3_check_lockmode()
[all …]
H A Dnfs_gss.c1554 int timeo = NFS_TRYLATERDEL; in nfs_gss_clnt_ctx_init_retry() local
1566 waituntil = now.tv_sec + timeo; in nfs_gss_clnt_ctx_init_retry()
1583 timeo *= 2; in nfs_gss_clnt_ctx_init_retry()
1584 if (timeo > 60) { in nfs_gss_clnt_ctx_init_retry()
1585 timeo = 60; in nfs_gss_clnt_ctx_init_retry()
H A Dnfs.h304 int timeo; /* initial timeout in .1 secs */ member
348 int timeo; /* initial timeout in .1 secs */ member
H A Dnfs_vnops.c2758 long timeo = 0; in nfs_vnop_readlink() local
2785 timeo = nfs_attrcachetimeout(np); in nfs_vnop_readlink()
2798 NFS_VNOP_DBG("timeo = %ld ts.tv_sec = %ld need refresh = %d cached = %d\n", timeo, ts.tv_sec, in nfs_vnop_readlink()
2799 (np->n_rltim.tv_sec + timeo) < ts.tv_sec || nfs_readlink_nocache > 1, in nfs_vnop_readlink()
2802 …if (ISSET(bp->nb_flags, NB_CACHE) && ((nfs_readlink_nocache > 1) || ((np->n_rltim.tv_sec + timeo) … in nfs_vnop_readlink()