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

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

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

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

kernel.org | git.kernel.org | LWN.net | Project Home | 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.

sflogo.php