[issue1308] hammer: stat returns wrong time when using tids

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Fri Mar 6 20:05:21 PST 2009

Matthew Dillon wrote:
:When stat'ing a file with tid, hammer seems to always return the "first" ti=
:for mtime, not the real mtime.  However undo -i can retrieve this time, so =
:possibly isn't lost.
    Note that the fixed mtime/atime for files accessed via a TID is to
    ensure that snapshots remain consistent.  Otherwise if you do something
    such as tar up a snapshot and pipe it to md5, and then do it again
    later, you will get a different result.
    We may be able to do some refinement there, but whatever is returned
    by the snapshot has to be returned every time the snapshot is accessed.
Ah now I see, it always reports to ctime of the inode.  I suppose we don't 
keep track of mtimes then?

  <3 the future  +++  RENT this banner advert  +++   ASCII Ribbon   /"\
  rock the past  +++  space for low €€€ NOW!1  +++     Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

More information about the Bugs mailing list