• Home
  • Raw
  • Download

Lines Matching refs:open

704 nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open)  in nfsd4_decode_open()  argument
709 memset(open->op_bmval, 0, sizeof(open->op_bmval)); in nfsd4_decode_open()
710 open->op_iattr.ia_valid = 0; in nfsd4_decode_open()
711 open->op_openowner = NULL; in nfsd4_decode_open()
715 READ32(open->op_seqid); in nfsd4_decode_open()
717 status = nfsd4_decode_share_access(argp, &open->op_share_access, in nfsd4_decode_open()
718 &open->op_deleg_want, &dummy); in nfsd4_decode_open()
721 status = nfsd4_decode_share_deny(argp, &open->op_share_deny); in nfsd4_decode_open()
725 COPYMEM(&open->op_clientid, sizeof(clientid_t)); in nfsd4_decode_open()
726 status = nfsd4_decode_opaque(argp, &open->op_owner); in nfsd4_decode_open()
730 READ32(open->op_create); in nfsd4_decode_open()
731 switch (open->op_create) { in nfsd4_decode_open()
736 READ32(open->op_createmode); in nfsd4_decode_open()
737 switch (open->op_createmode) { in nfsd4_decode_open()
740 status = nfsd4_decode_fattr(argp, open->op_bmval, in nfsd4_decode_open()
741 &open->op_iattr, &open->op_acl); in nfsd4_decode_open()
747 COPYMEM(open->op_verf.data, NFS4_VERIFIER_SIZE); in nfsd4_decode_open()
753 COPYMEM(open->op_verf.data, NFS4_VERIFIER_SIZE); in nfsd4_decode_open()
754 status = nfsd4_decode_fattr(argp, open->op_bmval, in nfsd4_decode_open()
755 &open->op_iattr, &open->op_acl); in nfsd4_decode_open()
769 READ32(open->op_claim_type); in nfsd4_decode_open()
770 switch (open->op_claim_type) { in nfsd4_decode_open()
774 READ32(open->op_fname.len); in nfsd4_decode_open()
775 READ_BUF(open->op_fname.len); in nfsd4_decode_open()
776 SAVEMEM(open->op_fname.data, open->op_fname.len); in nfsd4_decode_open()
777 if ((status = check_filename(open->op_fname.data, open->op_fname.len, nfserr_inval))) in nfsd4_decode_open()
782 READ32(open->op_delegate_type); in nfsd4_decode_open()
785 status = nfsd4_decode_stateid(argp, &open->op_delegate_stateid); in nfsd4_decode_open()
789 READ32(open->op_fname.len); in nfsd4_decode_open()
790 READ_BUF(open->op_fname.len); in nfsd4_decode_open()
791 SAVEMEM(open->op_fname.data, open->op_fname.len); in nfsd4_decode_open()
792 if ((status = check_filename(open->op_fname.data, open->op_fname.len, nfserr_inval))) in nfsd4_decode_open()
804 status = nfsd4_decode_stateid(argp, &open->op_delegate_stateid); in nfsd4_decode_open()
2787 nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open *open) in nfsd4_encode_open() argument
2795 nfsd4_encode_stateid(resp, &open->op_stateid); in nfsd4_encode_open()
2797 write_cinfo(&p, &open->op_cinfo); in nfsd4_encode_open()
2798 WRITE32(open->op_rflags); in nfsd4_encode_open()
2800 WRITE32(open->op_bmval[0]); in nfsd4_encode_open()
2801 WRITE32(open->op_bmval[1]); in nfsd4_encode_open()
2802 WRITE32(open->op_delegate_type); in nfsd4_encode_open()
2805 switch (open->op_delegate_type) { in nfsd4_encode_open()
2809 nfsd4_encode_stateid(resp, &open->op_delegate_stateid); in nfsd4_encode_open()
2811 WRITE32(open->op_recall); in nfsd4_encode_open()
2823 nfsd4_encode_stateid(resp, &open->op_delegate_stateid); in nfsd4_encode_open()
2844 switch (open->op_why_no_deleg) { in nfsd4_encode_open()
2848 WRITE32(open->op_why_no_deleg); in nfsd4_encode_open()
2853 WRITE32(open->op_why_no_deleg); in nfsd4_encode_open()