Re: [PATCH] O_NOATIME support

From: Cesar Eduardo Barros
Date: Mon Jun 14 2004 - 14:27:28 EST


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@xxxxxxxxxxxxx
cesarb@xxxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/