FreeBSD: fix up EINVAL from getdirentries on .zfs
commite37a89d5d0ba07da09998de6701a6c0ec43903b7
authorMateusz Guzik <mjguzik@gmail.com>
Thu, 20 Apr 2023 09:00:03 +0000 (20 09:00 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 26 Apr 2023 16:16:37 +0000 (26 09:16 -0700)
treece33347339b25f403396306381ec1d43d0a106df
parent88b8777159f69237ca59b31e8c246c567e836c68
FreeBSD: fix up EINVAL from getdirentries on .zfs

Without the change:
/.zfs
/.zfs/snapshot
find: /.zfs: Invalid argument

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Closes #14774
module/os/freebsd/zfs/zfs_ctldir.c