]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Return EFAULT at the end of zfs_write() when set
authorRyan Moeller <ryan@iXsystems.com>
Sat, 14 Nov 2020 18:16:26 +0000 (13:16 -0500)
committerGitHub <noreply@github.com>
Sat, 14 Nov 2020 18:16:26 +0000 (10:16 -0800)
commit7e3617de35defa931ec124d1442008f73b275ecc
tree10d63edaffba8fb02b336a1cfe00769366da5488
parentb2255edcc0099e62ad46a3dd9d64537663c6aee3
Return EFAULT at the end of zfs_write() when set

FreeBSD's VFS expects EFAULT from zfs_write() if we didn't complete
the full write so it can retry the operation.  Add some missing
SET_ERRORs in zfs_write().

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11193
module/zfs/zfs_vnops.c