Page MenuHomeFreeBSD

posix_fallocate(2): move unsupported case to EOPNOTSUPP
ClosedPublic

Authored by kevans on Nov 2 2025, 3:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 4, 3:25 AM
Unknown Object (File)
Thu, Dec 4, 1:39 AM
Unknown Object (File)
Wed, Nov 12, 8:58 PM
Unknown Object (File)
Wed, Nov 12, 7:19 PM
Unknown Object (File)
Wed, Nov 12, 5:09 PM
Unknown Object (File)
Wed, Nov 12, 4:48 PM
Unknown Object (File)
Sun, Nov 9, 4:03 PM
Unknown Object (File)
Sat, Nov 8, 3:21 PM
Subscribers

Details

Summary

ZFS has since been changed to use EOPNOTSUPP instead of EINVAL, and
fusefs/nfs are following suit. POSIX Issue 8 had also made this move,
so it makes sense for us to standardize on EOPNOTSUPP.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68411
Build 65294: arc lint + arc unit

Event Timeline

kevans requested review of this revision.Nov 2 2025, 3:20 PM

Worth an issue 8 note in the history standards section?

This revision is now accepted and ready to land.Nov 2 2025, 3:27 PM
In D53537#1222227, @imp wrote:

Worth an issue 8 note in the history standards section?

Might be, indeed, add such note plus note that previous versions of zfs returned EINVAL.

Describe the switch a little more in HISTORY and update the STANDARDS; the
notable changes since -2004 are this different error return and clarification
of EFBIG to surface if the file size limit is exceeded (with generation of a
SIGXFSZ).

This revision now requires review to proceed.Nov 4 2025, 3:32 PM
This revision is now accepted and ready to land.Nov 4 2025, 4:16 PM