What filesystem, what OS?

Linux with ext2/ext3 has 1 second timestamp granularity. 

Linux 2.6 claims to have nanosecond resolution on some filesystems (e.g.
XFS, JFS). See

http://www.uwsg.iu.edu/hypermail/linux/kernel/0210.3/0793.html

On Linux I wouldn't rely on anything below 1 second resolution though.
Stefans' heuristics are probably a good thing. 

There are a number of discussions on LKML because of nanosecond
truncating on some file systems in relation to make-driven builds. This
probably hurts ant, too:

http://www.ussg.iu.edu/hypermail/linux/kernel/0404.0/0193.html

        Regards
                Henning


On Fri, 2005-08-12 at 13:31 +0200, Torsten Curdt wrote:
> Guys,
> 
> I hope this is not too OT for this list but I
> am running out of ideas. What could be possibly
> be wrong with the following piece of code:
> 
> import java.io.File;
> 
> public class test {
>    public static void main(String[] args) throws Exception {
>       File dir = new File("dir");
>       dir.mkdir();
>       long m = dir.lastModified();
>       File subdir = new File(dir, "subdir");
>       subdir.mkdir();
>       while(dir.lastModified() == m) {
>         Thread.sleep(1000);
>         System.out.print('.');
>       }
>       subdir.delete();
>       dir.delete();
>    }
> }
> 
> To me it seems like the last modified
> is not being updated (even if I re-create
> the File object) unless the directory
> gets touched *outside* the jvm.
> 
> Anyone aware of this problem?
> 
> cheers
> --
> Torsten
-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
[EMAIL PROTECTED]        +49 9131 50 654 0   http://www.intermeta.de/

      RedHat Certified Engineer -- Jakarta Turbine Development
   Linux, Java, perl, Solaris -- Consulting, Training, Engineering

                     4 - 8 - 15 - 16 - 23 - 42


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to