Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
422 | giacomo | 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 nfs_rpc_ops * rpc_ops; /* NFS protocol vector */ |
||
14 | struct backing_dev_info backing_dev_info; |
||
15 | int flags; /* various flags */ |
||
16 | unsigned int caps; /* server capabilities */ |
||
17 | unsigned int rsize; /* read size */ |
||
18 | unsigned int rpages; /* read size (in pages) */ |
||
19 | unsigned int wsize; /* write size */ |
||
20 | unsigned int wpages; /* write size (in pages) */ |
||
21 | unsigned int dtsize; /* readdir size */ |
||
22 | unsigned int bsize; /* server block size */ |
||
23 | unsigned int acregmin; /* attr cache timeouts */ |
||
24 | unsigned int acregmax; |
||
25 | unsigned int acdirmin; |
||
26 | unsigned int acdirmax; |
||
27 | unsigned int namelen; |
||
28 | char * hostname; /* remote hostname */ |
||
29 | struct nfs_fh fh; |
||
30 | struct sockaddr_in addr; |
||
31 | #ifdef CONFIG_NFS_V4 |
||
32 | /* Our own IP address, as a null-terminated string. |
||
33 | * This is used to generate the clientid, and the callback address. |
||
34 | */ |
||
35 | char ip_addr[16]; |
||
36 | char * mnt_path; |
||
37 | struct nfs4_client * nfs4_state; /* all NFSv4 state starts here */ |
||
38 | unsigned long lease_time; /* in jiffies */ |
||
39 | unsigned long last_renewal; /* in jiffies */ |
||
40 | void *idmap; |
||
41 | #endif |
||
42 | }; |
||
43 | |||
44 | /* Server capabilities */ |
||
45 | #define NFS_CAP_READDIRPLUS (1) |
||
46 | |||
47 | #endif |