Re: [prepatch] Directory Notification

2000-05-25 Thread willy
On Thu, May 25, 2000 at 02:15:39AM -0400, Alexander Viro wrote: > On Thu, 25 May 2000 [EMAIL PROTECTED] wrote: > > > On Thu, May 25, 2000 at 12:31:57AM -0400, Alexander Viro wrote: > > > ObNotifications: IMNSHGutFeeling it _screams_ "wrong interface chosen". > > > > You feel that signals are too

Re: [prepatch] Directory Notification

2000-05-24 Thread Alexander Viro
On Thu, 25 May 2000 [EMAIL PROTECTED] wrote: > On Thu, May 25, 2000 at 12:31:57AM -0400, Alexander Viro wrote: > > ObNotifications: IMNSHGutFeeling it _screams_ "wrong interface chosen". > > You feel that signals are too heavy-weight? You may be right. What > interface would you prefer? A r

Re: [prepatch] Directory Notification

2000-05-24 Thread willy
On Thu, May 25, 2000 at 12:31:57AM -0400, Alexander Viro wrote: > ObNotifications: IMNSHGutFeeling it _screams_ "wrong interface chosen". You feel that signals are too heavy-weight? You may be right. What interface would you prefer? A remember-missed-events poll? /dev/imon? /proc/self/notifie

Re: [prepatch] Directory Notification

2000-05-24 Thread Alexander Viro
On Thu, 25 May 2000, Erez Zadok wrote: > You bring an interesting point, however. With the new multiple mounting and > vfsmount stuff, I hope that we're not re-introducing the same problems that > directory hard-linking caused. Erez, search the fsdevel archives, will you? Architecture

Re: [prepatch] Directory Notification

2000-05-24 Thread Erez Zadok
In message <8ghn4m$965$[EMAIL PROTECTED]>, Ton Hospel writes: > In article <[EMAIL PROTECTED]>, > "Theodore Y. Ts'o" <[EMAIL PROTECTED]> writes: > > This was discussed on IRC, but for those who weren't there it > > should be clear that the current implementation uses dentries, so if you

Re: [prepatch] Directory Notification

2000-05-24 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, "Theodore Y. Ts'o" <[EMAIL PROTECTED]> writes: > This was discussed on IRC, but for those who weren't there it > should be clear that the current implementation uses dentries, so if you > have a file which is hard-linked to appear in two different direc

Re: [prepatch] Directory Notification

2000-05-22 Thread Stephen C. Tweedie
Hi, On Sun, May 21, 2000 at 04:27:29PM +, Ton Hospel wrote: > > > > It delivers a realtime signal to tasks which have requested it. The task > > can then call fstat to find out what changed. > > > A poll() notification mechanism should be at least as useful for e.g. > GUI's who generally p

Re: [prepatch] Directory Notification

2000-05-22 Thread Matthew Kirkwood
On Sun, 21 May 2000, Richard Gooch wrote: > + if (!error) > + if (ia_valid & ATTR_SIZE) > + vfs_poll_notify (inode, POLLWRINODE); > + if (ia_valid & ~ATTR_SIZE) > + vfs_poll_notify (inode, POLLCHANGEDINODE); Oops. 'tis is very

Re: [prepatch] Directory Notification

2000-05-21 Thread Alexander Viro
On Sun, 21 May 2000, Alan Cox wrote: > How do you deal with the > > poll() > do stuff > poll() > > and a directory chage occuring during a 'do stuff' period Erm... Keeping the time of last poll()-reported event in struct file, for one? Not that I liked it that much, but IM

Re: [prepatch] Directory Notification

2000-05-21 Thread Richard Gooch
Alan Cox writes: > How do you deal with the > > poll() > do stuff > poll() > > and a directory chage occuring during a 'do stuff' period Check in the patch where I save some state (the event mask). Hm. I recall answering this question before (can't remember who asked it, thou

Re: [prepatch] Directory Notification

2000-05-21 Thread Alan Cox
How do you deal with the poll() do stuff poll() and a directory chage occuring during a 'do stuff' period

Re: [prepatch] Directory Notification

2000-05-21 Thread Richard Gooch
[EMAIL PROTECTED] writes: > On Sun, May 21, 2000 at 04:27:29PM +, Ton Hospel wrote: > > A poll() notification mechanism should be at least as useful for e.g. > > GUI's who generally prefer to have synchronous notification. > > Alan mentioned there were fundamental problems with this, so I > d

Re: [prepatch] Directory Notification

2000-05-21 Thread willy
On Sun, May 21, 2000 at 04:27:29PM +, Ton Hospel wrote: > A poll() notification mechanism should be at least as useful for e.g. > GUI's who generally prefer to have synchronous notification. Alan mentioned there were fundamental problems with this, so I didn't even bother investigating.

Re: [prepatch] Directory Notification

2000-05-21 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > On Sat, May 20, 2000 at 03:31:29PM -0400, Erez Zadok wrote: >> I looked briefly at the patch, and I'm afraid I don't understand some basic >> things. Perhaps you can let us (-fsdevel) all know the following (which you >> should p