[Bug 288014] net/samba420: errors when copying sparse files to samba share
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 288014] errors when copying sparse files to samba share"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Jul 2025 10:13:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288014 --- Comment #12 from Andrej Ebert <andrej@ebert.su> --- So I think I found the problem: [2025/07/16 07:45:20.268817, 2, pid=33508, effective(901, 1003), real(0, 0), class=smb2] ../../source3/smbd/smb2_ioctl_filesys.c:485(fsctl_zero_data) zero-data fallocate(0x3) failed: Function not implemented Then I went down a rabbit hole about fallocate(Linux-specific) and posix_fallocate. Support for it was removed a while ago in ZFS: https://lists.freebsd.org/pipermail/freebsd-fs/2017-November/025508.html Samba apparently uses posix_fallocate, but maybe doesn't handle the EINVAL from ZFS gracefully? Acording to https://reviews.llvm.org/D115957 posix_fallocate is counterproductive on ZFS _and_ UFS on FreeBSD. I'm trying to patch the port to build with -DHAVE_POSIX_FALLOCATE=0, to see how it will behave in your setup, but no sucess so far. -- You are receiving this mail because: You are the assignee for the bug.