zfsonfreebsd / ZoF

ZFS on FreeBSD - the official out of tree OpenZFS implementation for FreeBSD
https://freebsd.org
Other
100 stars 8 forks source link

devd events are not generated on FreeBSD #132

Closed ghost closed 4 years ago

ghost commented 5 years ago

We have compat code for sysevent interfaces such as log_sysevent() and _ddi_log_sysevent() from FreeBSD, but it is never invoked by ZoL. As a result, we do not get ZFS events through devd.

To observe:

cat /var/run/devd.seqpacket.pipe &
truncate -s 1G disk0
zpool create testpool `pwd`/disk0
zfs create testpool/testfs
zpool history testpool
zpool destroy testpool
kill $!

We can see the history is logged but devd is not generating events.

darkfiberiru commented 4 years ago

@freqlabs Is this still true?

ghost commented 4 years ago

Yes.

darkfiberiru commented 4 years ago

@pkgdemon I assume this will break some api tests for 12 until fixed.