From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: presotto@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: [9fans] query the fs about its config MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-frqsdmylzzolwdvlcxhvpkfvos" Date: Mon, 25 Feb 2002 09:55:54 -0500 Topicbox-Message-UUID: 5579746c-eaca-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-frqsdmylzzolwdvlcxhvpkfvos Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I clearly didn't read the original message. Looks like someone already added it to ours version of the file server, probably jmk. It's called printconf. Here's the relevant routines. You can snarf and paste to the current code. Hopefully we'll get the full version out there soon: from config.c: void cmd_printconf(int, char *[]) { char *p, *s; Iobuf *iob; iob = getbuf(confdev, 0, Bread); if(iob == nil) return; if(checktag(iob, Tconfig, 0)){ putbuf(iob); return; } print("config %s\n", nvrgetconfig()); s = p = iob->iobuf; while(*p != 0 && p < iob->iobuf+BUFSIZE){ if(*p++ != '\n') continue; print("%.*s", (int)(p-s), s); s = p; } if(p != s) print("%.*s", (int)(p-s), s); print("end\n"); putbuf(iob); } From auth.c char* nvrgetconfig(void) { return nvr.config; } From con.c's command table cmd_install("printconf", "-- print configuration", cmd_printconf); --upas-frqsdmylzzolwdvlcxhvpkfvos Content-Type: message/rfc822 Content-Disposition: inline; filename=message.txt Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Mon Feb 25 09:26:17 EST 2002 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Mon Feb 25 09:26:16 EST 2002 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 5E487199EE; Mon, 25 Feb 2002 09:26:09 -0500 (EST) Delivered-To: 9fans@cse.psu.edu Received: from plan9.cs.bell-labs.com (plan9.bell-labs.com [204.178.31.2]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id 5A08019988 for <9fans@cse.psu.edu>; Mon, 25 Feb 2002 09:25:59 -0500 (EST) Message-ID: From: presotto@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: [9fans] query the fs about its config MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-ktaqjglmtscokjbjpiueivawpa" Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.8 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Help: List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Mon, 25 Feb 2002 09:25:31 -0500 This is a multi-part message in MIME format. --upas-ktaqjglmtscokjbjpiueivawpa Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Depends on what you mean by its config cat '#P'/ioalloc cat '#P'/irqalloc cat '#c'/drivers --upas-ktaqjglmtscokjbjpiueivawpa Content-Type: message/rfc822 Content-Disposition: inline; filename=message.txt Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Mon Feb 25 03:58:18 EST 2002 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Mon Feb 25 03:58:16 EST 2002 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.30.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 6FBC71999B; Mon, 25 Feb 2002 03:58:08 -0500 (EST) Delivered-To: 9fans@cse.psu.edu Received: from nautilus.dat.escet.urjc.es (gsyc113.dat.escet.urjc.es [193.147.71.113]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id D5E3A199EC for <9fans@cse.psu.edu>; Mon, 25 Feb 2002 03:57:08 -0500 (EST) To: 9fans@cse.psu.edu From: Fco.J.Ballesteros MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20020225085709.D5E3A199EC@mail.cse.psu.edu> Subject: [9fans] query the fs about its config Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.8 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Help: List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Mon, 25 Feb 2002 09:56:37 +0100 Shouldn't the fs kernel have a `showconfig' or something like that to print its config? I may try to change the source of my ide fs kernel to let it do that; but that depends on how much spare time I can get for this. --upas-ktaqjglmtscokjbjpiueivawpa-- --upas-frqsdmylzzolwdvlcxhvpkfvos--