Date: Tue, 19 Apr 2005 07:31:44 GMT From: Victor Prylipko <vic@liniya.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/80088: Incorrect file time setting on NTFS mounted via mount_smbfs Message-ID: <200504190731.j3J7ViSN037545@www.freebsd.org> Resent-Message-ID: <200504190740.j3J7ePVg000508@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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@vic-free#mount_smbfs //tse/temp /mnt
root@vic-free#cd /mnt
root@vic-free#ls -l
total 0
-rwxr-xr-x 1 root wheel 8 Apr 19 11:10 01
root@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@vic-free#touch -mt 01011000.11 01
root@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504190731.j3J7ViSN037545>
