> Ohhh ... I was thinking you'd actually be updating the serial number
> along with the date each time the file was updated ... so basicly this
> would only work if the program kept the file open ... or let the
> kernel know in some other way that it was interested.
No no again :-)
You don't have to do anything special. You don't have to keep the file
open or notify the kernel.
There's simply no need to update the serial number more than once
between checks. This is a way of avoiding wraparound due to lots of
writes between checks.
(Tweak: Further optimise by not incrementing the number if mtime is
changed (unless by utime(); (can you tell I used to program Lisp(!)?)))
-- 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/