linux/include/uapi/linux/nfs4.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 *  include/linux/nfs4.h
 *
 *  NFSv4 protocol definitions.
 *
 *  Copyright (c) 2002 The Regents of the University of Michigan.
 *  All rights reserved.
 *
 *  Kendrick Smith <[email protected]>
 *  Andy Adamson   <[email protected]>
 */

#ifndef _UAPI_LINUX_NFS4_H
#define _UAPI_LINUX_NFS4_H

#include <linux/types.h>

#define NFS4_BITMAP_SIZE
#define NFS4_VERIFIER_SIZE
#define NFS4_STATEID_SEQID_SIZE
#define NFS4_STATEID_OTHER_SIZE
#define NFS4_STATEID_SIZE
#define NFS4_FHSIZE
#define NFS4_MAXPATHLEN
#define NFS4_MAXNAMLEN
#define NFS4_OPAQUE_LIMIT
#define NFS4_MAX_SESSIONID_LEN

#define NFS4_ACCESS_READ
#define NFS4_ACCESS_LOOKUP
#define NFS4_ACCESS_MODIFY
#define NFS4_ACCESS_EXTEND
#define NFS4_ACCESS_DELETE
#define NFS4_ACCESS_EXECUTE
#define NFS4_ACCESS_XAREAD
#define NFS4_ACCESS_XAWRITE
#define NFS4_ACCESS_XALIST

#define NFS4_FH_PERSISTENT
#define NFS4_FH_NOEXPIRE_WITH_OPEN
#define NFS4_FH_VOLATILE_ANY
#define NFS4_FH_VOL_MIGRATION
#define NFS4_FH_VOL_RENAME

#define NFS4_OPEN_RESULT_CONFIRM
#define NFS4_OPEN_RESULT_LOCKTYPE_POSIX
#define NFS4_OPEN_RESULT_PRESERVE_UNLINKED
#define NFS4_OPEN_RESULT_NO_OPEN_STATEID
#define NFS4_OPEN_RESULT_MAY_NOTIFY_LOCK

#define NFS4_SHARE_ACCESS_MASK
#define NFS4_SHARE_ACCESS_READ
#define NFS4_SHARE_ACCESS_WRITE
#define NFS4_SHARE_ACCESS_BOTH
#define NFS4_SHARE_DENY_READ
#define NFS4_SHARE_DENY_WRITE
#define NFS4_SHARE_DENY_BOTH

/* nfs41 */
#define NFS4_SHARE_WANT_MASK
#define NFS4_SHARE_WANT_NO_PREFERENCE
#define NFS4_SHARE_WANT_READ_DELEG
#define NFS4_SHARE_WANT_WRITE_DELEG
#define NFS4_SHARE_WANT_ANY_DELEG
#define NFS4_SHARE_WANT_NO_DELEG
#define NFS4_SHARE_WANT_CANCEL

#define NFS4_SHARE_WHEN_MASK
#define NFS4_SHARE_SIGNAL_DELEG_WHEN_RESRC_AVAIL
#define NFS4_SHARE_PUSH_DELEG_WHEN_UNCONTENDED

#define NFS4_SHARE_WANT_DELEG_TIMESTAMPS
#define NFS4_SHARE_WANT_OPEN_XOR_DELEGATION

#define NFS4_CDFC4_FORE
#define NFS4_CDFC4_BACK
#define NFS4_CDFC4_BOTH
#define NFS4_CDFC4_FORE_OR_BOTH
#define NFS4_CDFC4_BACK_OR_BOTH

#define NFS4_CDFS4_FORE
#define NFS4_CDFS4_BACK
#define NFS4_CDFS4_BOTH

#define NFS4_SET_TO_SERVER_TIME
#define NFS4_SET_TO_CLIENT_TIME

#define NFS4_ACE_ACCESS_ALLOWED_ACE_TYPE
#define NFS4_ACE_ACCESS_DENIED_ACE_TYPE
#define NFS4_ACE_SYSTEM_AUDIT_ACE_TYPE
#define NFS4_ACE_SYSTEM_ALARM_ACE_TYPE

#define ACL4_SUPPORT_ALLOW_ACL
#define ACL4_SUPPORT_DENY_ACL
#define ACL4_SUPPORT_AUDIT_ACL
#define ACL4_SUPPORT_ALARM_ACL

