Skip to content

test_os fails on FreeBSD 15 with zfs filesystem #148841

@neek78

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

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions