1/**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 **************************************************************************** 11 ****************************************************************************/ 12#ifndef _LINUX_NFS3_H 13#define _LINUX_NFS3_H 14 15#define NFS3_PORT 2049 16#define NFS3_MAXDATA 32768 17#define NFS3_MAXPATHLEN PATH_MAX 18#define NFS3_MAXNAMLEN NAME_MAX 19#define NFS3_MAXGROUPS 16 20#define NFS3_FHSIZE 64 21#define NFS3_COOKIESIZE 4 22#define NFS3_FIFO_DEV (-1) 23#define NFS3MODE_FMT 0170000 24#define NFS3MODE_DIR 0040000 25#define NFS3MODE_CHR 0020000 26#define NFS3MODE_BLK 0060000 27#define NFS3MODE_REG 0100000 28#define NFS3MODE_LNK 0120000 29#define NFS3MODE_SOCK 0140000 30#define NFS3MODE_FIFO 0010000 31 32#define NFS3_ACCESS_READ 0x0001 33#define NFS3_ACCESS_LOOKUP 0x0002 34#define NFS3_ACCESS_MODIFY 0x0004 35#define NFS3_ACCESS_EXTEND 0x0008 36#define NFS3_ACCESS_DELETE 0x0010 37#define NFS3_ACCESS_EXECUTE 0x0020 38#define NFS3_ACCESS_FULL 0x003f 39 40enum nfs3_createmode { 41 NFS3_CREATE_UNCHECKED = 0, 42 NFS3_CREATE_GUARDED = 1, 43 NFS3_CREATE_EXCLUSIVE = 2 44}; 45 46#define NFS3_FSF_LINK 0x0001 47#define NFS3_FSF_SYMLINK 0x0002 48#define NFS3_FSF_HOMOGENEOUS 0x0008 49#define NFS3_FSF_CANSETTIME 0x0010 50 51#define NFS3_FSF_DEFAULT 0x001B 52#define NFS3_FSF_BILLYBOY 0x0018 53#define NFS3_FSF_READONLY 0x0008 54 55enum nfs3_ftype { 56 NF3NON = 0, 57 NF3REG = 1, 58 NF3DIR = 2, 59 NF3BLK = 3, 60 NF3CHR = 4, 61 NF3LNK = 5, 62 NF3SOCK = 6, 63 NF3FIFO = 7, 64 NF3BAD = 8 65}; 66 67struct nfs3_fh { 68 unsigned short size; 69 unsigned char data[NFS3_FHSIZE]; 70}; 71 72#define NFS3_VERSION 3 73#define NFS3PROC_NULL 0 74#define NFS3PROC_GETATTR 1 75#define NFS3PROC_SETATTR 2 76#define NFS3PROC_LOOKUP 3 77#define NFS3PROC_ACCESS 4 78#define NFS3PROC_READLINK 5 79#define NFS3PROC_READ 6 80#define NFS3PROC_WRITE 7 81#define NFS3PROC_CREATE 8 82#define NFS3PROC_MKDIR 9 83#define NFS3PROC_SYMLINK 10 84#define NFS3PROC_MKNOD 11 85#define NFS3PROC_REMOVE 12 86#define NFS3PROC_RMDIR 13 87#define NFS3PROC_RENAME 14 88#define NFS3PROC_LINK 15 89#define NFS3PROC_READDIR 16 90#define NFS3PROC_READDIRPLUS 17 91#define NFS3PROC_FSSTAT 18 92#define NFS3PROC_FSINFO 19 93#define NFS3PROC_PATHCONF 20 94#define NFS3PROC_COMMIT 21 95 96#define NFS_MNT3_PROGRAM 100005 97#define NFS_MNT3_VERSION 3 98#define MOUNTPROC3_NULL 0 99#define MOUNTPROC3_MNT 1 100#define MOUNTPROC3_UMNT 3 101#define MOUNTPROC3_UMNTALL 4 102 103#ifdef NFS_NEED_KERNEL_TYPES 104 105#define NFS3_POST_OP_ATTR_WORDS 22 106 107#endif 108#endif 109