svn commit: r363307 - head/sys/compat/linux
Edward Tomasz Napierala
trasz at FreeBSD.org
Sat Jul 18 12:21:09 UTC 2020
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);
More information about the svn-src-head
mailing list