misc/80088: Incorrect file time setting on NTFS mounted via mount_smbfs

Victor Prylipko vic at liniya.ru
Tue Apr 19 00:40:25 PDT 2005


>Number:         80088
>Category:       misc
>Synopsis:       Incorrect file time setting on NTFS mounted via mount_smbfs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 19 07:40:24 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Victor Prylipko
>Release:        4.11-STABLE
>Organization:
Liniya
>Environment:
root at vic-free#uname -a
FreeBSD vic-free.lini-a.ru 4.11-STABLE FreeBSD 4.11-STABLE #18: Tue Feb 15 21:59:43 MSK 2005     admin at vic-free.lini-a.ru:/usr/obj/usr/src/sys/VIC-FREE  i386
 
>Description:
If windows share located on NTFS file system mounted to FreeBSD using mount_smbfs, /usr/bin/stat shows atime, mtime and ctime equal, but realy file have three different times.

If you try to set mtime of file with odd seconds - it will be writen one second less value - even seconds.

When NTFS share mounted to Windows system - all three file time may be different and may have odd seconds in its.
>How-To-Repeat:
root at vic-free#mount_smbfs //tse/temp /mnt
root at vic-free#cd /mnt
root at vic-free#ls -l
total 0
-rwxr-xr-x  1 root  wheel  8 Apr 19 11:10 01
root at vic-free#stat 01
83951363 341235132 -rwxr-xr-x 1 root wheel 4294967295 8 "Apr 19 11:10:59 2005" "Apr 19 11:10:59 2005" "Apr 19 11:10:59 2005" 16644 0 0 01
r
root at vic-free#touch -mt 01011000.11 01
root at vic-free#stat 01
83951363 341235132 -rwxr-xr-x 1 root wheel 4294967295 8 "Jan  1 10:00:10 2005" "Jan  1 10:00:10 2005" "Jan  1 10:00:10 2005" 16644 0 0 01

>Fix:
      
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list