From 97a6f04270d14e570225b6e17134c79ed8796903 Mon Sep 17 00:00:00 2001 From: alfred Date: Tue, 6 Jul 2004 09:12:03 +0000 Subject: NFS mobility PHASE I, II & III (phase VI, and V pending): Rebind the client socket when we experience a timeout. This fixes the case where our IP changes for some reason. Signal a VFS event when NFS transitions from up to down and vice versa. Add a placeholder vfs_sysctl where we will put status reporting shortly. Also: Make down NFS mounts return EIO instead of EINTR when there is a soft timeout or force unmount in progress. --- sys/nfsclient/nfsmount.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sys/nfsclient/nfsmount.h') diff --git a/sys/nfsclient/nfsmount.h b/sys/nfsclient/nfsmount.h index 9c89ecf..5064370 100644 --- a/sys/nfsclient/nfsmount.h +++ b/sys/nfsclient/nfsmount.h @@ -77,6 +77,8 @@ struct nfsmount { int nm_bufqiods; /* number of iods processing queue */ u_int64_t nm_maxfilesize; /* maximum file size */ struct nfs_rpcops *nm_rpcops; + int nm_tprintf_initial_delay; /* initial delay */ + int nm_tprintf_delay; /* interval for messages */ /* NFSv4 */ uint64_t nm_clientid; @@ -91,6 +93,14 @@ struct nfsmount { */ #define VFSTONFS(mp) ((struct nfsmount *)((mp)->mnt_data)) +#ifndef NFS_TPRINTF_INITIAL_DELAY +#define NFS_TPRINTF_INITIAL_DELAY 12 +#endif + +#ifndef NFS_TPRINTF_DELAY +#define NFS_TPRINTF_DELAY 30 +#endif + #endif #endif -- cgit v1.1