Ian Turner <[EMAIL PROTECTED]> writes:

> If the file is already in the NFS cache, then there will be no read on 
> the server, and therefore no atime update.

OK, but in that case st_atime won't be updated at all, right?  And
that is what we want.  So we're OK.  I was mainly worried about the
possibility of a delayed update to st_atime; I don't see how that
could happen.

It should be really cheap to employ the heuristic that I mentioned,
since tar is already doing the fstat at the end anyway.  No extra
system calls should be needed.


> But then you have to wrap any reference to O_NOATIME around #ifdefs.

Not if you put this into system.h (a similar thing is already done for
O_BINARY):

#ifndef O_NOATIME
# define O_NOATIME 0
#endif


_______________________________________________
Bug-tar mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-tar

Reply via email to