From owner-freebsd-hackers Wed Jan 1 7: 1: 5 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E8A137B401 for ; Wed, 1 Jan 2003 07:01:04 -0800 (PST) Received: from web14008.mail.yahoo.com (web14008.mail.yahoo.com [216.136.175.124]) by mx1.FreeBSD.org (Postfix) with SMTP id 2D97743EB2 for ; Wed, 1 Jan 2003 07:01:04 -0800 (PST) (envelope-from henriquepl@yahoo.com) Message-ID: <20030101150104.99966.qmail@web14008.mail.yahoo.com> Received: from [200.155.40.167] by web14008.mail.yahoo.com via HTTP; Wed, 01 Jan 2003 12:01:04 ART Date: Wed, 1 Jan 2003 12:01:04 -0300 (ART) From: =?iso-8859-1?q?Henrique=20Lima?= Subject: mailing To: freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I am very curious about freebsd, can I be part of this mailing? _______________________________________________________________________ Busca Yahoo! O melhor lugar para encontrar tudo o que você procura na Internet http://br.busca.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Jan 1 9:13:46 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A41CE37B401 for ; Wed, 1 Jan 2003 09:13:45 -0800 (PST) Received: from chaos.evolve.za.net (chaos.evolve.za.net [196.34.172.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id B834B43E4A for ; Wed, 1 Jan 2003 09:13:44 -0800 (PST) (envelope-from cole@optec.co.za) Received: from amavis by chaos.evolve.za.net with scanned-ok (Exim 3.36 #1) id 18TmR4-000LJp-00 for freebsd-hackers@freebsd.org; Wed, 01 Jan 2003 19:13:42 +0200 Received: from [196.39.126.250] (helo=stalker) by chaos.evolve.za.net with asmtp (TLSv1:RC4-MD5:128) (Exim 3.36 #1) id 18TmR4-000LJe-00 for freebsd-hackers@freebsd.org; Wed, 01 Jan 2003 19:13:42 +0200 Message-ID: <004d01c2b1b9$72cbcc20$4200000a@stalker> From: "Cole Optec" To: Subject: CFS Date: Wed, 1 Jan 2003 19:15:52 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by Opteq - www.optec.co.za Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi I was wondering if anyone knows of a new mailing list for CFS. I would also like to know if anyone had mod'd the CFS code to allow it to mount directories in another mode other than 700? Thanx Cole To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Jan 1 9:16:54 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94C9537B401; Wed, 1 Jan 2003 09:16:51 -0800 (PST) Received: from net2.dinoex.sub.org (net2.dinoex.de [212.184.201.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18E3C43E4A; Wed, 1 Jan 2003 09:16:48 -0800 (PST) (envelope-from pmc@citylink.dinoex.sub.org) Received: from net2.dinoex.sub.org (uucp@net2.dinoex.de [212.184.201.182]) by net2.dinoex.sub.org (8.12.6/8.12.6) with ESMTP id h01HGXK0007110; Wed, 1 Jan 2003 18:16:35 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) X-Authentication-Warning: net2.dinoex.sub.org: Host uucp@net2.dinoex.de [212.184.201.182] claimed to be net2.dinoex.sub.org Received: from citylink.dinoex.sub.org (uucp@localhost) by net2.dinoex.sub.org (8.12.6/8.12.6/Submit) with UUCP id h01HGWiY007109; Wed, 1 Jan 2003 18:16:32 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) Received: from gate.oper.dinoex.org by citylink.dinoex.sub.org (8.8.5/PMuch-B3b) with ESMTP id SAA29394; Wed, 1 Jan 2003 18:15:36 +0100 (CET) Received: from disp.oper.dinoex.org (disp-e [192.168.98.5]) by gate.oper.dinoex.org (8.12.6/8.12.6) with ESMTP id h01HDrZH012083; Wed, 1 Jan 2003 18:13:53 +0100 (CET) (envelope-from pmc@disp.oper.dinoex.org) Received: (from pmc@localhost) by disp.oper.dinoex.org (8.11.6/8.11.6) id h01HDUG08357; Wed, 1 Jan 2003 18:13:30 +0100 (CET) (envelope-from pmc) Date: Wed, 1 Jan 2003 18:13:30 +0100 From: Peter Much To: Terry Lambert Cc: Gregory Neil Shapiro , Peter Much , hackers@FreeBSD.ORG Subject: Re: sendmail: how to get the named of FreeBSD4.7 standards compliant? Message-ID: <20030101181330.C8233@disp.oper.dinoex.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: from "Terry Lambert" at Dec 31, 2002 09:19:38 PM Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ! ! Gregory Neil Shapiro wrote: ! > pmc> While it is true that the said sendmail-option solves the problem ! > pmc> (if sendmail is new enough to understand it), I could nowhere find ! > pmc> information on how to fix the bug in the nameserver - that is, ! > pmc> in the nameserver that is packaged with FreeBSD 4.4 or 4.7. ! > ! > FreeBSD's nameserver is fine. The problem is the remote nameserver ! > authorative for the domain in question. That nameserver is incorrectly ! > returning SERVFAIL instead of NODATA (or possibly NXDOMAIN) for AAAA ! > queries. Nothing needs to be fixed in FreeBSD's nameserver. Sorry, Gregory, but You missed me entirely. What I am talking about is a limited test environment consisting _only_ of FreeBSD Systems. So what You name "the remote nameserver" is very well (or not well, in this case) a FreeBSD 4.4 or 4.7 nameserver! What is actually happening (I investigated further with tcpdump) is the following: (When I say "local" i mean the local machine, when i say "remote" i mean another machine in the limited test environment, when i say "outbound" i mean a linkup from the environment to the internet.) 1. a mail for remote delivery is locally created. 2. the local sendmail has the directive smarthost "gate". 3. the local nameserver is master/primary for the test environment domain, which is "oper.dinoex.org" (this does not exist in the real world). This nameserver has an MX for "gate" pointing to "gate-e", which is the LAN network interface name of "gate". It also has an A record for "gate-e". 4. sendmail asks the nameserver for various things during its startup and while parsing the mail (local interfaces, final destination hostname) - all of these work as to be expected. 5. sendmail enters delivery mode and asks for the MX record for "gate", and gets "gate-e.oper.dinoex.org". 6. Then it asks the nameserver for the "AAAA" record of "gate-e.oper.dinoex.org" (which does not exist - the nameserver answers by sending the zonefile header (seems ok?). Then sendmail asks again for the "AAAA" record of "gate-e" (without domain). Now the local nameserver does not answer, but tries to propagate the query up! If there is an outbound connection active, this query will go out to some internet forwarder (or possibly the root nameservers), and from there likely return as not existing - then the mail will be delivered. But if there is currently no outbound connection available, then this query will return with SERVFAIL, and then sendmail does put the mail into "deferred" state. Background: This environment should be configured to use an internet connection for internet-relevant things, but to work flawlessly without such a connection as long as matters do concern only systems within the LAN. That means, if I write a mail to hackers@freebsd.org, then it is obvious that there will be outbound traffic to lookup and verify this hostname (and likely the mail will be deferred if the outbound linkup is inactive). But if I write a mail to another system within the LAN, this has to work without an outbound connection. And usually it does, except for this AAAA lookup of the unqualified mail hub interface adress. ! However, it's possible to address the problem by placing a ! caching-only nameserver between you and the nameserver with ! the problem, and hitting the local nameserver, and letting it Difficult, as this nameserver runs on the local host. ! recurse only if the data isn't in cache. This will address ! the second and subsequent requests, but the first one will ! still take however long it takes the proxy request to time ! out, before the cache is loaded (and converts the SERVFAIL ! into a NODATA, but only for AAAA or A6 requests that receive ! no response or a SERVFAIL response). ! ! It's also possible to rip out IPv6 support entirely, which is ! what the people who won't fix their nameserver software are ! tacitly recommending. Yes, Ted, I understand well. And I see a lot of workarounds to get rid of the problem - the most simple would be to just upgrade all sendmail binaries so they understand the BrokenAAAA option. (Or even simpler in this case, to keep the internet connection up all time.) But this is, now that I have tracked and understood the problem, not my primary intention. Now I want to understand what is actually going wrong here and why. I do not think that my approach -to have an environment that is able to access the internet and is also able to run on its own- is essentially wrong. But in this case I am not even sure who is to blame: named or sendmail, or my named configuration (rather cookbook) - and while I am quite good in understanding mail matters, I am not all too experienced concerning nameservers or even IPv6. So I feel the need for a bit of competence gathering. Another matter is: this stuff is obviously creating network traffic and load on the root nameservers. What good for? And anyway, I would not have posted to "hackers" if I thought this a trivial matter.;-) ! I would be real tempted to automatically generate complaint ! email to the technical contact in the whois database for all ! AAAA/A6 requests that fail that way, instead, if the delay ! bthered me (which it doesn't). Well, in this case that technical contact would be me, and that's why I'm asking. ;-)) rgds, PMc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Jan 1 9:26:54 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E33D937B401 for ; Wed, 1 Jan 2003 09:26:53 -0800 (PST) Received: from chaos.evolve.za.net (chaos.evolve.za.net [196.34.172.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A62F43ED4 for ; Wed, 1 Jan 2003 09:26:53 -0800 (PST) (envelope-from cole@optec.co.za) Received: from amavis by chaos.evolve.za.net with scanned-ok (Exim 3.36 #1) id 18Tmdn-000LLV-00 for freebsd-hackers@freebsd.org; Wed, 01 Jan 2003 19:26:51 +0200 Received: from [192.168.0.17] (helo=optec.co.za) by chaos.evolve.za.net with smtp (Exim 3.36 #1) id 18TmcB-000LKr-00 for freebsd-hackers@freebsd.org; Wed, 01 Jan 2003 19:25:49 +0200 From: cole@optec.co.za To: freebsd-hackers@freebsd.org subject:CFS Message-Id: Date: Wed, 01 Jan 2003 19:25:49 +0200 X-Virus-Scanned: by Opteq - www.optec.co.za Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi I would like to know if anyone knows of a new or current mailing list for CFS port. I would also like to know if anyone has modded the code for CFS to allow the directories under it to be mounted in a different mode other than 700. thanx Cole. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Jan 1 11:40:39 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C886B37B401 for ; Wed, 1 Jan 2003 11:40:38 -0800 (PST) Received: from bluejay.mail.pas.earthlink.net (bluejay.mail.pas.earthlink.net [207.217.120.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A7BC43ED8 for ; Wed, 1 Jan 2003 11:40:38 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0187.cvx21-bradley.dialup.earthlink.net ([209.179.192.187] helo=mindspring.com) by bluejay.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18TojF-0006ge-00; Wed, 01 Jan 2003 11:40:37 -0800 Message-ID: <3E1343E7.3EE10090@mindspring.com> Date: Wed, 01 Jan 2003 11:39:19 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Henrique Lima Cc: freebsd-hackers@FreeBSD.org Subject: Re: mailing References: <20030101150104.99966.qmail@web14008.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a41e21eb28a0a28ea8134201c6aef8d4f893caf27dac41a8fd350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Henrique Lima wrote: > > I am very curious about freebsd, can I be part of this > mailing? Yes. List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Jan 1 11:51:16 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5C9237B401; Wed, 1 Jan 2003 11:51:14 -0800 (PST) Received: from bluejay.mail.pas.earthlink.net (bluejay.mail.pas.earthlink.net [207.217.120.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E00F43EC2; Wed, 1 Jan 2003 11:51:14 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0187.cvx21-bradley.dialup.earthlink.net ([209.179.192.187] helo=mindspring.com) by bluejay.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18TotL-00007R-00; Wed, 01 Jan 2003 11:51:04 -0800 Message-ID: <3E134659.78028611@mindspring.com> Date: Wed, 01 Jan 2003 11:49:45 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Peter Much Cc: Gregory Neil Shapiro , hackers@FreeBSD.ORG Subject: Re: sendmail: how to get the named of FreeBSD4.7 standards compliant? References: <20030101181330.C8233@disp.oper.dinoex.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a41e21eb28a0a28ea8c21a7d74633d6539350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Peter Much wrote: > 6. Then it asks the nameserver for the "AAAA" record of > "gate-e.oper.dinoex.org" (which does not exist - the > nameserver answers by sending the zonefile header (seems > ok?). Then sendmail asks again for the "AAAA" record of > "gate-e" (without domain). Now the local nameserver does > not answer, but tries to propagate the query up! > If there is an outbound connection active, this query will > go out to some internet forwarder (or possibly the root > nameservers), and from there likely return as not existing - > then the mail will be delivered. But if there is currently > no outbound connection available, then this query will > return with SERVFAIL, and then sendmail does put the mail > into "deferred" state. > > Background: This environment should be configured to use > an internet connection for internet-relevant things, but to > work flawlessly without such a connection as long as matters > do concern only systems within the LAN. This is called a "split horizon DNS", and you need to run two DNS servers, one interior, and one exterior, both authoritative for your domain, in order for this to work. The problem is that you are forwarding a request that should be local, and you are doing it because your local server does not pass the authority test for your local domain. I have been told that BIND 9 can solve this problem with two different "views"; however, I do not believe it. I wrote a BCP RFC for this, which ended up not getting published, as I did not push it on the promise that the views would solve the problem, and arrive much sooner than they did. I believe it is still available from: ftp://ftp.whistle.com/pub/terry/drafts/draft-lambert-dns-split-00.txt > Yes, Ted, I understand well. And I see a lot of workarounds "Terry", not "Ted". 8-). > Another matter is: this stuff is obviously creating network > traffic and load on the root nameservers. What good for? To replace the IPv4 traffic entirely, eventually. > ! I would be real tempted to automatically generate complaint > ! email to the technical contact in the whois database for all > ! AAAA/A6 requests that fail that way, instead, if the delay > ! bthered me (which it doesn't). > > Well, in this case that technical contact would be me, and > that's why I'm asking. ;-)) The easist answer to that is to find DNS software that responds correctly, and tell them to change software. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Jan 1 12: 8:22 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C075A37B401 for ; Wed, 1 Jan 2003 12:08:20 -0800 (PST) Received: from clover.kientzle.com (user-112uh9a.biz.mindspring.com [66.47.69.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27BC343E4A for ; Wed, 1 Jan 2003 12:08:20 -0800 (PST) (envelope-from kientzle@acm.org) Received: from acm.org (c43 [66.47.69.43]) by clover.kientzle.com (8.11.3/8.11.3) with ESMTP id h01K8IE32217 for ; Wed, 1 Jan 2003 12:08:19 -0800 (PST) (envelope-from kientzle@acm.org) Message-ID: <3E134AB2.8030401@acm.org> Date: Wed, 01 Jan 2003 12:08:18 -0800 From: Tim Kientzle Reply-To: kientzle@acm.org User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.6) Gecko/20011206 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Subject: devd, crunchgen, C++, and /rescue Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm slowly tracking down the remaining minor issues with my all-static crunchgen-ed /rescue implementation. This includes pretty much everything from /bin and /sbin, as well as a few useful tools from /usr/bin and /usr/sbin. However, I've just run into an ugly problem. Specifically, devd is now written in C++ (as of a few weeks ago) and crunchgen does _not_ play well with C++ programs. For now, this means that devd will not be in /rescue. I'm not entirely happy about this. Policy question: Is C++ considered acceptable in /bin and /sbin? (I presume so, since Warner's doing it.) Technical Question: Does anyone know how to get crunchgen to play nicely with C++ programs? (I've tried a couple of simple changes to the generated makefile with no success.) Usability Question: How necessary is devd likely to be for people recovering from serious disaster? (Imagine that /usr, /bin, and /sbin are all broken. Will some people require devd to get a network adapter or hot-plug CD-ROM running, for example?) Thanks for any assistance or ideas, Tim Kientzle To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Jan 1 12:40: 2 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A38637B401 for ; Wed, 1 Jan 2003 12:40:01 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id D063D43EA9 for ; Wed, 1 Jan 2003 12:39:59 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 1 Jan 2003 20:39:58 +0000 (GMT) Date: Wed, 1 Jan 2003 20:39:58 +0000 From: David Malone To: Jim Faucette Cc: freebsd-hackers@freebsd.org Subject: Re: SCM_CREDS Message-ID: <20030101203958.GA22069@walton.maths.tcd.ie> References: <3E124700.54A4BE5F@awod.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E124700.54A4BE5F@awod.com> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Dec 31, 2002 at 08:40:16PM -0500, Jim Faucette wrote: > I'm trying to get a connecting process' PID that's using a UNIX socket. > recvmsg makes it appear possible, but so far no good. > > Has anyone done this before? Can you supply a code sippet??? In the FreeBSD implimentation, the sender must attach a message of type SCM_CREDS and the kernel will correctly fill in the fields. FreeBSD also supports a socketoption which returns a structure containing the credentials of the process at the far end. It is used to impliment getpeereid - have a look at: http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/gen/getpeereid.c?rev=1.4.2.2 for an example. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Jan 1 13:52: 1 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0852F37B406 for ; Wed, 1 Jan 2003 13:52:00 -0800 (PST) Received: from clover.kientzle.com (user-112uh9a.biz.mindspring.com [66.47.69.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 433CD43EB2 for ; Wed, 1 Jan 2003 13:51:59 -0800 (PST) (envelope-from kientzle@acm.org) Received: from acm.org (c43 [66.47.69.43]) by clover.kientzle.com (8.11.3/8.11.3) with ESMTP id h01LpvE32537 for ; Wed, 1 Jan 2003 13:51:58 -0800 (PST) (envelope-from kientzle@acm.org) Message-ID: <3E1362FD.6070001@acm.org> Date: Wed, 01 Jan 2003 13:51:57 -0800 From: Tim Kientzle Reply-To: kientzle@acm.org User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.6) Gecko/20011206 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Subject: Reading rc.conf from C programs? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm trying to figure out how to read and use /etc/rc.conf configuration variables from within a C program. The standard technique, of course, is to use a shell-script wrapper and pass the extracted values to the C program on the command line. But I want access to _all_ of the rc.conf variables, not just a couple of them, and I don't see any reasonable way to accomplish that with a shell wrapper. One approach would embed /bin/sh and drive that from my program. (E.g., tell the embedded interpreter to read and interpret the config file, then programmatically query the config variables.) It's not clear to me how simple it would be to build an embeddable /bin/sh. Alternatively, I suppose I could fire up /bin/sh via popen and drive it from my program (passing 'echo $var' to query variables, etc.). But I'm not entirely convinced this would work; what if a variable value has a newline in it, for example? Has anyone done anything like this before? Thanks, Tim Kientzle To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Jan 1 15:20:26 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86F5C37B401 for ; Wed, 1 Jan 2003 15:20:25 -0800 (PST) Received: from apotheosis.org.za (apotheosis.org.za [137.158.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5BD543E4A for ; Wed, 1 Jan 2003 15:20:24 -0800 (PST) (envelope-from mwest@uct.ac.za) Date: Thu, 2 Jan 2003 01:20:42 +0200 From: Matthew West To: Tim Kientzle Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Reading rc.conf from C programs? Message-ID: <20030102012042.A16965@apotheosis.org.za> References: <3E1362FD.6070001@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3E1362FD.6070001@acm.org>; from "Tim Kientzle" on Wed, Jan 01, 2003 at 01:51:57PM Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jan 01, 2003 at 01:51:57PM -0800, Tim Kientzle wrote: > I'm trying to figure out how to read and use /etc/rc.conf > configuration variables from within a C program. You could perhaps copy the way that "The Fish" does it? Take a look at "ports/sysutils/thefish". The "parser.c" code appears to read /etc/{,defaults/}rc.conf and place all the options into a linked list. -- mwest@uct.ac.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Jan 1 15:29:55 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5434C37B401 for ; Wed, 1 Jan 2003 15:29:54 -0800 (PST) Received: from april.chuckr.org (april.chuckr.org [66.92.147.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1478543EA9 for ; Wed, 1 Jan 2003 15:29:53 -0800 (PST) (envelope-from chuckr@chuckr.org) Received: from april.chuckr.org (localhost [127.0.0.1]) by april.chuckr.org (8.12.6/8.12.5) with ESMTP id h01NOfgJ032955; Wed, 1 Jan 2003 18:24:41 -0500 (EST) (envelope-from chuckr@chuckr.org) Received: from localhost (chuckr@localhost) by april.chuckr.org (8.12.6/8.12.5/Submit) with ESMTP id h01NOeMa032952; Wed, 1 Jan 2003 18:24:40 -0500 (EST) X-Authentication-Warning: april.chuckr.org: chuckr owned process doing -bs Date: Wed, 1 Jan 2003 18:24:40 -0500 (EST) From: Chuck Robey To: Matthew West Cc: Tim Kientzle , Subject: Re: Reading rc.conf from C programs? In-Reply-To: <20030102012042.A16965@apotheosis.org.za> Message-ID: <20030101181840.P29988-100000@april.chuckr.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 2 Jan 2003, Matthew West wrote: > On Wed, Jan 01, 2003 at 01:51:57PM -0800, Tim Kientzle wrote: > > I'm trying to figure out how to read and use /etc/rc.conf > > configuration variables from within a C program. > > You could perhaps copy the way that "The Fish" does it? > > Take a look at "ports/sysutils/thefish". > > The "parser.c" code appears to read /etc/{,defaults/}rc.conf and place > all the options into a linked list. If I had full control over a system, I'd write me lex script for it, that's easily the best way to parse args. Flexible as hell, really easy to extend, easy to special-case, easy to error-control. Learning lex is harder than just C code, but it's such a good tool to know just for general purposes, it's worth the small time spent. Every C programmer ought to spend some time with lex/flex (and obviously yacc/bison). If you don't know it for an employer, you're really hobbled, it's *such* a good tool. > > ---------------------------------------------------------------------------- Chuck Robey | Interests include C & Java programming, FreeBSD, chuckr@chuckr.org | electronics, communications, and SF/Fantasy. New Year's Resolution: I will not sphroxify gullible people into looking up fictitious words in the dictionary. ---------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Jan 1 18: 1:41 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 963DA37B401 for ; Wed, 1 Jan 2003 18:01:40 -0800 (PST) Received: from bogslab.ucdavis.edu (bogslab.ucdavis.edu [169.237.68.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21B7643EA9 for ; Wed, 1 Jan 2003 18:01:40 -0800 (PST) (envelope-from greg@bogslab.ucdavis.edu) Received: from thistle.bogs.org (thistle.bogs.org [198.137.203.61]) by bogslab.ucdavis.edu (8.9.3/8.9.3) with ESMTP id SAA73813 for ; Wed, 1 Jan 2003 18:01:27 -0800 (PST) (envelope-from greg@bogslab.ucdavis.edu) Received: from thistle.bogs.org (localhost [127.0.0.1]) by thistle.bogs.org (8.11.3/8.11.3) with ESMTP id h0220dx78981 for ; Wed, 1 Jan 2003 18:00:40 -0800 (PST) (envelope-from greg@thistle.bogs.org) Message-Id: <200301020200.h0220dx78981@thistle.bogs.org> To: hackers@FreeBSD.ORG X-To: Chuck Robey X-Sender: owner-freebsd-hackers@FreeBSD.ORG Subject: Re: Reading rc.conf from C programs? In-reply-to: Your message of "Wed, 01 Jan 2003 18:24:40 EST." <20030101181840.P29988-100000@april.chuckr.org> Reply-To: gkshenaut@ucdavis.edu Date: Wed, 01 Jan 2003 18:00:39 -0800 From: Greg Shenaut Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030101181840.P29988-100000@april.chuckr.org>, Chuck Robey cleopede: >On Thu, 2 Jan 2003, Matthew West wrote: > >> On Wed, Jan 01, 2003 at 01:51:57PM -0800, Tim Kientzle wrote: >> > I'm trying to figure out how to read and use /etc/rc.conf >> > configuration variables from within a C program. One off the wall way: #!/bin/sh set -a . /etc/rc.conf exec /your/program Greg Shenaut To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Jan 1 19:41: 0 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 432BD37B401 for ; Wed, 1 Jan 2003 19:40:59 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9428F43EDC for ; Wed, 1 Jan 2003 19:40:55 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 4DB322A7EA; Wed, 1 Jan 2003 19:40:55 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: kientzle@acm.org Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: devd, crunchgen, C++, and /rescue In-Reply-To: <3E134AB2.8030401@acm.org> Date: Wed, 01 Jan 2003 19:40:55 -0800 From: Peter Wemm Message-Id: <20030102034055.4DB322A7EA@canning.wemm.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Tim Kientzle wrote: > I'm slowly tracking down the remaining minor issues with > my all-static crunchgen-ed /rescue implementation. This > includes pretty much everything from /bin and /sbin, as > well as a few useful tools from /usr/bin and /usr/sbin. > > However, I've just run into an ugly problem. > > Specifically, devd is now written in C++ > (as of a few weeks ago) and crunchgen does > _not_ play well with C++ programs. > > For now, this means that devd will not be in > /rescue. I'm not entirely happy about this. > > Policy question: Is C++ considered acceptable in /bin > and /sbin? (I presume so, since Warner's doing it.) > > Technical Question: Does anyone know how to get > crunchgen to play nicely with C++ programs? (I've > tried a couple of simple changes to the generated > makefile with no success.) > > Usability Question: How necessary is devd likely to > be for people recovering from serious disaster? > (Imagine that /usr, /bin, and /sbin are all broken. > Will some people require devd to get a network adapter > or hot-plug CD-ROM running, for example?) Personally, I dont think it is a big deal. /rescue is for the case where normal system services are hosed and you want as little running as possible, and the only things that run are what you specifically run. I cannot think of anything that devd might do that a sysadmin who is competent enough to rescue a dead system that doesn't have /usr mounted couldn't do also. I'd prefer to run dhclient by hand anyway thank you. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Jan 1 20:22:52 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6742137B407 for ; Wed, 1 Jan 2003 20:22:46 -0800 (PST) Received: from jkh-gw.queasyweasel.com (adsl-64-173-3-158.dsl.sntc01.pacbell.net [64.173.3.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6724543ED8 for ; Wed, 1 Jan 2003 20:22:45 -0800 (PST) (envelope-from jkh@queasyweasel.com) Received: from queasyweasel.com (narcissus.freebsd.com [64.173.15.99]) by jkh-gw.queasyweasel.com (8.12.6/8.12.5) with ESMTP id h024M7XW076069; Wed, 1 Jan 2003 20:22:08 -0800 (PST) (envelope-from jkh@queasyweasel.com) Date: Wed, 1 Jan 2003 20:23:00 -0800 Subject: Re: Reading rc.conf from C programs? Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) Cc: freebsd-hackers@FreeBSD.ORG To: kientzle@acm.org From: Jordan K Hubbard In-Reply-To: <3E1362FD.6070001@acm.org> Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.551) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG There's no canned code for doing this, though sysinstall has some very basic parsing routines for reading/writing rc.conf variables you could certain crib from. It sounds like that "thefish" utility someone else mentioned has an even more exotic parser, though I haven't compared the two implementations. The readConfigFile() routine in sysinstall simply reads the configuration data into a fixed-size array, so it's pretty braindead. - Jordan On Wednesday, January 1, 2003, at 01:51 PM, Tim Kientzle wrote: > I'm trying to figure out how to read and use > /etc/rc.conf configuration variables from within > a C program. The standard technique, of course, > is to use a shell-script wrapper and pass the > extracted values to the C program on the command > line. But I want access to _all_ of the rc.conf > variables, not just a couple of them, and I don't > see any reasonable way to accomplish that with a > shell wrapper. > > One approach would embed /bin/sh and drive that > from my program. (E.g., tell the embedded interpreter > to read and interpret the config file, then > programmatically query the config variables.) > It's not clear to me how simple it would be to > build an embeddable /bin/sh. > > Alternatively, I suppose I could fire up /bin/sh via > popen and drive it from my program (passing 'echo $var' > to query variables, etc.). But I'm not entirely > convinced this would work; what if a variable value has > a newline in it, for example? > > Has anyone done anything like this before? > > Thanks, > > Tim Kientzle > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > -- Jordan K. Hubbard Engineering Manager, BSD technology group Apple Computer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Jan 1 21:25:27 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 835E037B401 for ; Wed, 1 Jan 2003 21:25:26 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3571443EB2 for ; Wed, 1 Jan 2003 21:25:26 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0014.cvx21-bradley.dialup.earthlink.net ([209.179.192.14] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18Txr6-0002r3-00; Wed, 01 Jan 2003 21:25:20 -0800 Message-ID: <3E13CCF1.FA78AD5D@mindspring.com> Date: Wed, 01 Jan 2003 21:24:01 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: kientzle@acm.org Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Reading rc.conf from C programs? References: <3E1362FD.6070001@acm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a411e2d88a592deae8baaf4db8f2a3589f667c3043c0873f7e350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Tim Kientzle wrote: > I'm trying to figure out how to read and use > /etc/rc.conf configuration variables from within > a C program. The standard technique, of course, > is to use a shell-script wrapper and pass the > extracted values to the C program on the command > line. But I want access to _all_ of the rc.conf > variables, not just a couple of them, and I don't > see any reasonable way to accomplish that with a > shell wrapper. #!/bin/sh # # Throw all of rc.conf into the environemnet so a C program # named "fred" can read any of them with "getenv". . /etc/rc.conf fred 8-). > Has anyone done anything like this before? Yeah. fopen(3), for(;;) { fgets(3), strtok(3) } fclose(3). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 2 1:27:19 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD89E37B401 for ; Thu, 2 Jan 2003 01:27:18 -0800 (PST) Received: from priv-edtnes04.telusplanet.net (outbound02.telus.net [199.185.220.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6D8943EC2 for ; Thu, 2 Jan 2003 01:27:17 -0800 (PST) (envelope-from sh@bel.bc.ca) Received: from dbs ([216.232.223.49]) by priv-edtnes04.telusplanet.net (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with SMTP id <20030102092712.ZJSA27316.priv-edtnes04.telusplanet.net@dbs> for ; Thu, 2 Jan 2003 02:27:12 -0700 Message-ID: <000501c2b241$21927560$31dfe8d8@slugabed.org> From: "Sean Hamilton" To: Subject: ATA RAID performance Date: Thu, 2 Jan 2003 01:27:12 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Greetings, I have tried using both atacontrol and ccdconfig to create stripes and mirrors of various sizes, and have found that in all cases, read performance *decreased*. Is this typical? I have a Promise controller in another computer running Windows which sees a considerable performance increase while striping, but in the FreeBSD machine, no controller is present. thanks, sh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 2 2: 7:14 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9619A37B401 for ; Thu, 2 Jan 2003 02:07:13 -0800 (PST) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4477D43ED8 for ; Thu, 2 Jan 2003 02:07:02 -0800 (PST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.5/8.12.6) id h02A6wEe036256; Thu, 2 Jan 2003 11:06:58 +0100 (CET) (envelope-from sos) From: Soeren Schmidt Message-Id: <200301021006.h02A6wEe036256@spider.deepcore.dk> Subject: Re: ATA RAID performance In-Reply-To: <000501c2b241$21927560$31dfe8d8@slugabed.org> To: Sean Hamilton Date: Thu, 2 Jan 2003 11:06:58 +0100 (CET) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL98b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It seems Sean Hamilton wrote: > Greetings, > > I have tried using both atacontrol and ccdconfig to create stripes and > mirrors of various sizes, and have found that in all cases, read performance > *decreased*. Uhm, what kind of disks, stripesize etc are you using, without that info noone can tell you why... -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 2 2:47:14 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A915637B401 for ; Thu, 2 Jan 2003 02:47:13 -0800 (PST) Received: from mail.webjockey.net (mail.webjockey.net [208.141.46.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id E528543EA9 for ; Thu, 2 Jan 2003 02:47:12 -0800 (PST) (envelope-from gary@outloud.org) Received: from ancient-iw4w1dr.outloud.org (wv-mrtnbrg-cmts1a-a-21.shphwv.adelphia.net [68.67.224.21]) by mail.webjockey.net (8.12.6/8.12.6) with ESMTP id h02Akw4u081090; Thu, 2 Jan 2003 05:46:59 -0500 (EST) (envelope-from gary@outloud.org) Message-Id: <5.2.0.9.2.20030102054201.027840f0@208.141.46.254> X-Sender: ancient@208.141.46.3 X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Thu, 02 Jan 2003 05:48:08 -0500 To: "Sean Hamilton" , From: Gary Stanley Subject: Re: ATA RAID performance In-Reply-To: <000501c2b241$21927560$31dfe8d8@slugabed.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >I have tried using both atacontrol and ccdconfig to create stripes and >mirrors of various sizes, and have found that in all cases, read performance >*decreased*. Have you formatted your filesystem to the correct fragment/blocksizes? This usually helps on raid controllers in conjunction with the correct stripe size. "man tuning" for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 2 3:15:33 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF59737B401 for ; Thu, 2 Jan 2003 03:15:31 -0800 (PST) Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by mx1.FreeBSD.org (Postfix) with SMTP id 27D0743ED4 for ; Thu, 2 Jan 2003 03:15:30 -0800 (PST) (envelope-from bra@fsn.hu) Received: (qmail 26978 invoked by uid 1000); 2 Jan 2003 11:15:28 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 2 Jan 2003 11:15:28 -0000 Date: Thu, 2 Jan 2003 12:15:28 +0100 (CET) From: Attila Nagy To: hackers@freebsd.org Cc: emoore@freebsd.org Subject: An amr dump problem (I guess) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I am trying to make crashdumps on FreeBSD 5.0, because I get panics very often. Here is what I do: ddb> panic panic: from debugger syncing disks, buffers remaining... done Uptime: 17m32s amr0: flushing cache...done Dumping 511 MB Dump failed writing header (19) Dump failed writing data (19) Dump failed writing trailer (19) Dump complete Terminate ACPI Automatic reboot in 15 seconds - press a key on the console to abort The dump device is a big swap partition on the amr0 controller. Is it possible that the amr0 controller becomes inactive after it flushed its cache and that's why the kernel cannot make the crashdump? If it's related to the amr driver and it's hard to fix, would it be possible to mention in amr(4) that making crash dumps through this device is not supported? Thanks, ----------[ Free Software ISOs - http://www.fsn.hu/?f=download ]---------- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone @work: +361 210 1415 (194) cell.: +3630 306 6758 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 2 3:34: 6 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38D9C37B401 for ; Thu, 2 Jan 2003 03:34:05 -0800 (PST) Received: from smtp.netli.com (ip2-pal-focal.netli.com [66.243.52.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5573743EC2 for ; Thu, 2 Jan 2003 03:34:04 -0800 (PST) (envelope-from vlm@netli.com) Received: (qmail 17896 invoked by uid 84); 2 Jan 2003 11:33:50 -0000 Received: from vlm@netli.com by l3-1 with qmail-scanner-0.96 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.115536 secs); 02 Jan 2003 11:33:50 -0000 Received: from unknown (HELO netli.com) (172.17.1.38) by mx01-pal-lan.netli.lan with SMTP; 2 Jan 2003 11:33:50 -0000 Message-ID: <3E1423F9.6070007@netli.com> Date: Thu, 02 Jan 2003 03:35:21 -0800 From: Lev Walkin Organization: Netli, Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021117 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mario Sergio Fujikawa Ferreira Cc: FreeBSD-hackers@FreeBSD.org, Garrett Wollman Subject: Re: Timing with clock_gettime(2) (sysutils/clockspeed port) References: <20021223110426.2848.qmail@exxodus.fedaykin.here> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mario Sergio Fujikawa Ferreira wrote: > #define timing_diffi(x,y) \ > ( \ > (double) ( ((x)->t.tv_sec - (y)->t.tv_sec) + \ > (double) ( \ > ((x)->t.tv_nsec - (double) (y)->t.tv_nsec) * 4294967296.0 / 1e9 \ > ) \ > ) \ > ) [skip] > printf("Avg getpid() time = %lld nsec\n", timing_diffi(&end,&start)/iters); Please, please read `man 3 printf`. Consider using %f instead of %lld. -- Lev Walkin vlm@netli.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 2 4: 3:42 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F19137B401 for ; Thu, 2 Jan 2003 04:03:41 -0800 (PST) Received: from priv-edtnes10-hme0.telusplanet.net (outbound02.telus.net [199.185.220.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5A0543F59 for ; Thu, 2 Jan 2003 04:03:39 -0800 (PST) (envelope-from sh@planetquake.com) Received: from dbs ([216.232.223.49]) by priv-edtnes10-hme0.telusplanet.net (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with SMTP id <20030102120338.NRBZ20094.priv-edtnes10-hme0.telusplanet.net@dbs> for ; Thu, 2 Jan 2003 05:03:38 -0700 Message-ID: <000601c2b256$fc658b40$31dfe8d8@slugabed.org> From: "Sean Hamilton" To: References: <200301021006.h02A6wEe036256@spider.deepcore.dk> Subject: Re: ATA RAID performance (numerous fs related questions) Date: Thu, 2 Jan 2003 04:03:38 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: "Soeren Schmidt" | Uhm, what kind of disks, stripesize etc are you using, without that info | noone can tell you why... Two Seagate 80GB 7200RPM drives each on their own ATA66 channel. They're not very fast, but they are quiet. Quick tests with dd show about 20 MB/s reads off them with a blocksize of 64KB. I then created a stripe with atacontrol create stripe 128 ad4 ad6 and performed the same dd on ar0, I get about 17 MB/s (on a K7 500.) The performance isn't very relevant in this case. I was just curious. Is there any reason to use span instead of stripe? I am booting off a different disk, and as I understand, if either drive craps out, there's not much hope of recovery for me anyways. Also, which newfs settings would be wise for me? I will only be storing files of exactly 10,000,000 bytes, they will be deleted and recreated often. They will be written slowly and sequentially, at around 40 KB/s (always one at a time.) They will be read as fast as possible several times thereafter, then deleted. The application I am using does not ftruncate before writing, and I am not in a position to change the code. I'm trying -m 0 -o space, though I've heard this is unwise. Can I prevent newfs from writing out superblock backups? Is async faster than softupdates? Is there any reason to use async and softupdates simultaneously, or are they mutually exclusive? (tries, but fails to think of more lingering questions) thanks, sh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 2 5:23:59 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26FEE37B401 for ; Thu, 2 Jan 2003 05:23:57 -0800 (PST) Received: from straylight.ringlet.net (office.sbnd.net [217.75.140.130]) by mx1.FreeBSD.org (Postfix) with SMTP id D199F43EB2 for ; Thu, 2 Jan 2003 05:23:43 -0800 (PST) (envelope-from roam@ringlet.net) Received: (qmail 84901 invoked by uid 1000); 2 Jan 2003 13:23:02 -0000 Date: Thu, 2 Jan 2003 15:23:02 +0200 From: Peter Pentchev To: gkshenaut@ucdavis.edu Cc: hackers@FreeBSD.ORG Subject: Re: Reading rc.conf from C programs? Message-ID: <20030102132302.GG419@straylight.oblivion.bg> Mail-Followup-To: gkshenaut@ucdavis.edu, hackers@FreeBSD.ORG References: <20030101181840.P29988-100000@april.chuckr.org> <200301020200.h0220dx78981@thistle.bogs.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JP+T4n/bALQSJXh8" Content-Disposition: inline In-Reply-To: <200301020200.h0220dx78981@thistle.bogs.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --JP+T4n/bALQSJXh8 Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 01, 2003 at 06:00:39PM -0800, Greg Shenaut wrote: > In message <20030101181840.P29988-100000@april.chuckr.org>, Chuck Robey c= leopede: > >On Thu, 2 Jan 2003, Matthew West wrote: > > > >> On Wed, Jan 01, 2003 at 01:51:57PM -0800, Tim Kientzle wrote: > >> > I'm trying to figure out how to read and use /etc/rc.conf > >> > configuration variables from within a C program. >=20 > One off the wall way: >=20 > #!/bin/sh >=20 > set -a > . /etc/rc.conf > exec /your/program Err.. If the original poster wants *all* the variables controlling the system startup, and not just those modified by the /etc/rc.conf file, then maybe something like the following snippet from /etc/rc would be a better choice: # If there is a global system configuration file, suck it in. # if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf source_rc_confs elif [ -r /etc/rc.conf ]; then . /etc/rc.conf fi This way you get the additional benefit of reading variables from other files besides /etc/rc.conf, like e.g. /etc/rc.conf.local; without this, you might miss important configudation data in some setups. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 I had to translate this sentence into English because I could not read the = original Sanskrit. --JP+T4n/bALQSJXh8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+FD027Ri2jRYZRVMRAkiKAKCExElJeF5+0nvABOwo7uSXL+G+lwCgrVe9 1fZsblH/DdO4bPn5AyfiYGo= =iTVH -----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 2 6:25:19 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E3FC37B401 for ; Thu, 2 Jan 2003 06:25:17 -0800 (PST) Received: from energyhq.homeip.net (213-97-200-73.uc.nombres.ttd.es [213.97.200.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC76843E4A for ; Thu, 2 Jan 2003 06:25:15 -0800 (PST) (envelope-from flynn@energyhq.homeip.net) Received: from christine.energyhq.tk (christine.energyhq.tk [192.168.0.1]) by energyhq.homeip.net (Postfix) with SMTP id E7C90AF585; Thu, 2 Jan 2003 15:25:10 +0100 (CET) Date: Thu, 2 Jan 2003 15:25:01 +0100 From: Miguel Mendez To: Chuck Robey Cc: mwest@uct.ac.za, kientzle@acm.org, freebsd-hackers@FreeBSD.ORG Subject: Re: Reading rc.conf from C programs? Message-Id: <20030102152501.64332e55.flynn@energyhq.homeip.net> In-Reply-To: <20030101181840.P29988-100000@april.chuckr.org> References: <20030102012042.A16965@apotheosis.org.za> <20030101181840.P29988-100000@april.chuckr.org> X-Mailer: Sylpheed version 0.8.8 (GTK+ 1.2.10; i386-portbld-freebsd5.0) X-Face: 1j}k*2E>Y\+C~E|/wehi[:dCM,{N7/uE 3o# P,{t7gA/qnovFDDuyQV.1hdT7&#d)q"xY33}{_GS>kk'S{O]nE$A`T|\4&p\&mQyexOLb8}FO List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 1 Jan 2003 18:24:40 -0500 (EST) Chuck Robey wrote: Hi, Since my little baby was mentioned, I thought I'd just comment :) > > You could perhaps copy the way that "The Fish" does it? > > > > Take a look at "ports/sysutils/thefish". > > > > The "parser.c" code appears to read /etc/{,defaults/}rc.conf and > > place all the options into a linked list. I can tell you I wholeheartedly hate parser.c :) and regret having not started with lex/yacc since day 1. Since the next major release will support not only FreeBSD, but NetBSD as well, I'm redoing the parser in a more flexible way. But again, it was my first parser, and so far seems to work fine :) I've concentrated more on other aspects of the program too. Jordan has also mentioned the parsing code in sysinstall. I think we took really different approaches to the problem. thefish has no previous knowledge of what it's going to find, save for the 'exception list', that it needs to tell some variables that are set to "NO" but aren't really knobs. It should actually be able to parse /etc/make.conf happily, or any other conf file in the system. > easy to extend, easy to special-case, easy to error-control. Learning > lex is harder than just C code, but it's such a good tool to know just > for general purposes, it's worth the small time spent. Every C > programmer ought to spend some time with lex/flex (and obviously > yacc/bison). If you don't know it for an employer, you're really > hobbled, it's *such* a good tool. Agreed 100% You could also use embedded perl /me ducks Cheers, -- Miguel Mendez - flynn@energyhq.homeip.net GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt EnergyHQ :: http://www.energyhq.tk Of course it runs NetBSD! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 2 6:59:26 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A8BB37B401 for ; Thu, 2 Jan 2003 06:59:24 -0800 (PST) Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by mx1.FreeBSD.org (Postfix) with SMTP id CC4C643EB2 for ; Thu, 2 Jan 2003 06:59:22 -0800 (PST) (envelope-from bra@fsn.hu) Received: (qmail 28825 invoked by uid 1000); 2 Jan 2003 14:59:20 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 2 Jan 2003 14:59:20 -0000 Date: Thu, 2 Jan 2003 15:59:20 +0100 (CET) From: Attila Nagy To: Julian Elischer Cc: hackers@freebsd.org Subject: Re: FEC on 5.x In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, > do you have FEC working in an old version? i.e. do you have it working > in 4.x somewhere? Yes, I am using it on a box with two fxps. It is: FreeBSD 4.6-STABLE #2: Thu Jul 11 15:13:00 CEST 2002 > if so, can you show a tcpdump of it1 running and a tcpdump of it NOT > running on 5.x? You won't see too much from that... 4.6 (the above box): # tcpdump -i fec0 host FE0.GE.BMF-HBONE.bmf.hu tcpdump: listening on fec0 15:14:43.397883 chuck.intra > FE0.GE.BMF-HBONE.bmf.hu: icmp: echo request 15:14:43.398639 FE0.GE.BMF-HBONE.bmf.hu > chuck.intra: icmp: echo reply # tcpdump -i fxp0 host FE0.GE.BMF-HBONE.bmf.hu & \ tcpdump -i fxp1 host FE0.GE.BMF-HBONE.bmf.hu [1] 87345 tcpdump: WARNING: fxp0: no IPv4 address assigned tcpdump: WARNING: fxp1: no IPv4 address assigned tcpdump: listening on fxp0 tcpdump: listening on fxp1 15:16:17.908213 chuck.intra > FE0.GE.BMF-HBONE.bmf.hu: icmp: echo request 15:16:17.909004 FE0.GE.BMF-HBONE.bmf.hu > chuck.intra: icmp: echo reply RELENG_5_0: # tcpdump -i fec0 tcpdump: listening on fec0 15:30:15.851109 arp who-has 193.6.21.133 (2e:2f:30:31:32:33) tell test.fsn.hu 15:30:16.766530 arp who-has 193.6.21.133 (2e:2f:30:31:32:33) tell test.fsn.hu 15:30:17.869761 arp who-has 193.6.21.133 (2e:2f:30:31:32:33) tell test.fsn.hu (193.6.21.133 is the GW and that is I pinged) # tcpdump -i fxp0 -p host & \ tcpdump -i fxp1 -p host tcpdump: listening on fxp0 tcpdump: listening on fxp1 And nothing. That's why I said previously it seems that the packets don't get down to the physycal interface. Or at least they don't get out to the wire... However, when I ping the test machine from another one, I get: Fatal trap 12: page fault while in kernel mode fault virtual address = 0x1 fault code = supervisor read, page not present instruction pointer = 0x8:0xc02ca7ee stack pointer = 0x10:0xd69a8b88 frame pointer = 0x10:0xd69a8bb0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 22 (irq10: fxp0) kernel: type 12 trap, code=0 Stopped at generic_bcopy+0x1a: repe movsl (%esi),%es:(%edi) db> I will attach a disk onto this machine to its Adaptec controller and will be able to send you the dumps. (some people helped me to figure out that most of the RAID drivers in FreeBSD doesn't implement dump...) Thanks, ----------[ Free Software ISOs - http://www.fsn.hu/?f=download ]---------- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone @work: +361 210 1415 (194) cell.: +3630 306 6758 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Jan 2 7:34:30 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55EF237B401 for ; Thu, 2 Jan 2003 07:34:26 -0800 (PST) Received: from priv-edtnes10-hme0.telusplanet.net (outbound02.telus.net [199.185.220.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EB7343EA9 for ; Thu, 2 Jan 2003 07:34:25 -0800 (PST) (envelope-from sh@bel.bc.ca) Received: from dbs ([216.232.223.49]) by priv-edtnes10-hme0.telusplanet.net (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with SMTP id <20030102153425.RMXW20094.priv-edtnes10-hme0.telusplanet.net@dbs> for ; Thu, 2 Jan 2003 08:34:25 -0700 Message-ID: <000901c2b274$6e7950f0$31dfe8d8@slugabed.org> From: "Sean Hamilton" To: Subject: Kernel panic with ATA RAID Date: Thu, 2 Jan 2003 07:34:25 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Seems my toying with atacontrol caused a reproducable panic. I have a perl script which causes the panic right away every time, I'll mail that to anybody @freebsd.org that wants it. (Or is such paranoia unnecessary?) I believe everything else needed is here. sh --- Fatal trap 12: page fault while in kernel mode fault virtual address = 0x88 fault code = supervisor write, page not present instruction pointer = 0x8:0xc014e4fd stack pointer = 0x10:0xcfce6d4c frame pointer = 0x10:0xcfce6d60 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 112 (dd) interrupt mask = none trap number = 12 panic: page fault --- --- (kgdb) where #0 0xc01447b6 in dumpsys () #1 0xc0144587 in boot () #2 0xc01449ac in poweroff_wait () #3 0xc01dddb2 in trap_fatal () #4 0xc01dda85 in trap_pfault () #5 0xc01dd66f in trap () #6 0xc014e4fd in dsclose () #7 0xc014de75 in diskclose () #8 0xc01782e8 in spec_close () #9 0xc01abc3a in ufsspec_close () #10 0xc01ac201 in ufs_vnoperatespec () #11 0xc0175f5c in vn_close () #12 0xc0176887 in vn_closefile () #13 0xc013ac9f in fdrop () #14 0xc013abe7 in closef () #15 0xc013a7f4 in fdfree () #16 0xc013d4b1 in exit1 () #17 0xc0146432 in sigexit () #18 0xc01461ac in postsig () #19 0xc01de114 in syscall2 () #20 0xc01d2465 in Xint0x80_syscall () #21 0x8055585 in ?? () #22 0x8048f00 in ?? () #23 0x8048135 in ?? () --- --- machine i386 cpu I686_CPU ident SOAP maxusers 0 options INET options FFS options FFS_ROOT options SOFTUPDATES options UFS_DIRHASH options COMPAT_43 options ICMP_BANDLIM device apm device isa device pci device ata device atadisk device atapicd options ATA_STATIC_ID device atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 flags 0x1 device vga0 at isa? device sc0 at isa? flags 0x100 device npx0 at nexus? port IO_NPX irq 13 device miibus device rl pseudo-device loop pseudo-device ether pseudo-device pty pseudo-device bpf device fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 --- --- Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.7-RELEASE #2: Wed Jan 1 06:52:01 PST 2003 [snip] Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (451.02-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x672 Stepping = 2 Features=0x383f9ff real memory = 335544320 (327680K bytes) avail memory = 323653632 (316068K bytes) Preloaded elf kernel "kernel" at 0xc0279000. Pentium Pro MTRR support enabled Using $PIR table, 7 entries at 0xc00fdf00 apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at 7.2 irq 10 chip1: port 0x5000-0x500f at device 7.3 on pci0 rl0: port 0xe400-0xe4ff mem 0xe8000000-0xe80000ff irq 10 at device 17.0 on pci0 rl0: Ethernet address: [snip] miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto orm0: