From owner-freebsd-fs@FreeBSD.ORG Tue Sep 14 02:54:23 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0132416A4CE for ; Tue, 14 Sep 2004 02:54:23 +0000 (GMT) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id A950843D31 for ; Tue, 14 Sep 2004 02:54:22 +0000 (GMT) (envelope-from guy@alum.mit.edu) Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out4.apple.com (8.12.11/8.12.11) with ESMTP id i8E2uxZP025040 for ; Mon, 13 Sep 2004 19:56:59 -0700 (PDT) Received: from relay2.apple.com (relay2.apple.com) by mailgate1.apple.com ; Mon, 13 Sep 2004 19:54:22 -0700 Received: from [17.202.40.208] (gharris.apple.com [17.202.40.208]) by relay2.apple.com (8.12.11/8.12.11) with ESMTP id i8E2sKRU023550; Mon, 13 Sep 2004 19:54:20 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <5FAFDA64-05F9-11D9-B631-000A958097E4@alum.mit.edu> Content-Transfer-Encoding: 7bit From: Guy Harris Date: Mon, 13 Sep 2004 19:54:19 -0700 To: Riccardo Torrini X-Mailer: Apple Mail (2.619) cc: freebsd-fs@freebsd.org Subject: Re: mount_smbfs timestamp problem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 02:54:23 -0000 > Any date&time will be rounded up to previous even second :-( It's probably using SMB_INFO_STANDARD rather than SMB_SET_FILE_BASIC_INFO as the information level in a TRANS2_SET_FILE_INFORMATION or TRANS2_SET_PATH_INFORMATION call. SMB_INFO_STANDARD uses DOS dates and times, which have 2-second resolution; SMB_SET_FILE_BASIC_INFO uses NT FILETIME values, which have 100-nanosecond resolution. The CIFS 1.0 spec only mentions SMB_SET_FILE_BASIC_INFO for TRANS2_SET_FILE_INFORMATION, not for TRANS2_SET_PATH_INFORMATION, but I would not be surprised if that weren't just an accidental omission (it's silly to have one work but not the other in, say, NT, although maybe the W95/W98/WMe server and file system code path is bizarre enough that only one of them works). If CAP_NT_SMBS is set in the NEGOTIATE reply, the SMB client should probably use SMB_SET_FILE_BASIC_INFO.