/fs/nfsd/ |
D | nfsproc.c | 45 __be32 nfserr; in nfsd_proc_getattr() local 49 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr() 51 return nfsd_return_attrs(nfserr, resp); in nfsd_proc_getattr() 64 __be32 nfserr; in nfsd_proc_setattr() local 96 nfserr = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_proc_setattr() 97 if (nfserr) in nfsd_proc_setattr() 113 nfserr = nfsd_setattr(rqstp, fhp, iap, 0, (time_t)0); in nfsd_proc_setattr() 115 return nfsd_return_attrs(nfserr, resp); in nfsd_proc_setattr() 128 __be32 nfserr; in nfsd_proc_lookup() local 134 nfserr = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_lookup() [all …]
|
D | nfs3proc.c | 46 __be32 nfserr; in nfsd3_proc_getattr() local 52 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr() 54 if (nfserr) in nfsd3_proc_getattr() 55 RETURN_STATUS(nfserr); in nfsd3_proc_getattr() 57 nfserr = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr() 59 RETURN_STATUS(nfserr); in nfsd3_proc_getattr() 69 __be32 nfserr; in nfsd3_proc_setattr() local 75 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr() 77 RETURN_STATUS(nfserr); in nfsd3_proc_setattr() 87 __be32 nfserr; in nfsd3_proc_lookup() local [all …]
|
D | nfs2acl.c | 36 __be32 nfserr = 0; in nfsacld_proc_getacl() local 41 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl() 42 if (nfserr) in nfsacld_proc_getacl() 43 RETURN_STATUS(nfserr); in nfsacld_proc_getacl() 51 nfserr = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl() 52 if (nfserr) in nfsacld_proc_getacl() 53 RETURN_STATUS(nfserr); in nfsacld_proc_getacl() 62 nfserr = nfserrno(PTR_ERR(acl)); in nfsacld_proc_getacl() 72 nfserr = nfserrno(PTR_ERR(acl)); in nfsacld_proc_getacl() 84 RETURN_STATUS(nfserr); in nfsacld_proc_getacl() [all …]
|
D | nfs4xdr.c | 2886 __be32 nfserr; in nfsd4_encode_dirent_fattr() local 2925 nfserr = nfserrno(err); in nfsd4_encode_dirent_fattr() 2928 nfserr = check_nfsd_access(exp, cd->rd_rqstp); in nfsd4_encode_dirent_fattr() 2929 if (nfserr) in nfsd4_encode_dirent_fattr() 2934 nfserr = nfsd4_encode_fattr(xdr, NULL, exp, dentry, cd->rd_bmval, in nfsd4_encode_dirent_fattr() 2939 return nfserr; in nfsd4_encode_dirent_fattr() 2943 nfsd4_encode_rdattr_error(struct xdr_stream *xdr, __be32 nfserr) in nfsd4_encode_rdattr_error() argument 2955 *p++ = nfserr; /* no htonl */ in nfsd4_encode_rdattr_error() 2970 __be32 nfserr = nfserr_toosmall; in nfsd4_encode_dirent() local 2997 nfserr = nfsd4_encode_dirent_fattr(xdr, cd, name, namlen); in nfsd4_encode_dirent() [all …]
|
D | nfs3acl.c | 35 __be32 nfserr = 0; in nfsd3_proc_getacl() local 38 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl() 39 if (nfserr) in nfsd3_proc_getacl() 40 RETURN_STATUS(nfserr); in nfsd3_proc_getacl() 55 nfserr = nfserrno(PTR_ERR(acl)); in nfsd3_proc_getacl() 65 nfserr = nfserrno(PTR_ERR(acl)); in nfsd3_proc_getacl() 77 RETURN_STATUS(nfserr); in nfsd3_proc_getacl() 89 __be32 nfserr = 0; in nfsd3_proc_setacl() local 93 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl() 94 if (nfserr) in nfsd3_proc_setacl() [all …]
|
D | nfs4proc.c | 1294 __be32 nfserr; in nfsd4_getdeviceinfo() local 1315 nfserr = nfserr_layoutunavailable; in nfsd4_getdeviceinfo() 1320 nfserr = nfs_ok; in nfsd4_getdeviceinfo() 1322 nfserr = ops->proc_getdeviceinfo(exp->ex_path.mnt->mnt_sb, in nfsd4_getdeviceinfo() 1329 return nfserr; in nfsd4_getdeviceinfo() 1340 __be32 nfserr; in nfsd4_layoutget() local 1353 nfserr = nfserr_badiomode; in nfsd4_layoutget() 1357 nfserr = fh_verify(rqstp, current_fh, 0, accmode); in nfsd4_layoutget() 1358 if (nfserr) in nfsd4_layoutget() 1361 nfserr = nfserr_layoutunavailable; in nfsd4_layoutget() [all …]
|
D | nfssvc.c | 725 static __be32 map_new_errors(u32 vers, __be32 nfserr) in map_new_errors() argument 727 if (nfserr == nfserr_jukebox && vers == 2) in map_new_errors() 729 if (nfserr == nfserr_wrongsec && vers < 4) in map_new_errors() 731 return nfserr; in map_new_errors() 770 __be32 nfserr; in nfsd_dispatch() local 814 nfserr = proc->pc_func(rqstp, rqstp->rq_argp, rqstp->rq_resp); in nfsd_dispatch() 815 nfserr = map_new_errors(rqstp->rq_vers, nfserr); in nfsd_dispatch() 816 if (nfserr == nfserr_dropit || test_bit(RQ_DROPME, &rqstp->rq_flags)) { in nfsd_dispatch() 823 *nfserrp++ = nfserr; in nfsd_dispatch() 828 if (!(nfserr && rqstp->rq_vers == 2)) { in nfsd_dispatch()
|
D | nfs4layouts.c | 393 __be32 nfserr = nfs_ok; in nfsd4_recall_conflict() local 400 nfserr = nfserr_recallconflict; in nfsd4_recall_conflict() 404 return nfserr; in nfsd4_recall_conflict() 413 __be32 nfserr; in nfsd4_insert_layout() local 416 nfserr = nfsd4_recall_conflict(ls); in nfsd4_insert_layout() 417 if (nfserr) in nfsd4_insert_layout() 434 nfserr = nfsd4_recall_conflict(ls); in nfsd4_insert_layout() 435 if (nfserr) in nfsd4_insert_layout() 453 return nfserr; in nfsd4_insert_layout() 502 __be32 nfserr; in nfsd4_return_file_layouts() local [all …]
|
D | lockd.c | 29 __be32 nfserr; in nlm_fopen() local 38 nfserr = nfsd_open(rqstp, &fh, S_IFREG, NFSD_MAY_LOCK, filp); in nlm_fopen() 43 switch (nfserr) { in nlm_fopen()
|
D | xdr4.h | 755 extern void nfsd4_bump_seqid(struct nfsd4_compound_state *, __be32 nfserr);
|
D | nfs4state.c | 1425 void nfsd4_bump_seqid(struct nfsd4_compound_state *cstate, __be32 nfserr) in nfsd4_bump_seqid() argument 1429 if (nfserr == nfserr_replay_me) in nfsd4_bump_seqid() 1432 if (!seqid_mutating_err(ntohl(nfserr))) { in nfsd4_bump_seqid() 2646 struct nfsd4_clid_slot *slot, __be32 nfserr) in nfsd4_cache_create_session() argument 2648 slot->sl_status = nfserr; in nfsd4_cache_create_session()
|
/fs/lockd/ |
D | svcsubs.c | 88 __be32 nfserr; in nlm_lookup_file() local 103 nfserr = nlm_lck_denied_nolocks; in nlm_lookup_file() 119 if ((nfserr = nlmsvc_ops->fopen(rqstp, f, &file->f_file)) != 0) { in nlm_lookup_file() 120 dprintk("lockd: open failed (error %d)\n", nfserr); in nlm_lookup_file() 130 nfserr = 0; in nlm_lookup_file() 134 return nfserr; in nlm_lookup_file()
|
/fs/nfs/ |
D | nfs4xdr.c | 3075 int32_t nfserr; in __decode_op_hdr() local 3083 nfserr = be32_to_cpup(p); in __decode_op_hdr() 3084 if (nfserr == NFS_OK) in __decode_op_hdr() 3087 *nfs_retval = nfs4_stat_to_errno(nfserr); in __decode_op_hdr() 5392 int32_t nfserr; in decode_setclientid() local 5403 nfserr = be32_to_cpup(p); in decode_setclientid() 5404 if (nfserr == NFS_OK) { in decode_setclientid() 5410 } else if (nfserr == NFSERR_CLID_INUSE) { in decode_setclientid() 5432 return nfs4_stat_to_errno(nfserr); in decode_setclientid()
|