See moby/moby#41866
Basically, need to add EINVAL on this line:
|
if (err != unix.ENOSYS && err != unix.EXDEV) || !first { |
Also worth considering if any error should cause the fallback.
I haven't isolated the kernel version/zfs version that causes the issue. My kernel & zfs version are posted in the moby ticket linked above.