diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/nfsd/const.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/linux/nfsd/const.h')
-rw-r--r-- | include/linux/nfsd/const.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/include/linux/nfsd/const.h b/include/linux/nfsd/const.h new file mode 100644 index 000000000000..b75bb1b38d09 --- /dev/null +++ b/include/linux/nfsd/const.h | |||
@@ -0,0 +1,45 @@ | |||
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 */ | ||