Lines Matching refs:open
946 nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) in nfsd4_decode_open() argument
951 memset(open->op_bmval, 0, sizeof(open->op_bmval)); in nfsd4_decode_open()
952 open->op_iattr.ia_valid = 0; in nfsd4_decode_open()
953 open->op_openowner = NULL; in nfsd4_decode_open()
955 open->op_xdr_error = 0; in nfsd4_decode_open()
958 open->op_seqid = be32_to_cpup(p++); in nfsd4_decode_open()
960 status = nfsd4_decode_share_access(argp, &open->op_share_access, in nfsd4_decode_open()
961 &open->op_deleg_want, &dummy); in nfsd4_decode_open()
964 status = nfsd4_decode_share_deny(argp, &open->op_share_deny); in nfsd4_decode_open()
968 COPYMEM(&open->op_clientid, sizeof(clientid_t)); in nfsd4_decode_open()
969 status = nfsd4_decode_opaque(argp, &open->op_owner); in nfsd4_decode_open()
973 open->op_create = be32_to_cpup(p++); in nfsd4_decode_open()
974 switch (open->op_create) { in nfsd4_decode_open()
979 open->op_createmode = be32_to_cpup(p++); in nfsd4_decode_open()
980 switch (open->op_createmode) { in nfsd4_decode_open()
983 status = nfsd4_decode_fattr(argp, open->op_bmval, in nfsd4_decode_open()
984 &open->op_iattr, &open->op_acl, &open->op_label, in nfsd4_decode_open()
985 &open->op_umask); in nfsd4_decode_open()
991 COPYMEM(open->op_verf.data, NFS4_VERIFIER_SIZE); in nfsd4_decode_open()
997 COPYMEM(open->op_verf.data, NFS4_VERIFIER_SIZE); in nfsd4_decode_open()
998 status = nfsd4_decode_fattr(argp, open->op_bmval, in nfsd4_decode_open()
999 &open->op_iattr, &open->op_acl, &open->op_label, in nfsd4_decode_open()
1000 &open->op_umask); in nfsd4_decode_open()
1014 open->op_claim_type = be32_to_cpup(p++); in nfsd4_decode_open()
1015 switch (open->op_claim_type) { in nfsd4_decode_open()
1019 open->op_fname.len = be32_to_cpup(p++); in nfsd4_decode_open()
1020 READ_BUF(open->op_fname.len); in nfsd4_decode_open()
1021 SAVEMEM(open->op_fname.data, open->op_fname.len); in nfsd4_decode_open()
1022 if ((status = check_filename(open->op_fname.data, open->op_fname.len))) in nfsd4_decode_open()
1027 open->op_delegate_type = be32_to_cpup(p++); in nfsd4_decode_open()
1030 status = nfsd4_decode_stateid(argp, &open->op_delegate_stateid); in nfsd4_decode_open()
1034 open->op_fname.len = be32_to_cpup(p++); in nfsd4_decode_open()
1035 READ_BUF(open->op_fname.len); in nfsd4_decode_open()
1036 SAVEMEM(open->op_fname.data, open->op_fname.len); in nfsd4_decode_open()
1037 if ((status = check_filename(open->op_fname.data, open->op_fname.len))) in nfsd4_decode_open()
1049 status = nfsd4_decode_stateid(argp, &open->op_delegate_stateid); in nfsd4_decode_open()
3657 nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open *open) in nfsd4_encode_open() argument
3662 nfserr = nfsd4_encode_stateid(xdr, &open->op_stateid); in nfsd4_encode_open()
3668 p = encode_cinfo(p, &open->op_cinfo); in nfsd4_encode_open()
3669 *p++ = cpu_to_be32(open->op_rflags); in nfsd4_encode_open()
3671 nfserr = nfsd4_encode_bitmap(xdr, open->op_bmval[0], open->op_bmval[1], in nfsd4_encode_open()
3672 open->op_bmval[2]); in nfsd4_encode_open()
3680 *p++ = cpu_to_be32(open->op_delegate_type); in nfsd4_encode_open()
3681 switch (open->op_delegate_type) { in nfsd4_encode_open()
3685 nfserr = nfsd4_encode_stateid(xdr, &open->op_delegate_stateid); in nfsd4_encode_open()
3691 *p++ = cpu_to_be32(open->op_recall); in nfsd4_encode_open()
3702 nfserr = nfsd4_encode_stateid(xdr, &open->op_delegate_stateid); in nfsd4_encode_open()
3708 *p++ = cpu_to_be32(open->op_recall); in nfsd4_encode_open()
3726 switch (open->op_why_no_deleg) { in nfsd4_encode_open()
3732 *p++ = cpu_to_be32(open->op_why_no_deleg); in nfsd4_encode_open()
3740 *p++ = cpu_to_be32(open->op_why_no_deleg); in nfsd4_encode_open()