fam
[Top] [All Lists]

Re: [fam] dnotify

To: aghaffar@xxxxxxxxxxxx
Subject: Re: [fam] dnotify
From: "Rusty Ballinger" <rusty@xxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Mar 2001 02:43:20 -0800
Cc: fam@xxxxxxxxxxx
In-reply-to: Atif Ghaffar <aghaffar@xxxxxxxxxxxx> "[fam] dnotify" (Mar 11, 6:33pm)
References: <3AABB6FB.6FC57101@xxxxxxxxxxxx>
Reply-to: rusty@xxxxxxx
Sender: owner-fam@xxxxxxxxxxx
> Can dnotify work with fam?
> http://www.yggdrasil.com/cgi-bin/cvsweb.cgi/linux/Documentation/dnotify.txt?rev=1.1

I'm not very familiar with dnotify myself, but here's what I think:

- libfam could probably be rewritten to use dnotify instead of talking to
  fam on systems where it's available.
- One potential problem is that with dnotify, you need one open fd per
  monitored directory.  (Of course, for applications which only monitor one
  directory anyway, this isn't a problem.)
- When an event occurs in a directory, I don't see how to tell which file
  the event occurred on.

Most likely the way fam can benefit most from dnotify is if the imon patch
is able to make use of the dnotify hooks in the fs code.  I think dnotify &
imon have their hooks in the same places; it would be nice if imon could
use the same hooks, and be a smaller, less intimidating patch.

--Rusty

--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>