~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/nfs3.h

Version: ~ [ linux-5.2-rc4 ] ~ [ linux-5.1.9 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.50 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.125 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.181 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.181 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.68 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * NFSv3 protocol definitions
  3  */
  4 #ifndef _UAPI_LINUX_NFS3_H
  5 #define _UAPI_LINUX_NFS3_H
  6 
  7 #define NFS3_PORT               2049
  8 #define NFS3_MAXDATA            32768
  9 #define NFS3_MAXPATHLEN         PATH_MAX
 10 #define NFS3_MAXNAMLEN          NAME_MAX
 11 #define NFS3_MAXGROUPS          16
 12 #define NFS3_FHSIZE             64
 13 #define NFS3_COOKIESIZE         4
 14 #define NFS3_CREATEVERFSIZE     8
 15 #define NFS3_COOKIEVERFSIZE     8
 16 #define NFS3_WRITEVERFSIZE      8
 17 #define NFS3_FIFO_DEV           (-1)
 18 #define NFS3MODE_FMT            0170000
 19 #define NFS3MODE_DIR            0040000
 20 #define NFS3MODE_CHR            0020000
 21 #define NFS3MODE_BLK            0060000
 22 #define NFS3MODE_REG            0100000
 23 #define NFS3MODE_LNK            0120000
 24 #define NFS3MODE_SOCK           0140000
 25 #define NFS3MODE_FIFO           0010000
 26 
 27 /* Flags for access() call */
 28 #define NFS3_ACCESS_READ        0x0001
 29 #define NFS3_ACCESS_LOOKUP      0x0002
 30 #define NFS3_ACCESS_MODIFY      0x0004
 31 #define NFS3_ACCESS_EXTEND      0x0008
 32 #define NFS3_ACCESS_DELETE      0x0010
 33 #define NFS3_ACCESS_EXECUTE     0x0020
 34 #define NFS3_ACCESS_FULL        0x003f
 35 
 36 /* Flags for create mode */
 37 enum nfs3_createmode {
 38         NFS3_CREATE_UNCHECKED = 0,
 39         NFS3_CREATE_GUARDED = 1,
 40         NFS3_CREATE_EXCLUSIVE = 2
 41 };
 42 
 43 /* NFSv3 file system properties */
 44 #define NFS3_FSF_LINK           0x0001
 45 #define NFS3_FSF_SYMLINK        0x0002
 46 #define NFS3_FSF_HOMOGENEOUS    0x0008
 47 #define NFS3_FSF_CANSETTIME     0x0010
 48 /* Some shorthands. See fs/nfsd/nfs3proc.c */
 49 #define NFS3_FSF_DEFAULT        0x001B
 50 #define NFS3_FSF_BILLYBOY       0x0018
 51 #define NFS3_FSF_READONLY       0x0008
 52 
 53 enum nfs3_ftype {
 54         NF3NON  = 0,
 55         NF3REG  = 1,
 56         NF3DIR  = 2,
 57         NF3BLK  = 3,
 58         NF3CHR  = 4,
 59         NF3LNK  = 5,
 60         NF3SOCK = 6,
 61         NF3FIFO = 7,    /* changed from NFSv2 (was 8) */
 62         NF3BAD  = 8
 63 };
 64 
 65 struct nfs3_fh {
 66         unsigned short size;
 67         unsigned char  data[NFS3_FHSIZE];
 68 };
 69 
 70 #define NFS3_VERSION            3
 71 #define NFS3PROC_NULL           0
 72 #define NFS3PROC_GETATTR        1
 73 #define NFS3PROC_SETATTR        2
 74 #define NFS3PROC_LOOKUP         3
 75 #define NFS3PROC_ACCESS         4
 76 #define NFS3PROC_READLINK       5
 77 #define NFS3PROC_READ           6
 78 #define NFS3PROC_WRITE          7
 79 #define NFS3PROC_CREATE         8
 80 #define NFS3PROC_MKDIR          9
 81 #define NFS3PROC_SYMLINK        10
 82 #define NFS3PROC_MKNOD          11
 83 #define NFS3PROC_REMOVE         12
 84 #define NFS3PROC_RMDIR          13
 85 #define NFS3PROC_RENAME         14
 86 #define NFS3PROC_LINK           15
 87 #define NFS3PROC_READDIR        16
 88 #define NFS3PROC_READDIRPLUS    17
 89 #define NFS3PROC_FSSTAT         18
 90 #define NFS3PROC_FSINFO         19
 91 #define NFS3PROC_PATHCONF       20
 92 #define NFS3PROC_COMMIT         21
 93 
 94 #define NFS_MNT3_VERSION        3
 95  
 96 
 97 #endif /* _UAPI_LINUX_NFS3_H */
 98 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp