lkml.org 
[lkml]   [1999]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: bottom-up mtimes (was Re: (reiserfs) Re: I discussed reading . . .)
Kragen Sitaker wrote:
> Somebody wrote:
> > Next [for W2K emulation] files need to be able to inherit stat data, so
> > that a file can share its modification time with its parent
> > directory, so that modifying the file changes the mod time on the
> > directory.
>
> This opens some interesting possibilities:
> - - updatedb need only run on directories that have been changed;
> - - more-sophisticated versions of updatedb (full-text indexing? stat
> data?) could become feasible to update rapidly;
> - - locate could manually search directories that are newer than updatedb's
> last run, meaning locate could give correct results
> - - find could be implemented in terms of locate (except for -atime)

With something like `find' inheriting mtime doesn't work because mtimes
can be reset with utime(), see `touch --date=...' or `touch --file=...'.
You normally want that to affect Make (that's usually deliberate), but
not a program like find which should always give the same results _as
if_ it did a full scan.

-- 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.021 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site