Charlie Brady
1997-Aug-14 00:52 UTC
Samba & Daylight savings time (was Re: Linux smbfs 2.0.29...)
> Date: Wed, 13 Aug 1997 12:52:21 -0700 > From: "Roeland M.J. Meyer" <rmeyer@mhsc.com> > To: eknuds@extremenetworks.com > Cc: "samba@arvidsjaur.anu.edu.au" <samba@arvidsjaur.anu.edu.au> > Subject: Re: Linux smbfs 2.0.29... > Message-ID: <3.0.2.32.19970813125221.009e0a70@pop.mhsc.com> > > At 04:45 AM 8/14/97 +0000, you wrote: > >I was wondering if anyone has had trouble with daylight savings time > >handling between Linux and NT 4.0. > > Not since I started synching with SNTP. > > check the URL http://time.mhsc.com > > I have setup a virtual host which discusses time issues on my domain. All > machines are at stratuum II, with stratum III for the WinNT machines. With > continuous time-sync, daylight savings time, on NT, is not an issue any > longer. Although I'm sure that Bill the Gator would not approve, since he > can't get richer from it. > > The programs I mention on the site are also available for Win95 and WfW. > > This is not a Samba issue.Unless something has changed in the 1.9.17 series, there is a samba issue related to DST. Samba calculates a time offset when it starts up, then uses this unchanged forever. If you are starting "smbd" from inetd, this is usually good enough. If however you run smbd as a daemon, the time offset will become wrong on the transitions to and from daylight savings time, resulting in a one hour disrepency in time until smbd is restarted. Charlie Brady - Telstra |internet: cbrady@ind.tansu.com.au Network Products |Snail : Locked Bag 6581, GPO Sydney 2001 Australia Platform Technologies |Physical : Lvl 2, 175 Liverpool St, Sydney 2000 IN-Sub Unit - Sydney | Phone: +61 2 9206 3470 Fax: +61 2 9281 1301
Roeland M.J. Meyer
1997-Aug-14 05:28 UTC
Samba & Daylight savings time (was Re: Linux smbfs 2.0.29...)
At 11:03 AM 8/14/97 +0000, Charlie Brady wrote:> >> Date: Wed, 13 Aug 1997 12:52:21 -0700 >> From: "Roeland M.J. Meyer" <rmeyer@mhsc.com> >> To: eknuds@extremenetworks.com >> Cc: "samba@arvidsjaur.anu.edu.au" <samba@arvidsjaur.anu.edu.au> >> Subject: Re: Linux smbfs 2.0.29... >> Message-ID: <3.0.2.32.19970813125221.009e0a70@pop.mhsc.com> >> >> At 04:45 AM 8/14/97 +0000, you wrote: >> >I was wondering if anyone has had trouble with daylight savings time >> >handling between Linux and NT 4.0. >> >> Not since I started synching with SNTP. >> >> check the URL h t t p : / / time.mhsc.com >> >> I have setup a virtual host which discusses time issues on my domain. All >> machines are at stratuum II, with stratum III for the WinNT machines. With >> continuous time-sync, daylight savings time, on NT, is not an issue any >> longer. Although I'm sure that Bill the Gator would not approve, since he >> can't get richer from it.>> This is not a Samba issue. > >Unless something has changed in the 1.9.17 series, there is a samba issue >related to DST. Samba calculates a time offset when it starts up, then >uses this unchanged forever. If you are starting "smbd" from inetd, this >is usually good enough. If however you run smbd as a daemon, the time >offset will become wrong on the transitions to and from daylight savings >time, resulting in a one hour disrepency in time until smbd is restarted.I still have to look at the code and maybe Luke can answer this one even faster, but I am operating under the assumption that all Unix applications get the time from the system calls ... always! With SNTP the time is corrected at the system clock, way before any application can get to it. Samba should not be keeping it's own time offset. The host's time is assumed to be correct, especially if they are stratum I or II servers. The PC is assumed to need adjusting when a discrepency is found. BTW, the URL I gave above for my time servers is wrong. The correct one is http://tic.mhsc.com , sorry. _________________________________________________ Roeland M.J. Meyer (RM993) e-mail: rmeyer@mhsc.com web pages: http://www.mhsc.com/~rmeyer _________________________________________________