[Bug 276050] pijul clone on ZFS (Error: No error: 0 (os error 0))

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 12 Jan 2024 20:43:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276050

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cs@FreeBSD.org

--- Comment #8 from Mark Johnston <markj@FreeBSD.org> ---
(In reply to Mike from comment #7)
Well, clearly there is a bug in pijul, since it says "No error" but exits
anyway.

If I run the example under truss, I see:

posix_fallocate(0xb,0x0,0x300000)                ERR#22 'Invalid argument'

and indeed, ZFS does not implement fallocate on FreeBSD.  There is a Linux
implementation, but FreeBSD has ".vop_allocate = VOP_EINVAL".

Assuming that this is the root cause of the problem, either pijul needs to
tolerate such errors from posix_fallocate() if possible, or OpenZFS needs to
implement fallocate on FreeBSD.

cc'ed the devel/pijul maintainer in the hopes that this can be worked around
somehow. :)

-- 
You are receiving this mail because:
You are the assignee for the bug.