From owner-freebsd-bugs@FreeBSD.ORG Tue Apr 19 07:40:25 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2C9D16A4CE for ; Tue, 19 Apr 2005 07:40:25 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D64543D5D for ; Tue, 19 Apr 2005 07:40:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3J7ePLY000509 for ; Tue, 19 Apr 2005 07:40:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3J7ePVg000508; Tue, 19 Apr 2005 07:40:25 GMT (envelope-from gnats) Resent-Date: Tue, 19 Apr 2005 07:40:25 GMT Resent-Message-Id: <200504190740.j3J7ePVg000508@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Victor Prylipko Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BE0516A4CE for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/80088: Incorrect file time setting on NTFS mounted via mount_smbfs X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 07:40:25 -0000 >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: