Skip to content

Commit cfec8f1

Browse files
pstefbehlendorf
authored andcommitted
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 <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: pstef <[email protected]> Closes openzfs#16918
1 parent 997db7a commit cfec8f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/os/freebsd/zfs/zfs_vnops_os.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6258,7 +6258,7 @@ struct vop_vector zfs_vnodeops = {
62586258
.vop_fplookup_vexec = zfs_freebsd_fplookup_vexec,
62596259
.vop_fplookup_symlink = zfs_freebsd_fplookup_symlink,
62606260
.vop_access = zfs_freebsd_access,
6261-
.vop_allocate = VOP_EINVAL,
6261+
.vop_allocate = VOP_EOPNOTSUPP,
62626262
#if __FreeBSD_version >= 1400032
62636263
.vop_deallocate = zfs_deallocate,
62646264
#endif

0 commit comments

Comments
 (0)