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

Alf Wachsmann alfw@slac.stanford.edu
Tue, 27 Jun 2006 13:40:24 -0700 (PDT)


Hi,

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.

However, atime and mtime are not correctly preserved on directories.
Instead, the current time is set for both.

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.
I don't know why, though.

This happens at least with OpenAFS <= 1.4.2-beta1 on Linux and Solaris

Thanks,
             Alf.

-----------------------------------------------------------------------
  Alf Wachsmann                       | e-mail: alfw@slac.stanford.edu
  SLAC - Scientific Computing         | Phone:  +1-650-926-4802
  2575 Sand Hill Road, M/S 97         | FAX:    +1-650-926-3329
  Menlo Park, CA 94025, USA           | Office: Bldg. 50/323
-----------------------------------------------------------------------
                http://www.slac.stanford.edu/~alfw (PGP)
-----------------------------------------------------------------------