From nobody@FreeBSD.org  Tue Apr 19 07:31:45 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4BE0516A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Apr 2005 07:31:45 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2D83A43D1F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Apr 2005 07:31:45 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j3J7ViTo037546
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Apr 2005 07:31:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j3J7ViSN037545;
	Tue, 19 Apr 2005 07:31:44 GMT
	(envelope-from nobody)
Message-Id: <200504190731.j3J7ViSN037545@www.freebsd.org>
Date: Tue, 19 Apr 2005 07:31:44 GMT
From: Victor Prylipko <vic@liniya.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Incorrect file time setting on NTFS mounted via mount_smbfs
X-Send-Pr-Version: www-2.3

>Number:         80088
>Category:       kern
>Synopsis:       [smbfs] Incorrect file time setting on NTFS mounted via mount_smbfs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-fs
>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:  Mon May 18 04:23:32 UTC 2009
>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:

From: "Victor A. Prylipko" <vic@liniya.ru>
To: <bug-followup@FreeBSD.org>, <vic@liniya.ru>
Cc:  
Subject: Re: misc/80088: Incorrect file time setting on NTFS mounted via mount_smbfs
Date: Tue, 19 Apr 2005 11:57:05 +0400

 Forgot to add that same thing happening on 5.4-STABLE.
 
 Victor A. Prylipko
 
 vic@liniya.ru
 http://www.liniya.ru/
 

From: "Victor A. Prylipko" <vic@liniya.ru>
To: <bug-followup@FreeBSD.org>, <vic@liniya.ru>
Cc:  
Subject: Re: kern/80088: [smbfs] Incorrect file time setting on NTFS mounted via mount_smbfs
Date: Fri, 22 Apr 2005 13:06:48 +0400

 One more add:
 
 While creating NEW file on smbfs - it CAN have odd seconds in time.
 
 Only while CHANGING time it changed to even seconds.
 
 Victor A. Prylipko
 
 vic@liniya.ru
 http://www.liniya.ru/
 
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 18 04:23:24 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80088 
>Unformatted:
