41 eprintf(
"Op table mismatch. Got %s (%d), expected %s (%d).\n",
56 eprintf(
"encode_bitmap4: count (%d) must be <= 3\n",
71 eprintf(
"decode_bitmap4: count (%d) must be <= 3\n",
148 unsigned char *attr_vals =
fattr->attr_vals;
161 unsigned char *pfh = fh->
fh;
205 unsigned char *owner = so->
owner;
229 eprintf(
"xdr_layout_types: xdr->x_op is not XDR_DECODE! "
230 "x_op %d not supported.\n", xdr->
x_op);
243 *layout_type |= 1 << (
type - 1);
288 for (
i = 0;
i < mdsthreshold->
count;
i++)
298 char *who = ace->
who;
472static bool_t encode_state_protect_ops4(
474 state_protect_ops4 *spo)
482static bool_t encode_ssv_sp_parms4(
486 if (!encode_state_protect_ops4(xdr, &spp->ssp_ops))
519 result = xdr_state_protect_ops4(xdr, &spa->u.spa_mach_ops);
522 result = xdr_ssv_sp_parms4(xdr, &spa->u.spa_ssv_parms);
526 eprintf(
"encode_state_protect4_a: state protect "
527 "type %d not supported.\n", spa->
spa_how);
539 unsigned char *nii_name = nii->
nii_name;
572 if (
args->eia_client_impl_id)
584static bool_t decode_state_protect_ops4(
586 state_protect_ops4 *spo)
594static bool_t decode_ssv_prot_info4(
600 if (!decode_state_protect_ops4(xdr, &spi->spi_ops))
644 result = decode_state_protect_ops4(xdr, &spr->u.spr_mach_ops);
647 result = decode_ssv_prot_info4(xdr, &spr->u.spr_ssv_info);
651 eprintf(
"decode_state_protect4_r: state protect "
652 "type %d not supported.\n", spr->
spr_how);
668 return xdr_bytes(xdr, (
char **)&so_major_id,
677 char *server_scope = (
char *)
res->server_scope;
768 eprintf(
"%s: xdr->x_op %d not supported.\n",
769 "xdr_channel_attrs4", xdr->
x_op);
783 switch (
args->type) {
919 return xdr_bool(xdr, &use_rdma_ignored);
1314 const char *linkdata;
1322 linkdata = ct->
u.
lnk.linkdata;
1448 eprintf(
"%s: xdr->x_op %d is not supported!\n",
1449 "xdr_locker4", xdr->
x_op);
1529 switch (
res->status) {
1810 info->owner[owner_len] =
'\0';
1813 char *
ptr = &
info->owner_group[0];
1818 info->owner_group[owner_group_len] =
'\0';
1987 eprintf(
"encode_open_claim4: unsupported claim %d.\n",
2030 switch (why_no_deleg)
2034 return xdr_bool(xdr, &will_signal);
2065 *filesize =
blocks * bytes_per_block;
2090 eprintf(
"decode_space_limit4: limitby %d invalid\n", limitby);
2132 switch (
res->delegation->type)
2143 eprintf(
"decode_open_res_ok: delegation type %d not "
2144 "supported.\n",
res->delegation->type);
2221 unsigned char *
data =
res->data;
2289 unsigned char *nameptr = &
name[0];
2316 if (entry_len + name_len <= it->remaining_len)
2321 entry->name_len = name_len;
2324 entry->next_entry_offset = entry_len + name_len;
2326 entry->next_entry_offset = 0;
2333 it->
buf_pos += entry_len + name_len;
2636 char *
ptr = &
info->owner_group[0];
2657 eprintf(
"encode_file_attrs() attempted to encode extra "
2658 "attributes in arr[%d]: encoded %d, but wanted %d.\n",
2745 switch (
res->delegation->type)
2756 eprintf(
"decode_open_res_ok: delegation type %d not "
2757 "supported.\n",
res->delegation->type);
2900 char *
p = secinfo->
oid;
3037 char *netid =
addr->netid;
3038 char *uaddr =
addr->uaddr;
3077 for (
i = 0;
i <
list->count;
i++) {
3100 for (
i = 0;
i < servers->
count;
i++)
3113 for (
i = 0;
i < servers->
count;
i++) {
3163 switch (
res->status) {
3207 if (
args->new_offset) {
3219 if (
args->new_time) {
3253 if (
res->has_new_size)
3389 eprintf(
"%s: received non-FILE layout type, %d\n",
3390 "decode_file_layout",
layout.type);
3410 for (
i = 0;
i <
res->count;
i++)
3428 switch (
res->status) {
3432 return xdr_bool(xdr, &
res->u.will_signal_layout_avail);
3476 eprintf(
"%s: layout type (%d) is not PNFS_RETURN_FILE!\n",
3477 "encode_op_layoutreturn",
args->return_type);
3498 if (
res->stateid_present)
3611 for (
i = 0;
i <
args->argarray_count;
i++)
3632 unsigned char *
tag =
res->tag;
3646 eprintf(
"reply with %u operations, only sent %u!\n",
3653 eprintf(
"successful reply with only %u operations, sent %u!\n",
3658 for (
i = 0;
i <
res->resarray_count;
i++)
3660 expected_op =
res->resarray[
i].op;
3665 if (
res->resarray[
i].op != expected_op) {
3666 eprintf(
"reply with %s in operation %u, expected %s!\n",
3675 if (!
entry->decode(xdr, &
res->resarray[
i]))
bool_t xdr_hyper(XDR *xdrs, longlong_t *llp)
bool_t xdr_string(XDR *xdrs, char **cpp, u_int maxsize)
bool_t xdr_u_int64_t(XDR *xdrs, u_int64_t *ullp)
bool_t xdr_bool(XDR *xdrs, bool_t *bp)
bool_t xdr_u_int32_t(XDR *xdrs, u_int32_t *u_int32_p)
bool_t xdr_u_hyper(XDR *xdrs, u_longlong_t *ullp)
bool_t xdr_opaque(XDR *xdrs, caddr_t cp, u_int cnt)
bool_t xdr_bytes(XDR *xdrs, char **cpp, u_int *sizep, u_int maxsize)
bool_t xdr_enum(XDR *xdrs, enum_t *ep)
ACPI_SIZE strlen(const char *String)
static void list_add_tail(struct list_entry *head, struct list_entry *entry)
static void list_init(struct list_entry *head)
void get_nfs_time(OUT nfstime4 *nfs_time)
static __inline void nfstime_diff(IN const nfstime4 *lhs, IN const nfstime4 *rhs, OUT nfstime4 *result)
static __inline void nfstime_abs(IN const nfstime4 *nt, OUT nfstime4 *result)
void eprintf(LPCSTR format,...)
const char * nfs_opnum_to_string(int opnum)
VOID WINAPI InitializeSRWLock(PSRWLOCK Lock)
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
GLuint GLuint GLsizei GLenum type
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLuint GLuint GLsizei GLenum const GLvoid * indices
GLsizei const GLint * locations
GLenum const GLvoid * addr
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
struct task_struct * current
#define NFS41_MAX_PATH_LEN
#define NFS41_ADDRS_PER_SERVER
#define NFS41_HOSTNAME_LEN
@ FATTR4_WORD1_SPACE_FREE
@ FATTR4_WORD2_MODE_SET_MASKED
@ FATTR4_WORD1_SPACE_AVAIL
@ FATTR4_WORD1_TIME_DELTA
@ FATTR4_WORD1_TIME_CREATE
@ FATTR4_WORD1_TIME_MODIFY
@ FATTR4_WORD1_SPACE_TOTAL
@ FATTR4_WORD0_LEASE_TIME
@ FATTR4_WORD1_OWNER_GROUP
@ FATTR4_WORD0_LINK_SUPPORT
@ FATTR4_WORD0_CANSETTIME
@ FATTR4_WORD2_MDSTHRESHOLD
@ FATTR4_WORD0_CASE_PRESERVING
@ FATTR4_WORD1_TIME_ACCESS
@ FATTR4_WORD0_RDATTR_ERROR
@ FATTR4_WORD1_TIME_ACCESS_SET
@ FATTR4_WORD0_ACLSUPPORT
@ FATTR4_WORD0_SYMLINK_SUPPORT
@ FATTR4_WORD0_FS_LOCATIONS
@ FATTR4_WORD0_SUPPORTED_ATTRS
@ FATTR4_WORD2_SUPPATTR_EXCLCREAT
@ FATTR4_WORD1_FS_LAYOUT_TYPE
@ FATTR4_WORD1_TIME_MODIFY_SET
@ FATTR4_WORD0_CASE_INSENSITIVE
#define NFS41_UNIVERSAL_ADDR_LEN
#define NFS41_MAX_FILEIO_SIZE
#define NFS4_STATEID_OTHER
#define NFS4_VERIFIER_SIZE
#define NFS4_SESSIONID_SIZE
#define NFS41_NETWORK_ID_LEN
#define NFS4_OPAQUE_LIMIT
@ OP_BIND_CONN_TO_SESSION
#define MAX_MDSTHRESHOLD_ITEMS
static bool_t decode_op_delegreturn(XDR *xdr, nfs_resop4 *resop)
static bool_t encode_component(XDR *xdr, const nfs41_component *component)
static bool_t xdr_file_device(XDR *xdr, pnfs_file_device *device)
static bool_t encode_op_putrootfh(XDR *xdr, nfs_argop4 *argop)
static bool_t encode_claim_deleg_cur(XDR *xdr, stateid4 *stateid, nfs41_component *name)
static bool_t xdr_state_protect4_a(XDR *xdr, state_protect4_a *spa)
static bool_t decode_op_read(XDR *xdr, nfs_resop4 *resop)
static bool_t xdr_change_info4(XDR *xdr, change_info4 *cinfo)
static bool_t decode_space_limit4(XDR *xdr, uint64_t *filesize)
static bool_t decode_readdir_entry(XDR *xdr, readdir_entry_iterator *it)
static bool_t decode_op_readdir(XDR *xdr, nfs_resop4 *resop)
static bool_t encode_op_exchange_id(XDR *xdr, nfs_argop4 *argop)
static bool_t xdr_state_protect4_r(XDR *xdr, state_protect4_r *spr)
static bool_t encode_op_want_delegation(XDR *xdr, nfs_argop4 *argop)
static bool_t xdr_sequence_res_ok(XDR *xdr, nfs41_sequence_res_ok *res)
static bool_t encode_op_secinfo_noname(XDR *xdr, nfs_argop4 *argop)
static bool_t encode_op_delegpurge(XDR *xdr, nfs_argop4 *argop)
static bool_t encode_backchannel_sec_parms(XDR *xdr, nfs41_callback_secparms *args)
static bool_t encode_op_destroy_clientid(XDR *xdr, nfs_argop4 *argop)
static bool_t xdr_stripe_indices(XDR *xdr, pnfs_stripe_indices *indices)
static uint32_t settime_how(nfstime4 *newtime, const nfstime4 *time_delta)
static bool_t xdr_nfsacl41(XDR *xdr, nfsacl41 *acl)
static bool_t encode_op_free_stateid(XDR *xdr, nfs_argop4 *argop)
static bool_t encode_op_restorefh(XDR *xdr, nfs_argop4 *argop)
static bool_t decode_file_layout_handles(XDR *xdr, pnfs_file_layout_handles *handles)
static bool_t encode_op_open(XDR *xdr, nfs_argop4 *argop)
static bool_t decode_op_getattr(XDR *xdr, nfs_resop4 *resop)
static bool_t xdr_write_verf(XDR *xdr, nfs41_write_verf *verf)
static bool_t xdr_nfsdacl41(XDR *xdr, nfsacl41 *acl)
static bool_t decode_op_setattr(XDR *xdr, nfs_resop4 *resop)
static bool_t xdr_multi_addr(XDR *xdr, multi_addr4 *list)
static bool_t decode_op_lockt(XDR *xdr, nfs_resop4 *resop)
static bool_t decode_op_access(XDR *xdr, nfs_resop4 *resop)
static bool_t decode_op_write(XDR *xdr, nfs_resop4 *resop)
static bool_t xdr_settime4(XDR *xdr, nfstime4 *nt, const nfstime4 *time_delta)
static bool_t decode_read_res_ok(XDR *xdr, nfs41_read_res_ok *res)
static bool_t encode_op_readdir(XDR *xdr, nfs_argop4 *argop)
static bool_t decode_file_attrs(XDR *xdr, fattr4 *attrs, nfs41_file_info *info)
static bool_t encode_op_delegreturn(XDR *xdr, nfs_argop4 *argop)
static bool_t xdr_mdsthreshold(XDR *xdr, mdsthreshold4 *mdsthreshold)
static bool_t xdr_channel_attrs4(XDR *xdr, nfs41_channel_attrs *attrs)
static bool_t encode_op_link(XDR *xdr, nfs_argop4 *argop)
static bool_t decode_op_open(XDR *xdr, nfs_resop4 *resop)
static bool_t encode_op_lock(XDR *xdr, nfs_argop4 *argop)
static bool_t decode_op_lookup(XDR *xdr, nfs_resop4 *resop)
static bool_t decode_layout(XDR *xdr, struct list_entry *list)