Skip to content

test_posix_fallocate fails on FreeBSD with ZFS #154218

Description

@serhiy-storchaka

Bug report

test_posix.test_posix_fallocate fails on FreeBSD with a ZFS filesystem:

OSError: [Errno 45] Operation not supported

The test skips on EINVAL for Solaris, FreeBSD, OpenBSD and GNU/kFreeBSD (the old ZFS behavior) and on EOPNOTSUPP only for NetBSD (FFS), but modern FreeBSD ZFS returns EOPNOTSUPP. Since EOPNOTSUPP always means that the file system does not support posix_fallocate(), skip on it regardless of platform.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixes3.15pre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixesOS-freebsdtestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions