Messages in this thread | | | Date | Mon, 14 Jun 2004 16:25:24 -0300 | Subject | Re: [PATCH] O_NOATIME support | From | Cesar Eduardo Barros <> |
| |
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/
| |