mirror of
https://git.proxmox.com/git/mirror_zfs
synced 2025-04-28 15:02:52 +00:00
zfs_vnops_os.c: fallocate is valid but not supported on FreeBSD
This works around /usr/lib/go-1.18/pkg/tool/linux_amd64/link: mapping output file failed: invalid argument It's happened to me under a Linux jail, but it's also happened to other people, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270247#c4 Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: pstef <pstef@users.noreply.github.com> Closes #16918
This commit is contained in:
parent
997db7a7fc
commit
cfec8f13a2
@ -6258,7 +6258,7 @@ struct vop_vector zfs_vnodeops = {
|
||||
.vop_fplookup_vexec = zfs_freebsd_fplookup_vexec,
|
||||
.vop_fplookup_symlink = zfs_freebsd_fplookup_symlink,
|
||||
.vop_access = zfs_freebsd_access,
|
||||
.vop_allocate = VOP_EINVAL,
|
||||
.vop_allocate = VOP_EOPNOTSUPP,
|
||||
#if __FreeBSD_version >= 1400032
|
||||
.vop_deallocate = zfs_deallocate,
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user