diff options
author | emaste <emaste@FreeBSD.org> | 2018-03-28 16:54:15 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2018-03-28 16:54:15 +0000 |
commit | e074689606c753e3328382618715757c0c2c0122 (patch) | |
tree | f5ae221ccb7d15a1cb986f2dce001937a8821e3a | |
parent | c33a215fa627864b8a43bd37fd12bf08e5611de9 (diff) | |
download | FreeBSD-src-e074689606c753e3328382618715757c0c2c0122.zip FreeBSD-src-e074689606c753e3328382618715757c0c2c0122.tar.gz |
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
-rw-r--r-- | lib/libc/sys/posix_fallocate.2 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/sys/posix_fallocate.2 b/lib/libc/sys/posix_fallocate.2 index fe64c99..d6680da 100644 --- a/lib/libc/sys/posix_fallocate.2 +++ b/lib/libc/sys/posix_fallocate.2 @@ -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 |