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.
Bug report
test_posix.test_posix_fallocatefails on FreeBSD with a ZFS filesystem: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