NFS: show retransmit settings when displaying mount options
[deliverable/linux.git] / include / linux / nfs_fs_sb.h
1 #ifndef _NFS_FS_SB
2 #define _NFS_FS_SB
3
4 #include <linux/list.h>
5 #include <linux/backing-dev.h>
6
7 /*
8 * NFS client parameters stored in the superblock.
9 */
10 struct nfs_server {
11 struct rpc_clnt * client; /* RPC client handle */
12 struct rpc_clnt * client_sys; /* 2nd handle for FSINFO */
13 struct rpc_clnt * client_acl; /* ACL RPC client handle */
14 struct nfs_rpc_ops * rpc_ops; /* NFS protocol vector */
15 struct backing_dev_info backing_dev_info;
16 int flags; /* various flags */
17 unsigned int caps; /* server capabilities */
18 unsigned int rsize; /* read size */
19 unsigned int rpages; /* read size (in pages) */
20 unsigned int wsize; /* write size */
21 unsigned int wpages; /* write size (in pages) */
22 unsigned int wtmult; /* server disk block size */
23 unsigned int dtsize; /* readdir size */
24 unsigned int bsize; /* server block size */
25 unsigned int acregmin; /* attr cache timeouts */
26 unsigned int acregmax;
27 unsigned int acdirmin;
28 unsigned int acdirmax;
29 unsigned long retrans_timeo; /* retransmit timeout */
30 unsigned int retrans_count; /* number of retransmit tries */
31 unsigned int namelen;
32 char * hostname; /* remote hostname */
33 struct nfs_fh fh;
34 struct sockaddr_in addr;
35 #ifdef CONFIG_NFS_V4
36 /* Our own IP address, as a null-terminated string.
37 * This is used to generate the clientid, and the callback address.
38 */
39 char ip_addr[16];
40 char * mnt_path;
41 struct nfs4_client * nfs4_state; /* all NFSv4 state starts here */
42 struct list_head nfs4_siblings; /* List of other nfs_server structs
43 * that share the same clientid
44 */
45 u32 attr_bitmask[2];/* V4 bitmask representing the set
46 of attributes supported on this
47 filesystem */
48 u32 acl_bitmask; /* V4 bitmask representing the ACEs
49 that are supported on this
50 filesystem */
51 #endif
52 };
53
54 /* Server capabilities */
55 #define NFS_CAP_READDIRPLUS (1U << 0)
56 #define NFS_CAP_HARDLINKS (1U << 1)
57 #define NFS_CAP_SYMLINKS (1U << 2)
58 #define NFS_CAP_ACLS (1U << 3)
59 #define NFS_CAP_ATOMIC_OPEN (1U << 4)
60
61 #endif
This page took 0.034157 seconds and 6 git commands to generate.