/Linux-v4.19/fs/nfsd/ |
D | nfsproc.c | 47 __be32 nfserr; in nfsd_proc_getattr() local 51 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr() 53 return nfsd_return_attrs(nfserr, resp); in nfsd_proc_getattr() 67 __be32 nfserr; in nfsd_proc_setattr() local 99 nfserr = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_proc_setattr() 100 if (nfserr) in nfsd_proc_setattr() 116 nfserr = nfsd_setattr(rqstp, fhp, iap, 0, (time_t)0); in nfsd_proc_setattr() 118 return nfsd_return_attrs(nfserr, resp); in nfsd_proc_setattr() 132 __be32 nfserr; in nfsd_proc_lookup() local 138 nfserr = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_lookup() [all …]
|
D | nfs3proc.c | 48 __be32 nfserr; in nfsd3_proc_getattr() local 54 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr() 56 if (nfserr) in nfsd3_proc_getattr() 57 RETURN_STATUS(nfserr); in nfsd3_proc_getattr() 59 nfserr = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr() 61 RETURN_STATUS(nfserr); in nfsd3_proc_getattr() 72 __be32 nfserr; in nfsd3_proc_setattr() local 78 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr() 80 RETURN_STATUS(nfserr); in nfsd3_proc_setattr() 91 __be32 nfserr; in nfsd3_proc_lookup() local [all …]
|
D | nfs2acl.c | 38 __be32 nfserr = 0; in nfsacld_proc_getacl() local 43 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl() 44 if (nfserr) in nfsacld_proc_getacl() 45 RETURN_STATUS(nfserr); in nfsacld_proc_getacl() 53 nfserr = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl() 54 if (nfserr) in nfsacld_proc_getacl() 55 RETURN_STATUS(nfserr); in nfsacld_proc_getacl() 64 nfserr = nfserrno(PTR_ERR(acl)); in nfsacld_proc_getacl() 74 nfserr = nfserrno(PTR_ERR(acl)); in nfsacld_proc_getacl() 86 RETURN_STATUS(nfserr); in nfsacld_proc_getacl() [all …]
|
D | nfs3acl.c | 37 __be32 nfserr = 0; in nfsd3_proc_getacl() local 40 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl() 41 if (nfserr) in nfsd3_proc_getacl() 42 RETURN_STATUS(nfserr); in nfsd3_proc_getacl() 57 nfserr = nfserrno(PTR_ERR(acl)); in nfsd3_proc_getacl() 67 nfserr = nfserrno(PTR_ERR(acl)); in nfsd3_proc_getacl() 79 RETURN_STATUS(nfserr); in nfsd3_proc_getacl() 91 __be32 nfserr = 0; in nfsd3_proc_setacl() local 95 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl() 96 if (nfserr) in nfsd3_proc_setacl() [all …]
|
D | nfs4xdr.c | 2980 __be32 nfserr; in nfsd4_encode_dirent_fattr() local 3019 nfserr = nfserrno(err); in nfsd4_encode_dirent_fattr() 3022 nfserr = check_nfsd_access(exp, cd->rd_rqstp); in nfsd4_encode_dirent_fattr() 3023 if (nfserr) in nfsd4_encode_dirent_fattr() 3028 nfserr = nfsd4_encode_fattr(xdr, NULL, exp, dentry, cd->rd_bmval, in nfsd4_encode_dirent_fattr() 3033 return nfserr; in nfsd4_encode_dirent_fattr() 3037 nfsd4_encode_rdattr_error(struct xdr_stream *xdr, __be32 nfserr) in nfsd4_encode_rdattr_error() argument 3049 *p++ = nfserr; /* no htonl */ in nfsd4_encode_rdattr_error() 3064 __be32 nfserr = nfserr_toosmall; in nfsd4_encode_dirent() local 3091 nfserr = nfsd4_encode_dirent_fattr(xdr, cd, name, namlen); in nfsd4_encode_dirent() [all …]
|
D | lockd.c | 30 __be32 nfserr; in nlm_fopen() local 39 nfserr = nfsd_open(rqstp, &fh, S_IFREG, NFSD_MAY_LOCK, filp); in nlm_fopen() 44 switch (nfserr) { in nlm_fopen()
|
D | nfs4proc.c | 1317 __be32 nfserr; in nfsd4_getdeviceinfo() local 1338 nfserr = nfserr_layoutunavailable; in nfsd4_getdeviceinfo() 1343 nfserr = nfs_ok; in nfsd4_getdeviceinfo() 1345 nfserr = ops->proc_getdeviceinfo(exp->ex_path.mnt->mnt_sb, in nfsd4_getdeviceinfo() 1352 return nfserr; in nfsd4_getdeviceinfo() 1369 __be32 nfserr; in nfsd4_layoutget() local 1382 nfserr = nfserr_badiomode; in nfsd4_layoutget() 1386 nfserr = fh_verify(rqstp, current_fh, 0, accmode); in nfsd4_layoutget() 1387 if (nfserr) in nfsd4_layoutget() 1390 nfserr = nfserr_layoutunavailable; in nfsd4_layoutget() [all …]
|
D | nfssvc.c | 750 static __be32 map_new_errors(u32 vers, __be32 nfserr) in map_new_errors() argument 752 if (nfserr == nfserr_jukebox && vers == 2) in map_new_errors() 754 if (nfserr == nfserr_wrongsec && vers < 4) in map_new_errors() 756 return nfserr; in map_new_errors() 794 __be32 nfserr; in nfsd_dispatch() local 837 nfserr = proc->pc_func(rqstp); in nfsd_dispatch() 838 nfserr = map_new_errors(rqstp->rq_vers, nfserr); in nfsd_dispatch() 839 if (nfserr == nfserr_dropit || test_bit(RQ_DROPME, &rqstp->rq_flags)) { in nfsd_dispatch() 846 *nfserrp++ = nfserr; in nfsd_dispatch() 851 if (!(nfserr && rqstp->rq_vers == 2)) { in nfsd_dispatch()
|
D | nfs4layouts.c | 387 __be32 nfserr = nfs_ok; in nfsd4_recall_conflict() local 394 nfserr = nfserr_recallconflict; in nfsd4_recall_conflict() 398 return nfserr; in nfsd4_recall_conflict() 407 __be32 nfserr; in nfsd4_insert_layout() local 410 nfserr = nfsd4_recall_conflict(ls); in nfsd4_insert_layout() 411 if (nfserr) in nfsd4_insert_layout() 428 nfserr = nfsd4_recall_conflict(ls); in nfsd4_insert_layout() 429 if (nfserr) in nfsd4_insert_layout() 447 return nfserr; in nfsd4_insert_layout() 496 __be32 nfserr; in nfsd4_return_file_layouts() local [all …]
|
D | vfs.c | 975 __be32 nfserr; in nfsd_vfs_write() local 1015 nfserr = nfs_ok; in nfsd_vfs_write() 1018 nfserr = nfserrno(host_err); in nfsd_vfs_write() 1022 return nfserr; in nfsd_vfs_write()
|
D | xdr4.h | 764 extern void nfsd4_bump_seqid(struct nfsd4_compound_state *, __be32 nfserr);
|
D | nfs4state.c | 1437 void nfsd4_bump_seqid(struct nfsd4_compound_state *cstate, __be32 nfserr) in nfsd4_bump_seqid() argument 1441 if (nfserr == nfserr_replay_me) in nfsd4_bump_seqid() 1444 if (!seqid_mutating_err(ntohl(nfserr))) { in nfsd4_bump_seqid() 2666 struct nfsd4_clid_slot *slot, __be32 nfserr) in nfsd4_cache_create_session() argument 2668 slot->sl_status = nfserr; in nfsd4_cache_create_session()
|
/Linux-v4.19/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()
|
/Linux-v4.19/fs/nfs/ |
D | nfs4xdr.c | 3196 int32_t nfserr; in __decode_op_hdr() local 3204 nfserr = be32_to_cpup(p); in __decode_op_hdr() 3205 if (nfserr == NFS_OK) in __decode_op_hdr() 3208 *nfs_retval = nfs4_stat_to_errno(nfserr); in __decode_op_hdr() 5511 int32_t nfserr; in decode_setclientid() local 5522 nfserr = be32_to_cpup(p); in decode_setclientid() 5523 if (nfserr == NFS_OK) { in decode_setclientid() 5529 } else if (nfserr == NFSERR_CLID_INUSE) { in decode_setclientid() 5551 return nfs4_stat_to_errno(nfserr); in decode_setclientid()
|