From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: David Presotto To: 9fans@cse.psu.edu Subject: Re: [9fans] cs & sysname In-Reply-To: <81132473206F3A46A72BD6116E1A06AE056154@black.aprote.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-izhiifaxbpgbijtrfsrgpxmnfy" Date: Tue, 25 Nov 2003 08:08:02 -0500 Topicbox-Message-UUID: 92f48424-eacc-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-izhiifaxbpgbijtrfsrgpxmnfy Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I'll fix cs. It really shouldn't accept the loopback address as the local one. --upas-izhiifaxbpgbijtrfsrgpxmnfy Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Tue Nov 25 07:38:36 EST 2003 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Tue Nov 25 07:38:34 EST 2003 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id C0C9219B62; Tue, 25 Nov 2003 07:38:26 -0500 (EST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.20.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 7AE6119B2F; Tue, 25 Nov 2003 07:38:12 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 213C819B0E; Tue, 25 Nov 2003 07:37:43 -0500 (EST) Received: from ns.aprote.ee (ns.aprote.ee [80.235.78.106]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 931CD19A64 for <9fans@cse.psu.edu>; Tue, 25 Nov 2003 07:37:31 -0500 (EST) Received: Message by Barricade ns.aprote.ee with ESMTP id hAPCbNGN015808 for <9fans@cse.psu.edu>; Tue, 25 Nov 2003 14:37:23 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-ID: <81132473206F3A46A72BD6116E1A06AE056154@black.aprote.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [9fans] Shutdown service Thread-Index: AcOzRfxYZlVOJrUNTaqwLjXoU8nuTgAB/Vhg From: "Tiit Lankots" To: <9fans@cse.psu.edu> Subject: [9fans] cs & sysname Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Tue, 25 Nov 2003 14:37:27 +0200 X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) After setting up venti, cs stopped recognising my sysname. It was because the loopback interface got up first on boot, and because cs looks first by ip address. Now, I had two alternative ways to deal with it: 1) Poke around in /sys/src/cmd/ndb/cs.c and edit it to look by the ethernet address when by ip it did not succeed.=20 I did it. 2) Write the ip I get from the dhcp server into /lib/ndb/local. I did it too. Now it works. Basically, 2) would've sufficed. OK, now for the question: Is 2) the "standard" way of dealing with this? What to do when the ip returned by dhcp is random? Tiit --upas-izhiifaxbpgbijtrfsrgpxmnfy--