lkml.org 
[lkml]   [1999]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: VFS event hooks
Alan Cox wrote:
> Ted Tso pointed something out at Expo we'd missed. There is a problem with
> using poll() as there is no "changed since last time" case. That means there
> is no way to do
>
> {
> if(its_changed()
> do_thing
> poll()
> }
>
> as the poll won't be working for "since last poll".

Perhaps my proposal for a modification-sensing serial number could be
extended to work on all files as long as they're open?

Summary:

- New files created in "Modified" state.
- Reading serial number changes file to "Not-Modified".
- Modifying file sets "Modified" state -- and if previous state
was "Not-Modified", increments serial number once.
- "Not-Modifed"->"Modified" transition propagates to parent
- directory.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.043 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site