Home
last modified time | relevance | path

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

/xnu-8019.80.24/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()
651 timeo = 2; in nfs3_lockd_request()
660 timeo *= 2; in nfs3_lockd_request()
662 if (timeo > 30) { in nfs3_lockd_request()
663 timeo = 30; in nfs3_lockd_request()
687 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()
1223 nfs_connect(struct nfsmount *nmp, int verbose, int timeo) in nfs_connect() argument
1280 nss.nss_timeo = timeo; in nfs_connect()
1481 nso->nso_so, NFS_PROG, nfsvers, nso->nso_sotype, timeo); in nfs_connect()
1564 … nso->nso_so, RPCPROG_MNT, mntvers, mntproto == IPPROTO_UDP ? SOCK_DGRAM : SOCK_STREAM, timeo); in nfs_connect()
1626 NULL, RPCPROG_MNT, mntvers, so_type, timeo); in nfs_connect()
[all …]
H A Dnfs_subs.c1887 long timeo; in nfs_attrcachetimeout() local
1898 timeo = isdir ? nmp->nm_acdirmax : nmp->nm_acregmax; in nfs_attrcachetimeout()
1903 timeo = isdir ? nmp->nm_acdirmin : nmp->nm_acregmin; in nfs_attrcachetimeout()
1909 timeo = (now.tv_sec - (np)->n_vattr.nva_timesec[NFSTIME_MODIFY]) / 10; in nfs_attrcachetimeout()
1911 if (timeo < nmp->nm_acdirmin) { in nfs_attrcachetimeout()
1912 timeo = nmp->nm_acdirmin; in nfs_attrcachetimeout()
1913 } else if (timeo > nmp->nm_acdirmax) { in nfs_attrcachetimeout()
1914 timeo = nmp->nm_acdirmax; in nfs_attrcachetimeout()
1917 if (timeo < nmp->nm_acregmin) { in nfs_attrcachetimeout()
1918 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.c1055 args.timeo = tempargs.timeo; in nfs_convert_old_nfs_args()
1236 if ((args.flags & NFSMNT_TIMEO) && (args.timeo > 0)) { in nfs_convert_old_nfs_args()
1354 xb_add_32(error, &xb, args.timeo / 10); in nfs_convert_old_nfs_args()
1355 xb_add_32(error, &xb, (args.timeo % 10) * 100000000); in nfs_convert_old_nfs_args()
2189 int done = 0, timeo, tries, maxtries; in nfs_mount_connect_thread() local
2192 timeo = nfs_mount_quick_timeout >= 1 ? nfs_mount_quick_timeout : NFS_MOUNT_QUICK_TIMEOUT; in nfs_mount_connect_thread()
2195 timeo = nfs_mount_timeout >= 1 ? nfs_mount_timeout : NFS_MOUNT_TIMEOUT; in nfs_mount_connect_thread()
2200 error = nfs_connect(nmp, 1, timeo); in nfs_mount_connect_thread()
4010 nfs3_check_lockmode(struct nfsmount *nmp, struct sockaddr *sa, int sotype, int timeo) in nfs3_check_lockmode() argument
4020 …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.h305 int timeo; /* initial timeout in .1 secs */ member
349 int timeo; /* initial timeout in .1 secs */ member
H A Dnfs_vnops.c2771 long timeo = 0; in nfs_vnop_readlink() local
2798 timeo = nfs_attrcachetimeout(np); in nfs_vnop_readlink()
2811 NFS_VNOP_DBG("timeo = %ld ts.tv_sec = %ld need refresh = %d cached = %d\n", timeo, ts.tv_sec, in nfs_vnop_readlink()
2812 (np->n_rltim.tv_sec + timeo) < ts.tv_sec || nfs_readlink_nocache > 1, in nfs_vnop_readlink()
2815 …if (ISSET(bp->nb_flags, NB_CACHE) && ((nfs_readlink_nocache > 1) || ((np->n_rltim.tv_sec + timeo) … in nfs_vnop_readlink()