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_NFS4_H 13 #define _LINUX_NFS4_H 14 15 #include <linux/types.h> 16 17 #define NFS4_VERIFIER_SIZE 8 18 #define NFS4_FHSIZE 128 19 #define NFS4_MAXPATHLEN PATH_MAX 20 #define NFS4_MAXNAMLEN NAME_MAX 21 22 #define NFS4_ACCESS_READ 0x0001 23 #define NFS4_ACCESS_LOOKUP 0x0002 24 #define NFS4_ACCESS_MODIFY 0x0004 25 #define NFS4_ACCESS_EXTEND 0x0008 26 #define NFS4_ACCESS_DELETE 0x0010 27 #define NFS4_ACCESS_EXECUTE 0x0020 28 29 #define NFS4_FH_PERSISTENT 0x0000 30 #define NFS4_FH_NOEXPIRE_WITH_OPEN 0x0001 31 #define NFS4_FH_VOLATILE_ANY 0x0002 32 #define NFS4_FH_VOL_MIGRATION 0x0004 33 #define NFS4_FH_VOL_RENAME 0x0008 34 35 #define NFS4_OPEN_RESULT_CONFIRM 0x0002 36 #define NFS4_OPEN_RESULT_LOCKTYPE_POSIX 0x0004 37 38 #define NFS4_SHARE_ACCESS_READ 0x0001 39 #define NFS4_SHARE_ACCESS_WRITE 0x0002 40 #define NFS4_SHARE_ACCESS_BOTH 0x0003 41 #define NFS4_SHARE_DENY_READ 0x0001 42 #define NFS4_SHARE_DENY_WRITE 0x0002 43 #define NFS4_SHARE_DENY_BOTH 0x0003 44 45 #define NFS4_SET_TO_SERVER_TIME 0 46 #define NFS4_SET_TO_CLIENT_TIME 1 47 48 #define NFS4_ACE_ACCESS_ALLOWED_ACE_TYPE 0 49 #define NFS4_ACE_ACCESS_DENIED_ACE_TYPE 1 50 #define NFS4_ACE_SYSTEM_AUDIT_ACE_TYPE 2 51 #define NFS4_ACE_SYSTEM_ALARM_ACE_TYPE 3 52 53 #define ACL4_SUPPORT_ALLOW_ACL 0x01 54 #define ACL4_SUPPORT_DENY_ACL 0x02 55 #define ACL4_SUPPORT_AUDIT_ACL 0x04 56 #define ACL4_SUPPORT_ALARM_ACL 0x08 57 58 #define NFS4_ACE_FILE_INHERIT_ACE 0x00000001 59 #define NFS4_ACE_DIRECTORY_INHERIT_ACE 0x00000002 60 #define NFS4_ACE_NO_PROPAGATE_INHERIT_ACE 0x00000004 61 #define NFS4_ACE_INHERIT_ONLY_ACE 0x00000008 62 #define NFS4_ACE_SUCCESSFUL_ACCESS_ACE_FLAG 0x00000010 63 #define NFS4_ACE_FAILED_ACCESS_ACE_FLAG 0x00000020 64 #define NFS4_ACE_IDENTIFIER_GROUP 0x00000040 65 #define NFS4_ACE_OWNER 0x00000080 66 #define NFS4_ACE_GROUP 0x00000100 67 #define NFS4_ACE_EVERYONE 0x00000200 68 69 #define NFS4_ACE_READ_DATA 0x00000001 70 #define NFS4_ACE_LIST_DIRECTORY 0x00000001 71 #define NFS4_ACE_WRITE_DATA 0x00000002 72 #define NFS4_ACE_ADD_FILE 0x00000002 73 #define NFS4_ACE_APPEND_DATA 0x00000004 74 #define NFS4_ACE_ADD_SUBDIRECTORY 0x00000004 75 #define NFS4_ACE_READ_NAMED_ATTRS 0x00000008 76 #define NFS4_ACE_WRITE_NAMED_ATTRS 0x00000010 77 #define NFS4_ACE_EXECUTE 0x00000020 78 #define NFS4_ACE_DELETE_CHILD 0x00000040 79 #define NFS4_ACE_READ_ATTRIBUTES 0x00000080 80 #define NFS4_ACE_WRITE_ATTRIBUTES 0x00000100 81 #define NFS4_ACE_DELETE 0x00010000 82 #define NFS4_ACE_READ_ACL 0x00020000 83 #define NFS4_ACE_WRITE_ACL 0x00040000 84 #define NFS4_ACE_WRITE_OWNER 0x00080000 85 #define NFS4_ACE_SYNCHRONIZE 0x00100000 86 #define NFS4_ACE_GENERIC_READ 0x00120081 87 #define NFS4_ACE_GENERIC_WRITE 0x00160106 88 #define NFS4_ACE_GENERIC_EXECUTE 0x001200A0 89 #define NFS4_ACE_MASK_ALL 0x001F01FF 90 91 enum nfs4_acl_whotype { 92 NFS4_ACL_WHO_NAMED = 0, 93 NFS4_ACL_WHO_OWNER, 94 NFS4_ACL_WHO_GROUP, 95 NFS4_ACL_WHO_EVERYONE, 96 }; 97 98 #endif 99 100