From: mark@helios.physics.utoronto.ca (Mark Bartelt)
Subject: Re: Latest on Date/Time patches - Leap Year
Date: 1996/03/05 [thread overview]
Message-ID: <Dnsz0o.B6q@info.physics.utoronto.ca> (raw)
In-Reply-To: jwright.826021765@amadeus.ucsf.edu
[ Jim Wright ]
| Has anyone actually seen this problem? What really
| causes it? Can I expect to avoid any effects if I don't alter the time?
| Right now, I'm glad I didn't mess with the system.
A disk on one of our systems (DU 3.2c) had to be replaced on Monday. With
both the new disk and the old disk installed, I did the standard ...
newfs
dump | restore
... sort of thing to copy filesystems from the old drive (still alive, but
clearly on its last legs) to the new one. I was surprised to see messages
from dump, after it had been running only a few minutes, saying things like
dump: 16.82% done -- finished in 741:52
(The numbers are made up, but are close to what they actually were.) So at
some level, at least, there was some confusion. I do recall that when the
system came up (after being taken down to hook up the new drive) the date
was off by a day.
I was in a rush to get the system back on the air, so I didn't poke around
as I'd have liked, to characterize the problem(s) that one sees without the
patch. I just installed the patch, and brought the system back up.
However, I do have a question, for whichever Digit(s) might care to answer.
A friend asked ...
Hmmm. On reading the patch description again, I am even more
puzzled. I can understand changing the date command, but why
does the kernel care about leap years?
Indeed, why? Traditionally, the kernel kept track only of GMT (or UCT, or
whatever it's called these days), relative to the beginning of The Epoch,
and anything else was handled by various library routines.
Has Digital UNIX deviated from this (sensible) way of doing things? If so,
why? What on earth goes on in the kernel's clock.o, anyway? I see that it
has entry points named "cvt_sec_to_tm()" and "cvt_tm_to_sec()". Does this
imply that the kernel now deals with "struct tm" stuff? Gack.
Mark Bartelt 416/978-5619
Canadian Institute for mark@cita.toronto.edu
Theoretical Astrophysics mark@cita.utoronto.ca
"Clothes not busy being worn are busy drying." -- Dylan, on laundry day
[ singing "It's all right, ma (I'm only bleaching)" ]
prev parent reply other threads:[~1996-03-05 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4h292b$jds@netnews.alf.dec.com>
1996-02-29 5:00 ` Latest on Date/Time patches - Leap Year Michael T. Davis
1996-03-05 5:00 ` Jim Wright
1996-03-05 5:00 ` Mark Bartelt [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox