Date: Wed, 28 Mar 2018 16:54:15 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r331687 - stable/11/lib/libc/sys Message-ID: <201803281654.w2SGsFpV071940@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Wed Mar 28 16:54:15 2018 New Revision: 331687 URL: https://svnweb.freebsd.org/changeset/base/331687 Log: MFC r325422: posix_fallocate.2: add an EINVAL errno case As of r325320 in HEAD posix_fallocate returns EINVAL on ZFS to indicate that the underlying filesystem does not support this operation, per POSIX.1-2008. Document this case in the man page. Note that r325320 has not yet been merged to stable/11, and may or may not be. However, we should document that EINVAL may be returned if the filesystem does not support posix_fallocate (even if we don't actually do so in stable/11), as software should be prepared to handle that case. Discussed with: avg Sponsored by: The FreeBSD Foundation Modified: stable/11/lib/libc/sys/posix_fallocate.2 Directory Properties: stable/11/ (props changed) Modified: stable/11/lib/libc/sys/posix_fallocate.2 ============================================================================== --- stable/11/lib/libc/sys/posix_fallocate.2 Wed Mar 28 16:51:05 2018 (r331686) +++ stable/11/lib/libc/sys/posix_fallocate.2 Wed Mar 28 16:54:15 2018 (r331687) @@ -28,7 +28,7 @@ .\" @(#)open.2 8.2 (Berkeley) 11/16/93 .\" $FreeBSD$ .\" -.Dd October 12, 2017 +.Dd November 4, 2017 .Dt POSIX_FALLOCATE 2 .Os .Sh NAME @@ -106,9 +106,10 @@ A signal was caught during execution. .It Bq Er EINVAL The .Fa len -argument was less than or equal to zero or the +argument was less than or equal to zero, the .Fa offset -argument was less than zero. +argument was less than zero, +or the operation is not supported by the file system. .It Bq Er EIO An I/O error occurred while reading from or writing to a file system. .It Bq Er ENODEV
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803281654.w2SGsFpV071940>