]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - include/linux/nfsd/const.h
Linux-2.6.12-rc2
[mirror_ubuntu-artful-kernel.git] / include / linux / nfsd / const.h
1 /*
2 * include/linux/nfsd/const.h
3 *
4 * Various constants related to NFS.
5 *
6 * Copyright (C) 1995-1997 Olaf Kirch <okir@monad.swb.de>
7 */
8
9 #ifndef _LINUX_NFSD_CONST_H
10 #define _LINUX_NFSD_CONST_H
11
12 #include <linux/nfs.h>
13 #include <linux/nfs2.h>
14 #include <linux/nfs3.h>
15 #include <linux/nfs4.h>
16
17 /*
18 * Maximum protocol version supported by knfsd
19 */
20 #define NFSSVC_MAXVERS 3
21
22 /*
23 * Maximum blocksize supported by daemon currently at 32K
24 */
25 #define NFSSVC_MAXBLKSIZE (32*1024)
26
27 #ifdef __KERNEL__
28
29 #ifndef NFS_SUPER_MAGIC
30 # define NFS_SUPER_MAGIC 0x6969
31 #endif
32
33 #define NFSD_BUFSIZE (1024 + NFSSVC_MAXBLKSIZE)
34
35 #ifdef CONFIG_NFSD_V4
36 # define NFSSVC_XDRSIZE NFS4_SVC_XDRSIZE
37 #elif defined(CONFIG_NFSD_V3)
38 # define NFSSVC_XDRSIZE NFS3_SVC_XDRSIZE
39 #else
40 # define NFSSVC_XDRSIZE NFS2_SVC_XDRSIZE
41 #endif
42
43 #endif /* __KERNEL__ */
44
45 #endif /* _LINUX_NFSD_CONST_H */