Re: dnotify/inotify and vfs questions

2005-08-25 Thread Ian Campbell
On Thu, 2005-08-25 at 15:57 +0100, Jamie Lokier wrote: > Ian Campbell wrote: > > On Tue, 2005-08-23 at 16:23 +0100, Jamie Lokier wrote: > > > ... > > > if (any_dnotify_or_inotify_events_pending) { > > > read_dnotify_or_inotify_events(); > > > if

Re: dnotify/inotify and vfs questions

2005-08-25 Thread Jamie Lokier
Ian Campbell wrote: > On Tue, 2005-08-23 at 16:23 +0100, Jamie Lokier wrote: > > ... > > if (any_dnotify_or_inotify_events_pending) { > > read_dnotify_or_inotify_events(); > > if (any_events_related_to(file)) { > > store_in_userspace_stat_cache(file,

Re: dnotify/inotify and vfs questions

2005-08-25 Thread Ian Campbell
On Tue, 2005-08-23 at 16:23 +0100, Jamie Lokier wrote: > ... > if (any_dnotify_or_inotify_events_pending) { > read_dnotify_or_inotify_events(); > if (any_events_related_to(file)) { > store_in_userspace_stat_cache(file, stat(file)); > } > } >

Re: dnotify/inotify and vfs questions

2005-08-25 Thread Ian Campbell
On Tue, 2005-08-23 at 16:23 +0100, Jamie Lokier wrote: receive some request... if (any_dnotify_or_inotify_events_pending) { read_dnotify_or_inotify_events(); if (any_events_related_to(file)) { store_in_userspace_stat_cache(file, stat(file)); }

Re: dnotify/inotify and vfs questions

2005-08-25 Thread Jamie Lokier
Ian Campbell wrote: On Tue, 2005-08-23 at 16:23 +0100, Jamie Lokier wrote: receive some request... if (any_dnotify_or_inotify_events_pending) { read_dnotify_or_inotify_events(); if (any_events_related_to(file)) { store_in_userspace_stat_cache(file,

Re: dnotify/inotify and vfs questions

2005-08-25 Thread Ian Campbell
On Thu, 2005-08-25 at 15:57 +0100, Jamie Lokier wrote: Ian Campbell wrote: On Tue, 2005-08-23 at 16:23 +0100, Jamie Lokier wrote: receive some request... if (any_dnotify_or_inotify_events_pending) { read_dnotify_or_inotify_events(); if

Re: dnotify/inotify and vfs questions

2005-08-23 Thread Jamie Lokier
Asser Femø wrote: > According to the fcntl manual you can cancel a notification by doing > fcntl(fd, F_NOTIFY, 0) (ie. sending 0 as the notification mask), but > looking in the kernel code fcntl_dirnotify() immediately calls > dnotify_flush() with neither telling the vfs module about it. Is there

dnotify/inotify and vfs questions

2005-08-23 Thread Asser Femø
Hi, I'm currently implementing change notification support for the linux cifs client as part of Google's Summer of Code program. In cifs, change notification works pretty much the same as dnotify does in the kernel, and you cancel the notification by sending a NT_CANCEL request. According to

dnotify/inotify and vfs questions

2005-08-23 Thread Asser Femø
Hi, I'm currently implementing change notification support for the linux cifs client as part of Google's Summer of Code program. In cifs, change notification works pretty much the same as dnotify does in the kernel, and you cancel the notification by sending a NT_CANCEL request. According to

Re: dnotify/inotify and vfs questions

2005-08-23 Thread Jamie Lokier
Asser Femø wrote: According to the fcntl manual you can cancel a notification by doing fcntl(fd, F_NOTIFY, 0) (ie. sending 0 as the notification mask), but looking in the kernel code fcntl_dirnotify() immediately calls dnotify_flush() with neither telling the vfs module about it. Is there a