#define NFS4_ACL_AUTO_INHERIT
#define NFS4_ACL_PROTECTED
#define NFS4_ACL_DEFAULTED

#define NFS4_ACE_FILE_INHERIT_ACE
#define NFS4_ACE_DIRECTORY_INHERIT_ACE
#define NFS4_ACE_NO_PROPAGATE_INHERIT_ACE
#define NFS4_ACE_INHERIT_ONLY_ACE
#define NFS4_ACE_SUCCESSFUL_ACCESS_ACE_FLAG
#define NFS4_ACE_FAILED_ACCESS_ACE_FLAG
#define NFS4_ACE_IDENTIFIER_GROUP
#define NFS4_ACE_INHERITED_ACE

#define NFS4_ACE_READ_DATA
#define NFS4_ACE_LIST_DIRECTORY
#define NFS4_ACE_WRITE_DATA
#define NFS4_ACE_ADD_FILE
#define NFS4_ACE_APPEND_DATA
#define NFS4_ACE_ADD_SUBDIRECTORY
#define NFS4_ACE_READ_NAMED_ATTRS
#define NFS4_ACE_WRITE_NAMED_ATTRS
#define NFS4_ACE_EXECUTE
#define NFS4_ACE_DELETE_CHILD
#define NFS4_ACE_READ_ATTRIBUTES
#define NFS4_ACE_WRITE_ATTRIBUTES
#define NFS4_ACE_WRITE_RETENTION
#define NFS4_ACE_WRITE_RETENTION_HOLD
#define NFS4_ACE_DELETE
#define NFS4_ACE_READ_ACL
#define NFS4_ACE_WRITE_ACL
#define NFS4_ACE_WRITE_OWNER
#define NFS4_ACE_SYNCHRONIZE
#define NFS4_ACE_GENERIC_READ
#define NFS4_ACE_GENERIC_WRITE
#define NFS4_ACE_GENERIC_EXECUTE
#define NFS4_ACE_MASK_ALL

#define EXCHGID4_FLAG_SUPP_MOVED_REFER
#define EXCHGID4_FLAG_SUPP_MOVED_MIGR
#define EXCHGID4_FLAG_BIND_PRINC_STATEID

#define EXCHGID4_FLAG_USE_NON_PNFS
#define EXCHGID4_FLAG_USE_PNFS_MDS
#define EXCHGID4_FLAG_USE_PNFS_DS
#define EXCHGID4_FLAG_MASK_PNFS

#define EXCHGID4_FLAG_UPD_CONFIRMED_REC_A
#define EXCHGID4_FLAG_CONFIRMED_R

#define EXCHGID4_FLAG_SUPP_FENCE_OPS
/*
 * Since the validity of these bits depends on whether
 * they're set in the argument or response, have separate
 * invalid flag masks for arg (_A) and resp (_R).
 */
#define EXCHGID4_FLAG_MASK_A
#define EXCHGID4_FLAG_MASK_R
#define EXCHGID4_2_FLAG_MASK_R

#define SEQ4_STATUS_CB_PATH_DOWN
#define SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRING
#define SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRED
#define SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED
#define SEQ4_STATUS_EXPIRED_SOME_STATE_REVOKED
#define SEQ4_STATUS_ADMIN_STATE_REVOKED
#define SEQ4_STATUS_RECALLABLE_STATE_REVOKED
#define SEQ4_STATUS_LEASE_MOVED
#define SEQ4_STATUS_RESTART_RECLAIM_NEEDED
#define SEQ4_STATUS_CB_PATH_DOWN_SESSION
#define SEQ4_STATUS_BACKCHANNEL_FAULT

#define NFS4_SECINFO_STYLE4_CURRENT_FH
#define NFS4_SECINFO_STYLE4_PARENT

#define NFS4_MAX_UINT64

/* An NFS4 sessions server must support at least NFS4_MAX_OPS operations.
 * If a compound requires more operations, adjust NFS4_MAX_OPS accordingly.
 */
#define NFS4_MAX_OPS

/* Our NFS4 client back channel server only wants the cb_sequene and the
 * actual operation per compound
 */
#define NFS4_MAX_BACK_CHANNEL_OPS

#endif /* _UAPI_LINUX_NFS4_H */