bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] [patch] O_NOATIME support


From: Ian Turner
Subject: [Bug-tar] [patch] O_NOATIME support
Date: Mon, 19 Sep 2005 17:27:24 -0700
User-agent: Mozilla Thunderbird 1.0.6-1.1.fc3 (X11/20050720)

Hello all,

Attached is a patch to add O_NOATIME support to GNU tar. This allows one to make backups without changing atime, mtime, or ctime on regular files. O_NOATIME requires kernel 2.6.8 or greater, along with appropriate system headers, but this patch will still compile without those things.

O_NOATIME doesn't work if you aren't the owner of the file in question (or root), if the file is on an unsupported filesystem (like NFS), or if the file is a symlink.

Because of these limitations, and because of the very different side-effects, I have added a new option --no-atime, rather than extend the existing --preserve-atime option. The option exists (as a no-op), even if configure did not find required system headers. --no-atime does not at present interact with --preserve-atime, because it is impossible at present to know if O_NOATIME is actually working, at least under certain circumstances.

Comments are appreciated. Let me know if you have any criticisms, or if there is something else I must to do get this patch into the distribution.

Cheers,

--Ian Turner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]