Hi there, Recently I tried to mount a partition from NT 4.0 on a RedHat 6.0 box (Linux kernel version 2.2.5-15) by using smbmount. Everything is fine except that the date/time on the files and directories in the mounted partition is totally wrong. For example, following are the date/time shown on the RedHat box: drwxr-xr-x 1 shanweic csrl 512 Jul 3 1997 ./ drwxr-xr-x 1 shanweic csrl 512 Feb 8 2025 ../ -rwxr-xr-x 1 shanweic csrl 614 Jan 10 1902 nic-install.txt* -rwxr-xr-x 1 shanweic csrl 1753 Aug 29 2029 smb-mount.txt* While the correct date/time as shown by my NT box are: 11/16/99 05:29p <DIR> . 11/16/99 05:29p <DIR> .. 11/12/99 01:25p 614 nic-install.txt 11/16/99 07:11p 1,753 smb-mount.txt I wonder how I can fix this problem. Are there any parameters I missed? Does RedHat 6.1 fix the problem? Or do I need to get a patch from some whare? Thanks, -- Shanwei Cen Email: shanwei.cen@tek.com
On Thu, Nov 18, 1999 at 05:05:08AM +1100, Shanwei Cen wrote:> Hi there,> Recently I tried to mount a partition from NT 4.0 on a RedHat 6.0 box > (Linux kernel version 2.2.5-15) by using smbmount. Everything is fine > except that the date/time on the files and directories in the mounted > partition is totally wrong.This has been hashed over several times in the Samba, Linux-kernel, and RedHat lists. The RedHat stock 2.2.5 kernel was built incorrectly with the WIN95 bug workaround enabled. This causes the bytes of the timestamp to be reversed on Windows NT shares. The solution, now, is to upgrade to the latest kernel (2.2.12), which autodetects Windows 95 connections and switches the bug workaround transparently, and the new smbmount from Samba 2.0.6. The compile time option to the kernel which was incorrectly configured in the RedHat 2.2.5 kernel has now been removed from the kernel.> For example, following are the date/time shown on the RedHat box: > > drwxr-xr-x 1 shanweic csrl 512 Jul 3 1997 ./ > drwxr-xr-x 1 shanweic csrl 512 Feb 8 2025 ../ > -rwxr-xr-x 1 shanweic csrl 614 Jan 10 1902 nic-install.txt* > -rwxr-xr-x 1 shanweic csrl 1753 Aug 29 2029 smb-mount.txt* > > While the correct date/time as shown by my NT box are: > > 11/16/99 05:29p <DIR> . > 11/16/99 05:29p <DIR> .. > 11/12/99 01:25p 614 nic-install.txt > 11/16/99 07:11p 1,753 smb-mount.txt > > I wonder how I can fix this problem. Are there any parameters I missed? > Does RedHat 6.1 fix the problem? Or do I need to get a patch from some > whare? > > Thanks, > -- > Shanwei Cen > Email: shanwei.cen@tek.com-- Michael H. Warfield | (770) 985-6132 | mhw@WittsEnd.com (The Mad Wizard) | (770) 331-2437 | http://www.wittsend.com/mhw/ NIC whois: MHW9 | An optimist believes we live in the best of all PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!
On Thu, 18 Nov 1999, Shanwei Cen wrote:> Hi there, > > Recently I tried to mount a partition from NT 4.0 on a RedHat 6.0 box > (Linux kernel version 2.2.5-15) by using smbmount. Everything is fine > except that the date/time on the files and directories in the mounted > partition is totally wrong.The smbfs module in the RedHat 6.0 kernel has a win95 bug workaround enabled. That workaround produces this result with NT. In later kernels this is done automatically (2.2.10?). Either recompile the kernel (the smbfs module) or upgrade it (there is probably a .rpm somewhere on a RH6.0 update site).> -rwxr-xr-x 1 shanweic csrl 614 Jan 10 1902 nic-install.txt* > -rwxr-xr-x 1 shanweic csrl 1753 Aug 29 2029 smb-mount.txt*Whee, time travel ... :) /Urban
Hello all, I tried to reproduce the behavior with the touch commad of GNU(Cygnus) and the result is the same. But I can only see wrong timestamps if I use Samba-2.0.6. When I test with Samba-2.0.5a it shows correct times. (Suse-Linux 6.2, Win NT 4.0 SP3) When I copy files using using WindowsCommander and samba Version 2.0.6 the filetimes do not reflect the source file date but the current file date. Could be the same reason as for touch. Any Idea for a solution? Peter I can see this behaviour only with samba 2.0.6 .> Date: Wed, 17 Nov 1999 14:10:46 +0100 > From: Gert-Jan Vons <vons@ocegr.fr> > To: samba@samba.org > Subject: Samba 2.0.6, MKS' touch.exe, and file/dir time stamps > Message-ID: <4.2.2.19991117124735.00adacc0@mailhost.ocegr.fr> > Mime-Version: 1.0 > Content-Type: text/plain; charset="us-ascii"; format=flowed > > Hello all, > > we are experiencing problems with samba 2.0.6 and the MKS touch command. > > .. The command returns without an error, but the timestamp does not change. > > The same problem exists with samba 2.0.4 and 2.0.5, but we found out that > this actually _does_ work with an old machine that still runs samba > 1.9.17p3.-- Ing. Buero Ermert, Dipl. Inform Hanns-Peter Ermert, 10715 Berlin email: Hanns-Peter.Ermert@alcatel.de / Alcatel SEL AG,ZIT/B/S2 12099 Berlin,Colditzstrasse 34-36