Skip to content

Commit

Permalink
zfs_vnops_os.c: fallocate is valid but not supported on FreeBSD
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: pstef <[email protected]>
Closes #16918
  • Loading branch information
pstef authored Jan 3, 2025
1 parent d35f9f2 commit 478b095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/os/freebsd/zfs/zfs_vnops_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 478b095

Please sign in to comment.