/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 97 nfserr = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_proc_setattr() 98 if (nfserr) in nfsd_proc_setattr() 115 nfserr = nfsd_setattr(rqstp, fhp, iap, 0, (time_t)0); in nfsd_proc_setattr() 117 return nfsd_return_attrs(nfserr, resp); in nfsd_proc_setattr() 130 __be32 nfserr; in nfsd_proc_lookup() local 136 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 | 2848 __be32 nfserr; in nfsd4_encode_dirent_fattr() local 2887 nfserr = nfserrno(err); in nfsd4_encode_dirent_fattr() 2890 nfserr = check_nfsd_access(exp, cd->rd_rqstp); in nfsd4_encode_dirent_fattr() 2891 if (nfserr) in nfsd4_encode_dirent_fattr() 2896 nfserr = nfsd4_encode_fattr(xdr, NULL, exp, dentry, cd->rd_bmval, in nfsd4_encode_dirent_fattr() 2901 return nfserr; in nfsd4_encode_dirent_fattr() 2905 nfsd4_encode_rdattr_error(struct xdr_stream *xdr, __be32 nfserr) in nfsd4_encode_rdattr_error() argument 2917 *p++ = nfserr; /* no htonl */ in nfsd4_encode_rdattr_error() 2932 __be32 nfserr = nfserr_toosmall; in nfsd4_encode_dirent() local 2959 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 | 1203 __be32 nfserr; in nfsd4_getdeviceinfo() local 1224 nfserr = nfserr_layoutunavailable; in nfsd4_getdeviceinfo() 1229 nfserr = nfs_ok; in nfsd4_getdeviceinfo() 1231 nfserr = ops->proc_getdeviceinfo(exp->ex_path.mnt->mnt_sb, gdp); in nfsd4_getdeviceinfo() 1236 return nfserr; in nfsd4_getdeviceinfo() 1247 __be32 nfserr; in nfsd4_layoutget() local 1260 nfserr = nfserr_badiomode; in nfsd4_layoutget() 1264 nfserr = fh_verify(rqstp, current_fh, 0, accmode); in nfsd4_layoutget() 1265 if (nfserr) in nfsd4_layoutget() 1268 nfserr = nfserr_layoutunavailable; in nfsd4_layoutget() [all …]
|
D | nfssvc.c | 648 static __be32 map_new_errors(u32 vers, __be32 nfserr) in map_new_errors() argument 650 if (nfserr == nfserr_jukebox && vers == 2) in map_new_errors() 652 if (nfserr == nfserr_wrongsec && vers < 4) in map_new_errors() 654 return nfserr; in map_new_errors() 693 __be32 nfserr; in nfsd_dispatch() local 737 nfserr = proc->pc_func(rqstp, rqstp->rq_argp, rqstp->rq_resp); in nfsd_dispatch() 738 nfserr = map_new_errors(rqstp->rq_vers, nfserr); in nfsd_dispatch() 739 if (nfserr == nfserr_dropit || test_bit(RQ_DROPME, &rqstp->rq_flags)) { in nfsd_dispatch() 746 *nfserrp++ = nfserr; in nfsd_dispatch() 751 if (!(nfserr && rqstp->rq_vers == 2)) { in nfsd_dispatch()
|
D | nfs4layouts.c | 359 __be32 nfserr = nfs_ok; in nfsd4_recall_conflict() local 366 nfserr = nfserr_recallconflict; in nfsd4_recall_conflict() 370 return nfserr; in nfsd4_recall_conflict() 379 __be32 nfserr; in nfsd4_insert_layout() local 382 nfserr = nfsd4_recall_conflict(ls); in nfsd4_insert_layout() 383 if (nfserr) in nfsd4_insert_layout() 400 nfserr = nfsd4_recall_conflict(ls); in nfsd4_insert_layout() 401 if (nfserr) in nfsd4_insert_layout() 419 return nfserr; in nfsd4_insert_layout() 468 __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 | 717 extern void nfsd4_bump_seqid(struct nfsd4_compound_state *, __be32 nfserr);
|
D | nfs4state.c | 1321 void nfsd4_bump_seqid(struct nfsd4_compound_state *cstate, __be32 nfserr) in nfsd4_bump_seqid() argument 1325 if (nfserr == nfserr_replay_me) in nfsd4_bump_seqid() 1328 if (!seqid_mutating_err(ntohl(nfserr))) { in nfsd4_bump_seqid() 2487 struct nfsd4_clid_slot *slot, __be32 nfserr) in nfsd4_cache_create_session() argument 2489 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 | 3070 int32_t nfserr; in __decode_op_hdr() local 3078 nfserr = be32_to_cpup(p); in __decode_op_hdr() 3079 if (nfserr == NFS_OK) in __decode_op_hdr() 3082 *nfs_retval = nfs4_stat_to_errno(nfserr); in __decode_op_hdr() 5371 int32_t nfserr; in decode_setclientid() local 5382 nfserr = be32_to_cpup(p); in decode_setclientid() 5383 if (nfserr == NFS_OK) { in decode_setclientid() 5389 } else if (nfserr == NFSERR_CLID_INUSE) { in decode_setclientid() 5411 return nfs4_stat_to_errno(nfserr); in decode_setclientid()
|