File timestamp changes a few seconds after write

Status
Not open for further replies.

greco

Dabbler
Joined
Oct 29, 2012
Messages
18
I'm kind of baffled by this, and can't figure out what might cause it:

The following transcript shows me creating a simple file, and then watching its date/time. I've set the prompt to show the current time and I'm using jpsoft's 4nt commands to show the seconds of the file written.

At 17:42:47, the file "test" had its time stamp changed by 10 seconds.

Code:
17:42:30-r:\test>echo blah > test

17:42:37-r:\test>echo %@agedate[%@fileage[test]]
2012-10-30,17:42:37.880

17:42:39-r:\test>echo %@agedate[%@fileage[test]]
2012-10-30,17:42:37.880

17:42:40-r:\test>echo %@agedate[%@fileage[test]]
2012-10-30,17:42:37.880

17:42:42-r:\test>echo %@agedate[%@fileage[test]]
2012-10-30,17:42:37.880

17:42:43-r:\test>echo %@agedate[%@fileage[test]]
2012-10-30,17:42:37.880

17:42:44-r:\test>echo %@agedate[%@fileage[test]]
2012-10-30,17:42:37.880

17:42:45-r:\test>echo %@agedate[%@fileage[test]]
2012-10-30,17:42:37.880

17:42:46-r:\test>echo %@agedate[%@fileage[test]]
2012-10-30,17:42:37.880

17:42:47-r:\test>echo %@agedate[%@fileage[test]]
2012-10-30,17:42:47.944                                   <----------

17:42:48-r:\test>echo %@agedate[%@fileage[test]]
2012-10-30,17:42:47.944


Watching the file from the console with stat shows same kind of thing:

Code:
[root@freenas] /mnt/primary/test# stat test
310764060 29 -rw-rw-rw- 1 DOM\user wheel 0 13 "Oct 30 17:56:40 2012" "Oct 30 17:56:40 2012" "Oct 30 17:56:40 2012" "Oct 30 17:46:52 2012" 4096 2 0 test
[root@freenas] /mnt/primary/test# stat test
310764060 29 -rw-rw-rw- 1 DOM\user wheel 0 13 "Oct 30 17:56:40 2012" "Oct 30 17:56:51 2012" "Oct 30 17:56:51 2012" "Oct 30 17:46:52 2012" 4096 2 0 test


I'm using freenas 8.2 from WinXP sp3


The timestamp only seems to change from windows XP systems (I tested 3). More interestingly, win2k and win7 did not exhibit this problem. Note: prior to a few weeks ago, I was running freenas 0.69.2 and did not see this at all on that system. I tested again against the old freenas system and it is still fine.

New system is ZFS, the old system is UFS, if that makes a difference.
 
Status
Not open for further replies.
Top