[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -newer vs. FAT two second resolution
From: |
jidanni |
Subject: |
Re: -newer vs. FAT two second resolution |
Date: |
Sat, 12 Apr 2008 07:13:15 +0800 |
Oops, pasted wrong. OK:
$ cd /some_Linux_dir; stat y
Modify: 2008-04-09 11:11:11.000000000 +0800
$ cp -a y /vfat
$ umount /vfat; mount /vfat
$ stat /vfat/y
Modify: 2008-04-09 11:11:10.000000000 +0800
Anyway, please try
$ cd some_[V]FAT_directory_of_yours
$ stat *|perl -nwe 'print if /(Access|Modify|Change): 200\d/'|sort
One notes that Change is both odd and even seconds, Modify is only
even seconds, and Access has no seconds at all.
http://en.wikipedia.org/wiki/File_Allocation_Table
Note that the seconds is recorded only to a 2 second
resolution. Finer resolution for file creation is
found at offset 0x0d.
So -newer will be fooled because it only thinks in one second frames
instead of rolling with the current filesystem punches.
Interestingly, find2perl output escapes blame, as now the raw
comparison is being done by the user, instead of asking find to tell
it which is newer.
And -anewer: hmmm, that needs an window of 24 hours... yikes.
Hmmm, "finer resolution for file creation is found at offset..." maybe
stat et al should know about that...