[OpenAFS-devel] "up" does not preserve atime,mtime on directories

Jeffrey Hutzelman jhutz@cmu.edu
Tue, 27 Jun 2006 18:24:57 -0400


PLEASE don't CC openafs-bugs on mail to openafs-devel.  The former is an RT 
queue, which means that everyone who responds to your message without 
removing it from the list of recipients will create yet another new ticket.


On Tuesday, June 27, 2006 01:40:24 PM -0700 Alf Wachsmann 
<alfw@slac.stanford.edu> wrote:

> OpenAFS's "up" command is supposed to preserve atime and mtime on files
> and directories (unless called with the "-x" flag).
> This works correctly on files.

This behavior applies only to files, not directories or symlinks.


> Some simple printf's show that in line 29 in src/venus/up.c the
> lstat() function already returns the wrong values for atime and mtime.

Line 29 in my copy of up.c is '#include <sys/file.h>'.  Unfortunately, I 
can't guess which of the two calls to lstat() at the top of Copy() you're 
actually referring to.  The first is on the source file, while the second 
is on the destination file.  If the latter succeeds, it's because the 
destination already exists.

The behavior you describe is consistent with the man page.

-- Jeff