[OpenIndiana-discuss] Add inotify support to illumos-gate
Guenther Alka
gea at napp-it.org
Tue May 2 12:41:38 UTC 2023
Not sure if this is helpful for your problem..
I use fswatch 1.17.1 for filesystem monitoring in napp-it.
It supports the Solaris file event notification (or the Linux inotify
with some problems on Solaris so prefer event notification on Illumos).
You can compile it via
cd /root
wget
https://github.com/emcrisostomo/fswatch/releases/download/1.17.1/fswatch-1.17.1.tar.gz
--no-check-certificate
tar -zxvf fswatch-1.17.1.tar.gz
cd fswatch-1.17.1/
./configure
make
make install
installs binaries to-> /usr/local/bin.
/The File Events Notification Monitor//
//
//The File Events Notification monitor is backed by the File Events
Notification API of the Solaris/Illumos kernel. This monitor is very
efficient, it suffers from no known resource-exhaustion problems and it
scales very well with the number of objects being watched. This monitor
is the default monitor on systems running a Solaris or Illumos kernel
providing this API. /
https://github.com/emcrisostomo/fswatch
Gea
> Hello!
>
> As a search result from this morning, glib misses inotify/fam support,
> which is a reason for mate-system-monitor to dump core.
>
> FAM seems to be too old, but inotify-support is not in illumos-gate,
> but Smartos has support for it.
>
>
> Which is the "right" way to include inotify support in OI ?
>
> a) Should we hopefully ask some smartos-developer to upstream this?
>
> b) As a patch (-set) within oi-userland to illumos-gate ?
>
> c) ??
>
>
> A small search in the smart-os tree gives this:
>
> $ find . -iname "*inotify*"
> ./illumos-joyent/usr/src/lib/libc/port/sys/inotify.c
> ./illumos-joyent/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_watched_inotify.ksh
>
> ./illumos-joyent/usr/src/man/man3c/inotify_rm_watch.3c
> ./illumos-joyent/usr/src/man/man3c/inotify_init.3c
> ./illumos-joyent/usr/src/man/man3c/inotify_add_watch.3c
> ./illumos-joyent/usr/src/man/man7/inotify.7
> ./illumos-joyent/usr/src/uts/sparc/inotify
> ./illumos-joyent/usr/src/uts/intel/inotify
> ./illumos-joyent/usr/src/uts/common/io/inotify.c
> ./illumos-joyent/usr/src/uts/common/io/inotify.conf
> ./illumos-joyent/usr/src/uts/common/sys/inotify.h
>
>
> Regards,
>
> Stephan Althaus
>
>
>
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
More information about the openindiana-discuss
mailing list