kqueue/kevent - watching an entire filesystem?
cem at freebsd.org
Mon Dec 25 17:41:26 UTC 2017
If you want to watch whole system activity (and not just a single
filesystem), that sounds like audit. Or its crappy cousin,
filemon(4). Of course, neither of these options has a kevent-style
interface, and filemon(4) in particular may miss relevant events.
I'm afraid there is nothing better than recursively opening
subdirectories to monitor a tree (even a whole filesystem) with
On Mon, Dec 25, 2017 at 9:25 AM, Mikhail T. <mi+thun at aldan.algebra.com> wrote:
> It looks like an watching an arbitrary sub-tree with kqueue remains out of
> reach on FreeBSD -- one needs to traverse the entire (sub)tree first and
> create a separate kevent for each subdirectory.
> But, maybe, watching an entire filesystem for changes can be accomplished
> easier? If not just any filesystem -- a ZFS one?
> freebsd-fs at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
More information about the freebsd-fs