• Home
  • Raw
  • Download

Lines Matching refs:open

965 nfsd4_decode_createhow4(struct nfsd4_compoundargs *argp, struct nfsd4_open *open)  in nfsd4_decode_createhow4()  argument
969 if (xdr_stream_decode_u32(argp->xdr, &open->op_createmode) < 0) in nfsd4_decode_createhow4()
971 switch (open->op_createmode) { in nfsd4_decode_createhow4()
974 status = nfsd4_decode_fattr4(argp, open->op_bmval, in nfsd4_decode_createhow4()
975 ARRAY_SIZE(open->op_bmval), in nfsd4_decode_createhow4()
976 &open->op_iattr, &open->op_acl, in nfsd4_decode_createhow4()
977 &open->op_label, &open->op_umask); in nfsd4_decode_createhow4()
982 status = nfsd4_decode_verifier4(argp, &open->op_verf); in nfsd4_decode_createhow4()
989 status = nfsd4_decode_verifier4(argp, &open->op_verf); in nfsd4_decode_createhow4()
992 status = nfsd4_decode_fattr4(argp, open->op_bmval, in nfsd4_decode_createhow4()
993 ARRAY_SIZE(open->op_bmval), in nfsd4_decode_createhow4()
994 &open->op_iattr, &open->op_acl, in nfsd4_decode_createhow4()
995 &open->op_label, &open->op_umask); in nfsd4_decode_createhow4()
1007 nfsd4_decode_openflag4(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) in nfsd4_decode_openflag4() argument
1011 if (xdr_stream_decode_u32(argp->xdr, &open->op_create) < 0) in nfsd4_decode_openflag4()
1013 switch (open->op_create) { in nfsd4_decode_openflag4()
1017 status = nfsd4_decode_createhow4(argp, open); in nfsd4_decode_openflag4()
1092 struct nfsd4_open *open) in nfsd4_decode_open_claim4() argument
1096 if (xdr_stream_decode_u32(argp->xdr, &open->op_claim_type) < 0) in nfsd4_decode_open_claim4()
1098 switch (open->op_claim_type) { in nfsd4_decode_open_claim4()
1101 status = nfsd4_decode_component4(argp, &open->op_fname, in nfsd4_decode_open_claim4()
1102 &open->op_fnamelen); in nfsd4_decode_open_claim4()
1107 if (xdr_stream_decode_u32(argp->xdr, &open->op_delegate_type) < 0) in nfsd4_decode_open_claim4()
1111 status = nfsd4_decode_stateid4(argp, &open->op_delegate_stateid); in nfsd4_decode_open_claim4()
1114 status = nfsd4_decode_component4(argp, &open->op_fname, in nfsd4_decode_open_claim4()
1115 &open->op_fnamelen); in nfsd4_decode_open_claim4()
1128 status = nfsd4_decode_stateid4(argp, &open->op_delegate_stateid); in nfsd4_decode_open_claim4()
1140 nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) in nfsd4_decode_open() argument
1145 memset(open->op_bmval, 0, sizeof(open->op_bmval)); in nfsd4_decode_open()
1146 open->op_iattr.ia_valid = 0; in nfsd4_decode_open()
1147 open->op_openowner = NULL; in nfsd4_decode_open()
1149 open->op_xdr_error = 0; in nfsd4_decode_open()
1150 if (xdr_stream_decode_u32(argp->xdr, &open->op_seqid) < 0) in nfsd4_decode_open()
1153 status = nfsd4_decode_share_access(argp, &open->op_share_access, in nfsd4_decode_open()
1154 &open->op_deleg_want, &dummy); in nfsd4_decode_open()
1157 status = nfsd4_decode_share_deny(argp, &open->op_share_deny); in nfsd4_decode_open()
1160 status = nfsd4_decode_state_owner4(argp, &open->op_clientid, in nfsd4_decode_open()
1161 &open->op_owner); in nfsd4_decode_open()
1164 status = nfsd4_decode_openflag4(argp, open); in nfsd4_decode_open()
1167 return nfsd4_decode_open_claim4(argp, open); in nfsd4_decode_open()
3768 nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open *open) in nfsd4_encode_open() argument
3773 nfserr = nfsd4_encode_stateid(xdr, &open->op_stateid); in nfsd4_encode_open()
3779 p = encode_cinfo(p, &open->op_cinfo); in nfsd4_encode_open()
3780 *p++ = cpu_to_be32(open->op_rflags); in nfsd4_encode_open()
3782 nfserr = nfsd4_encode_bitmap(xdr, open->op_bmval[0], open->op_bmval[1], in nfsd4_encode_open()
3783 open->op_bmval[2]); in nfsd4_encode_open()
3791 *p++ = cpu_to_be32(open->op_delegate_type); in nfsd4_encode_open()
3792 switch (open->op_delegate_type) { in nfsd4_encode_open()
3796 nfserr = nfsd4_encode_stateid(xdr, &open->op_delegate_stateid); in nfsd4_encode_open()
3802 *p++ = cpu_to_be32(open->op_recall); in nfsd4_encode_open()
3813 nfserr = nfsd4_encode_stateid(xdr, &open->op_delegate_stateid); in nfsd4_encode_open()
3819 *p++ = cpu_to_be32(open->op_recall); in nfsd4_encode_open()
3837 switch (open->op_why_no_deleg) { in nfsd4_encode_open()
3843 *p++ = cpu_to_be32(open->op_why_no_deleg); in nfsd4_encode_open()
3851 *p++ = cpu_to_be32(open->op_why_no_deleg); in nfsd4_encode_open()