blob: b2f023a55723c79789aee1f97310cce44650ed34 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_LINUX_NFS4_H
20#define _UAPI_LINUX_NFS4_H
21#include <linux/types.h>
Christopher Ferris05d08e92016-02-04 13:16:38 -080022#define NFS4_BITMAP_SIZE 3
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define NFS4_VERIFIER_SIZE 8
25#define NFS4_STATEID_SEQID_SIZE 4
26#define NFS4_STATEID_OTHER_SIZE 12
27#define NFS4_STATEID_SIZE (NFS4_STATEID_SEQID_SIZE + NFS4_STATEID_OTHER_SIZE)
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define NFS4_FHSIZE 128
30#define NFS4_MAXPATHLEN PATH_MAX
31#define NFS4_MAXNAMLEN NAME_MAX
32#define NFS4_OPAQUE_LIMIT 1024
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define NFS4_MAX_SESSIONID_LEN 16
35#define NFS4_ACCESS_READ 0x0001
36#define NFS4_ACCESS_LOOKUP 0x0002
37#define NFS4_ACCESS_MODIFY 0x0004
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define NFS4_ACCESS_EXTEND 0x0008
40#define NFS4_ACCESS_DELETE 0x0010
41#define NFS4_ACCESS_EXECUTE 0x0020
42#define NFS4_FH_PERSISTENT 0x0000
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define NFS4_FH_NOEXPIRE_WITH_OPEN 0x0001
45#define NFS4_FH_VOLATILE_ANY 0x0002
46#define NFS4_FH_VOL_MIGRATION 0x0004
47#define NFS4_FH_VOL_RENAME 0x0008
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define NFS4_OPEN_RESULT_CONFIRM 0x0002
50#define NFS4_OPEN_RESULT_LOCKTYPE_POSIX 0x0004
Christopher Ferris6a9755d2017-01-13 14:09:31 -080051#define NFS4_OPEN_RESULT_MAY_NOTIFY_LOCK 0x0020
Ben Cheng655a7c02013-10-16 16:09:24 -070052#define NFS4_SHARE_ACCESS_MASK 0x000F
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080054#define NFS4_SHARE_ACCESS_READ 0x0001
Ben Cheng655a7c02013-10-16 16:09:24 -070055#define NFS4_SHARE_ACCESS_WRITE 0x0002
56#define NFS4_SHARE_ACCESS_BOTH 0x0003
57#define NFS4_SHARE_DENY_READ 0x0001
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080059#define NFS4_SHARE_DENY_WRITE 0x0002
Ben Cheng655a7c02013-10-16 16:09:24 -070060#define NFS4_SHARE_DENY_BOTH 0x0003
61#define NFS4_SHARE_WANT_MASK 0xFF00
62#define NFS4_SHARE_WANT_NO_PREFERENCE 0x0000
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080064#define NFS4_SHARE_WANT_READ_DELEG 0x0100
Ben Cheng655a7c02013-10-16 16:09:24 -070065#define NFS4_SHARE_WANT_WRITE_DELEG 0x0200
66#define NFS4_SHARE_WANT_ANY_DELEG 0x0300
67#define NFS4_SHARE_WANT_NO_DELEG 0x0400
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080069#define NFS4_SHARE_WANT_CANCEL 0x0500
Ben Cheng655a7c02013-10-16 16:09:24 -070070#define NFS4_SHARE_WHEN_MASK 0xF0000
71#define NFS4_SHARE_SIGNAL_DELEG_WHEN_RESRC_AVAIL 0x10000
72#define NFS4_SHARE_PUSH_DELEG_WHEN_UNCONTENDED 0x20000
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080074#define NFS4_CDFC4_FORE 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -070075#define NFS4_CDFC4_BACK 0x2
76#define NFS4_CDFC4_BOTH 0x3
77#define NFS4_CDFC4_FORE_OR_BOTH 0x3
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080079#define NFS4_CDFC4_BACK_OR_BOTH 0x7
Ben Cheng655a7c02013-10-16 16:09:24 -070080#define NFS4_CDFS4_FORE 0x1
81#define NFS4_CDFS4_BACK 0x2
82#define NFS4_CDFS4_BOTH 0x3
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080084#define NFS4_SET_TO_SERVER_TIME 0
Ben Cheng655a7c02013-10-16 16:09:24 -070085#define NFS4_SET_TO_CLIENT_TIME 1
86#define NFS4_ACE_ACCESS_ALLOWED_ACE_TYPE 0
87#define NFS4_ACE_ACCESS_DENIED_ACE_TYPE 1
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080089#define NFS4_ACE_SYSTEM_AUDIT_ACE_TYPE 2
Ben Cheng655a7c02013-10-16 16:09:24 -070090#define NFS4_ACE_SYSTEM_ALARM_ACE_TYPE 3
91#define ACL4_SUPPORT_ALLOW_ACL 0x01
92#define ACL4_SUPPORT_DENY_ACL 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080094#define ACL4_SUPPORT_AUDIT_ACL 0x04
Ben Cheng655a7c02013-10-16 16:09:24 -070095#define ACL4_SUPPORT_ALARM_ACL 0x08
Christopher Ferris05d08e92016-02-04 13:16:38 -080096#define NFS4_ACL_AUTO_INHERIT 0x00000001
97#define NFS4_ACL_PROTECTED 0x00000002
Christopher Ferris05d08e92016-02-04 13:16:38 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080099#define NFS4_ACL_DEFAULTED 0x00000004
Ben Cheng655a7c02013-10-16 16:09:24 -0700100#define NFS4_ACE_FILE_INHERIT_ACE 0x00000001
101#define NFS4_ACE_DIRECTORY_INHERIT_ACE 0x00000002
102#define NFS4_ACE_NO_PROPAGATE_INHERIT_ACE 0x00000004
Christopher Ferris05d08e92016-02-04 13:16:38 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800104#define NFS4_ACE_INHERIT_ONLY_ACE 0x00000008
Ben Cheng655a7c02013-10-16 16:09:24 -0700105#define NFS4_ACE_SUCCESSFUL_ACCESS_ACE_FLAG 0x00000010
106#define NFS4_ACE_FAILED_ACCESS_ACE_FLAG 0x00000020
107#define NFS4_ACE_IDENTIFIER_GROUP 0x00000040
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800109#define NFS4_ACE_INHERITED_ACE 0x00000080
Ben Cheng655a7c02013-10-16 16:09:24 -0700110#define NFS4_ACE_READ_DATA 0x00000001
111#define NFS4_ACE_LIST_DIRECTORY 0x00000001
112#define NFS4_ACE_WRITE_DATA 0x00000002
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800114#define NFS4_ACE_ADD_FILE 0x00000002
Ben Cheng655a7c02013-10-16 16:09:24 -0700115#define NFS4_ACE_APPEND_DATA 0x00000004
116#define NFS4_ACE_ADD_SUBDIRECTORY 0x00000004
117#define NFS4_ACE_READ_NAMED_ATTRS 0x00000008
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800119#define NFS4_ACE_WRITE_NAMED_ATTRS 0x00000010
Ben Cheng655a7c02013-10-16 16:09:24 -0700120#define NFS4_ACE_EXECUTE 0x00000020
121#define NFS4_ACE_DELETE_CHILD 0x00000040
122#define NFS4_ACE_READ_ATTRIBUTES 0x00000080
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800124#define NFS4_ACE_WRITE_ATTRIBUTES 0x00000100
Christopher Ferris05d08e92016-02-04 13:16:38 -0800125#define NFS4_ACE_WRITE_RETENTION 0x00000200
126#define NFS4_ACE_WRITE_RETENTION_HOLD 0x00000400
Ben Cheng655a7c02013-10-16 16:09:24 -0700127#define NFS4_ACE_DELETE 0x00010000
Christopher Ferris05d08e92016-02-04 13:16:38 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800129#define NFS4_ACE_READ_ACL 0x00020000
Ben Cheng655a7c02013-10-16 16:09:24 -0700130#define NFS4_ACE_WRITE_ACL 0x00040000
131#define NFS4_ACE_WRITE_OWNER 0x00080000
Ben Cheng655a7c02013-10-16 16:09:24 -0700132#define NFS4_ACE_SYNCHRONIZE 0x00100000
Christopher Ferris05d08e92016-02-04 13:16:38 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800134#define NFS4_ACE_GENERIC_READ 0x00120081
Ben Cheng655a7c02013-10-16 16:09:24 -0700135#define NFS4_ACE_GENERIC_WRITE 0x00160106
136#define NFS4_ACE_GENERIC_EXECUTE 0x001200A0
Ben Cheng655a7c02013-10-16 16:09:24 -0700137#define NFS4_ACE_MASK_ALL 0x001F01FF
Christopher Ferris05d08e92016-02-04 13:16:38 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800139#define EXCHGID4_FLAG_SUPP_MOVED_REFER 0x00000001
Ben Cheng655a7c02013-10-16 16:09:24 -0700140#define EXCHGID4_FLAG_SUPP_MOVED_MIGR 0x00000002
141#define EXCHGID4_FLAG_BIND_PRINC_STATEID 0x00000100
Ben Cheng655a7c02013-10-16 16:09:24 -0700142#define EXCHGID4_FLAG_USE_NON_PNFS 0x00010000
Christopher Ferris05d08e92016-02-04 13:16:38 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800144#define EXCHGID4_FLAG_USE_PNFS_MDS 0x00020000
Ben Cheng655a7c02013-10-16 16:09:24 -0700145#define EXCHGID4_FLAG_USE_PNFS_DS 0x00040000
146#define EXCHGID4_FLAG_MASK_PNFS 0x00070000
Ben Cheng655a7c02013-10-16 16:09:24 -0700147#define EXCHGID4_FLAG_UPD_CONFIRMED_REC_A 0x40000000
Christopher Ferris05d08e92016-02-04 13:16:38 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800149#define EXCHGID4_FLAG_CONFIRMED_R 0x80000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700150#define EXCHGID4_FLAG_MASK_A 0x40070103
151#define EXCHGID4_FLAG_MASK_R 0x80070103
Ben Cheng655a7c02013-10-16 16:09:24 -0700152#define SEQ4_STATUS_CB_PATH_DOWN 0x00000001
Christopher Ferris05d08e92016-02-04 13:16:38 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800154#define SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRING 0x00000002
Ben Cheng655a7c02013-10-16 16:09:24 -0700155#define SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRED 0x00000004
156#define SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED 0x00000008
Ben Cheng655a7c02013-10-16 16:09:24 -0700157#define SEQ4_STATUS_EXPIRED_SOME_STATE_REVOKED 0x00000010
Christopher Ferris05d08e92016-02-04 13:16:38 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800159#define SEQ4_STATUS_ADMIN_STATE_REVOKED 0x00000020
Ben Cheng655a7c02013-10-16 16:09:24 -0700160#define SEQ4_STATUS_RECALLABLE_STATE_REVOKED 0x00000040
161#define SEQ4_STATUS_LEASE_MOVED 0x00000080
Ben Cheng655a7c02013-10-16 16:09:24 -0700162#define SEQ4_STATUS_RESTART_RECLAIM_NEEDED 0x00000100
Christopher Ferris05d08e92016-02-04 13:16:38 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800164#define SEQ4_STATUS_CB_PATH_DOWN_SESSION 0x00000200
Ben Cheng655a7c02013-10-16 16:09:24 -0700165#define SEQ4_STATUS_BACKCHANNEL_FAULT 0x00000400
166#define NFS4_SECINFO_STYLE4_CURRENT_FH 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700167#define NFS4_SECINFO_STYLE4_PARENT 1
Christopher Ferris05d08e92016-02-04 13:16:38 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800169#define NFS4_MAX_UINT64 (~(__u64) 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700170#define NFS4_MAX_OPS 8
171#define NFS4_MAX_BACK_CHANNEL_OPS 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700172#endif
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */