DragonFly bugs List (threaded) for 2009-03
DragonFly BSD
DragonFly bugs List (threaded) for 2009-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 6 Mar 2009 20:18:12 -0800 (PST)

:Ah now I see, it always reports to ctime of the inode.  I suppose we don'=
:t=20
:keep track of mtimes then?
:
:cheers
:   simon

    mtime and atime are updated in-place, without rolling a new inode
    record, so a snapshot will not snapshot either field unless some
    other action (e.g. like a file append, chmod, chown, etc) rolls a
    new inode record after the snapshot was made.

    Because of this the snapshot stat code always reports the ctime in
    the atime and mtime fields to guarantee consistency.

    It is possible to change this behavior, but probably not desirable 
    since it could very well result in a large number of inode records
    getting rolled for no good reason (particularly for atime updates).

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]