Author: trasz
Date: Sat Jul 18 12:21:08 2020
New Revision: 363307
URL: https://svnweb.freebsd.org/changeset/base/363307
Log:
Make linux fallocate(2) return EOPNOTSUPP, not ENOSYS, on unsupported mode,
as documented in the man page.
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/compat/linux/linux_file.c
Modified: head/sys/compat/linux/linux_file.c
==============================================================================
--- head/sys/compat/linux/linux_file.c Sat Jul 18 11:37:30 2020
(r363306)
+++ head/sys/compat/linux/linux_file.c Sat Jul 18 12:21:08 2020
(r363307)
@@ -1670,7 +1670,7 @@ linux_fallocate(struct thread *td, struct linux_falloc
* mode should be 0.
*/
if (args->mode != 0)
- return (ENOSYS);
+ return (EOPNOTSUPP);
#if defined(__amd64__) && defined(COMPAT_LINUX32)
len = PAIR32TO64(off_t, args->len);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"