On Oct 26, 2009, at 3:56 PM, Carson Gaspar wrote:

On 10/26/09 3:31 PM, Richard Elling wrote:
How about a consumer for gvfs-monitor-dir(1) or gvfs-monitor- file(1)? :-)

The docs are... ummm... "skimpy" is being rather polite. The docs I can find via Google say that they will launch some random unspecified daemons via d-bus (I assume gvfsd ans gvfsd-$ {accessmethod}). This implies that you need to start a d-bus session to use them. gvfsd (no man page or docs of any kind that I can find) is linked against libgio, which has unresolved symbols against port_create() and friends, which is a good sign that they don't just poll.

I haven't dug into the details, and this has nothing to do with ZFS, but
observe the following example:

$ gvfs-monitor-file /zwimming/whee
File Monitor Event:
File = /zwimming/whee
Event = ATTRIB CHANGED
File Monitor Event:
File = /zwimming/whee
Event = CHANGED
File Monitor Event:
File = /zwimming/whee
Event = CHANGES_DONE_HINT

...while in another tab I simply did "touch /zwimming/whee"
gvfs-* commands seem more suitable for scripts or programs
than humans. But it doesn't look like a difficult script to write
in any of the scripting languages. I presume the gvfs-*
commands will be more portable than inotify & others...?
-- richard

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to