Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nfsclient/nfs_clport.c
Show First 20 Lines • Show All 1,102 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
/* | /* | ||||
* Map nfsv4 errors to errno.h errors. | * Map nfsv4 errors to errno.h errors. | ||||
* The uid and gid arguments are only used for NFSERR_BADOWNER and that | * The uid and gid arguments are only used for NFSERR_BADOWNER and that | ||||
* error should only be returned for the Open, Create and Setattr Ops. | * error should only be returned for the Open, Create and Setattr Ops. | ||||
* As such, most calls can just pass in 0 for those arguments. | * As such, most calls can just pass in 0 for those arguments. | ||||
*/ | */ | ||||
APPLESTATIC int | int | ||||
nfscl_maperr(struct thread *td, int error, uid_t uid, gid_t gid) | nfscl_maperr(struct thread *td, int error, uid_t uid, gid_t gid) | ||||
{ | { | ||||
struct proc *p; | struct proc *p; | ||||
if (error < 10000 || error >= NFSERR_STALEWRITEVERF) | if (error < 10000 || error >= NFSERR_STALEWRITEVERF) | ||||
return (error); | return (error); | ||||
if (td != NULL) | if (td != NULL) | ||||
p = td->td_proc; | p = td->td_proc; | ||||
▲ Show 20 Lines • Show All 296 Lines • Show Last 20 Lines |