On Sun, Oct 25, 2009 at 4:16 PM, Paul Archer <p...@paularcher.org> wrote: > OK, so this may be a little off-topic, but here goes: > The reason I switched to OpenSolaris was primarily to take advantage of > ZFS's features when storing my digital imaging collection. > > I switched from a pretty stock Linux setup, but it left me at one > disadvantage. I had been using inotify under Linux to trigger a series of > Ruby scripts that would do all the basic ingestion/setup for me (renaming > files, converting to DNG, adding bulk metadata). The scripts will run under > OpenSolaris, except for the inotify part. > > Question: Is there a facility similar to inotify that I can use to monitor a > directory structure in OpenSolaris/ZFS, such that it will block until a file > is modified (added, deleted, etc), and then pass the state along (STDOUT is > fine)? One other requirement: inotify can handle subdirectories being added > on the fly. So if you use it to monitor, for example, /data/images/incoming, > and a /data/images/incoming/100canon directory gets created, then the files > under that directory will automatically be monitored as well.
Paul, while there is no inotify for Solaris, there are similar technologies available. Check port_create(3C) and gam_server(1) -- Regards, Cyril _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss