Lines Matching refs:nfserr
3463 __be32 nfserr; in nfsd4_encode_dirent_fattr() local
3493 nfserr = nfserrno(err); in nfsd4_encode_dirent_fattr()
3496 nfserr = check_nfsd_access(exp, cd->rd_rqstp); in nfsd4_encode_dirent_fattr()
3497 if (nfserr) in nfsd4_encode_dirent_fattr()
3502 nfserr = nfsd4_encode_fattr(xdr, NULL, exp, dentry, cd->rd_bmval, in nfsd4_encode_dirent_fattr()
3507 return nfserr; in nfsd4_encode_dirent_fattr()
3511 nfsd4_encode_rdattr_error(struct xdr_stream *xdr, __be32 nfserr) in nfsd4_encode_rdattr_error() argument
3523 *p++ = nfserr; /* no htonl */ in nfsd4_encode_rdattr_error()
3538 __be32 nfserr = nfserr_toosmall; in nfsd4_encode_dirent() local
3565 nfserr = nfsd4_encode_dirent_fattr(xdr, cd, name, namlen); in nfsd4_encode_dirent()
3566 switch (nfserr) { in nfsd4_encode_dirent()
3570 nfserr = nfserr_toosmall; in nfsd4_encode_dirent()
3596 p = nfsd4_encode_rdattr_error(xdr, nfserr); in nfsd4_encode_dirent()
3598 nfserr = nfserr_toosmall; in nfsd4_encode_dirent()
3602 nfserr = nfserr_toosmall; in nfsd4_encode_dirent()
3627 cd->common.err = nfserr; in nfsd4_encode_dirent()
3646 nfsd4_encode_access(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_access *access) in nfsd4_encode_access() argument
3659 static __be32 nfsd4_encode_bind_conn_to_session(struct nfsd4_compoundres *resp, __be32 nfserr, stru… in nfsd4_encode_bind_conn_to_session() argument
3676 nfsd4_encode_close(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_close *close) in nfsd4_encode_close() argument
3685 nfsd4_encode_commit(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_commit *commit) in nfsd4_encode_commit() argument
3699 nfsd4_encode_create(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_create *create) in nfsd4_encode_create() argument
3713 nfsd4_encode_getattr(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_getattr *getattr) in nfsd4_encode_getattr() argument
3723 nfsd4_encode_getfh(struct nfsd4_compoundres *resp, __be32 nfserr, struct svc_fh **fhpp) in nfsd4_encode_getfh() argument
3778 nfsd4_encode_lock(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_lock *lock) in nfsd4_encode_lock() argument
3782 if (!nfserr) in nfsd4_encode_lock()
3783 nfserr = nfsd4_encode_stateid(xdr, &lock->lk_resp_stateid); in nfsd4_encode_lock()
3784 else if (nfserr == nfserr_denied) in nfsd4_encode_lock()
3785 nfserr = nfsd4_encode_lock_denied(xdr, &lock->lk_denied); in nfsd4_encode_lock()
3787 return nfserr; in nfsd4_encode_lock()
3791 nfsd4_encode_lockt(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_lockt *lockt) in nfsd4_encode_lockt() argument
3795 if (nfserr == nfserr_denied) in nfsd4_encode_lockt()
3797 return nfserr; in nfsd4_encode_lockt()
3801 nfsd4_encode_locku(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_locku *locku) in nfsd4_encode_locku() argument
3810 nfsd4_encode_link(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_link *link) in nfsd4_encode_link() argument
3824 nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open *open) in nfsd4_encode_open() argument
3829 nfserr = nfsd4_encode_stateid(xdr, &open->op_stateid); in nfsd4_encode_open()
3830 if (nfserr) in nfsd4_encode_open()
3831 return nfserr; in nfsd4_encode_open()
3838 nfserr = nfsd4_encode_bitmap(xdr, open->op_bmval[0], open->op_bmval[1], in nfsd4_encode_open()
3840 if (nfserr) in nfsd4_encode_open()
3841 return nfserr; in nfsd4_encode_open()
3852 nfserr = nfsd4_encode_stateid(xdr, &open->op_delegate_stateid); in nfsd4_encode_open()
3853 if (nfserr) in nfsd4_encode_open()
3854 return nfserr; in nfsd4_encode_open()
3869 nfserr = nfsd4_encode_stateid(xdr, &open->op_delegate_stateid); in nfsd4_encode_open()
3870 if (nfserr) in nfsd4_encode_open()
3871 return nfserr; in nfsd4_encode_open()
3918 nfsd4_encode_open_confirm(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open_confirm … in nfsd4_encode_open_confirm() argument
3926 nfsd4_encode_open_downgrade(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open_downgr… in nfsd4_encode_open_downgrade() argument
3941 __be32 nfserr; in nfsd4_encode_splice_read() local
3947 nfserr = nfsd_splice_read(read->rd_rqstp, read->rd_fhp, in nfsd4_encode_splice_read()
3951 if (nfserr) in nfsd4_encode_splice_read()
3956 nfserr = nfserrno(status); in nfsd4_encode_splice_read()
3993 return nfserr; in nfsd4_encode_splice_read()
4003 __be32 nfserr; in nfsd4_encode_readv() local
4009 nfserr = nfsd_readv(resp->rqstp, read->rd_fhp, file, read->rd_offset, in nfsd4_encode_readv()
4013 if (nfserr) in nfsd4_encode_readv()
4014 return nfserr; in nfsd4_encode_readv()
4025 nfsd4_encode_read(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_read() argument
4035 if (nfserr) in nfsd4_encode_read()
4036 return nfserr; in nfsd4_encode_read()
4054 nfserr = nfsd4_encode_splice_read(resp, read, file, maxcount); in nfsd4_encode_read()
4056 nfserr = nfsd4_encode_readv(resp, read, file, maxcount); in nfsd4_encode_read()
4057 if (nfserr) { in nfsd4_encode_read()
4059 return nfserr; in nfsd4_encode_read()
4068 nfsd4_encode_readlink(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_readlink *readlin… in nfsd4_encode_readlink() argument
4089 nfserr = nfsd_readlink(readlink->rl_rqstp, readlink->rl_fhp, in nfsd4_encode_readlink()
4091 if (nfserr == nfserr_isdir) in nfsd4_encode_readlink()
4092 nfserr = nfserr_inval; in nfsd4_encode_readlink()
4093 if (nfserr) in nfsd4_encode_readlink()
4098 nfserr = nfserrno(status); in nfsd4_encode_readlink()
4109 return nfserr; in nfsd4_encode_readlink()
4113 nfsd4_encode_readdir(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_readdir *readdir) in nfsd4_encode_readdir() argument
4140 nfserr = nfserr_resource; in nfsd4_encode_readdir()
4151 nfserr = nfserr_toosmall; in nfsd4_encode_readdir()
4166 nfserr = nfsd_readdir(readdir->rd_rqstp, readdir->rd_fhp, in nfsd4_encode_readdir()
4169 if (nfserr == nfs_ok && in nfsd4_encode_readdir()
4175 nfserr = nfserr_toosmall; in nfsd4_encode_readdir()
4178 nfserr = nfserr_resource; in nfsd4_encode_readdir()
4180 if (nfserr) in nfsd4_encode_readdir()
4200 return nfserr; in nfsd4_encode_readdir()
4204 nfsd4_encode_remove(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_remove *remove) in nfsd4_encode_remove() argument
4217 nfsd4_encode_rename(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_rename *rename) in nfsd4_encode_rename() argument
4299 nfsd4_encode_secinfo(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_secinfo() argument
4308 nfsd4_encode_secinfo_no_name(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_secinfo_no_name() argument
4321 nfsd4_encode_setattr(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_setattr *setattr) in nfsd4_encode_setattr() argument
4329 if (nfserr) { in nfsd4_encode_setattr()
4341 return nfserr; in nfsd4_encode_setattr()
4345 nfsd4_encode_setclientid(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_setclientid *s… in nfsd4_encode_setclientid() argument
4350 if (!nfserr) { in nfsd4_encode_setclientid()
4358 else if (nfserr == nfserr_clid_inuse) { in nfsd4_encode_setclientid()
4365 return nfserr; in nfsd4_encode_setclientid()
4369 nfsd4_encode_write(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_write *write) in nfsd4_encode_write() argument
4385 nfsd4_encode_exchange_id(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_exchange_id() argument
4421 nfserr = nfsd4_encode_bitmap(xdr, in nfsd4_encode_exchange_id()
4425 if (nfserr) in nfsd4_encode_exchange_id()
4426 return nfserr; in nfsd4_encode_exchange_id()
4428 nfserr = nfsd4_encode_bitmap(xdr, in nfsd4_encode_exchange_id()
4432 if (nfserr) in nfsd4_encode_exchange_id()
4433 return nfserr; in nfsd4_encode_exchange_id()
4463 nfsd4_encode_create_session(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_create_session() argument
4516 nfsd4_encode_sequence(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_sequence() argument
4539 nfsd4_encode_test_stateid(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_test_stateid() argument
4560 nfsd4_encode_getdeviceinfo(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_getdeviceinfo() argument
4575 nfserr = ops->encode_getdeviceinfo(xdr, gdev); in nfsd4_encode_getdeviceinfo()
4576 if (nfserr) { in nfsd4_encode_getdeviceinfo()
4584 return nfserr; in nfsd4_encode_getdeviceinfo()
4613 nfsd4_encode_layoutget(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_layoutget() argument
4640 nfsd4_encode_layoutcommit(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_layoutcommit() argument
4661 nfsd4_encode_layoutreturn(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_layoutreturn() argument
4689 __be32 nfserr; in nfsd42_encode_write_res() local
4691 nfserr = nfsd4_encode_stateid(resp->xdr, &write->cb_stateid); in nfsd42_encode_write_res()
4692 if (nfserr) in nfsd42_encode_write_res()
4693 return nfserr; in nfsd42_encode_write_res()
4747 nfsd4_encode_copy(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_copy() argument
4752 nfserr = nfsd42_encode_write_res(resp, ©->cp_res, in nfsd4_encode_copy()
4754 if (nfserr) in nfsd4_encode_copy()
4755 return nfserr; in nfsd4_encode_copy()
4764 nfsd4_encode_offload_status(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_offload_status() argument
4775 return nfserr; in nfsd4_encode_offload_status()
4788 __be32 nfserr; in nfsd4_encode_read_plus_data() local
4806 nfserr = nfsd_readv(resp->rqstp, read->rd_fhp, file, read->rd_offset, in nfsd4_encode_read_plus_data()
4808 if (nfserr) in nfsd4_encode_read_plus_data()
4809 return nfserr; in nfsd4_encode_read_plus_data()
4857 nfsd4_encode_read_plus(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_read_plus() argument
4871 if (nfserr) in nfsd4_encode_read_plus()
4872 return nfserr; in nfsd4_encode_read_plus()
4895 nfserr = nfsd4_encode_read_plus_data(resp, read, &maxcount, &eof, in nfsd4_encode_read_plus()
4898 nfserr = nfsd4_encode_read_plus_hole(resp, read, &maxcount, &eof); in nfsd4_encode_read_plus()
4899 if (nfserr) in nfsd4_encode_read_plus()
4909 if (nfserr && segments == 0) in nfsd4_encode_read_plus()
4912 if (nfserr) { in nfsd4_encode_read_plus()
4914 nfserr = nfs_ok; in nfsd4_encode_read_plus()
4923 return nfserr; in nfsd4_encode_read_plus()
4927 nfsd4_encode_copy_notify(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_copy_notify() argument
4933 if (nfserr) in nfsd4_encode_copy_notify()
4934 return nfserr; in nfsd4_encode_copy_notify()
4946 nfserr = nfsd4_encode_stateid(xdr, &cn->cpn_cnr_stateid); in nfsd4_encode_copy_notify()
4947 if (nfserr) in nfsd4_encode_copy_notify()
4948 return nfserr; in nfsd4_encode_copy_notify()
4957 nfserr = nfsd42_encode_nl4_server(resp, cn->cpn_src); in nfsd4_encode_copy_notify()
4958 return nfserr; in nfsd4_encode_copy_notify()
4962 nfsd4_encode_seek(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_seek() argument
4975 nfsd4_encode_noop(struct nfsd4_compoundres *resp, __be32 nfserr, void *p) in nfsd4_encode_noop() argument
4977 return nfserr; in nfsd4_encode_noop()
5025 nfsd4_encode_getxattr(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_getxattr() argument
5049 nfsd4_encode_setxattr(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_setxattr() argument
5090 nfsd4_encode_listxattrs(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_listxattrs() argument
5201 nfsd4_encode_removexattr(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_removexattr() argument