2 * include/linux/nfsd/const.h
4 * Various constants related to NFS.
6 * Copyright (C) 1995-1997 Olaf Kirch <okir@monad.swb.de>
9 #ifndef _LINUX_NFSD_CONST_H
10 #define _LINUX_NFSD_CONST_H
12 #include <linux/nfs.h>
13 #include <linux/nfs2.h>
14 #include <linux/nfs3.h>
15 #include <linux/nfs4.h>
18 * Maximum protocol version supported by knfsd
20 #define NFSSVC_MAXVERS 3
23 * Maximum blocksize supported by daemon currently at 32K
25 #define NFSSVC_MAXBLKSIZE (32*1024)
29 #ifndef NFS_SUPER_MAGIC
30 # define NFS_SUPER_MAGIC 0x6969
33 #define NFSD_BUFSIZE (1024 + NFSSVC_MAXBLKSIZE)
36 # define NFSSVC_XDRSIZE NFS4_SVC_XDRSIZE
37 #elif defined(CONFIG_NFSD_V3)
38 # define NFSSVC_XDRSIZE NFS3_SVC_XDRSIZE
40 # define NFSSVC_XDRSIZE NFS2_SVC_XDRSIZE
43 #endif /* __KERNEL__ */
45 #endif /* _LINUX_NFSD_CONST_H */