Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jul 2020 12:21:08 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363307 - head/sys/compat/linux
Message-ID:  <202007181221.06ICL8BU057708@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007181221.06ICL8BU057708>