mirror_zfs/module/os/freebsd/zfs
Kyle Evans 5b090d57d4
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 <ryan@iXsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Closes #10338
2020-05-16 10:12:01 -07:00
..
abd_os.c Fix abd_enter/exit_critical wrappers 2020-05-14 20:45:16 -07:00
arc_os.c Update FreeBSD tunables 2020-04-15 11:14:47 -07:00
crypto_os.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
dmu_os.c Use new FreeBSD API to largely eliminate object locking 2020-04-17 09:30:26 -07:00
hkdf.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
kmod_core.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
spa_os.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
spa_stats.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
sysctl_os.c Update FreeBSD tunables 2020-04-15 11:14:47 -07:00
vdev_file.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
vdev_geom.c Avoid the GEOM topology lock recursion when autoexpanding a pool 2020-05-04 15:10:41 -07:00
vdev_label_os.c Add support for boot environment data to be stored in the label 2020-05-07 09:36:33 -07:00
zfs_acl.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_ctldir.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_debug.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_dir.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_file_os.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_fuid_os.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_ioctl_os.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_onexit_os.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_vfsops.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_vnops.c freebsd: return EISDIR for read(2) on directories 2020-05-16 10:12:01 -07:00
zfs_znode.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zio_crypt.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zvol_os.c Fix ZVOL_DIR 2020-05-16 10:10:38 -07:00