Skip to content

test_os fails on FreeBSD 15 with zfs filesystem #148841

Open

Description

@neek78

Bug report

Bug description:

fallocate() fails with EOPNOTSUPP, rather than EINVAL on FreeBSD 15 with zfs.

 ======================================================================
    ERROR: test_posix_fallocate (test.test_os.test_posix.PosixTester.test_posix_fallocate)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/nick/src/cpython-fixes/Lib/test/test_os/test_posix.py", line 409, in test_posix_fallocate
        posix.posix_fallocate(fd, 0, 10)
        ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
    OSError: [Errno 45] Operation not supported

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other - FreeBSD

% uname -a
FreeBSD lappy-freebsd 15.0-RELEASE FreeBSD 15.0-RELEASE releng/15.0-n280995-7aedc8de6446 GENERIC arm64

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    on Apr 21, 2026
  2. added a commit that references this issue on Apr 21, 2026
  3. added a commit that references this issue on May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-freebsdtestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions