lkml.org 
[lkml]   [2004]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] O_NOATIME support
From
On Mon, Jun 14, 2004 at 03:03:56PM +0100, Christoph Hellwig wrote:
> On Mon, Jun 14, 2004 at 10:46:52AM -0300, Cesar Eduardo Barros wrote:
> > I don't see why preserving the mtime and ctime would be necessary, since
> > to move a file away you either don't touch it (using rename) or only
> > read and unlink it (to write to a tape or other filesystem, and you can
> > save the atime and mtime while doing it). So O_NOATIME is enough for
> > both behaviours.
>
> Maybe some day the file needs to come back from the tape ;-) Or rather
> in the HSM scenario a part of the file.

When it comes back, it can be written to a temporary file, have its
atime/mtime set with utimes, and atomically renamed to the right place.

If you want to play with parts of files, you would need an atime for
each block of the file ;-)

--
Cesar Eduardo Barros
cesarb@nitnet.com.br
cesarb@dcc.ufrj.br
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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