1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _LINUX_NFS2_H 7 #define _LINUX_NFS2_H 8 #define NFS2_PORT 2049 9 #define NFS2_MAXDATA 8192 10 #define NFS2_MAXPATHLEN 1024 11 #define NFS2_MAXNAMLEN 255 12 #define NFS2_MAXGROUPS 16 13 #define NFS2_FHSIZE 32 14 #define NFS2_COOKIESIZE 4 15 #define NFS2_FIFO_DEV (-1) 16 #define NFS2MODE_FMT 0170000 17 #define NFS2MODE_DIR 0040000 18 #define NFS2MODE_CHR 0020000 19 #define NFS2MODE_BLK 0060000 20 #define NFS2MODE_REG 0100000 21 #define NFS2MODE_LNK 0120000 22 #define NFS2MODE_SOCK 0140000 23 #define NFS2MODE_FIFO 0010000 24 enum nfs2_ftype { 25 NF2NON = 0, 26 NF2REG = 1, 27 NF2DIR = 2, 28 NF2BLK = 3, 29 NF2CHR = 4, 30 NF2LNK = 5, 31 NF2SOCK = 6, 32 NF2BAD = 7, 33 NF2FIFO = 8 34 }; 35 struct nfs2_fh { 36 char data[NFS2_FHSIZE]; 37 }; 38 #define NFS2_VERSION 2 39 #define NFSPROC_NULL 0 40 #define NFSPROC_GETATTR 1 41 #define NFSPROC_SETATTR 2 42 #define NFSPROC_ROOT 3 43 #define NFSPROC_LOOKUP 4 44 #define NFSPROC_READLINK 5 45 #define NFSPROC_READ 6 46 #define NFSPROC_WRITECACHE 7 47 #define NFSPROC_WRITE 8 48 #define NFSPROC_CREATE 9 49 #define NFSPROC_REMOVE 10 50 #define NFSPROC_RENAME 11 51 #define NFSPROC_LINK 12 52 #define NFSPROC_SYMLINK 13 53 #define NFSPROC_MKDIR 14 54 #define NFSPROC_RMDIR 15 55 #define NFSPROC_READDIR 16 56 #define NFSPROC_STATFS 17 57 #endif 58