diff options
author | Kyle Evans <[email protected]> | 2020-05-16 12:12:01 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-16 10:12:01 -0700 |
commit | 5b090d57d4da09a3372b9566c46dfc51a13433c6 (patch) | |
tree | 3305b5c42cf2a3dd562bdebcfac74ad1a06571e6 /module/zfs/vdev_root.c | |
parent | d2782af461c62350abb5abe439b57961c72f9cee (diff) |
freebsd: return EISDIR for read(2) on directories
This is arguably a change for internal consistency within OpenZFS, as the
Linux implementation will reject read(2) on directories with EISDIR. It's
not unreasonable for read(2) to do something here on FreeBSD, but we don't
currently copy out anything useful anyways so start rejecting it with the
appropriate error.
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Kyle Evans <[email protected]>
Closes #10338
Diffstat (limited to 'module/zfs/vdev_root.c')
0 files changed, 0 insertions, 0 deletions