nfs4_kprot.h revision bbe876c07ed632b8f85e195d41e7948382064a95
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2015 Nexenta Systems, Inc. All rights reserved.
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _NFS4_KPROT_H
#define _NFS4_KPROT_H
/*
* Kernel specific version.
* NFS Version 4 protocol definitions. From nfs4_prot.x rev 1.119.
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _KERNEL
#include <rpc/rpc_rdma.h>
#endif
#define NFS4_FHSIZE 128
#define NFS4_VERIFIER_SIZE 8
#define NFS4_OTHER_SIZE 12
/*
* Reasonable upper bounds to catch badly behaving partners
*/
#define NFS4_OPAQUE_LIMIT 1024
#define NFS4_COMPOUND_LIMIT 2048
#define NFS4_FS_LOCATIONS_LIMIT 65536
#define NFS4_ACL_LIMIT 65536
#define NFS4_SECINFO_LIMIT 65536
#define NFS4_FATTR4_LIMIT 1048576
#define NFS4_DATA_LIMIT 134217728
enum nfs_ftype4 {
NF4REG = 1,
NF4DIR = 2,
NF4BLK = 3,
NF4CHR = 4,
NF4LNK = 5,
NF4SOCK = 6,
NF4FIFO = 7,
NF4ATTRDIR = 8,
NF4NAMEDATTR = 9
};
typedef enum nfs_ftype4 nfs_ftype4;
enum nfsstat4 {
NFS4_OK = 0,
NFS4ERR_PERM = 1,
NFS4ERR_NOENT = 2,
NFS4ERR_IO = 5,
NFS4ERR_NXIO = 6,
NFS4ERR_ACCESS = 13,
NFS4ERR_EXIST = 17,
NFS4ERR_XDEV = 18,
NFS4ERR_NOTDIR = 20,
NFS4ERR_ISDIR = 21,
NFS4ERR_INVAL = 22,
NFS4ERR_FBIG = 27,
NFS4ERR_NOSPC = 28,
NFS4ERR_ROFS = 30,
NFS4ERR_MLINK = 31,
NFS4ERR_NAMETOOLONG = 63,
NFS4ERR_NOTEMPTY = 66,
NFS4ERR_DQUOT = 69,
NFS4ERR_STALE = 70,
NFS4ERR_BADHANDLE = 10001,
NFS4ERR_BAD_COOKIE = 10003,
NFS4ERR_NOTSUPP = 10004,
NFS4ERR_TOOSMALL = 10005,
NFS4ERR_SERVERFAULT = 10006,
NFS4ERR_BADTYPE = 10007,
NFS4ERR_DELAY = 10008,
NFS4ERR_SAME = 10009,
NFS4ERR_DENIED = 10010,
NFS4ERR_EXPIRED = 10011,
NFS4ERR_LOCKED = 10012,
NFS4ERR_GRACE = 10013,
NFS4ERR_FHEXPIRED = 10014,
NFS4ERR_SHARE_DENIED = 10015,
NFS4ERR_WRONGSEC = 10016,
NFS4ERR_CLID_INUSE = 10017,
NFS4ERR_RESOURCE = 10018,
NFS4ERR_MOVED = 10019,
NFS4ERR_NOFILEHANDLE = 10020,
NFS4ERR_MINOR_VERS_MISMATCH = 10021,
NFS4ERR_STALE_CLIENTID = 10022,
NFS4ERR_STALE_STATEID = 10023,
NFS4ERR_OLD_STATEID = 10024,
NFS4ERR_BAD_STATEID = 10025,
NFS4ERR_BAD_SEQID = 10026,
NFS4ERR_NOT_SAME = 10027,
NFS4ERR_LOCK_RANGE = 10028,
NFS4ERR_SYMLINK = 10029,
NFS4ERR_RESTOREFH = 10030,
NFS4ERR_LEASE_MOVED = 10031,
NFS4ERR_ATTRNOTSUPP = 10032,
NFS4ERR_NO_GRACE = 10033,
NFS4ERR_RECLAIM_BAD = 10034,
NFS4ERR_RECLAIM_CONFLICT = 10035,
NFS4ERR_BADXDR = 10036,
NFS4ERR_LOCKS_HELD = 10037,
NFS4ERR_OPENMODE = 10038,
NFS4ERR_BADOWNER = 10039,
NFS4ERR_BADCHAR = 10040,
NFS4ERR_BADNAME = 10041,
NFS4ERR_BAD_RANGE = 10042,
NFS4ERR_LOCK_NOTSUPP = 10043,
NFS4ERR_OP_ILLEGAL = 10044,
NFS4ERR_DEADLOCK = 10045,
NFS4ERR_FILE_OPEN = 10046,
NFS4ERR_ADMIN_REVOKED = 10047,
NFS4ERR_CB_PATH_DOWN = 10048
};
/*
* A bitmap can only be 56 bits, treat it as a uint64_t for now
*/
typedef uint32_t nfs_lease4;
typedef struct {
char *utf8string_val;
} utf8string;
typedef utf8string component4;
typedef struct {
} pathname4;
typedef uint64_t nfs_lockid4;
typedef uint64_t nfs_cookie4;
typedef struct {
char *linktext4_val;
} linktext4;
typedef utf8string ascii_REQUIRED4;
typedef struct {
char *sec_oid4_val;
} sec_oid4;
struct nfstime4 {
};
enum time_how4 {
SET_TO_SERVER_TIME4 = 0,
};
struct settime4 {
};
typedef struct {
char *nfs_fh4_val;
} nfs_fh4;
struct fsid4 {
};
struct fs_location4 {
};
typedef struct fs_location4 fs_location4;
struct fs_locations4 {
};
typedef struct fs_locations4 fs_locations4;
/*
* This structure is declared in nfs4.h
*/
struct nfs_fsl_info;
/*
* ACL support
*/
#define ACL4_SUPPORT_ALLOW_ACL 0x00000001
#define ACL4_SUPPORT_DENY_ACL 0x00000002
#define ACL4_SUPPORT_AUDIT_ACL 0x00000004
#define ACL4_SUPPORT_ALARM_ACL 0x00000008
#define ACE4_ACCESS_ALLOWED_ACE_TYPE 0x00000000
#define ACE4_ACCESS_DENIED_ACE_TYPE 0x00000001
#define ACE4_SYSTEM_AUDIT_ACE_TYPE 0x00000002
#define ACE4_SYSTEM_ALARM_ACE_TYPE 0x00000003
#define ACE4_FILE_INHERIT_ACE 0x00000001
#define ACE4_DIRECTORY_INHERIT_ACE 0x00000002
#define ACE4_NO_PROPAGATE_INHERIT_ACE 0x00000004
#define ACE4_INHERIT_ONLY_ACE 0x00000008
#define ACE4_SUCCESSFUL_ACCESS_ACE_FLAG 0x00000010
#define ACE4_FAILED_ACCESS_ACE_FLAG 0x00000020
#define ACE4_IDENTIFIER_GROUP 0x00000040
/*
* This defines all valid flag bits, as defined by RFC 3530. If
* any additional flag bits are deemed part of the NFSv4 spec,
* you must also add them to the definition below.
*/
#define ACE4_VALID_FLAG_BITS (\
#define ACE4_READ_DATA 0x00000001
#define ACE4_LIST_DIRECTORY 0x00000001
#define ACE4_WRITE_DATA 0x00000002
#define ACE4_ADD_FILE 0x00000002
#define ACE4_APPEND_DATA 0x00000004
#define ACE4_ADD_SUBDIRECTORY 0x00000004
#define ACE4_READ_NAMED_ATTRS 0x00000008
#define ACE4_WRITE_NAMED_ATTRS 0x00000010
#define ACE4_EXECUTE 0x00000020
#define ACE4_DELETE_CHILD 0x00000040
#define ACE4_READ_ATTRIBUTES 0x00000080
#define ACE4_WRITE_ATTRIBUTES 0x00000100
#define ACE4_DELETE 0x00010000
#define ACE4_READ_ACL 0x00020000
#define ACE4_WRITE_ACL 0x00040000
#define ACE4_WRITE_OWNER 0x00080000
#define ACE4_SYNCHRONIZE 0x00100000
#define ACE4_GENERIC_READ 0x00120081
#define ACE4_GENERIC_WRITE 0x00160106
#define ACE4_GENERIC_EXECUTE 0x001200A0
/*
* This defines all valid access mask bits, as defined by RFC 3530. If
* any additional access mask bits are deemed part of the NFSv4 spec,
* you must also add them to the definition below.
*/
#define ACE4_VALID_MASK_BITS (\
ACE4_READ_DATA | \
ACE4_WRITE_DATA | \
ACE4_ADD_FILE | \
ACE4_APPEND_DATA | \
ACE4_EXECUTE | \
ACE4_DELETE | \
ACE4_READ_ACL | \
ACE4_WRITE_ACL | \
ACE4_WRITE_OWNER | \
/* Used to signify an undefined value for an acemask4 */
#define ACE4_MASK_UNDEFINED 0x80000000
#define ACE4_WHO_OWNER "OWNER@"
#define ACE4_WHO_GROUP "GROUP@"
#define ACE4_WHO_EVERYONE "EVERYONE@"
struct nfsace4 {
};
#define MODE4_SUID 0x800
#define MODE4_SGID 0x400
#define MODE4_SVTX 0x200
#define MODE4_RUSR 0x100
#define MODE4_WUSR 0x080
#define MODE4_XUSR 0x040
#define MODE4_RGRP 0x020
#define MODE4_WGRP 0x010
#define MODE4_XGRP 0x008
#define MODE4_ROTH 0x004
#define MODE4_WOTH 0x002
#define MODE4_XOTH 0x001
/*
* ACL conversion helpers
*/
typedef enum {
ace4_group, /* includes GROUP and GROUP_OBJ */
typedef struct ace4vals {
int aent_type;
} ace4vals_t;
typedef struct ace4_list {
int numusers;
int numgroups;
int hasmask;
int dfacl_flag;
int seen; /* bitmask of all aclent_t a_type values seen */
} ace4_list_t;
struct specdata4 {
};
#define FH4_PERSISTENT 0x00000000
#define FH4_NOEXPIRE_WITH_OPEN 0x00000001
#define FH4_VOLATILE_ANY 0x00000002
#define FH4_VOL_MIGRATION 0x00000004
#define FH4_VOL_RENAME 0x00000008
typedef bitmap4 fattr4_supported_attrs;
typedef nfs_ftype4 fattr4_type;
typedef uint32_t fattr4_fh_expire_type;
typedef changeid4 fattr4_change;
typedef uint64_t fattr4_size;
typedef bool_t fattr4_link_support;
typedef bool_t fattr4_symlink_support;
typedef bool_t fattr4_named_attr;
typedef fsid4 fattr4_fsid;
typedef bool_t fattr4_unique_handles;
typedef nfs_lease4 fattr4_lease_time;
typedef nfsstat4 fattr4_rdattr_error;
typedef struct {
} fattr4_acl;
typedef uint32_t fattr4_aclsupport;
typedef bool_t fattr4_archive;
typedef bool_t fattr4_cansettime;
typedef bool_t fattr4_case_insensitive;
typedef bool_t fattr4_case_preserving;
typedef bool_t fattr4_chown_restricted;
typedef uint64_t fattr4_fileid;
typedef uint64_t fattr4_files_avail;
typedef nfs_fh4 fattr4_filehandle;
typedef uint64_t fattr4_files_free;
typedef uint64_t fattr4_files_total;
typedef fs_locations4 fattr4_fs_locations;
typedef bool_t fattr4_hidden;
typedef bool_t fattr4_homogeneous;
typedef uint64_t fattr4_maxfilesize;
typedef uint32_t fattr4_maxlink;
typedef uint32_t fattr4_maxname;
typedef uint64_t fattr4_maxread;
typedef uint64_t fattr4_maxwrite;
typedef ascii_REQUIRED4 fattr4_mimetype;
typedef mode4 fattr4_mode;
typedef uint64_t fattr4_mounted_on_fileid;
typedef bool_t fattr4_no_trunc;
typedef uint32_t fattr4_numlinks;
typedef utf8string fattr4_owner;
typedef utf8string fattr4_owner_group;
typedef uint64_t fattr4_quota_avail_hard;
typedef uint64_t fattr4_quota_avail_soft;
typedef uint64_t fattr4_quota_used;
typedef specdata4 fattr4_rawdev;
typedef uint64_t fattr4_space_avail;
typedef uint64_t fattr4_space_free;
typedef uint64_t fattr4_space_total;
typedef uint64_t fattr4_space_used;
typedef bool_t fattr4_system;
typedef nfstime4 fattr4_time_access;
typedef settime4 fattr4_time_access_set;
typedef nfstime4 fattr4_time_backup;
typedef nfstime4 fattr4_time_create;
typedef nfstime4 fattr4_time_delta;
typedef nfstime4 fattr4_time_metadata;
typedef nfstime4 fattr4_time_modify;
typedef settime4 fattr4_time_modify_set;
#define FATTR4_SUPPORTED_ATTRS 0
#define FATTR4_TYPE 1
#define FATTR4_FH_EXPIRE_TYPE 2
#define FATTR4_CHANGE 3
#define FATTR4_SIZE 4
#define FATTR4_LINK_SUPPORT 5
#define FATTR4_SYMLINK_SUPPORT 6
#define FATTR4_NAMED_ATTR 7
#define FATTR4_FSID 8
#define FATTR4_UNIQUE_HANDLES 9
#define FATTR4_LEASE_TIME 10
#define FATTR4_RDATTR_ERROR 11
#define FATTR4_FILEHANDLE 19
#define FATTR4_ACL 12
#define FATTR4_ACLSUPPORT 13
#define FATTR4_ARCHIVE 14
#define FATTR4_CANSETTIME 15
#define FATTR4_CASE_INSENSITIVE 16
#define FATTR4_CASE_PRESERVING 17
#define FATTR4_CHOWN_RESTRICTED 18
#define FATTR4_FILEID 20
#define FATTR4_FILES_AVAIL 21
#define FATTR4_FILES_FREE 22
#define FATTR4_FILES_TOTAL 23
#define FATTR4_FS_LOCATIONS 24
#define FATTR4_HIDDEN 25
#define FATTR4_HOMOGENEOUS 26
#define FATTR4_MAXFILESIZE 27
#define FATTR4_MAXLINK 28
#define FATTR4_MAXNAME 29
#define FATTR4_MAXREAD 30
#define FATTR4_MAXWRITE 31
#define FATTR4_MIMETYPE 32
#define FATTR4_MODE 33
#define FATTR4_NO_TRUNC 34
#define FATTR4_NUMLINKS 35
#define FATTR4_OWNER 36
#define FATTR4_OWNER_GROUP 37
#define FATTR4_QUOTA_AVAIL_HARD 38
#define FATTR4_QUOTA_AVAIL_SOFT 39
#define FATTR4_QUOTA_USED 40
#define FATTR4_RAWDEV 41
#define FATTR4_SPACE_AVAIL 42
#define FATTR4_SPACE_FREE 43
#define FATTR4_SPACE_TOTAL 44
#define FATTR4_SPACE_USED 45
#define FATTR4_SYSTEM 46
#define FATTR4_TIME_ACCESS 47
#define FATTR4_TIME_ACCESS_SET 48
#define FATTR4_TIME_BACKUP 49
#define FATTR4_TIME_CREATE 50
#define FATTR4_TIME_DELTA 51
#define FATTR4_TIME_METADATA 52
#define FATTR4_TIME_MODIFY 53
#define FATTR4_TIME_MODIFY_SET 54
#define FATTR4_MOUNTED_ON_FILEID 55
struct fattr4 {
char *attrlist4;
};
struct change_info4 {
};
typedef struct change_info4 change_info4;
struct clientaddr4 {
char *r_netid;
char *r_addr;
};
typedef struct clientaddr4 clientaddr4;
struct cb_client4 {
};
typedef struct cb_client4 cb_client4;
struct stateid4 {
char other[NFS4_OTHER_SIZE];
};
struct nfs_client_id4 {
char *id_val;
};
typedef struct nfs_client_id4 nfs_client_id4;
struct open_owner4 {
char *owner_val;
};
typedef struct open_owner4 open_owner4;
struct lock_owner4 {
char *owner_val;
};
typedef struct lock_owner4 lock_owner4;
enum nfs_lock_type4 {
READ_LT = 1,
WRITE_LT = 2,
READW_LT = 3,
WRITEW_LT = 4
};
typedef enum nfs_lock_type4 nfs_lock_type4;
#define ACCESS4_READ 0x00000001
#define ACCESS4_LOOKUP 0x00000002
#define ACCESS4_MODIFY 0x00000004
#define ACCESS4_EXTEND 0x00000008
#define ACCESS4_DELETE 0x00000010
#define ACCESS4_EXECUTE 0x00000020
struct ACCESS4args {
};
typedef struct ACCESS4args ACCESS4args;
struct ACCESS4res {
};
typedef struct ACCESS4res ACCESS4res;
struct CLOSE4args {
};
typedef struct CLOSE4args CLOSE4args;
struct CLOSE4res {
};
struct COMMIT4args {
};
typedef struct COMMIT4args COMMIT4args;
struct COMMIT4res {
};
typedef struct COMMIT4res COMMIT4res;
struct CREATE4args {
union {
} ftype4_u;
};
typedef struct CREATE4args CREATE4args;
struct CREATE4cargs {
union {
char *clinkdata;
} ftype4_u;
char *cname;
};
typedef struct CREATE4cargs CREATE4cargs;
struct CREATE4res {
};
typedef struct CREATE4res CREATE4res;
struct DELEGPURGE4args {
};
typedef struct DELEGPURGE4args DELEGPURGE4args;
struct DELEGPURGE4res {
};
typedef struct DELEGPURGE4res DELEGPURGE4res;
struct DELEGRETURN4args {
};
typedef struct DELEGRETURN4args DELEGRETURN4args;
struct DELEGRETURN4res {
};
typedef struct DELEGRETURN4res DELEGRETURN4res;
struct mntinfo4;
struct GETATTR4args {
};
typedef struct GETATTR4args GETATTR4args;
struct nfs4_ga_ext_res;
struct nfs4_ga_res {
unsigned n4g_change_valid:1;
unsigned n4g_mon_fid_valid:1;
unsigned n4g_fsid_valid:1;
struct nfs4_ga_ext_res *n4g_ext_res;
};
typedef struct nfs4_ga_res nfs4_ga_res_t;
struct GETATTR4res {
struct nfs4_ga_res ga_res;
};
typedef struct GETATTR4res GETATTR4res;
struct GETFH4res {
};
struct LINK4args {
};
struct LINK4cargs {
char *cnewname;
};
typedef struct LINK4cargs LINK4cargs;
struct LINK4res {
};
struct open_to_lock_owner4 {
};
typedef struct open_to_lock_owner4 open_to_lock_owner4;
struct exist_lock_owner4 {
};
typedef struct exist_lock_owner4 exist_lock_owner4;
struct locker4 {
union {
} locker4_u;
};
struct LOCK4args {
};
struct LOCK4denied {
};
typedef struct LOCK4denied LOCK4denied;
struct LOCK4res {
union {
} LOCK4res_u;
};
struct LOCKT4args {
};
typedef struct LOCKT4args LOCKT4args;
struct LOCKT4res {
};
struct LOCKU4args {
};
typedef struct LOCKU4args LOCKU4args;
struct LOCKU4res {
};
struct LOOKUP4args {
};
typedef struct LOOKUP4args LOOKUP4args;
struct LOOKUP4cargs {
char *cname;
};
typedef struct LOOKUP4cargs LOOKUP4cargs;
struct LOOKUP4res {
};
typedef struct LOOKUP4res LOOKUP4res;
struct LOOKUPP4res {
};
typedef struct LOOKUPP4res LOOKUPP4res;
struct NVERIFY4args {
};
typedef struct NVERIFY4args NVERIFY4args;
struct NVERIFY4res {
};
typedef struct NVERIFY4res NVERIFY4res;
enum createmode4 {
UNCHECKED4 = 0,
GUARDED4 = 1,
EXCLUSIVE4 = 2
};
typedef enum createmode4 createmode4;
enum opentype4 {
OPEN4_NOCREATE = 0,
OPEN4_CREATE = 1
};
enum limit_by4 {
NFS_LIMIT_SIZE = 1,
NFS_LIMIT_BLOCKS = 2
};
struct nfs_modified_limit4 {
};
typedef struct nfs_modified_limit4 nfs_modified_limit4;
struct nfs_space_limit4 {
union {
};
typedef struct nfs_space_limit4 nfs_space_limit4;
#define OPEN4_SHARE_ACCESS_READ 0x00000001
#define OPEN4_SHARE_ACCESS_WRITE 0x00000002
#define OPEN4_SHARE_ACCESS_BOTH 0x00000003
#define OPEN4_SHARE_DENY_NONE 0x00000000
#define OPEN4_SHARE_DENY_READ 0x00000001
#define OPEN4_SHARE_DENY_WRITE 0x00000002
#define OPEN4_SHARE_DENY_BOTH 0x00000003
enum open_delegation_type4 {
OPEN_DELEGATE_NONE = 0,
OPEN_DELEGATE_READ = 1,
};
typedef enum open_delegation_type4 open_delegation_type4;
enum open_claim_type4 {
CLAIM_NULL = 0,
CLAIM_PREVIOUS = 1,
CLAIM_DELEGATE_CUR = 2,
};
typedef enum open_claim_type4 open_claim_type4;
struct open_claim_delegate_cur4 {
};
typedef struct open_claim_delegate_cur4 open_claim_delegate_cur4;
struct copen_claim_delegate_cur4 {
char *cfile;
};
typedef struct copen_claim_delegate_cur4 copen_claim_delegate_cur4;
struct OPEN4args {
union {
} createhow4_u;
union {
};
struct OPEN4cargs {
union {
} createhow4_u;
union {
char *cfile;
char *cfile_delegate_prev;
};
typedef struct OPEN4cargs OPEN4cargs;
struct open_read_delegation4 {
};
typedef struct open_read_delegation4 open_read_delegation4;
struct open_write_delegation4 {
};
typedef struct open_write_delegation4 open_write_delegation4;
struct open_delegation4 {
union {
};
typedef struct open_delegation4 open_delegation4;
#define OPEN4_RESULT_CONFIRM 0x00000002
#define OPEN4_RESULT_LOCKTYPE_POSIX 0x00000004
struct OPEN4res {
};
struct OPENATTR4args {
};
typedef struct OPENATTR4args OPENATTR4args;
struct OPENATTR4res {
};
typedef struct OPENATTR4res OPENATTR4res;
struct OPEN_CONFIRM4args {
};
typedef struct OPEN_CONFIRM4args OPEN_CONFIRM4args;
struct OPEN_CONFIRM4res {
};
typedef struct OPEN_CONFIRM4res OPEN_CONFIRM4res;
struct OPEN_DOWNGRADE4args {
};
typedef struct OPEN_DOWNGRADE4args OPEN_DOWNGRADE4args;
struct OPEN_DOWNGRADE4res {
};
typedef struct OPEN_DOWNGRADE4res OPEN_DOWNGRADE4res;
struct PUTFH4args {
};
typedef struct PUTFH4args PUTFH4args;
/*
* Client only side PUTFH arguments
* This is really a nfs4_sharedfh_t * but the forward declaration
* is problematic;
*/
struct PUTFH4cargs {
void *sfh;
};
typedef struct PUTFH4cargs PUTFH4cargs;
struct PUTFH4res {
};
struct PUTPUBFH4res {
};
typedef struct PUTPUBFH4res PUTPUBFH4res;
struct PUTROOTFH4res {
};
typedef struct PUTROOTFH4res PUTROOTFH4res;
struct READ4args {
/* The following are used for the XDR decode path */
char *res_data_val_alt;
#ifdef _KERNEL
#endif
};
struct READ4res {
char *data_val;
#ifdef _KERNEL
#endif
};
struct rddir4_cache;
struct READDIR4args {
struct rddir4_cache *rdc;
hrtime_t t;
};
typedef struct READDIR4args READDIR4args;
struct READDIR4res_clnt {
struct rddir4_cache *rdc;
};
typedef struct READDIR4res_clnt READDIR4res_clnt;
struct READDIR4res {
};
typedef struct READDIR4res READDIR4res;
struct READLINK4res {
};
typedef struct READLINK4res READLINK4res;
struct REMOVE4args {
};
typedef struct REMOVE4args REMOVE4args;
struct REMOVE4cargs {
char *ctarget;
};
typedef struct REMOVE4cargs REMOVE4cargs;
struct REMOVE4res {
};
typedef struct REMOVE4res REMOVE4res;
struct RENAME4args {
};
typedef struct RENAME4args RENAME4args;
struct RENAME4cargs {
char *coldname;
char *cnewname;
};
typedef struct RENAME4cargs RENAME4cargs;
struct RENAME4res {
};
typedef struct RENAME4res RENAME4res;
struct RENEW4args {
};
typedef struct RENEW4args RENEW4args;
struct RENEW4res {
};
struct RESTOREFH4res {
};
typedef struct RESTOREFH4res RESTOREFH4res;
struct SAVEFH4res {
};
typedef struct SAVEFH4res SAVEFH4res;
struct SECINFO4args {
};
typedef struct SECINFO4args SECINFO4args;
struct SECINFO4cargs {
char *cname;
};
typedef struct SECINFO4cargs SECINFO4cargs;
enum rpc_gss_svc_t {
RPC_GSS_SVC_NONE = 1,
};
typedef enum rpc_gss_svc_t rpc_gss_svc_t;
struct rpcsec_gss_info {
};
typedef struct rpcsec_gss_info rpcsec_gss_info;
struct secinfo4 {
};
struct SECINFO4res {
};
typedef struct SECINFO4res SECINFO4res;
struct SETATTR4args {
};
typedef struct SETATTR4args SETATTR4args;
struct SETATTR4res {
};
typedef struct SETATTR4res SETATTR4res;
struct SETCLIENTID4args {
};
typedef struct SETCLIENTID4args SETCLIENTID4args;
struct SETCLIENTID4resok {
};
typedef struct SETCLIENTID4resok SETCLIENTID4resok;
struct SETCLIENTID4res {
union {
};
typedef struct SETCLIENTID4res SETCLIENTID4res;
struct SETCLIENTID_CONFIRM4args {
};
typedef struct SETCLIENTID_CONFIRM4args SETCLIENTID_CONFIRM4args;
struct SETCLIENTID_CONFIRM4res {
};
typedef struct SETCLIENTID_CONFIRM4res SETCLIENTID_CONFIRM4res;
struct VERIFY4args {
};
typedef struct VERIFY4args VERIFY4args;
struct VERIFY4res {
};
typedef struct VERIFY4res VERIFY4res;
enum stable_how4 {
UNSTABLE4 = 0,
DATA_SYNC4 = 1,
FILE_SYNC4 = 2
};
typedef enum stable_how4 stable_how4;
/*
* mblk doesn't go over the wire. If non-NULL, it points to an mblk chain
* for the write data.
*/
struct WRITE4args {
char *data_val;
#ifdef _KERNEL
#endif
};
typedef struct WRITE4args WRITE4args;
struct WRITE4res {
};
struct RELEASE_LOCKOWNER4args {
};
typedef struct RELEASE_LOCKOWNER4args RELEASE_LOCKOWNER4args;
struct RELEASE_LOCKOWNER4res {
};
typedef struct RELEASE_LOCKOWNER4res RELEASE_LOCKOWNER4res;
struct ILLEGAL4res {
};
typedef struct ILLEGAL4res ILLEGAL4res;
enum nfs_opnum4 {
OP_ACCESS = 3,
OP_CLOSE = 4,
OP_COMMIT = 5,
OP_CREATE = 6,
OP_DELEGPURGE = 7,
OP_DELEGRETURN = 8,
OP_GETATTR = 9,
OP_GETFH = 10,
OP_LINK = 11,
OP_LOCK = 12,
OP_LOCKT = 13,
OP_LOCKU = 14,
OP_LOOKUP = 15,
OP_LOOKUPP = 16,
OP_NVERIFY = 17,
OP_OPEN = 18,
OP_OPENATTR = 19,
OP_OPEN_CONFIRM = 20,
OP_OPEN_DOWNGRADE = 21,
OP_PUTFH = 22,
OP_PUTPUBFH = 23,
OP_PUTROOTFH = 24,
OP_READ = 25,
OP_READDIR = 26,
OP_READLINK = 27,
OP_REMOVE = 28,
OP_RENAME = 29,
OP_RENEW = 30,
OP_RESTOREFH = 31,
OP_SAVEFH = 32,
OP_SECINFO = 33,
OP_SETATTR = 34,
OP_SETCLIENTID = 35,
OP_SETCLIENTID_CONFIRM = 36,
OP_VERIFY = 37,
OP_WRITE = 38,
OP_RELEASE_LOCKOWNER = 39,
OP_ILLEGAL = 10044,
/*
* These are internal client pseudo ops that *MUST* never go over the wire
*/
#define SUNW_PRIVATE_OP 0x10000000
};
typedef enum nfs_opnum4 nfs_opnum4;
struct nfs_argop4 {
union {
} nfs_argop4_u;
};
typedef struct nfs_argop4 nfs_argop4;
struct nfs_resop4 {
union {
} nfs_resop4_u;
};
typedef struct nfs_resop4 nfs_resop4;
/*
* Fixed size tag string for easy client encoding
*/
struct _ctag {
int ct_type;
char *ct_str;
};
/*
* Client-only encode-only version
*/
struct COMPOUND4args_clnt {
int ctag;
};
typedef struct COMPOUND4args_clnt COMPOUND4args_clnt;
struct COMPOUND4args {
};
typedef struct COMPOUND4args COMPOUND4args;
struct COMPOUND4res_clnt {
};
typedef struct COMPOUND4res_clnt COMPOUND4res_clnt;
struct COMPOUND4res {
};
typedef struct COMPOUND4res COMPOUND4res;
struct CB_GETATTR4args {
};
typedef struct CB_GETATTR4args CB_GETATTR4args;
struct CB_GETATTR4res {
};
typedef struct CB_GETATTR4res CB_GETATTR4res;
struct CB_RECALL4args {
};
typedef struct CB_RECALL4args CB_RECALL4args;
struct CB_RECALL4res {
};
typedef struct CB_RECALL4res CB_RECALL4res;
struct CB_ILLEGAL4res {
};
typedef struct CB_ILLEGAL4res CB_ILLEGAL4res;
enum nfs_cb_opnum4 {
OP_CB_GETATTR = 3,
OP_CB_RECALL = 4,
OP_CB_ILLEGAL = 10044
};
typedef enum nfs_cb_opnum4 nfs_cb_opnum4;
struct nfs_cb_argop4 {
union {
};
typedef struct nfs_cb_argop4 nfs_cb_argop4;
struct nfs_cb_resop4 {
union {
};
typedef struct nfs_cb_resop4 nfs_cb_resop4;
struct CB_COMPOUND4args {
};
typedef struct CB_COMPOUND4args CB_COMPOUND4args;
struct CB_COMPOUND4res {
};
typedef struct CB_COMPOUND4res CB_COMPOUND4res;
#define NFS4_PROGRAM 100003
#define NFS_V4 4
#define NFSPROC4_NULL 0
#define NFSPROC4_COMPOUND 1
#define NFS4_CALLBACK 0x40000000
#define NFS_CB 1
#define CB_NULL 0
#define CB_COMPOUND 1
/*
* xdr for referrrals upcall
*/
#ifdef __cplusplus
}
#endif
#endif /* _NFS4_KPROT_H */