Re: VFS event hooks

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Mon, 28 Jun 1999 22:20:04 +0200


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/