Option to not update Atime on filesystems not mounted noatime

Matthias Schniedermeyer ms at citd.de
Thu Aug 2 16:41:24 GMT 2007


On 02.08.2007 11:57, Matt McCutchen wrote:

> > Could you give me a hint, so i can patch my local rsync?
> 
> Add the option (--o_noatime or whatever you want to call it) in all
> the appropriate places in options.c, including a variable to store
> whether the option is on.  Then declare the variable in sender.c and
> modify the do_open call in send_files to pass NO_ATIME if the variable
> is true.  There are a number of do_open calls, but the one in
> send_files is the most important (it opens the source files).
> Additionally, if you care about listing source directories without
> hitting their atimes, there seems to be information about how to do it
> at http://www.cygwin.com/ml/libc-alpha/2005-09/msg00104.html ; the
> relevant opendir is in send_directory in flist.c .
> 
> If you send your patch to the list, Wayne would be likely to include
> it in patches/ of the source distribution for the benefit of others.

Thanks, i'll look into it when i have a little bit of free time.




Bis denn

-- 
Real Programmers consider "what you see is what you get" to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.



More information about the rsync mailing list