[Bug 260453] ZFS truncated write to O_APPEND file from mmap'ed memory

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 16 Dec 2021 07:40:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260453

--- Comment #3 from Andriy Gapon <avg@FreeBSD.org> ---
Note that in the "old" FreeBSD ZFS (e.g., in stable/12) there wasn't a break
after an error from dmu_write_uio_dbuf() and there was some FreeBSD specific
code to handle / tolerate EFAULT.

In the new OpenZFS that logic is gone.
There is some Linux specific code for EFAULT, but for FreeBSD there seems to be
nothing.

FWIW, I think that tools/regression/fsx should / could have caught this kind of
an issue.

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