touch(1) not working on directories in an msdosfs(5) envirement

Rick Macklem rmacklem at uoguelph.ca
Fri Aug 19 19:40:33 UTC 2011


Alexander Best wrote:
> hi there,
> 
> can somebody confirm this issue? is it already known?
> 
> otaku% ll|grep HELL
> drwxr-xr-x 1 arundel arundel 16384 19 Aug 19:57 HELLO
> -rw-r--r-- 1 arundel arundel 0 19 Aug 20:13 HELLO2
> otaku% touch HELLO*
> otaku% ll|grep HELL
> drwxr-xr-x 1 arundel arundel 16384 19 Aug 19:57 HELLO
> -rw-r--r-- 1 arundel arundel 0 19 Aug 20:55 HELLO2
> 
Yes, FAT file systems do not maintain a directory modify
time. (The original FAT12,16 structure didn't even have a
modify time for the root dir.)

Just like Windows.

This causes issues when a FAT fs is exported via NFS and
someone was going to experiment with an "in memory only"
modify time for dirs, to minimize caching issues, but I
haven't heard back from them lately.

Apparently Mac OS X chooses to update the modify time that
exists on FAT32 file systems, but that isn't Windows compatible.

rick
> doing the same on a UFS2 partition works as expected.
> 
> 
> cheers.
> alex
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"


More information about the freebsd-fs mailing list