Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nfsclient/nfs_clvnops.c
| Show First 20 Lines • Show All 3,890 Lines • ▼ Show 20 Lines | if (error == 0) { | ||||
| nanouptime(&ts); | nanouptime(&ts); | ||||
| NFSLOCKNODE(np); | NFSLOCKNODE(np); | ||||
| np->n_localmodtime = ts; | np->n_localmodtime = ts; | ||||
| NFSUNLOCKNODE(np); | NFSUNLOCKNODE(np); | ||||
| } else if (error == NFSERR_NOTSUPP) { | } else if (error == NFSERR_NOTSUPP) { | ||||
| mtx_lock(&nmp->nm_mtx); | mtx_lock(&nmp->nm_mtx); | ||||
| nmp->nm_privflag |= NFSMNTP_NOALLOCATE; | nmp->nm_privflag |= NFSMNTP_NOALLOCATE; | ||||
| mtx_unlock(&nmp->nm_mtx); | mtx_unlock(&nmp->nm_mtx); | ||||
| error = EINVAL; | error = EOPNOTSUPP; | ||||
| } | } | ||||
| } else { | } else { | ||||
| /* | |||||
| * Pre-v4.2 NFS server that doesn't support it, or a newer | |||||
| * NFS server that has indicated that it doesn't support it. | |||||
| */ | |||||
| mtx_unlock(&nmp->nm_mtx); | mtx_unlock(&nmp->nm_mtx); | ||||
| error = EINVAL; | error = EOPNOTSUPP; | ||||
| } | } | ||||
| if (attrflag != 0) { | if (attrflag != 0) { | ||||
| ret = nfscl_loadattrcache(&vp, &nfsva, NULL, 0, 1); | ret = nfscl_loadattrcache(&vp, &nfsva, NULL, 0, 1); | ||||
| if (error == 0 && ret != 0) | if (error == 0 && ret != 0) | ||||
| error = ret; | error = ret; | ||||
| } | } | ||||
| if (error != 0) | if (error != 0) | ||||
| error = nfscl_maperr(td, error, (uid_t)0, (gid_t)0); | error = nfscl_maperr(td, error, (uid_t)0, (gid_t)0); | ||||
| ▲ Show 20 Lines • Show All 951 Lines • Show Last 20 Lines | |||||