Gonda, Rumi
1999-Aug-11 16:47 UTC
FW: HELP: having problem with timestamps of files with linux sam ba client and winnt shared drive
I have looked around a lot and couldn't find anything on this. can some one please help?> I have RedHat Linux and have mounted shared drives from WINNT 4.0 SP4. > Samba version v2.0.5a. > > I am having this problem when we mount a shared winnt drive on linux. > the timestamps look all messed up. I am not sure if I did not setup it up > properly or what. Any help you can provide will be appreciated. > > Thanks. > > This is the listing on winnt side: > 08/05/99 06:10p <DIR> . > 08/05/99 06:10p <DIR> .. > 07/13/99 10:38a 1,408 arch.h > 07/13/99 10:38a 4,681 asbrlsa.cpp > 07/13/99 10:38a 17,091 asexlsa.cpp > 07/13/99 10:38a 11,539 avl.cpp > 07/13/99 10:38a 3,649 avl.h > 07/13/99 10:38a 2,004 cksum.cpp > 07/13/99 10:38a 1,286 config.cpp > 07/13/99 10:38a 5,067 config.h > 07/13/99 10:38a <DIR> contrib > 07/13/99 10:38a 6,950 dbage.cpp > 07/13/99 10:38a 1,518 dbage.h > 07/13/99 10:39a 369 globals.h > 07/13/99 10:38a 1,830 grplsa.cpp > 07/13/99 10:38a 9,332 ifcfsm.cpp > 07/13/99 10:39a 2,061 ifcfsm.h > 07/13/99 10:39a 789 ip.h > 07/13/99 10:39a 2,634 iterator.h > 08/05/99 06:10p 0 jnuknt.txt > 05/22/71 03:14a 0 junk.txt > 07/13/99 10:38a 4,697 lsa.cpp > 07/13/99 10:39a 9,230 lsa.h > 07/13/99 10:38a 3,179 lsalist.cpp > 07/13/99 10:39a 4,407 lsalist.h > 07/13/99 10:38a 9,640 lsdb.cpp > 07/13/99 10:39a 4,379 lshdr.h > 07/13/99 10:39a 1,755 makefile > 07/13/99 10:38a 15,137 monitor.cpp > 07/13/99 10:39a 5,104 monitor.h > 07/13/99 10:38a 1,069 mospf.cpp > 07/13/99 10:38a 12,190 nbrfsm.cpp > 07/13/99 10:39a 2,812 nbrfsm.h > 07/13/99 10:38a 5,405 netlsa.cpp > 07/30/99 09:42p 11,294 ospf.cpp > 07/13/99 10:39a 11,057 ospf.h > 07/13/99 10:39a 612 ospfinc.h > 07/13/99 10:38a 3,643 pat.cpp > 07/13/99 10:39a 1,237 pat.h > 07/13/99 10:39a 2,057 phyint.cpp > 07/13/99 10:39a 381 phyint.h > 07/13/99 10:38a 4,433 priq.cpp > 07/13/99 10:39a 1,789 priq.h > 07/13/99 10:38a 6,567 rte.cpp > 07/13/99 10:39a 9,276 rte.h > 07/13/99 10:38a 11,985 rtrlsa.cpp > 07/13/99 10:38a 7,825 spfack.cpp > 07/13/99 10:38a 12,753 spfarea.cpp > 07/13/99 10:39a 4,324 spfarea.h > 07/13/99 10:38a 15,719 spfcalc.cpp > 07/13/99 10:38a 9,413 spfdd.cpp > 07/13/99 10:38a 6,727 spfhello.cpp > 07/13/99 10:38a 21,475 spfifc.cpp > 07/13/99 10:39a 11,639 spfifc.h > 07/13/99 10:39a 2,746 spflog.h > 07/13/99 10:38a 16,578 spflood.cpp > 07/13/99 10:38a 4,866 spfnbr.cpp > 07/13/99 10:39a 7,493 spfnbr.h > 07/13/99 10:38a 5,448 spforig.cpp > 07/13/99 10:39a 331 spfparam.h > 07/13/99 10:39a 4,621 spfpkt.h > 07/13/99 10:39a 493 spftype.h > 07/13/99 10:38a 12,754 spfutil.cpp > 07/13/99 10:39a 1,499 spfutil.h > 07/13/99 10:38a 3,747 spfvl.cpp > 07/13/99 10:39a 990 stack.h > 07/13/99 10:38a 9,779 summlsa.cpp > 07/13/99 10:39a 1,352 system.h > 07/13/99 10:38a 3,767 timer.cpp > 07/13/99 10:39a 1,539 timer.h > 70 File(s) 383,421 bytes > 6,118,748,160 bytes free > > and this is the listing of the same files on linux side: > -r-xr-xr-x 1 root root 1408 Apr 8 2029 arch.h > -r-xr-xr-x 1 root root 4681 Jul 7 2024 asbrlsa.cpp > -r-xr-xr-x 1 root root 17091 Jul 18 2017 asexlsa.cpp > -r-xr-xr-x 1 root root 11539 Oct 31 2024 avl.cpp > -r-xr-xr-x 1 root root 3649 Aug 2 2029 avl.h > -r-xr-xr-x 1 root root 2004 Jun 19 2025 cksum.cpp > -r-xr-xr-x 1 root root 1286 Oct 13 2025 config.cpp > -r-xr-xr-x 1 root root 5067 Nov 25 2029 config.h > drwxr-xr-x 1 root root 512 Sep 5 2017 contrib > -r-xr-xr-x 1 root root 6950 Nov 10 2017 dbage.cpp > -r-xr-xr-x 1 root root 1518 Mar 21 2030 dbage.h > -r-xr-xr-x 1 root root 369 Jul 15 2030 globals.h > -r-xr-xr-x 1 root root 1830 Feb 6 2026 grplsa.cpp > -r-xr-xr-x 1 root root 9332 Mar 6 2018 ifcfsm.cpp > -r-xr-xr-x 1 root root 2061 Nov 8 2030 ifcfsm.h > -r-xr-xr-x 1 root root 789 Mar 3 2031 ip.h > -r-xr-xr-x 1 root root 2634 Jun 27 2031 iterator.h > -rwxr-xr-x 1 root root 0 Jun 7 2005 jnuknt.txt > -rwxr-xr-x 1 root root 0 Jul 29 2012 junk.txt > -r-xr-xr-x 1 root root 4697 Jun 30 2018 lsa.cpp > -r-xr-xr-x 1 root root 9230 Oct 21 2031 lsa.h > -r-xr-xr-x 1 root root 3179 Oct 24 2018 lsalist.cpp > -r-xr-xr-x 1 root root 4407 Jun 8 2032 lsalist.h > -r-xr-xr-x 1 root root 9640 Jun 12 2019 lsdb.cpp > -r-xr-xr-x 1 root root 4379 Oct 2 2032 lshdr.h > -r-xr-xr-x 1 root root 1755 Jan 26 2033 makefile > -r-xr-xr-x 1 root root 15137 Oct 6 2019 monitor.cpp > -r-xr-xr-x 1 root root 5104 May 22 2033 monitor.h > -r-xr-xr-x 1 root root 1069 Jun 1 2026 mospf.cpp > -r-xr-xr-x 1 root root 12190 Jan 30 2020 nbrfsm.cpp > -r-xr-xr-x 1 root root 2812 Sep 14 2033 nbrfsm.h > -r-xr-xr-x 1 root root 5405 Sep 25 2026 netlsa.cpp > -r-xr-xr-x 1 root root 11294 May 27 1962 ospf.cpp > -r-xr-xr-x 1 root root 11057 Jan 8 2034 ospf.h > -r-xr-xr-x 1 root root 612 Aug 28 2034 ospfinc.h > -r-xr-xr-x 1 root root 3643 Sep 17 2020 pat.cpp > -r-xr-xr-x 1 root root 1237 Dec 21 2034 pat.h > -r-xr-xr-x 1 root root 2057 Aug 17 1903 phyint.cpp > -r-xr-xr-x 1 root root 381 Dec 11 1903 phyint.h > -r-xr-xr-x 1 root root 4433 Jan 19 2027 priq.cpp > -r-xr-xr-x 1 root root 1789 Apr 16 2035 priq.h > -r-xr-xr-x 1 root root 6567 May 15 2027 rte.cpp > -r-xr-xr-x 1 root root 9276 Aug 10 2035 rte.h > -r-xr-xr-x 1 root root 11985 Sep 7 2027 rtrlsa.cpp > -r-xr-xr-x 1 root root 7825 Jan 11 2021 spfack.cpp > -r-xr-xr-x 1 root root 12753 May 7 2021 spfarea.cpp > -r-xr-xr-x 1 root root 4324 Dec 4 2035 spfarea.h > -r-xr-xr-x 1 root root 15719 Aug 30 2021 spfcalc.cpp > -r-xr-xr-x 1 root root 9413 Dec 24 2021 spfdd.cpp > -r-xr-xr-x 1 root root 6727 Jan 1 2028 spfhello.cpp > -r-xr-xr-x 1 root root 21475 Aug 12 2022 spfifc.cpp > -r-xr-xr-x 1 root root 11639 Mar 28 2036 spfifc.h > -r-xr-xr-x 1 root root 2746 Jul 22 2036 spflog.h > -r-xr-xr-x 1 root root 16578 Dec 6 2022 spflood.cpp > -r-xr-xr-x 1 root root 4866 Apr 1 2023 spfnbr.cpp > -r-xr-xr-x 1 root root 7493 Nov 15 2036 spfnbr.h > -r-xr-xr-x 1 root root 5448 Jul 26 2023 spforig.cpp > -r-xr-xr-x 1 root root 331 Jul 4 2037 spfparam.h > -r-xr-xr-x 1 root root 4621 Oct 28 2037 spfpkt.h > -r-xr-xr-x 1 root root 493 Jan 15 1902 spftype.h > -r-xr-xr-x 1 root root 12754 Nov 18 2023 spfutil.cpp > -r-xr-xr-x 1 root root 1499 May 11 1902 spfutil.h > -r-xr-xr-x 1 root root 3747 Mar 13 2024 spfvl.cpp > -r-xr-xr-x 1 root root 990 Sep 4 1902 stack.h > -r-xr-xr-x 1 root root 9779 Apr 26 2028 summlsa.cpp > -r-xr-xr-x 1 root root 1352 Dec 29 1902 system.h > -r-xr-xr-x 1 root root 3767 Dec 13 2028 timer.cpp > -r-xr-xr-x 1 root root 1539 Apr 23 1903 timer.h >
Jan Kratochvil
1999-Aug-11 17:11 UTC
FW: HELP: having problem with timestamps of files with linux sam ba client and winnt shared drive
> I have looked around a lot and couldn't find anything on this. > can some one please help?Firstly - this problem isn't much specific to Samba, it's rather Linux kernel related as the "smbfs" is written more by kernel-people than by Samba package people AFAIK. Please upgrade to some recent kernel like 2.2.11 (although I don't remember too much "smbfs" changes in 2.2.x I would rather stay on the bleeding edge of technology). Then read "/usr/src/linux/Documentation/filesystems/smbfs.txt" file (found in kernel sources linux-2.2.11.tar.bz2): ---------------------------------------------------------------------------- ... Unfortunately, some of the Win 95 work-arounds interact with Win NT bugs, ... Option Value Effect Identify Win 95 Server 1 Enables bug fixes Use Core Attributes 2 Speeds up directory scans, only mtime Use Dir Attributes 4 Alternate way to get file attributes ... Note that _only_ Windows 95 servers require special treatment; using the "core attributes" option with Win NT will give trash timestamp values. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... ----------------------------------------------------------------------------> > I have RedHat Linux and have mounted shared drives from WINNT 4.0 SP4. > > Samba version v2.0.5a. > > > > I am having this problem when we mount a shared winnt drive on linux. > > the timestamps look all messed up. I am not sure if I did not setup it up > > properly or what. Any help you can provide will be appreciated.Lace
Jan Kratochvil
1999-Aug-11 20:19 UTC
FW: HELP: having problem with timestamps of files with linux sam ba client and winnt shared drive
Hi On Wed, Aug 11, 1999 at 03:56:18PM -0400, Gonda, Rumi wrote:> thanks for your help, it was useful. i read the document and looked aroundGlad to hear that...> some more. since i don't have the luxury to rebuild the kernel do you knowWhat "luxury"? If you have any Linux machine (probably yes :-) ), you can build it yourself. Where's the problem?> if there is a way of reversing the setup. the text file show how you canIf I remember good in the old kernels it really wasn't possible (there were only "|=" C constructs with any "=" or "&=" there).> disable win95 and rebuild kernel and then mount with x755 option to enable > the option. i cant rebuild so i want to just at mount time disable thisIn Samba-2.0.5a the mount options '-f' in smbmount(1) were removed due to the kernel autodetect feature discussed below.> feature. do you have any ideas how to do that? smbmount does not give me > any option to give mode field. should I just go into the /etc/mtab and add > it?In "mtab" it wouldn't help - the filesystem is already mounted and this file is only a trace of it. BTW "mtab" is more-or-less obsolete these days, "/proc/mounts" is The Right(tm) source of authoritative filesystem info. But even if you can't compile your own kernel (?) you can just upgrade to precompiled kernel for your distribution version 2.2.10 (2.2.11) - - I've right now looked and in the patch file 2.2.9->2.2.10 there was removed the WIN95 bug workaround compile-time option and now 2.2.10 kernels properly autodetect the server type and behave accordingly.> thanks, (RUMI) (c).Bye, Lace> > I have looked around a lot and couldn't find anything on this. > > can some one please help? > > Firstly - this problem isn't much specific to Samba, it's rather Linux > kernel related as the "smbfs" is written more by kernel-people than by > Samba package people AFAIK. > > Please upgrade to some recent kernel like 2.2.11 (although I don't > remember > too much "smbfs" changes in 2.2.x I would rather stay on the bleeding > edge of technology). Then read > "/usr/src/linux/Documentation/filesystems/smbfs.txt" file (found in kernel > sources linux-2.2.11.tar.bz2): > > ---------------------------------------------------------------------------- > ... > Unfortunately, some of the Win 95 work-arounds interact with Win NT bugs, > ... > Option Value Effect > Identify Win 95 Server 1 Enables bug fixes > Use Core Attributes 2 Speeds up directory scans, only mtime > Use Dir Attributes 4 Alternate way to get file attributes > ... > Note that _only_ Windows 95 servers require special treatment; using the > "core attributes" option with Win NT will give trash timestamp values. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > ... > ---------------------------------------------------------------------------- > > > > I have RedHat Linux and have mounted shared drives from WINNT 4.0 SP4. > > > Samba version v2.0.5a. > > > > > > I am having this problem when we mount a shared winnt drive on linux. > > > the timestamps look all messed up. I am not sure if I did not setup it > up > > > properly or what. Any help you can provide will be appreciated. > > > Lace >
Reasonably Related Threads
- differing freespace reports in windows and unix
- Symlink to directories seem recursively for Microsoft Workgroup Add-On for MS-DOS clients
- 'merge' function creating duplicate columns names in the output
- How to resolve split-brain and replication failures?
- 6336683 address::queue -v blows up kmdb and mdb