Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162632498
D53536.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
630 B
Referenced Files
None
Subscribers
None
D53536.diff
View Options
diff --git a/sys/fs/nfsclient/nfs_clvnops.c b/sys/fs/nfsclient/nfs_clvnops.c
--- a/sys/fs/nfsclient/nfs_clvnops.c
+++ b/sys/fs/nfsclient/nfs_clvnops.c
@@ -3896,11 +3896,15 @@
mtx_lock(&nmp->nm_mtx);
nmp->nm_privflag |= NFSMNTP_NOALLOCATE;
mtx_unlock(&nmp->nm_mtx);
- error = EINVAL;
+ error = EOPNOTSUPP;
}
} 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);
- error = EINVAL;
+ error = EOPNOTSUPP;
}
if (attrflag != 0) {
ret = nfscl_loadattrcache(&vp, &nfsva, NULL, 0, 1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 16, 6:53 AM (10 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35127447
Default Alt Text
D53536.diff (630 B)
Attached To
Mode
D53536: nfs_clvnops: standardize on EOPNOTSUPP for posix_fallocate(2)
Attached
Detach File
Event Timeline
Log In to Comment