22#ifndef __NFS41_NFS_OPS_H__
23#define __NFS41_NFS_OPS_H__
146 struct __authsys_parms {
151 struct __rpcsec_gss_parms {
346 struct __create_type_lnk {
618 struct __open_claim_null {
622 struct __open_claim_prev {
626 struct __open_claim_deleg_cur {
631 struct __open_claim_deleg_cur_fh {
635 struct __open_claim_deleg_prev {
868#define MAX_OID_LEN 128
881#define MAX_SECINFOS 6
1013 IN const unsigned char *sessionid,
1086 OUT unsigned char *data_out,
1126 OUT unsigned char *entries,
1277 IN unsigned char *deviceid,
static uint32_t stateid_array(IN struct list_entry *delegations, IN struct list_entry *opens, OUT stateid_arg **stateids_out, OUT uint32_t **statuses_out)
GLuint GLuint GLsizei GLenum type
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizei const GLint * locations
GLuint GLsizei GLsizei * length
GLuint GLint GLboolean GLint GLenum access
static const struct access_res create[16]
#define NFS4_VERIFIER_SIZE
#define NFS4_SESSIONID_SIZE
#define NFS4_OPAQUE_LIMIT
struct __nfs41_read_res_ok nfs41_read_res_ok
struct __nfs41_destroy_session_args nfs41_destroy_session_args
struct __nfs41_putfh_args nfs41_putfh_args
int nfs41_open(IN nfs41_session *session, IN nfs41_path_fh *parent, IN nfs41_path_fh *file, IN state_owner4 *owner, IN open_claim4 *claim, IN uint32_t allow, IN uint32_t deny, IN uint32_t create, IN uint32_t how_mode, IN OPTIONAL nfs41_file_info *createattrs, IN bool_t try_recovery, OUT stateid4 *stateid, OUT open_delegation4 *delegation, OUT OPTIONAL nfs41_file_info *info)
struct __nfs41_rename_res nfs41_rename_res
int nfs41_read(IN nfs41_session *session, IN nfs41_path_fh *file, IN stateid_arg *stateid, IN uint64_t offset, IN uint32_t count, OUT unsigned char *data_out, OUT uint32_t *data_len_out, OUT bool_t *eof_out)
stateid4 * nfs41_lock_stateid_copy(IN nfs41_lock_state *lock_state, IN OUT stateid4 *dest)
struct __nfs41_restorefh_savefh_res nfs41_restorefh_res
struct __nfs41_readdir_entry nfs41_readdir_entry
int nfs41_access(IN nfs41_session *session, IN nfs41_path_fh *file, IN uint32_t requested, OUT uint32_t *supported OPTIONAL, OUT uint32_t *access OPTIONAL)
enum nfsstat4 nfs41_rpc_openattr(IN nfs41_session *session, IN nfs41_path_fh *file, IN bool_t createdir, OUT nfs41_fh *fh_out)
enum nfsstat4 nfs41_free_stateid(IN nfs41_session *session, IN stateid4 *stateid)
@ OPEN4_RESULT_MAY_NOTIFY_LOCK
@ OPEN4_RESULT_PRESERVE_UNLINKED
@ OPEN4_RESULT_LOCKTYPE_POSIX
struct __openflag4 openflag4
struct __pnfs_layoutreturn_res pnfs_layoutreturn_res
struct __pnfs_getdeviceinfo_res pnfs_getdeviceinfo_res
struct __exist_lock_owner4 exist_lock_owner4
struct __nfs41_openattr_res nfs41_openattr_res
struct __nfs41_op_close_args nfs41_op_close_args
struct __nfs41_op_close_res nfs41_op_close_res
struct __nfs41_lookup_args nfs41_lookup_args
struct __nfs41_destroy_clientid_args nfs41_destroy_clientid_args
int nfs41_lock(IN nfs41_session *session, IN nfs41_path_fh *file, IN state_owner4 *owner, IN uint32_t type, IN uint64_t offset, IN uint64_t length, IN bool_t reclaim, IN bool_t try_recovery, IN OUT stateid_arg *stateid)
enum nfsstat4 pnfs_rpc_getdeviceinfo(IN nfs41_session *session, IN unsigned char *deviceid, OUT pnfs_file_device *device)
int nfs41_secinfo_noname(IN nfs41_session *session, IN nfs41_path_fh *file, OUT nfs41_secinfo_info *secinfo)
struct __nfs41_delegreturn_res nfs41_delegreturn_res
int nfs41_readdir(IN nfs41_session *session, IN nfs41_path_fh *file, IN bitmap4 *attr_request, IN nfs41_readdir_cookie *cookie, OUT unsigned char *entries, IN OUT uint32_t *entries_len, OUT bool_t *eof_out)
struct __nfs41_op_open_args nfs41_op_open_args
struct __state_protect4_r state_protect4_r
int nfs41_send_sequence(IN nfs41_session *session)
struct __nfs41_secinfo_noname_args nfs41_secinfo_noname_args
struct __nfs41_getfh_res nfs41_getfh_res
struct __state_protect4_a state_protect4_a
struct __nfs41_setattr_res nfs41_setattr_res
struct __deleg_claim4 deleg_claim4
struct __nfs41_write_res nfs41_write_res
struct __pnfs_layoutget_args pnfs_layoutget_args
struct __nfs41_create_session_args nfs41_create_session_args
enum nfsstat4 nfs41_test_stateid(IN nfs41_session *session, IN stateid_arg *stateid_array, IN uint32_t count, OUT uint32_t *status_array)
struct __nfs41_want_delegation_res nfs41_want_delegation_res
enum nfsstat4 nfs41_fs_locations(IN nfs41_session *session, IN nfs41_path_fh *parent, IN const nfs41_component *name, OUT fs_locations4 *locations)
struct __open_to_lock_owner4 open_to_lock_owner4
struct __nfs41_lock_res nfs41_lock_res
struct __nfs41_access_res nfs41_access_res
struct __nfs41_readlink_res nfs41_readlink_res
struct __pnfs_getdeviceinfo_args pnfs_getdeviceinfo_args
struct __nfs41_test_stateid_args nfs41_test_stateid_args
int nfs41_create(IN nfs41_session *session, IN uint32_t type, IN nfs41_file_info *createattrs, IN OPTIONAL const char *symlink, IN nfs41_path_fh *parent, OUT nfs41_path_fh *file, OUT nfs41_file_info *info)
int nfs41_symlink_follow(IN nfs41_root *root, IN nfs41_session *session, IN nfs41_path_fh *symlink, OUT nfs41_file_info *info)
int nfs41_destroy_session(IN nfs41_session *session)
struct __nfs41_reclaim_complete_res nfs41_reclaim_complete_res
enum nfsstat4 pnfs_rpc_layoutcommit(IN nfs41_session *session, IN nfs41_path_fh *file, IN stateid4 *stateid, IN uint64_t offset, IN uint64_t length, IN OPTIONAL uint64_t *new_last_offset, IN OPTIONAL nfstime4 *new_time_modify, OUT nfs41_file_info *info)
struct __nfs41_restorefh_savefh_res nfs41_savefh_res
struct __nfs41_secinfo_info nfs41_secinfo_info
struct __nfs41_read_args nfs41_read_args
int nfs41_delegreturn(IN nfs41_session *session, IN nfs41_path_fh *file, IN stateid_arg *stateid, IN bool_t try_recovery)
struct __nfs41_destroy_session_res nfs41_destroy_session_res
struct __nfs41_exchange_id_res nfs41_exchange_id_res
struct __nfs41_write_res_ok nfs41_write_res_ok
struct __nfs41_bind_conn_to_session_args nfs41_bind_conn_to_session_args
enum nfsstat4 nfs41_want_delegation(IN nfs41_session *session, IN nfs41_path_fh *file, IN deleg_claim4 *claim, IN uint32_t want, IN bool_t try_recovery, OUT open_delegation4 *delegation)
int nfs41_remove(IN nfs41_session *session, IN nfs41_path_fh *parent, IN const nfs41_component *target, IN uint64_t fileid)
int nfs41_create_session(IN nfs41_client *clnt, OUT nfs41_session *session, IN bool_t try_recovery)
struct __nfs41_readdir_list nfs41_readdir_list
struct __nfs41_sequence_res nfs41_sequence_res
struct __nfs41_test_stateid_res nfs41_test_stateid_res
@ OPEN4_SHARE_ACCESS_WANT_READ_DELEG
@ OPEN4_SHARE_ACCESS_WRITE
@ OPEN4_SHARE_ACCESS_WANT_PUSH_DELEG_WHEN_UNCONTENDED
@ OPEN4_SHARE_ACCESS_WANT_NO_DELEG
@ OPEN4_SHARE_ACCESS_BOTH
@ OPEN4_SHARE_ACCESS_WANT_DELEG_MASK
@ OPEN4_SHARE_ACCESS_WANT_WRITE_DELEG
@ OPEN4_SHARE_ACCESS_READ
@ OPEN4_SHARE_ACCESS_WANT_SIGNAL_DELEG_WHEN_RESRC_AVAIL
@ OPEN4_SHARE_ACCESS_WANT_NO_PREFERENCE
@ OPEN4_SHARE_ACCESS_WANT_CANCEL
@ OPEN4_SHARE_ACCESS_WANT_ANY_DELEG
struct __nfs41_write_args nfs41_write_args
enum nfsstat4 nfs41_bind_conn_to_session(IN nfs41_rpc_clnt *rpc, IN const unsigned char *sessionid, IN enum channel_dir_from_client4 dir)
struct __createhow4 createhow4
struct __nfs41_remove_args nfs41_remove_args
@ OP_BIND_CONN_TO_SESSION
struct __pnfs_layoutreturn_args pnfs_layoutreturn_args
int nfs41_getattr(IN nfs41_session *session, IN OPTIONAL nfs41_path_fh *file, IN bitmap4 *attr_request, OUT nfs41_file_info *info)
struct __nfs41_readdir_res nfs41_readdir_res
struct __nfs41_exchange_id_args nfs41_exchange_id_args
struct __nfs41_create_res nfs41_create_res
struct __nfs41_lookup_res nfs41_lookup_res
enum nfsstat4 nfs41_reclaim_complete(IN nfs41_session *session)
int nfs41_setattr(IN nfs41_session *session, IN nfs41_path_fh *file, IN stateid_arg *stateid, IN nfs41_file_info *info)
int nfs41_write(IN nfs41_session *session, IN nfs41_path_fh *file, IN stateid_arg *stateid, IN unsigned char *data, IN uint32_t data_len, IN uint64_t offset, IN enum stable_how4 stable, OUT uint32_t *bytes_written, OUT nfs41_write_verf *verf, OUT nfs41_file_info *cinfo)
@ EXCHGID4_FLAG_CONFIRMED_R
@ EXCHGID4_FLAG_UPD_CONFIRMED_REC_A
@ EXCHGID4_FLAG_SUPP_MOVED_REFER
@ EXCHGID4_FLAG_USE_PNFS_MDS
@ EXCHGID4_FLAG_MASK_PNFS
@ EXCHGID4_FLAG_SUPP_MOVED_MIGR
@ EXCHGID4_FLAG_USE_NON_PNFS
@ EXCHGID4_FLAG_BIND_PRINC_STATEID
@ EXCHGID4_FLAG_USE_PNFS_DS
struct __specdata4 specdata4
struct __pnfs_layoutget_res_ok pnfs_layoutget_res_ok
int nfs41_secinfo(IN nfs41_session *session, IN nfs41_path_fh *file, IN const nfs41_component *name, OUT nfs41_secinfo_info *secinfo)
struct __nfs41_create_session_res nfs41_create_session_res
int nfs41_cached_getattr(IN nfs41_session *session, IN nfs41_path_fh *file, OUT nfs41_file_info *info)
struct __nfs41_remove_res nfs41_remove_res
struct __nfs41_commit_res nfs41_commit_res
struct __nfs41_delegreturn_args nfs41_delegreturn_args
struct __nfs41_read_res nfs41_read_res
struct __pnfs_layoutcommit_args pnfs_layoutcommit_args
struct __nfs41_free_stateid_args nfs41_free_stateid_args
struct __nfs41_secinfo_args nfs41_secinfo_args
int nfs41_unlock(IN nfs41_session *session, IN nfs41_path_fh *file, IN uint64_t offset, IN uint64_t length, IN OUT stateid_arg *stateid)
struct __createtype4 createtype4
struct __nfs41_bind_conn_to_session_res nfs41_bind_conn_to_session_res
int nfs41_rename(IN nfs41_session *session, IN nfs41_path_fh *src_dir, IN const nfs41_component *src_name, IN nfs41_path_fh *dst_dir, IN const nfs41_component *dst_name)
int nfs41_lookup(IN nfs41_root *root, IN nfs41_session *session, IN OUT nfs41_abs_path *path, OUT OPTIONAL nfs41_path_fh *parent_out, OUT OPTIONAL nfs41_path_fh *target_out, OUT OPTIONAL nfs41_file_info *info_out, OUT nfs41_session **session_out)
struct __nfs41_destroy_clientid_res nfs41_destroy_clientid_res
int nfs41_delegpurge(IN nfs41_session *session)
struct __nfs41_link_res nfs41_link_res
struct __nfs41_callback_sec_parms nfs41_callback_secparms
@ SEQ4_STATUS_EXPIRED_SOME_STATE_REVOKED
@ SEQ4_STATUS_CB_PATH_DOWN_SESSION
@ SEQ4_STATUS_RESTART_RECLAIM_NEEDED
@ SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRING
@ SEQ4_STATUS_ADMIN_STATE_REVOKED
@ SEQ4_STATUS_LEASE_MOVED
@ SEQ4_STATUS_CB_PATH_DOWN
@ SEQ4_STATUS_BACKCHANNEL_FAULT
@ SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED
@ SEQ4_STATUS_RECALLABLE_STATE_REVOKED
@ SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRED
@ SEQ4_STATUS_DEVID_DELETED
@ SEQ4_STATUS_DEVID_CHANGED
int nfs41_superblock_getattr(IN nfs41_session *session, IN nfs41_path_fh *file, IN bitmap4 *attr_request, OUT nfs41_file_info *info, OUT bool_t *supports_named_attrs)
int nfs41_readlink(IN nfs41_session *session, IN nfs41_path_fh *file, IN uint32_t max_len, OUT char *link_out, OUT uint32_t *len_out)
struct __nfs41_free_stateid_res nfs41_free_stateid_res
struct __pnfs_layoutget_res pnfs_layoutget_res
struct __nfs41_want_delegation_args nfs41_want_delegation_args
struct __nfs41_getattr_args nfs41_getattr_args
struct __nfs41_link_args nfs41_link_args
struct __nfs41_op_open_res nfs41_op_open_res
int nfs41_link(IN nfs41_session *session, IN nfs41_path_fh *src, IN nfs41_path_fh *dst_dir, IN const nfs41_component *target, OUT nfs41_file_info *cinfo)
struct __pnfs_layoutcommit_res pnfs_layoutcommit_res
struct __stateid_arg stateid_arg
struct __nfs41_locku_res nfs41_locku_res
enum nfsstat4 pnfs_rpc_layoutget(IN nfs41_session *session, IN nfs41_path_fh *file, IN stateid_arg *stateid, IN enum pnfs_iomode iomode, IN uint64_t offset, IN uint64_t minlength, IN uint64_t length, OUT pnfs_layoutget_res_ok *layoutget_res)
struct __nfs41_lockt_args nfs41_lockt_args
struct __lock_res_ok lock_res_ok
int nfs41_exchange_id(IN nfs41_rpc_clnt *rpc, IN client_owner4 *owner, IN uint32_t flags_in, OUT nfs41_exchange_id_res *res_out)
struct __nfs41_getattr_res nfs41_getattr_res
int nfs41_destroy_clientid(IN nfs41_rpc_clnt *rpc, IN uint64_t clientid)
struct __nfs41_delegpurge_res nfs41_delegpurge_res
struct __nfs41_access_args nfs41_access_args
struct __nfs41_sequence_res_ok nfs41_sequence_res_ok
struct __nfs41_readdir_args nfs41_readdir_args
struct __open_claim4 open_claim4
struct __lock_res_denied lock_res_denied
struct __nfs41_lockt_res nfs41_lockt_res
struct __nfs41_create_args nfs41_create_args
struct __nfs41_op_open_res_ok nfs41_op_open_res_ok
struct __nfs41_lock_args nfs41_lock_args
int nfs41_symlink_target(IN nfs41_session *session, IN nfs41_path_fh *file, OUT nfs41_abs_path *target)
struct __nfs41_putfh_res nfs41_putfh_res
struct __nfs41_putrootfh_res nfs41_putrootfh_res
struct __nfs41_setattr_args nfs41_setattr_args
struct __nfs41_rename_args nfs41_rename_args
@ SECINFO_STYLE4_CURRENT_FH
@ WND4_WRITE_DELEG_NOT_SUPP_FTYPE
@ WND4_NOT_SUPP_DOWNGRADE
struct __nfs41_locku_args nfs41_locku_args
int nfs41_commit(IN nfs41_session *session, IN nfs41_path_fh *file, IN uint64_t offset, IN uint32_t count, IN bool_t do_getattr, OUT nfs41_write_verf *verf, OUT nfs41_file_info *cinfo)
struct __nfs41_sequence_args nfs41_sequence_args
int nfs41_close(IN nfs41_session *session, IN nfs41_path_fh *file, IN stateid_arg *stateid)
enum nfsstat4 pnfs_rpc_layoutreturn(IN nfs41_session *session, IN nfs41_path_fh *file, IN enum pnfs_layout_type type, IN enum pnfs_iomode iomode, IN uint64_t offset, IN uint64_t length, IN stateid4 *stateid, OUT pnfs_layoutreturn_res *layoutreturn_res)
struct __nfs41_openattr_args nfs41_openattr_args
struct __pnfs_getdeviceinfo_res_ok pnfs_getdeviceinfo_res_ok
struct __nfs41_commit_args nfs41_commit_args
struct __nfs41_secinfo_noname_res nfs41_secinfo_noname_res
PULONG MinorVersion OPTIONAL
unsigned char createverf[NFS4_VERIFIER_SIZE]
nfs41_file_info * createattrs
struct __createtype4::@41::__create_type_lnk lnk
union __createtype4::@41 u
uint32_t prev_delegate_type
stateid_arg * lock_stateid
open_to_lock_owner4 open_owner
exist_lock_owner4 lock_owner
unsigned char * sessionid
enum channel_dir_from_client4 dir
enum channel_dir_from_server4 dir
struct __nfs41_callback_sec_parms::@40::__authsys_parms auth_sys
uint32_t clnt_gssctx_hdle_len
struct __nfs41_callback_sec_parms::@40::__rpcsec_gss_parms rpcsec_gss
char * clnt_gssctx_handle
uint32_t srv_gssctx_hdle_len
union __nfs41_callback_sec_parms::@40 u
const nfs41_component * name
nfs41_file_info * createattrs
nfs41_channel_attrs csa_back_chan_attrs
nfs41_callback_secparms csa_cb_secparams[2]
nfs41_channel_attrs csa_fore_chan_attrs
nfs41_channel_attrs * csr_back_chan_attrs
nfs41_channel_attrs * csr_fore_chan_attrs
unsigned char * csr_sessionid
unsigned char * dsa_sessionid
client_owner4 * eia_clientowner
nfs_impl_id4 * eia_client_impl_id
state_protect4_a eia_state_protect
server_owner4 server_owner
uint32_t server_scope_len
state_protect4_r state_protect
char server_scope[NFS4_OPAQUE_LIMIT]
const nfs41_component * newname
union __nfs41_lock_res::@43 u
stateid_arg * lock_stateid
const nfs41_component * name
open_delegation4 * delegation
nfs41_op_open_res_ok resok4
nfs41_readdir_cookie cookie
uint32_t next_entry_offset
nfs41_file_info attr_info
unsigned char cookieverf[NFS4_VERIFIER_SIZE]
const nfs41_component * target
const nfs41_component * oldname
const nfs41_component * newname
change_info4 target_cinfo
change_info4 source_cinfo
const nfs41_component * name
enum secinfo_noname_type type
nfs41_secinfo_info * secinfo
unsigned char * sa_sessionid
uint32_t sa_highest_slotid
unsigned char sr_sessionid[NFS4_SESSIONID_SIZE]
uint32_t sr_target_highest_slotid
uint32_t sr_highest_slotid
nfs41_sequence_res_ok sr_resok4
struct __nfs41_test_stateid_res::@45 resok
open_delegation4 * delegation
nfs41_write_res_ok resok4
struct __open_claim4::@44::__open_claim_null null
struct __open_claim4::@44::__open_claim_deleg_cur_fh deleg_cur_fh
struct __open_claim4::@44::__open_claim_deleg_cur deleg_cur
const nfs41_component * filename
struct __open_claim4::@44::__open_claim_prev prev
struct __open_claim4::@44::__open_claim_deleg_prev deleg_prev
union __open_claim4::@44 u
stateid_arg * delegate_stateid
state_owner4 * lock_owner
stateid_arg * open_stateid
enum pnfs_layout_type layout_type
pnfs_file_device * device
union __pnfs_getdeviceinfo_res::@47 u
pnfs_getdeviceinfo_res_ok res_ok
bool_t signal_layout_avail
enum pnfs_layout_type layout_type
struct list_entry layouts
union __pnfs_layoutget_res::@46 u
pnfs_layoutget_res_ok * res_ok
bool_t will_signal_layout_avail
enum pnfs_layout_type type
enum pnfs_return_type return_type
state_protect_how4 spa_how
state_protect_how4 spr_how
nfs41_delegation_state * delegation