9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Keeping the fileserver's clock straight
@ 1996-10-17  9:18 Nigel
  0 siblings, 0 replies; 5+ messages in thread
From: Nigel @ 1996-10-17  9:18 UTC (permalink / raw)


My fileserver's clock gained about 30 minutes this summer. Wandering 
around the attic (see http://www.cotswold.demon.co.uk/netpic.htm) to
set the clock is a bit unpleasant.

Any suggestions on how I keep it locked? I thought I saw a reference 
to bootes being set by NTP but now can't find it. In any case, my 
fileserver is not really connecvted to the net, so I'm thinking in 
terms of a Rubgy clock receiver.

Given the recent multiple portings of Caml Light I thought I'd ask 
here first before attacking 9fs.

Nigel Roles




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Keeping the fileserver's clock straight
@ 1996-10-17 15:05 Boyd
  0 siblings, 0 replies; 5+ messages in thread
From: Boyd @ 1996-10-17 15:05 UTC (permalink / raw)


i like the code in the fs that says:

    0x70, [I think] /* rob made me do it */




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Keeping the fileserver's clock straight
@ 1996-10-17 14:55 Nigel
  0 siblings, 0 replies; 5+ messages in thread
From: Nigel @ 1996-10-17 14:55 UTC (permalink / raw)


> bit of a typo in the spelling of seconds:
> 
> print("rtc time more than 10 secounds out\n");

I like the one in the ftp server:

331 encrpyt challenge, 97124, as a password 

Nigel Roles




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Keeping the fileserver's clock straight
@ 1996-10-17 14:49 Boyd
  0 siblings, 0 replies; 5+ messages in thread
From: Boyd @ 1996-10-17 14:49 UTC (permalink / raw)


bit of a typo in the spelling of seconds:

< 			print("rtc time more than 10 secounds out\n");




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Keeping the fileserver's clock straight
@ 1996-10-17 13:49 presotto
  0 siblings, 0 replies; 5+ messages in thread
From: presotto @ 1996-10-17 13:49 UTC (permalink / raw)


fs used to call a clock server via datakit once every
few (I think 3) hours.  Datakit isn't exactly the most
ubiquitous network though.  What I've done lately with ours
is to just have it check the time of day clock.  Works
well on our current boxes since the tod clocks don't seem
to drift much.  Here's the changes, such as they are.  I'm
not doing a boddle since there are some other changes in
there that I don't know the origin of:

in wormcopy() of main.c

% diff main.c /n/juke/plan_9/sys/src/fs/port
305c305
< 	long nddate, ntoytime, t, dt;
---
> 	long nddate, t, dt;
316,317d315
< 	ntoytime = time() + HOUR(1);
< 
330,342d327
< 
< 	if(t > ntoytime) {
< 		dt = time() - rtctime();
< 		if(dt < 0)
< 			dt = -dt;
< 		if(dt > 10)
< 			print("rtc time more than 10 secounds out\n");
< 		else
< 		if(dt > 1)
< 			settime(rtctime());
< 		ntoytime = time() + HOUR(1);
< 		goto loop;
< 	}

in cmd_date() of con.c, set rtc in addition to normal time.

% diff con.c /n/juke/plan_9/sys/src/fs/port
416,417d415
< 	setrtc(ct);
< 




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1996-10-17 15:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-10-17  9:18 Keeping the fileserver's clock straight Nigel
1996-10-17 13:49 presotto
1996-10-17 14:49 Boyd
1996-10-17 14:55 Nigel
1996-10-17 15:05 Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).