From owner-freebsd-hackers Sun May 6 1: 2:57 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from pluto.runbox.com (pluto.runbox.com [193.71.199.39]) by hub.freebsd.org (Postfix) with ESMTP id 4BF6837B43C for ; Sun, 6 May 2001 01:02:55 -0700 (PDT) (envelope-from satanmode@runbox.com) Received: from [203.195.134.208] (helo=runbox.com) by pluto.runbox.com with esmtp (Exim 3.16 #2) id 14wJV1-0008Ju-00; Sun, 06 May 2001 10:02:43 +0200 Message-ID: <3AF50686.F09BBDD5@runbox.com> Date: Sun, 06 May 2001 13:38:38 +0530 From: Aman X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: "freebsd-hackers@freebsd.org" Cc: "Sandeep (ROCK MAN)" , Jaswinder Singh Kohli Subject: squeeze freeBSDs' kernel size Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG kldstat shows the kernel as a loaded module. does it mean the kernel after getting in the core is resident to it's complete physical size. my question is, does the pagedaemon carry out any sort of paging or segmentation on the kernel and it's loadable modules though the latter seems necessary. how much size can be really squeezed out of the kernel Regards Aman satanmode@runbox.com ------------------------------------------------------------------- Those who do not understand UNIX are condemned to reinvent it poorly. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun May 6 1:26:51 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.dada.it (mail2.dada.it [195.110.96.69]) by hub.freebsd.org (Postfix) with SMTP id 1A20F37B422 for ; Sun, 6 May 2001 01:26:48 -0700 (PDT) (envelope-from ale@unixmania.net) Received: (qmail 2362 invoked from network); 6 May 2001 08:26:44 -0000 Received: from unknown (HELO libero.sunshine.ale) (195.110.114.252) by mail.dada.it with SMTP; 6 May 2001 08:26:44 -0000 Received: by libero.sunshine.ale (Postfix, from userid 1001) id 78B565E94; Sun, 6 May 2001 10:26:44 +0200 (CEST) Date: Sun, 6 May 2001 10:26:44 +0200 From: Alessandro de Manzano To: Doug Russell Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: no keyboard Message-ID: <20010506102644.B3226@libero.sunshine.ale> Reply-To: Alessandro de Manzano References: <20010505121008.E18676@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from drussell@saturn-tech.com on Sat, May 05, 2001 at 06:08:05PM -0600 X-Operating-System: FreeBSD 4.3-STABLE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, May 05, 2001 at 06:08:05PM -0600, Doug Russell wrote: > re-enable a PS/2 mouse after inadvertantly disconnecting it. I hate to > reboot server machines that have been up for hundreds of days because I > can't use the KB or mouse. (Not that I often use a KB or mouse on any > server machines... but it has happened more than once.) I'm in the same situation for my rack servers, and I solved using an USB keyboard :-) Enabling USB support in the kernel and in the BIOS of the machine is just what I need. When inserted you have only to do something like kbdcontrol -k /dev/kbd1 < /dev/console operating from a ssh/telnet/etc. session and voila, USB kbd is activated :-) When remove you do the same with /dev/kbd0. Probably if you disable the atkbd in the kernel you don't ever need such kbdcontrol magic. -- bye! Ale ale@unixmania.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun May 6 1:48:13 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from sdmail0.sd.bmarts.com (sdmail0.sd.bmarts.com [209.247.77.155]) by hub.freebsd.org (Postfix) with ESMTP id 9E9BD37B422 for ; Sun, 6 May 2001 01:48:11 -0700 (PDT) (envelope-from gordont@bluemtn.net) Received: from localhost (gordont@localhost) by sdmail0.sd.bmarts.com (8.11.3/8.11.2/BMA1.1) with ESMTP id f468jsY05801; Sun, 6 May 2001 01:45:54 -0700 (PDT) Date: Sun, 6 May 2001 01:45:54 -0700 (PDT) From: Gordon Tetlow X-X-Sender: To: Ceri Storey Cc: Ingo Flaschberger , Subject: Re: no keyboard In-Reply-To: <20010505195859.A383@cds220.halls.umist.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 5 May 2001, Ceri Storey wrote: > On Sat, May 05, 2001 at 08:54:18PM +0200, Ingo Flaschberger wrote: > > > Note : this is a way to kill your keyboard : an AT keyboard is not > > > hot-plug compatible > > > > i have never killed a keyboard with un / plugging. > > at linux it works. > Well, it works, until your keyboard does actually break :) I've toasted lot of keyboards this way (Fujitsu POS no less). I have found that IBM keyboards take the punishment quite well. At least I can count on IBM engineering. As a result, that's the only type of kbd we keep in our datacenters. -gordon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun May 6 6: 3:37 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f48.law4.hotmail.com [216.33.149.48]) by hub.freebsd.org (Postfix) with ESMTP id 20C8737B424 for ; Sun, 6 May 2001 06:03:34 -0700 (PDT) (envelope-from messiah_man@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 6 May 2001 06:03:34 -0700 Received: from 212.97.250.29 by lw4fd.law4.hotmail.msn.com with HTTP; Sun, 06 May 2001 13:03:33 GMT X-Originating-IP: [212.97.250.29] From: "Munish Chopra" To: freebsd-hackers@freebsd.org Subject: The FreeBSD NVIDIA Driver Initiative Date: Sun, 06 May 2001 15:03:33 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 06 May 2001 13:03:34.0011 (UTC) FILETIME=[F4C944B0:01C0D62C] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If the following isn't an appropriate subject for discussion on this particular mailing list, please move ensuing discussion to one that is more appropriate (possibly -hackers or -hardware). We are a simply a few guys who at more or less the same time got tired of not having 3D-support for our NVIDIA cards in FreeBSD. So we decided to start 'The FreeBSD NVIDIA Driver Initiative'. As the name may say, we tried to figure out how we were going to get hardware accelerated 3D drivers for FreeBSD. After going through a bit of work and contacting NVIDIA, it's come to this: We are located at http://nvidia.netexplorer.org, from where we try to keep people updated on how the effort is going. We have taken over Michael Carlson's petition for drivers (some of you may remember it from when it was started back in January), and if you haven't signed it yet, please come on over and do. There IS currently a team working on the drivers (not NVIDIA itself, but some people who are getting a bit of help from NVIDIA at least). We will keep you updated on how things go. For those of you wondering about the legal issues, they DID come up, and have been successfully resolved. Please drop by the site to sign the petition and check on how things are going. Cheers, Munish Chopra The FreeBSD NVIDIA Driver Initiative _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun May 6 6:44: 1 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tomts8-srv.bellnexxia.net (tomts8.bellnexxia.net [209.226.175.52]) by hub.freebsd.org (Postfix) with ESMTP id 11BFE37B422 for ; Sun, 6 May 2001 06:43:57 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from xena.gsicomp.on.ca ([64.228.153.241]) by tomts8-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010506134356.KMN15234.tomts8-srv.bellnexxia.net@xena.gsicomp.on.ca>; Sun, 6 May 2001 09:43:56 -0400 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.11.1) with SMTP id f46DfKN33459; Sun, 6 May 2001 09:41:21 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <003301c0d631$d3b83420$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Gordon Tetlow" Cc: References: Subject: Re: no keyboard Date: Sun, 6 May 2001 09:38:25 -0400 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.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Sat, 5 May 2001, Ceri Storey wrote: > > > On Sat, May 05, 2001 at 08:54:18PM +0200, Ingo Flaschberger wrote: > > > > Note : this is a way to kill your keyboard : an AT keyboard is not > > > > hot-plug compatible > > > > > > i have never killed a keyboard with un / plugging. > > > at linux it works. > > Well, it works, until your keyboard does actually break :) > > I've toasted lot of keyboards this way (Fujitsu POS no less). I have found > that IBM keyboards take the punishment quite well. At least I can count on > IBM engineering. As a result, that's the only type of kbd we keep in our > datacenters. While IBM keyboards are good (I've hot-plugged and otherwise abused a few in my day), IBM computers have had their share of faulty engineering. A high school I worked at once had quite a problem with some IBM PS/1 desktops, which exhibited the following traits: - hot-plugging a keyboard would either fry the keyboard or damage the MB (still usuable, just no KB support) - hot-plugging a keyboard into the PS/2 mouse port (no thanks to some badly oriented labels) would provide a few sparks, some smoke, and a toasted keyboard and MB. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun May 6 7:41:20 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from wit379112.student.utwente.nl (wit379119.student.utwente.nl [130.89.232.129]) by hub.freebsd.org (Postfix) with ESMTP id 73E8537B424 for ; Sun, 6 May 2001 07:41:18 -0700 (PDT) (envelope-from niek@wit379112.student.utwente.nl) Received: by wit379112.student.utwente.nl (Postfix, from userid 1000) id 541265D23; Sun, 6 May 2001 16:42:44 +0200 (CEST) Date: Sun, 6 May 2001 16:42:43 +0200 From: Niek Bergboer To: freebsd-hackers@freebsd.org Subject: /dev/ptmx equivalent for Linux ABI? Message-ID: <20010506164243.A54044@wit379119.student.utwente.nl> Reply-To: niek@bergboer.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, The installation of the commercial product Matlab R12 under FreeBSD works perfectly with the Linux ABI, thanks to whoever coded up this ABI! The single remaining problem is that Matlab expects to find a Linux-like /dev/ptmx (a pseudo terminal master mux). Failure to find this device results in a running Matlab that is unable to execute external commands. Is there any equivalent BSD device (so that I can symlink /dev/ptmx to that), or did I miss a kernel configuration option? Thanks, Niek PS: I run FreeBSD 4.3-STABLE, version of three days ago, on a dual Celeron SMP system. -- Conscience doth make cowards of us all. -- Shakespeare To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun May 6 7:44:23 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by hub.freebsd.org (Postfix) with SMTP id 5822437B422 for ; Sun, 6 May 2001 07:44:20 -0700 (PDT) (envelope-from bra@fsn.hu) Received: (qmail 43088 invoked by uid 1000); 6 May 2001 14:44:13 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 6 May 2001 14:44:13 -0000 Date: Sun, 6 May 2001 16:44:13 +0200 (CEST) From: Attila Nagy To: Subject: Re: /dev/ptmx equivalent for Linux ABI? In-Reply-To: <20010506164243.A54044@wit379119.student.utwente.nl> Message-ID: <20010506164240.V42935-100000@scribble.fsn.hu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, > The single remaining problem is that Matlab expects to find a > Linux-like /dev/ptmx (a pseudo terminal master mux). Failure to find > this device results in a running Matlab that is unable to execute > external commands. It would also be essential for running for example a Linux OpenSSH daemon in a jail with Linux binaries. That would be a very good thing... :) -------------------------------------------------------------------------- Attila Nagy e-mail: Attila.Nagy@fsn.hu Budapest Polytechnic (BMF.HU) @work: +361 210 1415 (194) H-1084 Budapest, Tavaszmezo u. 15-17. 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 Sun May 6 7:59: 7 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from chmod.ath.cx (CC2-861.charter-stl.com [24.217.115.99]) by hub.freebsd.org (Postfix) with ESMTP id B91A137B423 for ; Sun, 6 May 2001 07:59:04 -0700 (PDT) (envelope-from ajh3@chmod.ath.cx) Received: by chmod.ath.cx (Postfix, from userid 1001) id 9B978A876; Sun, 6 May 2001 09:58:00 -0500 (CDT) Date: Sun, 6 May 2001 09:58:00 -0500 From: Andrew Hesford To: Attila Nagy Cc: freebsd-hackers@freebsd.org Subject: Re: /dev/ptmx equivalent for Linux ABI? Message-ID: <20010506095800.A57628@cec.wustl.edu> References: <20010506164243.A54044@wit379119.student.utwente.nl> <20010506164240.V42935-100000@scribble.fsn.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010506164240.V42935-100000@scribble.fsn.hu>; from bra@fsn.hu on Sun, May 06, 2001 at 04:44:13PM +0200 X-Loop: Andrew Hesford Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, May 06, 2001 at 04:44:13PM +0200, Attila Nagy wrote: > Hello, > > > The single remaining problem is that Matlab expects to find a > > Linux-like /dev/ptmx (a pseudo terminal master mux). Failure to find > > this device results in a running Matlab that is unable to execute > > external commands. > It would also be essential for running for example a Linux OpenSSH daemon > in a jail with Linux binaries. That would be a very good thing... :) > Why would that be a good thing? Run the FreeBSD OpenSSH in a jail. -- Andrew Hesford ajh3@chmod.ath.cx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun May 6 8:18:14 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by hub.freebsd.org (Postfix) with SMTP id 30E5837B42C for ; Sun, 6 May 2001 08:18:11 -0700 (PDT) (envelope-from bra@fsn.hu) Received: (qmail 43278 invoked by uid 1000); 6 May 2001 15:18:09 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 6 May 2001 15:18:09 -0000 Date: Sun, 6 May 2001 17:18:09 +0200 (CEST) From: Attila Nagy To: Andrew Hesford Cc: Subject: Re: /dev/ptmx equivalent for Linux ABI? In-Reply-To: <20010506095800.A57628@cec.wustl.edu> Message-ID: <20010506171130.K42935-100000@scribble.fsn.hu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, > > It would also be essential for running for example a Linux OpenSSH daemon > > in a jail with Linux binaries. That would be a very good thing... :) > Why would that be a good thing? Run the FreeBSD OpenSSH in a jail. If you run a complete Linux distribution in a FreeBSD jail you get the advantage of having multiple virtual machines running FreeBSD and Linux on the same machine. With this capability you can give your customer a virtual Linux box with a virtual IP, and you can give him the ability to upgrade and maintain his own "box" in the way he likes. Of course I could install a FreeBSD OpenSSH but this would require FreeBSD libraries, config files, etc in a Linux jail. How would the customer update that daemon? With a Linux distrib in the jail it is very easy and convenient. That's why I (and many others) would be glad to run a Linux OpenSSH (and of course not just that) daemon in a FreeBSD jail. -------------------------------------------------------------------------- Attila Nagy e-mail: Attila.Nagy@fsn.hu Budapest Polytechnic (BMF.HU) @work: +361 210 1415 (194) H-1084 Budapest, Tavaszmezo u. 15-17. 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 Sun May 6 10: 8:55 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from daemon.kr.FreeBSD.org (daemon.kr.freebsd.org [211.176.62.31]) by hub.freebsd.org (Postfix) with ESMTP id 5964437B422; Sun, 6 May 2001 10:08:51 -0700 (PDT) (envelope-from cjh@wdb.co.kr) Received: from gradius.wdb.co.kr (adsl-seodaemoon-210205055048.usr.hananet.net [210.205.55.48]) by daemon.kr.FreeBSD.org (Postfix) with ESMTP id 2528A8F61D; Mon, 7 May 2001 02:08:29 +0900 (KST) Received: (from cjh@localhost) by gradius.wdb.co.kr (8.11.3/8.11.3) id f46H6uu01758; Mon, 7 May 2001 02:06:56 +0900 (KST) (envelope-from cjh@wdb.co.kr) X-Authentication-Warning: gradius.wdb.co.kr: cjh set sender to cjh@wdb.co.kr using -f To: Tatsumi Hosokawa Cc: hackers@FreeBSD.org, statue@mail.elife.idv.tw, zhecka@klondike.ru, doc@kr.freebsd.org Subject: Re: multilingual boot.flp for 4.3-RELEASE References: <86lmocdeln.wl@bougainvillea.FromTo.Cc> Organization: Korea FreeBSD Users Group From: CHOI Junho Date: 07 May 2001 02:06:49 +0900 In-Reply-To: <86lmocdeln.wl@bougainvillea.FromTo.Cc> Message-ID: <86itjel846.fsf@gradius.wdb.co.kr> Lines: 36 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "TH" == Tatsumi Hosokawa writes: TH> Hi! TH> I've ported multilingual boot.flp to 4.3-RELEASE. Currently, almost TH> all documents are translated to Japanese by me and doc-jp project. I TH> put the source tarball (release-*.tar.gz), compiled binaries (*/*.flp, TH> currently English and Japanese support only) and translation kit TH> (tranlation-kit-*.tar.gz) at TH> ftp://daemon.jp.freebsd.org/pub/FreeBSD-jp/I18N-flp/4.3-RELEASE/ TH> This mail is cc'ed to the translator of Korean, Chinese, and Russian TH> translators of 4.2 multilinugual boot.flp. If you can update the TH> translation to 4.3, please tell me about it. Thank you very much. Korean translation updated. http://www.kr.freebsd.org/projects/doc-kr/i18n-flp-ko/translation-kit-20010506-ko.tar.gz All messages(localization/), help files(sysinstall/), and other release texts(texts/) is updated to 4.3-RELEASE. Please enable Korean. Have fun! p.s. one question - should I translate LOCALIZE.TXT? It exists only in the form of English. And please add my name to LOCALIZE.TXT... Renewal of Korean message to 4.3 o CHOI Junho -- +++ Any opinions in this posting are my own and not those of my employers +++ CHOI Junho [sleeping now] [while sleeping] Korea FreeBSD Users Group/www.kr.FreeBSD.org Web Data Bank/www.wdb.co.kr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun May 6 15:14:35 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.cs.umn.edu (mail.cs.umn.edu [128.101.32.200]) by hub.freebsd.org (Postfix) with ESMTP id 5967137B423 for ; Sun, 6 May 2001 15:14:30 -0700 (PDT) (envelope-from rakshe@cs.umn.edu) Received: from melchizedek.cs.umn.edu (rakshe@melchizedek.cs.umn.edu [128.101.35.51]) by mail.cs.umn.edu (8.11.3/8.11.3) with ESMTP id f46MESs18604 for ; Sun, 6 May 2001 17:14:28 -0500 (CDT) Received: from localhost (rakshe@localhost) by melchizedek.cs.umn.edu (8.9.3/8.9.0) with ESMTP id RAA15922 for ; Sun, 6 May 2001 17:14:08 -0500 (CDT) X-Authentication-Warning: melchizedek.cs.umn.edu: rakshe owned process doing -bs Date: Sun, 6 May 2001 17:14:08 -0500 (CDT) From: Rohit Rakshe To: Subject: Re: FPU exception, kernel panic In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I guessed I asked too much. Can someone please tell me just this: "How do I translate 48 bit address (segment descriptor:offset) to a linear address which gdb can understand ?" Thanks - Rohit On Sat, 5 May 2001, Rohit Rakshe wrote: > Hi ! > > I modified some TCP and UDP code in FreeBSD 4.1 and suddenly started > getting (almost repeatable) kernel panics. This is how it looks like > from remote gdb: > > (kgdb) bt > #0 0xc0192e58 in panic (fmt=0xc035c076 "npxintr from nowhere") at > ../../kern/kern_shutdown.c:550 > #1 0xc0303c6c in npx_intr (dummy=0x0) at ../../i386/isa/npx.c:721 > #2 0xc02e1052 in Xfpu () > #3 0xc019824d in softclock () at ../../kern/kern_timeout.c:131 > . > . > . > (kgdb) list > 126 } else { > 127 c->c_flags = > 128 (c->c_flags & > ~CALLOUT_PENDING); > 129 } > 130 splx(s); > 131 c_func(c_arg); > 132 s = splhigh(); > 133 steps = 0; > 134 c = nextsoftcheck; > 135 } > . > . > . > (kgdb) > #1 0xc0303c6c in npx_intr (dummy=0x0) at ../../i386/isa/npx.c:721 > 721 panic("npxintr from nowhere"); > (kgdb) p npxproc > $5 = 0 > (kgdb) p npx_exists > $6 = 1 '\001' > . > . > . > (kgdb) info all-registers > eax 0x12 18 > ecx 0xc03a60a0 -1069916000 > edx 0x400000 4194304 > ebx 0xcbc56540 -876255936 > esp 0xc0361354 0xc0361354 > ebp 0xc0361410 0xc0361410 > esi 0x400000 4194304 > edi 0x400000 4194304 > eip 0xc019824d 0xc019824d > eflags 0x346 838 > cs 0x8 8 > ss 0x10 16 > ds 0x400010 4194320 > es 0x10 16 > fs 0x0 0 > gs 0x0 0 > (kgdb) info float > status 0xc8f5: exceptions: INVALID DIVZ UNDERF LOS FPSTACK; flags: 1000; > top 1 > control 0x6620: compute to 53 bits; round DOWN; mask: LOS; > warning: reserved bits on: 0x6000 > > last instruction: opcode 0x2825; pc 0x71a4:0x2824c316; operand > 0xf800:0x8176640 > regno tag msb lsb value > %st(7) valid 0000000008179a802825 Denormal (0 as a double) > %st(6) valid 71a42824c31600000000 Unnormal (NaN) > %st(5) valid 08176640282571a42824 Unnormal (NaN) > %st(4) valid c8910818f9380818f800 Unnormal (NaN) > %st(3) valid 282571a42824c316bfbf Unnormal (NaN) > %st(2) valid e82808176620089c3000 Unnormal (NaN) > %st(1) valid 00000032000000010001 Denormal (0 as a double) > %st(0) => valid 0000000000240818f800 Denormal (0 as a double) > > > So, this means that there was a FPU exception in kernel, right ? > > 1. The code which I added in kernel does not use any floats. So I am > wondering why this problem should happen at all. > > 2. pc register in FPU should give address of the instruction which caused > this exception, right ? > > 3. If yes, how do I translate this 48 bit address in a linear address > which gdb can understand ? > > > Thanks for help ! > > > - Rohit > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun May 6 18:55:57 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 79DED37B422 for ; Sun, 6 May 2001 18:55:54 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id DAA49249; Mon, 7 May 2001 03:55:46 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Rohit Rakshe Cc: Subject: Re: FPU exception, kernel panic References: From: Dag-Erling Smorgrav Date: 07 May 2001 03:55:45 +0200 In-Reply-To: Message-ID: Lines: 21 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Rohit Rakshe writes: > 1. The code which I added in kernel does not use any floats. So I am > wondering why this problem should happen at all. The kernel uses the FPU to optimize certain bcopy- or bzero-like operations. > 2. pc register in FPU should give address of the instruction which caused > this exception, right ? Possibly. I'm not very familiar with the FPU. > 3. If yes, how do I translate this 48 bit address in a linear address > which gdb can understand ? You don't. FreeBSD uses a flat address space, you can disregard the segment descriptor. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun May 6 18:59: 1 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 6CC1637B423 for ; Sun, 6 May 2001 18:58:58 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id DAA49260; Mon, 7 May 2001 03:58:46 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Aman Cc: "freebsd-hackers@freebsd.org" , "Sandeep (ROCK MAN)" , Jaswinder Singh Kohli Subject: Re: squeeze freeBSDs' kernel size References: <3AF50686.F09BBDD5@runbox.com> From: Dag-Erling Smorgrav Date: 07 May 2001 03:58:45 +0200 In-Reply-To: <3AF50686.F09BBDD5@runbox.com> Message-ID: Lines: 22 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Aman writes: > kldstat shows the kernel as a loaded module. > does it mean the kernel after getting in the core is resident to it's > complete physical size. Kldstat will tell you exactly how much space the kernel text (i.e. actual code) is taking up. As to memory used for kernel data, try 'vmstat -m'. > my question is, does the pagedaemon carry out any sort of paging or > segmentation on the kernel and it's loadable modules though the latter > seems necessary. No. > how much size can be really squeezed out of the kernel Ask the freebsd-small mailing list. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun May 6 19: 3:19 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 15C0D37B422; Sun, 6 May 2001 19:03:16 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id EAA49275; Mon, 7 May 2001 04:03:14 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Alfred Perlstein Cc: Dima Dorfman , "William E. Baxter" , hackers@FreeBSD.ORG Subject: Re: Getting peer credentials on a unix domain socket References: <20010504214702.A29392@zeus.superscript.com> <20010505032213.3FD923E0B@bazooka.unixfreak.org> <20010504203457.V18676@fw.wintelcom.net> From: Dag-Erling Smorgrav Date: 07 May 2001 04:03:13 +0200 In-Reply-To: <20010504203457.V18676@fw.wintelcom.net> Message-ID: Lines: 11 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alfred Perlstein writes: > The silly part of it is that the socket's initial credentials > might be different than the holder's credentials. That's a feature, just like you can open /dev/io as root, then drop root privs and do direct I/O to your heart's content even if you're no longer root. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun May 6 20:50:45 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id EC15337B423; Sun, 6 May 2001 20:50:41 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.3/8.11.3) with SMTP id f473oSf44022; Sun, 6 May 2001 23:50:28 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sun, 6 May 2001 23:50:28 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Dag-Erling Smorgrav Cc: Alfred Perlstein , Dima Dorfman , "William E. Baxter" , hackers@FreeBSD.ORG Subject: Re: Getting peer credentials on a unix domain socket In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 7 May 2001, Dag-Erling Smorgrav wrote: > Alfred Perlstein writes: > > The silly part of it is that the socket's initial credentials > > might be different than the holder's credentials. > > That's a feature, just like you can open /dev/io as root, then drop root > privs and do direct I/O to your heart's content even if you're no longer > root. However, a lot of device drivers do checks on p->p_ucred (or indirectly via suser(p)) rather than using the cached credential in the struct file. This is arguably wrong or evil, but since the driver writers really feel like doing that, I suppose all we can do is shoot them, not stop them. There are actually a number of places in netinet and netinet6 where some checks are performed on so->so_cred while others are performed on p->p_ucred. This is to restrict the rebinding of sockets by processes, preventing the following scenario: (1) privileged process p1 creates socket s1, and binds it to (PF_INET, IPPROTO_TCP, 80) (2) privileged process p1 transfers s1 to unprivileged process p2 (or drops privileges) (3) unprivileged process p2 rebinds to (PF_INET, IPPROTO_TYPE, 22) Getting the checks for that right is hard, as the definition of correct is a bit ambiguous, and it's not clear all the code in there is "right" at this point. It's one of the things on the list of authorization components to review. Generally speaking, I'd much rather the cached credential was used, but understand why it's not in this scenario. Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 4:48:54 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from serio.al.rim.or.jp (serio.al.rim.or.jp [202.247.191.123]) by hub.freebsd.org (Postfix) with ESMTP id 47E4A37B422; Mon, 7 May 2001 04:48:50 -0700 (PDT) (envelope-from hosokawa@itc.keio.ac.jp) Received: from mail2.rim.or.jp by serio.al.rim.or.jp (3.7W/HMX-13) id UAA24371; Mon, 7 May 2001 20:46:29 +0900 (JST) Received: from bougainvillea.FromTo.Cc (shell [202.247.191.98]) by mail2.rim.or.jp (8.9.3/3.7W) id UAA13899; Mon, 7 May 2001 20:46:28 +0900 (JST) Date: Mon, 07 May 2001 20:46:29 +0900 Message-ID: <863dahl6ui.wl@bougainvillea.FromTo.Cc> From: Tatsumi Hosokawa To: CHOI Junho Cc: Tatsumi Hosokawa , hackers@FreeBSD.org, statue@mail.elife.idv.tw, zhecka@klondike.ru, doc@kr.freebsd.org Subject: Re: multilingual boot.flp for 4.3-RELEASE In-Reply-To: <86itjel846.fsf@gradius.wdb.co.kr> References: <86lmocdeln.wl@bougainvillea.FromTo.Cc> <86itjel846.fsf@gradius.wdb.co.kr> User-Agent: Wanderlust/2.4.1 (Stand By Me) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 07 May 2001 02:06:49 +0900, CHOI Junho wrote: > > All messages(localization/), help files(sysinstall/), and other > release texts(texts/) is updated to 4.3-RELEASE. Please enable Korean. > > Have fun! I've put the updated version at ftp://daemon.jp.freebsd.org/pub/FreeBSD-jp/I18N-flp/4.3-RELEASE/20010507/ > p.s. one question - should I translate LOCALIZE.TXT? It exists only in > the form of English. You don't have to translate it, but of course, if you translate it to Korean, I will put it at texts/ko/. > And please add my name to LOCALIZE.TXT... > > Renewal of Korean message to 4.3 > > o CHOI Junho Done. -- Tatsumi Hosokawa http://www.sm.rim.or.jp/~hosokawa/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 9:13: 7 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from lists01.iafrica.com (lists01.iafrica.com [196.7.0.141]) by hub.freebsd.org (Postfix) with ESMTP id 234FF37B422 for ; Mon, 7 May 2001 09:13:02 -0700 (PDT) (envelope-from sheldonh@uunet.co.za) Received: from nwl.fw.uunet.co.za ([196.31.2.162]) by lists01.iafrica.com with esmtp (Exim 3.12 #2) id 14wnd4-0005jw-00 for hackers@freebsd.org; Mon, 07 May 2001 18:12:58 +0200 Received: (from nobody@localhost) by nwl.fw.uunet.co.za (8.8.8/8.6.9) id SAA21904 for ; Mon, 7 May 2001 18:12:57 +0200 (SAST) Received: by nwl.fw.uunet.co.za via recvmail id 21876; Mon May 7 18:12:29 2001 Received: from sheldonh (helo=axl.fw.uunet.co.za) by axl.fw.uunet.co.za with local-esmtp (Exim 3.22 #1) id 14wnca-000PZQ-00 for hackers@FreeBSD.org; Mon, 07 May 2001 18:12:28 +0200 To: hackers@freebsd.org Subject: sysctl(8) and opaque MIB entries Date: Mon, 07 May 2001 18:12:28 +0200 Message-ID: <98295.989251948@axl.fw.uunet.co.za> From: Sheldon Hearn Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi folks, Is there a good reason why sysctl(8) won't display _any_ output for opaque MIB entries named as arguments? I'm specifically interested in kern.proc.all. I can ``sysctl -A | grep kern.proc.all'', but it's weird that neither of these two do anything useful: sysctl -A kern.proc.all sysctl kern.proc.all Is there some sound reason for this, or am I just lost on the fringes of what sysctl(8) was designed for? Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 9:39:20 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from silby.com (adam042-060.resnet.wisc.edu [146.151.42.60]) by hub.freebsd.org (Postfix) with ESMTP id 6169F37B423 for ; Mon, 7 May 2001 09:39:16 -0700 (PDT) (envelope-from silby@silby.com) Received: (qmail 38107 invoked by uid 1000); 7 May 2001 16:39:09 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 7 May 2001 16:39:09 -0000 Date: Mon, 7 May 2001 11:39:09 -0500 (CDT) From: Mike Silbersack To: Dag-Erling Smorgrav Cc: Alfred Perlstein , Dima Dorfman , "William E. Baxter" , Subject: Re: Getting peer credentials on a unix domain socket In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 7 May 2001, Dag-Erling Smorgrav wrote: > Alfred Perlstein writes: > > The silly part of it is that the socket's initial credentials > > might be different than the holder's credentials. > > That's a feature, just like you can open /dev/io as root, then drop > root privs and do direct I/O to your heart's content even if you're no > longer root. > > DES That feature is undesireable in some places, however. As an example, sockets passed from a daemon running as root to child processes as nobody still have root privs on the sockets. As such, you can't use sbsize limiting or ipfw's uid-based tracking on apache and presumably any other root spawning, priv dropping daemons. Patching the net code to drop the privs to match those of the accepting connection was easy, though I didn't test enough to check if it broke the /dev/io case or others. Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 9:51:36 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id EF36937B422 for ; Mon, 7 May 2001 09:51:31 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id SAA52291; Mon, 7 May 2001 18:51:23 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Sheldon Hearn Cc: hackers@FreeBSD.ORG Subject: Re: sysctl(8) and opaque MIB entries References: <98295.989251948@axl.fw.uunet.co.za> From: Dag-Erling Smorgrav Date: 07 May 2001 18:51:22 +0200 In-Reply-To: <98295.989251948@axl.fw.uunet.co.za> Message-ID: Lines: 11 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sheldon Hearn writes: > Is there a good reason why sysctl(8) won't display _any_ output for > opaque MIB entries named as arguments? Yes it will, with -X. The interesting question is why there isn't an option to make it display just one variable in hex, and why it doesn't print a message when it omits printing an opaque variable. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 10:21:14 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from lists01.iafrica.com (lists01.iafrica.com [196.7.0.141]) by hub.freebsd.org (Postfix) with ESMTP id 00F2137B423 for ; Mon, 7 May 2001 10:21:09 -0700 (PDT) (envelope-from sheldonh@uunet.co.za) Received: from nwl.fw.uunet.co.za ([196.31.2.162]) by lists01.iafrica.com with esmtp (Exim 3.12 #2) id 14wogz-0006Rm-00; Mon, 07 May 2001 19:21:05 +0200 Received: (from nobody@localhost) by nwl.fw.uunet.co.za (8.8.8/8.6.9) id TAA02427; Mon, 7 May 2001 19:21:04 +0200 (SAST) Received: by nwl.fw.uunet.co.za via recvmail id 2371; Mon May 7 19:20:23 2001 Received: from sheldonh (helo=axl.fw.uunet.co.za) by axl.fw.uunet.co.za with local-esmtp (Exim 3.22 #1) id 14wogJ-000PqU-00; Mon, 07 May 2001 19:20:23 +0200 To: Dag-Erling Smorgrav Cc: hackers@freebsd.org Subject: Re: sysctl(8) and opaque MIB entries In-reply-to: Your message of "07 May 2001 18:51:22 +0200." Date: Mon, 07 May 2001 19:20:23 +0200 Message-ID: <99353.989256023@axl.fw.uunet.co.za> From: Sheldon Hearn Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 07 May 2001 18:51:22 +0200, Dag-Erling Smorgrav wrote: > Yes it will, with -X. The interesting question is why there isn't an > option to make it display just one variable in hex, and why it doesn't > print a message when it omits printing an opaque variable. Do you think it'd be okay to allow an argument to -a and -A that specifies the sysctl node from which to descend? Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 10:23:55 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 693E837B43C for ; Mon, 7 May 2001 10:23:45 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id TAA52538; Mon, 7 May 2001 19:23:36 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Sheldon Hearn Cc: hackers@FreeBSD.ORG Subject: Re: sysctl(8) and opaque MIB entries References: <98295.989251948@axl.fw.uunet.co.za> From: Dag-Erling Smorgrav Date: 07 May 2001 19:23:35 +0200 In-Reply-To: Message-ID: Lines: 22 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --=-=-= Dag-Erling Smorgrav writes: > Sheldon Hearn writes: > > Is there a good reason why sysctl(8) won't display _any_ output for > > opaque MIB entries named as arguments? > Yes it will, with -X. The interesting question is why there isn't an > option to make it display just one variable in hex, and why it doesn't > print a message when it omits printing an opaque variable. Here's a patch that: 1) introduces the -x option, which makes opaque variables visible. 2) allows variables to be set without the -w option. 3) undocuments the now-superfluous -w option. DES -- Dag-Erling Smorgrav - des@ofug.org --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=sysctl.diff Index: sysctl.8 =================================================================== RCS file: /home/ncvs/src/sbin/sysctl/sysctl.8,v retrieving revision 1.31 diff -u -r1.31 sysctl.8 --- sysctl.8 2001/02/01 16:32:12 1.31 +++ sysctl.8 2001/05/07 17:21:58 @@ -40,14 +40,11 @@ .Nd get or set kernel state .Sh SYNOPSIS .Nm -.Op Fl bNn -.Ar name ... +.Op Fl bNnx +.Ar name Ns Op = Ns Ar value +.Ar ... .Nm -.Op Fl bNn -.Fl w -.Ar name Ns = Ns Ar value ... -.Nm -.Op Fl bNn +.Op Fl bNnx .Fl aAX .Sh DESCRIPTION The @@ -69,10 +66,10 @@ flag; for the opaque values, information about the format and the length is printed in addition the first few bytes is dumped in hex. -.It Fl X +.It Fl X Same as .Fl A -except the entire value of opaque variables is hexdumped. +.Fl x . .It Fl N Show only variable names, not their values. .It Fl n @@ -87,17 +84,8 @@ Force the value of the variable(s) to be output in raw, binary format. No names are printed and no terminating newlines are output. This is mostly useful with a single variable. -.It Fl w Xo -.Ar name Ns = Ns Ar value ... -.Xc -Set the MIB -.Ar name -to the new -.Ar value . -If just a MIB style -.Ar name -is given, -the corresponding value is retrieved. +.It Fl x +Display opaque variables (in hex). .El .Pp The information available from Index: sysctl.c =================================================================== RCS file: /home/ncvs/src/sbin/sysctl/sysctl.c,v retrieving revision 1.31 diff -u -r1.31 sysctl.c --- sysctl.c 2001/01/14 19:08:58 1.31 +++ sysctl.c 2001/05/07 17:10:44 @@ -58,7 +58,7 @@ #include #include -static int Aflag, aflag, bflag, Nflag, nflag, wflag, Xflag; +static int Aflag, aflag, bflag, Nflag, nflag, xflag; static int oidfmt(int *, int, char *, u_int *); static void parse(char *); @@ -70,12 +70,10 @@ usage(void) { - (void)fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n", - "usage: sysctl [-bNn] variable ...", - " sysctl [-bNn] -w variable=value ...", - " sysctl [-bNn] -a", - " sysctl [-bNn] -A", - " sysctl [-bNn] -X"); + (void)fprintf(stderr, "%s\n%s\n%s\n", + "usage: sysctl [-bxNn] variable[=value] ...", + " sysctl [-bxNn] -a", + " sysctl [-bxNn] -A"); exit(1); } @@ -86,7 +84,7 @@ setbuf(stdout,0); setbuf(stderr,0); - while ((ch = getopt(argc, argv, "AabNnwX")) != -1) { + while ((ch = getopt(argc, argv, "AabNnwxX")) != -1) { switch (ch) { case 'A': Aflag = 1; @@ -104,10 +102,14 @@ nflag = 1; break; case 'w': - wflag = 1; + /* compatibility */ break; + case 'x': + xflag = 1; + break; case 'X': - Xflag = Aflag = 1; + /* backwards compatibility */ + xflag = Aflag = 1; break; default: usage(); @@ -116,7 +118,7 @@ argc -= optind; argv += optind; - if ((wflag && (Aflag || aflag)) || (Nflag && nflag)) + if (Nflag && nflag) usage(); if (Aflag || aflag) exit (sysctl_all(0, 0)); @@ -146,17 +148,12 @@ bufp = buf; snprintf(buf, BUFSIZ, "%s", string); if ((cp = strchr(string, '=')) != NULL) { - if (!wflag) - errx(2, "must specify -w to set variables"); *strchr(buf, '=') = '\0'; *cp++ = '\0'; while (isspace(*cp)) cp++; newval = cp; newsize = strlen(cp); - } else { - if (wflag) - usage(); } len = name2oid(bufp, mib); @@ -166,7 +163,7 @@ if (oidfmt(mib, len, 0, &kind)) err(1, "couldn't find format of oid '%s'", bufp); - if (!wflag) { + if (newval == NULL) { if ((kind & CTLTYPE) == CTLTYPE_NODE) { sysctl_all(mib, len); } else { @@ -468,14 +465,14 @@ } /* FALL THROUGH */ default: - if (!Aflag) + if (!Aflag && !xflag) return (1); if (!nflag) printf("%s: ", name); printf("Format:%s Length:%d Dump:0x", fmt, len); while (len--) { printf("%02x", *p++); - if (Xflag || p < val+16) + if (xflag || p < val+16) continue; printf("..."); break; --=-=-=-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 10:24:52 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id A082A37B422 for ; Mon, 7 May 2001 10:24:48 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id TAA52554; Mon, 7 May 2001 19:24:39 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Sheldon Hearn Cc: hackers@freebsd.org Subject: Re: sysctl(8) and opaque MIB entries References: <99353.989256023@axl.fw.uunet.co.za> From: Dag-Erling Smorgrav Date: 07 May 2001 19:24:39 +0200 In-Reply-To: <99353.989256023@axl.fw.uunet.co.za> Message-ID: Lines: 13 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sheldon Hearn writes: > On 07 May 2001 18:51:22 +0200, Dag-Erling Smorgrav wrote: > > Yes it will, with -X. The interesting question is why there isn't an > > option to make it display just one variable in hex, and why it doesn't > > print a message when it omits printing an opaque variable. > Do you think it'd be okay to allow an argument to -a and -A that > specifies the sysctl node from which to descend? Have you tried e.g. 'sysctl hw' lately? DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 10:30:59 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id D3DB137B422 for ; Mon, 7 May 2001 10:30:53 -0700 (PDT) (envelope-from roam@ringworld.nanolink.com) Received: (qmail 50050 invoked by uid 1000); 7 May 2001 17:29:05 -0000 Date: Mon, 7 May 2001 20:29:05 +0300 From: Peter Pentchev To: Dag-Erling Smorgrav Cc: Sheldon Hearn , hackers@freebsd.org Subject: Re: sysctl(8) and opaque MIB entries Message-ID: <20010507202905.O39862@ringworld.oblivion.bg> Mail-Followup-To: Dag-Erling Smorgrav , Sheldon Hearn , hackers@freebsd.org References: <99353.989256023@axl.fw.uunet.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from des@ofug.org on Mon, May 07, 2001 at 07:24:39PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 07, 2001 at 07:24:39PM +0200, Dag-Erling Smorgrav wrote: > Sheldon Hearn writes: > > On 07 May 2001 18:51:22 +0200, Dag-Erling Smorgrav wrote: > > > Yes it will, with -X. The interesting question is why there isn't an > > > option to make it display just one variable in hex, and why it doesn't > > > print a message when it omits printing an opaque variable. > > Do you think it'd be okay to allow an argument to -a and -A that > > specifies the sysctl node from which to descend? > > Have you tried e.g. 'sysctl hw' lately? How about e.g. 'sysctl -a hw', which still shows *all* MIB's? At least on ref5 as of this very moment.. [roam@ref5:~]$ sysctl -a hw | fgrep . | cut -d. -f 1 | sort -u cshumway@ref5 debug hw jail kern machdep net p1003_1b user vfs vm [roam@ref5:~]$ (well, so my filter wasn't exact; but still, it does *not* limit the output to hw.* MIB's..) G'luck, Peter -- I had to translate this sentence into English because I could not read the original Sanskrit. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 10:44: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id 0664737B423 for ; Mon, 7 May 2001 10:44:00 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.3/8.11.3) with ESMTP id f47Hhd849826; Mon, 7 May 2001 19:43:39 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Sheldon Hearn Cc: Dag-Erling Smorgrav , hackers@FreeBSD.ORG Subject: Re: sysctl(8) and opaque MIB entries In-Reply-To: Your message of "Mon, 07 May 2001 19:20:23 +0200." <99353.989256023@axl.fw.uunet.co.za> Date: Mon, 07 May 2001 19:43:39 +0200 Message-ID: <49824.989257419@critter> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <99353.989256023@axl.fw.uunet.co.za>, Sheldon Hearn writes: > > >On 07 May 2001 18:51:22 +0200, Dag-Erling Smorgrav wrote: > >> Yes it will, with -X. The interesting question is why there isn't an >> option to make it display just one variable in hex, and why it doesn't >> print a message when it omits printing an opaque variable. > >Do you think it'd be okay to allow an argument to -a and -A that >specifies the sysctl node from which to descend? You mean like # sysctl vfs.devfs vfs.devfs.noverflow: 32768 vfs.devfs.generation: 116 vfs.devfs.inodes: 116 vfs.devfs.topinode: 118 :-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 10:48:42 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 0C87037B422 for ; Mon, 7 May 2001 10:48:37 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 54484 invoked by uid 1000); 7 May 2001 17:46:48 -0000 Date: Mon, 7 May 2001 20:46:48 +0300 From: Peter Pentchev To: Poul-Henning Kamp Cc: Sheldon Hearn , Dag-Erling Smorgrav , hackers@FreeBSD.ORG Subject: Re: sysctl(8) and opaque MIB entries Message-ID: <20010507204648.P39862@ringworld.oblivion.bg> Mail-Followup-To: Poul-Henning Kamp , Sheldon Hearn , Dag-Erling Smorgrav , hackers@FreeBSD.ORG References: <99353.989256023@axl.fw.uunet.co.za> <49824.989257419@critter> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <49824.989257419@critter>; from phk@critter.freebsd.dk on Mon, May 07, 2001 at 07:43:39PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 07, 2001 at 07:43:39PM +0200, Poul-Henning Kamp wrote: > In message <99353.989256023@axl.fw.uunet.co.za>, Sheldon Hearn writes: > > > > > >On 07 May 2001 18:51:22 +0200, Dag-Erling Smorgrav wrote: > > > >> Yes it will, with -X. The interesting question is why there isn't an > >> option to make it display just one variable in hex, and why it doesn't > >> print a message when it omits printing an opaque variable. > > > >Do you think it'd be okay to allow an argument to -a and -A that > >specifies the sysctl node from which to descend? > > You mean like > > # sysctl vfs.devfs > vfs.devfs.noverflow: 32768 > vfs.devfs.generation: 116 > vfs.devfs.inodes: 116 > vfs.devfs.topinode: 118 > > :-) As I pointed out in another message, yes, he meant like that, but with the -a or -A option. G'luck, Peter -- This sentence was in the past tense. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 10:52:24 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 339F437B422 for ; Mon, 7 May 2001 10:52:19 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id TAA52659; Mon, 7 May 2001 19:52:16 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Peter Pentchev Cc: Sheldon Hearn , hackers@freebsd.org Subject: Re: sysctl(8) and opaque MIB entries References: <99353.989256023@axl.fw.uunet.co.za> <20010507202905.O39862@ringworld.oblivion.bg> From: Dag-Erling Smorgrav Date: 07 May 2001 19:52:15 +0200 In-Reply-To: <20010507202905.O39862@ringworld.oblivion.bg> Message-ID: Lines: 9 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Peter Pentchev writes: > How about e.g. 'sysctl -a hw', which still shows *all* MIB's? > At least on ref5 as of this very moment.. Yes, because '-a' means 'show all non-opaque' and 'hw' is ignored. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 10:57:24 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 6FA9E37B424 for ; Mon, 7 May 2001 10:57:20 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 54602 invoked by uid 1000); 7 May 2001 17:55:32 -0000 Date: Mon, 7 May 2001 20:55:32 +0300 From: Peter Pentchev To: Dag-Erling Smorgrav Cc: Sheldon Hearn , hackers@freebsd.org Subject: Re: sysctl(8) and opaque MIB entries Message-ID: <20010507205532.A54552@ringworld.oblivion.bg> Mail-Followup-To: Dag-Erling Smorgrav , Sheldon Hearn , hackers@freebsd.org References: <99353.989256023@axl.fw.uunet.co.za> <20010507202905.O39862@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from des@ofug.org on Mon, May 07, 2001 at 07:52:15PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 07, 2001 at 07:52:15PM +0200, Dag-Erling Smorgrav wrote: > Peter Pentchev writes: > > How about e.g. 'sysctl -a hw', which still shows *all* MIB's? > > At least on ref5 as of this very moment.. > > Yes, because '-a' means 'show all non-opaque' and 'hw' is ignored. OK, so I slipped up; so how about this: [roam@ref5 ~]$ sysctl -A hw | fgrep . | cut -d. -f 1 | sort -u cshumway@ref5 debug hw jail kern machdep net p1003_1b user vfs vm [roam@ref5 ~]$ sysctl -X hw | fgrep . | sed 's/\..*//' | sort -u cshumway@ref5 debug hw jail kern machdep net p1003_1b user vfs vm [roam@ref5 ~]$ G'luck, Peter -- What would this sentence be like if pi were 3? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 11: 0:16 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id D69E237B422 for ; Mon, 7 May 2001 11:00:11 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id UAA52705; Mon, 7 May 2001 20:00:09 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Peter Pentchev Cc: Sheldon Hearn , hackers@freebsd.org Subject: Re: sysctl(8) and opaque MIB entries References: <99353.989256023@axl.fw.uunet.co.za> <20010507202905.O39862@ringworld.oblivion.bg> <20010507205532.A54552@ringworld.oblivion.bg> From: Dag-Erling Smorgrav Date: 07 May 2001 20:00:08 +0200 In-Reply-To: <20010507205532.A54552@ringworld.oblivion.bg> Message-ID: Lines: 13 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Peter Pentchev writes: > On Mon, May 07, 2001 at 07:52:15PM +0200, Dag-Erling Smorgrav wrote: > > Peter Pentchev writes: > > > How about e.g. 'sysctl -a hw', which still shows *all* MIB's? > > Yes, because '-a' means 'show all non-opaque' and 'hw' is ignored. > OK, so I slipped up; so how about this: Yes, what about this? It's still the exact same thing, the -A and -X options are variants of the -a option. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 11: 3:29 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 0097837B43E for ; Mon, 7 May 2001 11:03:23 -0700 (PDT) (envelope-from julian@elischer.org) Received: from elischer.org (InterJet.elischer.org [192.168.1.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA82344; Mon, 7 May 2001 11:39:27 -0700 (PDT) Message-ID: <3AF6DEBA.C228828D@elischer.org> Date: Mon, 07 May 2001 10:43:22 -0700 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: robert@mpe.mpg.de Cc: freebsd-hackers@freebsd.org Subject: Re: Q: porting a driver from linux to freebsd. References: <200105031453.f43ErXS31356@robert2.mpe-garching.mpg.de> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Robert Suetterlin wrote: > > Hello! > > I asked this already on freebsd-questions and was suggested to ask on this list, too. > > I have a linux driver for a video grabber card (dfg/bw1 from 'the imaging source'). This card does not use a well bt848 or similar chip. I would like to transfer this driver to freebsd. > > I do understand how the driver works under linux and I will explain below. I have also read articles on newbus, some netbsd docs, several freebsd manpages and the sources of meteor.c. I know in principle how to do a driver under freebsd. But I never did it before and wanted to get some expertise on how to do it best. Also look at the sample driver in /usr/share/examples/drivers/make_device_drive.sh in -current (4.x is way out of date) > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 12: 7:35 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id A567337B423 for ; Mon, 7 May 2001 12:07:31 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f47J73G86319; Mon, 7 May 2001 12:07:03 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010505121008.E18676@fw.wintelcom.net> Date: Mon, 07 May 2001 12:02:46 -0700 (PDT) From: John Baldwin To: Alfred Perlstein Subject: Re: no keyboard Cc: freebsd-hackers@FreeBSD.org, Ingo Flaschberger , Ceri Storey Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 05-May-01 Alfred Perlstein wrote: > * Ceri Storey [010505 11:59] wrote: >> On Sat, May 05, 2001 at 08:54:18PM +0200, Ingo Flaschberger wrote: >> > > Note : this is a way to kill your keyboard : an AT keyboard is not >> > > hot-plug compatible >> > >> > i have never killed a keyboard with un / plugging. >> > at linux it works. >> Well, it works, until your keyboard does actually break :) > > It can actually fry the entire motherboard. I doubt linux can > prevent that. > > FreeBSD 4.3 allows hotswap again. It never disallowed it, it is simply a flag for the atkbd(4) driver. You can always tweak it by turning off flag 0x1 on the atkbd0 device via a custom kernel or using a userconfig script. However, by default keyboards are actually probed and not assumed present on 4.3, so hotplug of a keyboard if the keyboard was not plugged in in 4.3 will not work out of the box. Note that hotplug of USB will work. A real fix would be to have the atkbdc0 driver attach a atkbd0 device in the case that a keyboard interrupt comes in (i.e. on the first keypress after plugging in the keyboard). -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 13: 3:45 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from obsd.syllustanaya.net (ppp14-90070708-052.pt.lu [195.46.246.52]) by hub.freebsd.org (Postfix) with ESMTP id 7FBEF37B422 for ; Mon, 7 May 2001 13:03:41 -0700 (PDT) (envelope-from frzell@pt.lu) Received: (from uucp@localhost) by obsd.syllustanaya.net (8.10.1/8.10.1) id f47K06k32669 for ; Mon, 7 May 2001 20:00:06 GMT Received: from localhost(127.0.0.1), claiming to be "pt.lu" via SMTP by localhost, id smtpdG27227; Mon May 7 22:00:03 2001 Message-ID: <3AF6FEC3.75169714@pt.lu> Date: Mon, 07 May 2001 22:00:03 +0200 From: Francois Zellinger X-Mailer: Mozilla 4.75 [en] (X11; U; OpenBSD 2.8 i386) X-Accept-Language: en, fr, es, de, ru MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org Subject: (no subject) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG subscribe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 14:20:10 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from luke.immure.com (luke.immure.com [207.8.42.74]) by hub.freebsd.org (Postfix) with ESMTP id D464437B422 for ; Mon, 7 May 2001 14:20:06 -0700 (PDT) (envelope-from bob@luke.immure.com) Received: (from bob@localhost) by luke.immure.com (8.11.2/8.11.3) id f47LK5l62507 for freebsd-hackers@freebsd.org; Mon, 7 May 2001 16:20:05 -0500 (CDT) (envelope-from bob) Date: Mon, 7 May 2001 16:20:05 -0500 From: Bob Willcox To: hackers list Subject: Realy LARGE TCP/IP Window Size? Message-ID: <20010507162005.C55671@luke.immure.com> Reply-To: Bob Willcox Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am working on a FreeBSD device driver for my Co's GSN adapter and need to be able to set my TCP/IP window size to 512KB (or perhaps more). I have tried doing this with sysctl: root@sebulba:p0 /root> sysctl -w net.inet.tcp.recvspace=524288 net.inet.tcp.recvspace: 131072 -> 524288 root@sebulba:p0 /root> sysctl -w net.inet.tcp.sendspace=524288 net.inet.tcp.sendspace: 131072 -> 524288 and although the sysctl happily takes the specification, when I attempt an ftp command I get: root@sebulba:p0 /root> ftp 192.168.1.2 ftp: socket: No buffer space available This is on a FreeBSD 4.0-stable system: FreeBSD sebulba.vieo.com 4.0-STABLE FreeBSD 4.0-STABLE #202: Mon May 7 15:09:46 CDT 2001 bob@sebulba.vieo.com:/usr/src/sys/compile/GPXTEST i386 Anybody have any ideas what I need to do to get this to work? Thanks, Bob -- Bob Willcox Living your life is a task so difficult, bob@vieo.com it has never been attempted before. Austin, TX -- Unknown To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 14:38:25 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 0C70437B42C for ; Mon, 7 May 2001 14:38:21 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id PAA02702; Mon, 7 May 2001 15:38:02 -0600 (MDT) (envelope-from ken) Date: Mon, 7 May 2001 15:38:02 -0600 From: "Kenneth D. Merry" To: Bob Willcox Cc: hackers list Subject: Re: Realy LARGE TCP/IP Window Size? Message-ID: <20010507153802.A2669@panzer.kdm.org> References: <20010507162005.C55671@luke.immure.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010507162005.C55671@luke.immure.com>; from bob@immure.com on Mon, May 07, 2001 at 04:20:05PM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 07, 2001 at 16:20:05 -0500, Bob Willcox wrote: > > I am working on a FreeBSD device driver for my Co's GSN adapter and need > to be able to set my TCP/IP window size to 512KB (or perhaps more). I > have tried doing this with sysctl: > > root@sebulba:p0 /root> sysctl -w net.inet.tcp.recvspace=524288 > net.inet.tcp.recvspace: 131072 -> 524288 > root@sebulba:p0 /root> sysctl -w net.inet.tcp.sendspace=524288 > net.inet.tcp.sendspace: 131072 -> 524288 > > and although the sysctl happily takes the specification, when I attempt > an ftp command I get: > > root@sebulba:p0 /root> ftp 192.168.1.2 > ftp: socket: No buffer space available > > This is on a FreeBSD 4.0-stable system: > > FreeBSD sebulba.vieo.com 4.0-STABLE FreeBSD 4.0-STABLE #202: Mon May 7 15:09:46 CDT 2001 bob@sebulba.vieo.com:/usr/src/sys/compile/GPXTEST i386 > > Anybody have any ideas what I need to do to get this to work? sysctl -w net.inet.tcp.rfc1323=1 You need that to be able to set your window size to anything over 64K. I think there's an rc.conf knob to do that so you don't have to tweak it manually every time. You really don't want to use ftp to test bandwidth. Use netperf instead. It is located in ports/benchmarks. You might also be interested in the zero copy patches. See: http://people.FreeBSD.org/~ken/zero_copy/ The latest patches aren't linked off the page, they're available here: http://people.FreeBSD.org/~ken/zero_copy/zero_copy.diffs.20010124 Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 14:39: 3 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by hub.freebsd.org (Postfix) with ESMTP id 8AC1437B422 for ; Mon, 7 May 2001 14:38:51 -0700 (PDT) (envelope-from netch@iv.nn.kiev.ua) Received: (from uucp@localhost) by segfault.kiev.ua (8) with UUCP id AOW48951; Tue, 8 May 2001 00:38:37 +0300 (EEST) (envelope-from netch@iv.nn.kiev.ua) Received: (from netch@localhost) by iv.nn.kiev.ua (8.11.3/8.11.3) id f475W6H00549; Mon, 7 May 2001 08:32:06 +0300 (EEST) (envelope-from netch) Date: Mon, 7 May 2001 08:32:06 +0300 From: Valentin Nechayev To: Rohit Rakshe Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: FPU exception, kernel panic Message-ID: <20010507083206.A511@iv.nn.kiev.ua> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from rakshe@cs.umn.edu on Sun, May 06, 2001 at 05:14:08PM -0500 X-42: On Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sun, May 06, 2001 at 17:14:08, rakshe (Rohit Rakshe) wrote about "Re: FPU exception, kernel panic": (I cannot even guarantree 50% this is the same problem, but...) There were some reports in current@ about incorrect usage of i586_bzero() which uses FPU for zero-filling. It generated random kernel panics mainly on K6-2, also on P5-MMX and similars. You can try to disable such bzero, but IMHO it is reasonable to upgrade to 4.3-RELEASE (RELENG_4_3) first. > I guessed I asked too much. Can someone please tell me just this: > > "How do I translate 48 bit address (segment descriptor:offset) to a > linear address which gdb can understand ?" > > > > I modified some TCP and UDP code in FreeBSD 4.1 and suddenly started > > getting (almost repeatable) kernel panics. This is how it looks like > > from remote gdb: > > > > (kgdb) bt > > #0 0xc0192e58 in panic (fmt=0xc035c076 "npxintr from nowhere") at > > ../../kern/kern_shutdown.c:550 > > #1 0xc0303c6c in npx_intr (dummy=0x0) at ../../i386/isa/npx.c:721 > > #2 0xc02e1052 in Xfpu () > > #3 0xc019824d in softclock () at ../../kern/kern_timeout.c:131 > > . > > . > > . > > (kgdb) list > > 126 } else { > > 127 c->c_flags = > > 128 (c->c_flags & > > ~CALLOUT_PENDING); > > 129 } > > 130 splx(s); > > 131 c_func(c_arg); > > 132 s = splhigh(); > > 133 steps = 0; > > 134 c = nextsoftcheck; > > 135 } > > . > > . > > . > > (kgdb) > > #1 0xc0303c6c in npx_intr (dummy=0x0) at ../../i386/isa/npx.c:721 > > 721 panic("npxintr from nowhere"); > > (kgdb) p npxproc > > $5 = 0 > > (kgdb) p npx_exists > > $6 = 1 '\001' > > . > > . > > . > > (kgdb) info all-registers > > eax 0x12 18 > > ecx 0xc03a60a0 -1069916000 > > edx 0x400000 4194304 > > ebx 0xcbc56540 -876255936 > > esp 0xc0361354 0xc0361354 > > ebp 0xc0361410 0xc0361410 > > esi 0x400000 4194304 > > edi 0x400000 4194304 > > eip 0xc019824d 0xc019824d > > eflags 0x346 838 > > cs 0x8 8 > > ss 0x10 16 > > ds 0x400010 4194320 > > es 0x10 16 > > fs 0x0 0 > > gs 0x0 0 > > (kgdb) info float > > status 0xc8f5: exceptions: INVALID DIVZ UNDERF LOS FPSTACK; flags: 1000; > > top 1 > > control 0x6620: compute to 53 bits; round DOWN; mask: LOS; > > warning: reserved bits on: 0x6000 > > > > last instruction: opcode 0x2825; pc 0x71a4:0x2824c316; operand > > 0xf800:0x8176640 > > regno tag msb lsb value > > %st(7) valid 0000000008179a802825 Denormal (0 as a double) > > %st(6) valid 71a42824c31600000000 Unnormal (NaN) > > %st(5) valid 08176640282571a42824 Unnormal (NaN) > > %st(4) valid c8910818f9380818f800 Unnormal (NaN) > > %st(3) valid 282571a42824c316bfbf Unnormal (NaN) > > %st(2) valid e82808176620089c3000 Unnormal (NaN) > > %st(1) valid 00000032000000010001 Denormal (0 as a double) > > %st(0) => valid 0000000000240818f800 Denormal (0 as a double) > > > > > > So, this means that there was a FPU exception in kernel, right ? > > > > 1. The code which I added in kernel does not use any floats. So I am > > wondering why this problem should happen at all. > > > > 2. pc register in FPU should give address of the instruction which caused > > this exception, right ? > > > > 3. If yes, how do I translate this 48 bit address in a linear address > > which gdb can understand ? /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 14:50: 7 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 7B61937B422 for ; Mon, 7 May 2001 14:50:04 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 7 May 2001 22:49:51 +0100 (BST) Date: Mon, 7 May 2001 22:49:50 +0100 From: David Malone To: Valentin Nechayev Cc: Rohit Rakshe , freebsd-hackers@FreeBSD.ORG Subject: Re: FPU exception, kernel panic Message-ID: <20010507224950.A38879@walton.maths.tcd.ie> References: <20010507083206.A511@iv.nn.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010507083206.A511@iv.nn.kiev.ua>; from netch@iv.nn.kiev.ua on Mon, May 07, 2001 at 08:32:06AM +0300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 07, 2001 at 08:32:06AM +0300, Valentin Nechayev wrote: > Sun, May 06, 2001 at 17:14:08, rakshe (Rohit Rakshe) wrote about "Re: FPU exception, kernel panic": > > (I cannot even guarantree 50% this is the same problem, but...) > There were some reports in current@ about incorrect usage of i586_bzero() > which uses FPU for zero-filling. It generated random kernel panics mainly > on K6-2, also on P5-MMX and similars. You can try to disable such bzero, > but IMHO it is reasonable to upgrade to 4.3-RELEASE (RELENG_4_3) first. This problem should not happen in 4.X as it is a side effect of the SMP-NG stuff in -current. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 14:52:53 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id EB4EC37B422 for ; Mon, 7 May 2001 14:52:48 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 7 May 2001 22:52:48 +0100 (BST) Date: Mon, 7 May 2001 22:52:47 +0100 From: David Malone To: Bob Willcox Cc: hackers list Subject: Re: Realy LARGE TCP/IP Window Size? Message-ID: <20010507225247.B38879@walton.maths.tcd.ie> References: <20010507162005.C55671@luke.immure.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010507162005.C55671@luke.immure.com>; from bob@immure.com on Mon, May 07, 2001 at 04:20:05PM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 07, 2001 at 04:20:05PM -0500, Bob Willcox wrote: > root@sebulba:p0 /root> ftp 192.168.1.2 > ftp: socket: No buffer space available One possibility is that your process limits for sbsize are too low. You could check what it says in login.conf. (I note that our tcsh doesn't support sbsize as a limit...) David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 15:11: 6 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from luke.immure.com (luke.immure.com [207.8.42.74]) by hub.freebsd.org (Postfix) with ESMTP id 4DC5637B422 for ; Mon, 7 May 2001 15:11:03 -0700 (PDT) (envelope-from bob@luke.immure.com) Received: (from bob@localhost) by luke.immure.com (8.11.2/8.11.3) id f47MAxx66286; Mon, 7 May 2001 17:10:59 -0500 (CDT) (envelope-from bob) Date: Mon, 7 May 2001 17:10:59 -0500 From: Bob Willcox To: David Malone Cc: hackers list Subject: Re: Realy LARGE TCP/IP Window Size? Message-ID: <20010507171059.B64063@luke.immure.com> Reply-To: Bob Willcox References: <20010507162005.C55671@luke.immure.com> <20010507225247.B38879@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010507225247.B38879@walton.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Mon, May 07, 2001 at 10:52:47PM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 07, 2001 at 10:52:47PM +0100, David Malone wrote: > On Mon, May 07, 2001 at 04:20:05PM -0500, Bob Willcox wrote: > > root@sebulba:p0 /root> ftp 192.168.1.2 > > ftp: socket: No buffer space available > > One possibility is that your process limits for sbsize are > too low. You could check what it says in login.conf. > > (I note that our tcsh doesn't support sbsize as a limit...) > > David. My limits command says: root@sebulba:p1 /usr/src/sys/i386/conf> limits Resource limits (current): cputime infinity secs filesize infinity kb datasize 524288 kb stacksize 65536 kb coredumpsize infinity kb memoryuse infinity kb memorylocked infinity kb maxprocesses 2067 openfiles 4136 sbsize infinity bytes So I would presume that it isn't the limiting factor. Thanks, Bob -- Bob Willcox Living your life is a task so difficult, bob@vieo.com it has never been attempted before. Austin, TX -- Unknown To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 15:15:32 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from luke.immure.com (luke.immure.com [207.8.42.74]) by hub.freebsd.org (Postfix) with ESMTP id 26CED37B423 for ; Mon, 7 May 2001 15:15:22 -0700 (PDT) (envelope-from bob@luke.immure.com) Received: (from bob@localhost) by luke.immure.com (8.11.2/8.11.3) id f47MFK766623; Mon, 7 May 2001 17:15:20 -0500 (CDT) (envelope-from bob) Date: Mon, 7 May 2001 17:15:20 -0500 From: Bob Willcox To: "Kenneth D. Merry" Cc: hackers list Subject: Re: Realy LARGE TCP/IP Window Size? Message-ID: <20010507171520.C64063@luke.immure.com> Reply-To: Bob Willcox References: <20010507162005.C55671@luke.immure.com> <20010507153802.A2669@panzer.kdm.org> <20010507164531.A64063@luke.immure.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010507164531.A64063@luke.immure.com>; from bob@immure.com on Mon, May 07, 2001 at 04:45:31PM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 07, 2001 at 04:45:31PM -0500, Bob Willcox wrote: > On Mon, May 07, 2001 at 03:38:02PM -0600, Kenneth D. Merry wrote: > > On Mon, May 07, 2001 at 16:20:05 -0500, Bob Willcox wrote: > > > > > > I am working on a FreeBSD device driver for my Co's GSN adapter and need > > > to be able to set my TCP/IP window size to 512KB (or perhaps more). I > > > have tried doing this with sysctl: > > > > > > root@sebulba:p0 /root> sysctl -w net.inet.tcp.recvspace=524288 > > > net.inet.tcp.recvspace: 131072 -> 524288 > > > root@sebulba:p0 /root> sysctl -w net.inet.tcp.sendspace=524288 > > > net.inet.tcp.sendspace: 131072 -> 524288 > > > > > > and although the sysctl happily takes the specification, when I attempt > > > an ftp command I get: > > > > > > root@sebulba:p0 /root> ftp 192.168.1.2 > > > ftp: socket: No buffer space available > > > > > > This is on a FreeBSD 4.0-stable system: > > > > > > FreeBSD sebulba.vieo.com 4.0-STABLE FreeBSD 4.0-STABLE #202: Mon May 7 15:09:46 CDT 2001 bob@sebulba.vieo.com:/usr/src/sys/compile/GPXTEST i386 > > > > > > Anybody have any ideas what I need to do to get this to work? > > > > sysctl -w net.inet.tcp.rfc1323=1 > > > > You need that to be able to set your window size to anything over 64K. I > > think there's an rc.conf knob to do that so you don't have to tweak it > > manually every time. > > Thanks, I'll give this a try. I tried setting the above sysctl but that didn't have any effect on the problem. Through a binary search of send and recv space settings I was able to determine that anything over 227 KB (232448 bytes) fails when I attempt to open a TCP socket. Bob [snip] > > > > > Ken > > -- > > Kenneth Merry > > ken@kdm.org > > -- > Bob Willcox Living your life is a task so difficult, > bob@vieo.com it has never been attempted before. > Austin, TX -- Unknown -- Bob Willcox Living your life is a task so difficult, bob@vieo.com it has never been attempted before. Austin, TX -- Unknown To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 15:18: 0 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 2683837B422 for ; Mon, 7 May 2001 15:17:56 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id QAA03155; Mon, 7 May 2001 16:17:53 -0600 (MDT) (envelope-from ken) Date: Mon, 7 May 2001 16:17:53 -0600 From: "Kenneth D. Merry" To: Bob Willcox Cc: hackers list Subject: Re: Realy LARGE TCP/IP Window Size? Message-ID: <20010507161753.D2810@panzer.kdm.org> References: <20010507162005.C55671@luke.immure.com> <20010507153802.A2669@panzer.kdm.org> <20010507164531.A64063@luke.immure.com> <20010507171520.C64063@luke.immure.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010507171520.C64063@luke.immure.com>; from bob@immure.com on Mon, May 07, 2001 at 05:15:20PM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 07, 2001 at 17:15:20 -0500, Bob Willcox wrote: > On Mon, May 07, 2001 at 04:45:31PM -0500, Bob Willcox wrote: > > On Mon, May 07, 2001 at 03:38:02PM -0600, Kenneth D. Merry wrote: > > > On Mon, May 07, 2001 at 16:20:05 -0500, Bob Willcox wrote: > > > > > > > > I am working on a FreeBSD device driver for my Co's GSN adapter and need > > > > to be able to set my TCP/IP window size to 512KB (or perhaps more). I > > > > have tried doing this with sysctl: > > > > > > > > root@sebulba:p0 /root> sysctl -w net.inet.tcp.recvspace=524288 > > > > net.inet.tcp.recvspace: 131072 -> 524288 > > > > root@sebulba:p0 /root> sysctl -w net.inet.tcp.sendspace=524288 > > > > net.inet.tcp.sendspace: 131072 -> 524288 > > > > > > > > and although the sysctl happily takes the specification, when I attempt > > > > an ftp command I get: > > > > > > > > root@sebulba:p0 /root> ftp 192.168.1.2 > > > > ftp: socket: No buffer space available > > > > > > > > This is on a FreeBSD 4.0-stable system: > > > > > > > > FreeBSD sebulba.vieo.com 4.0-STABLE FreeBSD 4.0-STABLE #202: Mon May 7 15:09:46 CDT 2001 bob@sebulba.vieo.com:/usr/src/sys/compile/GPXTEST i386 > > > > > > > > Anybody have any ideas what I need to do to get this to work? > > > > > > sysctl -w net.inet.tcp.rfc1323=1 > > > > > > You need that to be able to set your window size to anything over 64K. I > > > think there's an rc.conf knob to do that so you don't have to tweak it > > > manually every time. > > > > Thanks, I'll give this a try. > > > I tried setting the above sysctl but that didn't have any effect on the > problem. Through a binary search of send and recv space settings I was > able to determine that anything over 227 KB (232448 bytes) fails when I > attempt to open a TCP socket. You probably also need: sysctl -w kern.ipc.maxsockbuf=2097152 Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 15:59: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from luke.immure.com (luke.immure.com [207.8.42.74]) by hub.freebsd.org (Postfix) with ESMTP id 00D7E37B422 for ; Mon, 7 May 2001 15:58:57 -0700 (PDT) (envelope-from bob@luke.immure.com) Received: (from bob@localhost) by luke.immure.com (8.11.2/8.11.3) id f47Mwt468738; Mon, 7 May 2001 17:58:55 -0500 (CDT) (envelope-from bob) Date: Mon, 7 May 2001 17:58:55 -0500 From: Bob Willcox To: "Kenneth D. Merry" Cc: hackers list Subject: Re: Realy LARGE TCP/IP Window Size? Message-ID: <20010507175855.D64063@luke.immure.com> Reply-To: Bob Willcox References: <20010507162005.C55671@luke.immure.com> <20010507153802.A2669@panzer.kdm.org> <20010507164531.A64063@luke.immure.com> <20010507171520.C64063@luke.immure.com> <20010507161753.D2810@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010507161753.D2810@panzer.kdm.org>; from ken@kdm.org on Mon, May 07, 2001 at 04:17:53PM -0600 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 07, 2001 at 04:17:53PM -0600, Kenneth D. Merry wrote: > On Mon, May 07, 2001 at 17:15:20 -0500, Bob Willcox wrote: > > On Mon, May 07, 2001 at 04:45:31PM -0500, Bob Willcox wrote: > > > On Mon, May 07, 2001 at 03:38:02PM -0600, Kenneth D. Merry wrote: > > > > On Mon, May 07, 2001 at 16:20:05 -0500, Bob Willcox wrote: > > > > > > > > > > I am working on a FreeBSD device driver for my Co's GSN adapter and need > > > > > to be able to set my TCP/IP window size to 512KB (or perhaps more). I > > > > > have tried doing this with sysctl: > > > > > > > > > > root@sebulba:p0 /root> sysctl -w net.inet.tcp.recvspace=524288 > > > > > net.inet.tcp.recvspace: 131072 -> 524288 > > > > > root@sebulba:p0 /root> sysctl -w net.inet.tcp.sendspace=524288 > > > > > net.inet.tcp.sendspace: 131072 -> 524288 > > > > > > > > > > and although the sysctl happily takes the specification, when I attempt > > > > > an ftp command I get: > > > > > > > > > > root@sebulba:p0 /root> ftp 192.168.1.2 > > > > > ftp: socket: No buffer space available > > > > > > > > > > This is on a FreeBSD 4.0-stable system: > > > > > > > > > > FreeBSD sebulba.vieo.com 4.0-STABLE FreeBSD 4.0-STABLE #202: Mon May 7 15:09:46 CDT 2001 bob@sebulba.vieo.com:/usr/src/sys/compile/GPXTEST i386 > > > > > > > > > > Anybody have any ideas what I need to do to get this to work? > > > > > > > > sysctl -w net.inet.tcp.rfc1323=1 > > > > > > > > You need that to be able to set your window size to anything over 64K. I > > > > think there's an rc.conf knob to do that so you don't have to tweak it > > > > manually every time. > > > > > > Thanks, I'll give this a try. > > > > > > I tried setting the above sysctl but that didn't have any effect on the > > problem. Through a binary search of send and recv space settings I was > > able to determine that anything over 227 KB (232448 bytes) fails when I > > attempt to open a TCP socket. > > You probably also need: > > sysctl -w kern.ipc.maxsockbuf=2097152 It looks like this did it!! Unfortunately, the adapter is now cratering. Something more for the hardware guys to do I guess. :-) Thanks Kenneth. Bob > > Ken > -- > Kenneth Merry > ken@kdm.org -- Bob Willcox Living your life is a task so difficult, bob@vieo.com it has never been attempted before. Austin, TX -- Unknown To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 16:26:44 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from berlin.ccc.de (berlin.ccc.de [195.21.255.248]) by hub.freebsd.org (Postfix) with SMTP id AD55337B422 for ; Mon, 7 May 2001 16:26:41 -0700 (PDT) (envelope-from marco@berlin.ccc.de) Received: (qmail 72192 invoked by uid 1045); 7 May 2001 23:26:40 -0000 Date: Tue, 8 May 2001 01:26:39 +0200 From: Marco Wertejuk To: freebsd-hackers@freebsd.org Subject: bridging on specific devices Message-ID: <20010508012639.A72180@berlin.ccc.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I'm using 4.2 release and i need bridging. Luigi tells in the manpage that the option to select specific devices for bridging is still in development. Does anybody know how far this work is done in 4.3 stable ? I need this feature very urgently, and all of my experiments with net.link.ether.bridge_cfg didn't work because the bridge was either completely deactived or active on all interface and not just the desired ones. Regards, Marco -- Mit freundlichen Gruessen, Marco Wertejuk Computer/Internet/Security-Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 16:34:42 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id F0BB937B422 for ; Mon, 7 May 2001 16:34:39 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id BAA54025; Tue, 8 May 2001 01:34:28 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Valentin Nechayev Cc: Rohit Rakshe , freebsd-hackers@FreeBSD.ORG Subject: Re: FPU exception, kernel panic References: <20010507083206.A511@iv.nn.kiev.ua> From: Dag-Erling Smorgrav Date: 08 May 2001 01:34:27 +0200 In-Reply-To: <20010507083206.A511@iv.nn.kiev.ua> Message-ID: Lines: 16 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Valentin Nechayev writes: > (I cannot even guarantree 50% this is the same problem, but...) > There were some reports in current@ about incorrect usage of i586_bzero() > which uses FPU for zero-filling. It generated random kernel panics mainly > on K6-2, also on P5-MMX and similars. You can try to disable such bzero, > but IMHO it is reasonable to upgrade to 4.3-RELEASE (RELENG_4_3) first. 1) this bug only occurs on -CURRENT systems that have interrupt preemption enabled (i.e. anything newer than february) 2) the symptoms are nowhere near what's described here anyway - you'd see the kernel stack getting smashed, not an FPU exception. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 22:55: 9 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by hub.freebsd.org (Postfix) with ESMTP id CC60137B424 for ; Mon, 7 May 2001 22:55:04 -0700 (PDT) (envelope-from luigi@info.iet.unipi.it) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id HAA06236; Tue, 8 May 2001 07:52:36 +0200 (CEST) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200105080552.HAA06236@info.iet.unipi.it> Subject: Re: bridging on specific devices In-Reply-To: <20010508012639.A72180@berlin.ccc.de> from Marco Wertejuk at "May 8, 2001 01:26:39 am" To: Marco Wertejuk Date: Tue, 8 May 2001 07:52:36 +0200 (CEST) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hello, > > I'm using 4.2 release and i need bridging. > Luigi tells in the manpage that the option > to select specific devices for bridging is > still in development. > > Does anybody know how far this work is done > in 4.3 stable ? it works on 4.3-RELEASE cheers luigi > I need this feature very urgently, and all > of my experiments with net.link.ether.bridge_cfg > didn't work because the bridge was either > completely deactived or active on all > interface and not just the desired ones. > > Regards, > Marco > > -- > Mit freundlichen Gruessen, > Marco Wertejuk > Computer/Internet/Security-Services > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 23:12: 3 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hokkshideh.jetcafe.org (hokkshideh.jetcafe.org [205.147.43.4]) by hub.freebsd.org (Postfix) with ESMTP id 857F637B422 for ; Mon, 7 May 2001 23:12:01 -0700 (PDT) (envelope-from dave@jetcafe.org) Received: from hokkshideh.jetcafe.org (localhost [127.0.0.1]) by hokkshideh.jetcafe.org (8.8.8/8.8.5) with ESMTP id XAA06142 for ; Mon, 7 May 2001 23:11:50 -0700 (PDT) Message-Id: <200105080611.XAA06142@hokkshideh.jetcafe.org> X-Mailer: exmh version 2.2 06/23/2000 with version: MH 6.8.4 #1[UCI] To: freebsd-hackers@freebsd.org Subject: Question about building source Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 07 May 2001 23:11:50 -0700 From: Dave Hayes Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Am I correct in assuming that: $ cd /usr/src $ make installworld DESTDIR=/vol1/FreeBSD will install the entire OS into /vol1/FreeBSD? Has anyone ever tried this? ;) ------ Dave Hayes - Consultant - Altadena CA, USA - dave@jetcafe.org >>> The opinions expressed above are entirely my own <<< "Man is the only creature that refuses to be what he is." --Albert Camus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 23:33: 5 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12]) by hub.freebsd.org (Postfix) with ESMTP id 4087F37B423; Mon, 7 May 2001 23:32:58 -0700 (PDT) (envelope-from pfeifer@dbai.tuwien.ac.at) Received: from deneb (deneb [128.130.111.2]) by vexpert.dbai.tuwien.ac.at (8.11.1/8.11.1) with ESMTP id f486WaM22998; Tue, 8 May 2001 08:32:37 +0200 (MET DST) Date: Tue, 8 May 2001 08:32:36 +0200 (CEST) From: Gerald Pfeifer To: Dima Dorfman Cc: Boris Popov , Peter Pentchev , Bruce Evans , , , Subject: Re: Displaying options for current NFS mounts In-Reply-To: <20010325222920.D1E863E09@bazooka.unixfreak.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What happened to this patch/this discussion? To remind everyone, the issue was to print specific file-system specific mount options as in dima@spike% /sbin/mount -vt nfs pid295@spike:/host on /host (nfs, v2, udp, hard, intr) pid295@spike:/st on /st (nfs, v2, udp, hard, intr) instead of just dima@spike% /sbin/mount -vt nfs pid295@spike:/host on /host (nfs) pid295@spike:/st on /st (nfs) Gerald On Sun, 25 Mar 2001, Dima Dorfman wrote: >Boris Popov writes: >> This is not a bikeshed, but sysctl is the wrong interface to do >> this. Use VFSs/VOPs instead. This isn't a big problem with passing string >> from kernel to userland. > > I like your idea of using the extattr interface. It isn't a perfect > match, since ideally this would be a VFS operation, but it works quite > well. The only modifications required are to mount(8) to try to get > this attribute, and then to any filesystem which wishes to support it. > > Below is a patch which makes the necessary changes to mount(8), and > adds support for this to NFS. It's amazingly simple, and doesn't > interfere with anything else (i.e., you don't have to rebuild half the > world to use it). The only thing I don't like is that the "mountopts" > and "mountopts_verbose" constants aren't macroized, but that can be > easily solved (I just didn't know where to put them). With it, > mount(8) outputs stuff like this: > > dima@spike% /sbin/mount -vt nfs > pid295@spike:/host on /host (nfs, v2, udp, hard, intr) > pid295@spike:/st on /st (nfs, v2, udp, hard, intr) > bazooka:/a on /.amd/bazooka/host/a (nfs, nodev, nosuid, v3, tcp, hard, intr) > bazooka:/b on /.amd/bazooka/host/b (nfs, nodev, nosuid, v3, tcp, hard, intr) > > Comments? Suggestions? > > Thanks in advance > > Dima Dorfman > dima@unixfreak.org > > P.S. Would anyone have a fit if I wrote man pages for > extattr_get_file, extattr_set_file, and extattr_delete_file? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon May 7 23:45:48 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from village.telecomitalia.it (mail2.village.tin.it [195.14.96.139]) by hub.freebsd.org (Postfix) with ESMTP id 753B137B422 for ; Mon, 7 May 2001 23:45:46 -0700 (PDT) (envelope-from trimarchi@synthema.it) Received: from Trimarchi.SYNTHEMA ([213.82.202.73]) by village.telecomitalia.it with Microsoft SMTPSVC(5.5.1877.537.53); Tue, 8 May 2001 08:43:48 +0200 Message-Id: <5.0.0.25.2.20010508084509.009e5710@pop1.village.tin.it> X-Sender: snt\sntmtrimarchi@pop1.village.tin.it X-Mailer: QUALCOMM Windows Eudora Version 5.0 Date: Tue, 08 May 2001 08:45:53 +0200 To: freebsd-hackers@freebsd.org From: Trimarchi Michael Subject: picoBSD Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Where is the picoBSD source code ? Can i compile for ARM processor ? Best Regards Michael Trimarchi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 0: 7:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from updraft.jp.freebsd.org (updraft.jp.FreeBSD.ORG [210.157.158.42]) by hub.freebsd.org (Postfix) with ESMTP id B8F2A37B422 for ; Tue, 8 May 2001 00:07:18 -0700 (PDT) (envelope-from matusita@jp.FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by updraft.jp.freebsd.org (8.11.3+3.4W/8.11.3) with ESMTP/inet id f48772870583; Tue, 8 May 2001 16:07:03 +0900 (JST) (envelope-from matusita@jp.FreeBSD.org) Cc: hackers@freebsd.org In-Reply-To: <200105080611.XAA06142@hokkshideh.jetcafe.org> References: <200105080611.XAA06142@hokkshideh.jetcafe.org> X-Face: '*aj"d@ijeQ:/X}]oM5c5Uz{ZZZk90WPt>a^y4$cGQp8:!H\W=hSM;PuNiidkc]/%,;6VGu e+`&APmz|P;F~OL/QK%;P2vU>\j4X.8@i%j6[%DTs_3J,Fff0)*oHg$A.cDm&jc#pD24WK@{,"Ef!0 P\):.2}8jo-BiZ?X&t$V X-User-Agent: Mew/1.94.2 XEmacs/21.5 (alfalfa) X-FaceAnim: (-O_O-)(O_O- )(_O- )(O- )(- -)( -O)( -O_)( -O_O)(-O_O-) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Dispatcher: imput version 20000228(IM140) Lines: 14 From: Makoto MATSUSHITA To: dave@jetcafe.org Subject: Re: Question about building source Date: Tue, 08 May 2001 16:06:46 +0900 Message-Id: <20010508160646F.matusita@jp.FreeBSD.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dave> $ cd /usr/src dave> $ make installworld DESTDIR=/vol1/FreeBSD dave> will install the entire OS into /vol1/FreeBSD? Yes (or it should be). dave> Has anyone ever tried this? ;) You should have already seen the result that uses "make installworld DESTDIR=/what/ever" -- FreeBSD distribution itself :-) -- - Makoto `MAR' MATSUSHITA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 0:32:40 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from lists01.iafrica.com (lists01.iafrica.com [196.7.0.141]) by hub.freebsd.org (Postfix) with ESMTP id 29EB337B424 for ; Tue, 8 May 2001 00:32:27 -0700 (PDT) (envelope-from sheldonh@uunet.co.za) Received: from nwl.fw.uunet.co.za ([196.31.2.162]) by lists01.iafrica.com with esmtp (Exim 3.12 #2) id 14x1yo-0006uI-00; Tue, 08 May 2001 09:32:22 +0200 Received: (from nobody@localhost) by nwl.fw.uunet.co.za (8.8.8/8.6.9) id JAA21689; Tue, 8 May 2001 09:32:19 +0200 (SAST) Received: by nwl.fw.uunet.co.za via recvmail id 21435; Tue May 8 09:31:28 2001 Received: from sheldonh (helo=axl.fw.uunet.co.za) by axl.fw.uunet.co.za with local-esmtp (Exim 3.22 #1) id 14x1xw-0001Y3-00; Tue, 08 May 2001 09:31:28 +0200 To: Dag-Erling Smorgrav Cc: hackers@freebsd.org Subject: Re: sysctl(8) and opaque MIB entries In-reply-to: Your message of "07 May 2001 19:23:35 +0200." Date: Tue, 08 May 2001 09:31:28 +0200 Message-ID: <5954.989307088@axl.fw.uunet.co.za> From: Sheldon Hearn Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 07 May 2001 19:23:35 +0200, Dag-Erling Smorgrav wrote: > Here's a patch that: > > 1) introduces the -x option, which makes opaque variables visible. > > 2) allows variables to be set without the -w option. > > 3) undocuments the now-superfluous -w option. That would meet my needs. Are you sure this is a better route than allowing a "limiting parent node" to be specified along with -A and -a? Seems to me that the latter would avoid introducing yet more options and the functionality I'm proposing seems intuitive to me and Peter at least. :-) Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 2:24:13 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from newgold.net (eat.ManBeef.com [209.42.222.44]) by hub.freebsd.org (Postfix) with SMTP id 55DEF37B422 for ; Tue, 8 May 2001 02:24:11 -0700 (PDT) (envelope-from jmallett@newgold.net) Received: (qmail 19165 invoked by uid 1000); 8 May 2001 09:21:31 -0000 Date: Tue, 8 May 2001 05:21:31 -0400 (EDT) From: Joseph Mallett To: Subject: syscalls for getting information about system bus? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm sure this probably reeks of cluelessness, but I'm wondering how I can find each bus in the system, and if it's PCI/ISA/whatever, so that I could say "1 PCI bus, 1 ISA bus in system", etc. without having to probe the system directly, since I want to make what I'm working on portable. Thanks /joseph -- [ Joseph Mallett ] [ xMach Core Team xMach: Proactively Unbloated Microkernel BSD ] [ Proud {Free,Net}BSD User; (Obj)C(++) Programmer ] [ http://xMach.org ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 2:40:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id 8F2BA37B424 for ; Tue, 8 May 2001 02:40:47 -0700 (PDT) (envelope-from msmith@mass.dis.org) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.3/8.11.3) with ESMTP id f489kei02748; Tue, 8 May 2001 02:46:43 -0700 (PDT) (envelope-from msmith@mass.dis.org) Message-Id: <200105080946.f489kei02748@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Joseph Mallett Cc: hackers@FreeBSD.org Subject: Re: syscalls for getting information about system bus? In-reply-to: Your message of "Tue, 08 May 2001 05:21:31 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 08 May 2001 02:46:40 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I'm sure this probably reeks of cluelessness, but I'm wondering how I can > find each bus in the system, and if it's PCI/ISA/whatever, so that I could > say "1 PCI bus, 1 ISA bus in system", etc. without having to probe the > system directly, since I want to make what I'm working on portable. See libdevinfo in -current. There's nothing really portable for this sort of thing, though. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 2:55:13 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from newgold.net (eat.ManBeef.com [209.42.222.44]) by hub.freebsd.org (Postfix) with SMTP id A127637B423 for ; Tue, 8 May 2001 02:55:10 -0700 (PDT) (envelope-from jmallett@newgold.net) Received: (qmail 7237 invoked by uid 1000); 8 May 2001 09:52:31 -0000 Date: Tue, 8 May 2001 05:52:31 -0400 (EDT) From: Joseph Mallett To: Mike Smith Cc: Subject: Re: syscalls for getting information about system bus? In-Reply-To: <200105080946.f489kei02748@mass.dis.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 8 May 2001, Mike Smith wrote: > > I'm sure this probably reeks of cluelessness, but I'm wondering how I can > > find each bus in the system, and if it's PCI/ISA/whatever, so that I could > > say "1 PCI bus, 1 ISA bus in system", etc. without having to probe the > > system directly, since I want to make what I'm working on portable. > > See libdevinfo in -current. There's nothing really portable for this Thanks, looks like a start. > sort of thing, though. Yeah, I figured there wouldn't be, but I figured I'd try asking. I'm trying to implement a '/sbin/hinv' for *BSD, and have been trying to make it as generic as possible, so I don't end up over-relying on certain hardware existing, etc. Thanks /joseph > > -- > ... every activity meets with opposition, everyone who acts has his > rivals and unfortunately opponents also. But not because people want > to be opponents, rather because the tasks and relationships force > people to take different points of view. [Dr. Fritz Todt] > V I C T O R Y N O T V E N G E A N C E > > -- [ Joseph Mallett ] [ xMach Core Team xMach: Proactively Unbloated Microkernel BSD ] [ Proud {Free,Net}BSD User; (Obj)C(++) Programmer ] [ http://xMach.org ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 3:51:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.zsea.zp.ua (ZSEA.zp.ua [212.8.40.5]) by hub.freebsd.org (Postfix) with ESMTP id 6DF1637B424 for ; Tue, 8 May 2001 03:51:29 -0700 (PDT) (envelope-from laa@laa.zp.ua) Received: (from laa@localhost) by mx1.zsea.zp.ua with œ id f48AoV212557; Tue, 8 May 2001 13:50:31 +0300 (EEST) (envelope-from laa@laa.zp.ua)œ Date: Tue, 8 May 2001 13:50:31 +0300 From: Alexandr Listopad To: Trimarchi Michael Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: picoBSD Message-ID: <20010508135031.A12502@laa.zp.ua> References: <5.0.0.25.2.20010508084509.009e5710@pop1.village.tin.it> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <5.0.0.25.2.20010508084509.009e5710@pop1.village.tin.it>; from trimarchi@synthema.it on Tue, May 08, 2001 at 08:45:53AM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, May 08, 2001 at 08:45:53AM +0200, Trimarchi Michael wrote: > Where is the picoBSD source code ? Can i compile for ARM processor ? see src/release/picobsd -- Laa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 4:41:16 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 977A337B422 for ; Tue, 8 May 2001 04:41:06 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id NAA56280; Tue, 8 May 2001 13:40:41 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Sheldon Hearn Cc: hackers@freebsd.org Subject: Re: sysctl(8) and opaque MIB entries References: <5954.989307088@axl.fw.uunet.co.za> From: Dag-Erling Smorgrav Date: 08 May 2001 13:40:40 +0200 In-Reply-To: <5954.989307088@axl.fw.uunet.co.za> Message-ID: Lines: 15 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sheldon Hearn writes: > That would meet my needs. Are you sure this is a better route than > allowing a "limiting parent node" to be specified along with -A and -a? > Seems to me that the latter would avoid introducing yet more options and > the functionality I'm proposing seems intuitive to me and Peter at > least. :-) Maybe so, but I've always thought -A and -X were *counter*intuitive, and the current behaviour of 'sysctl foo' where foo is the name of an opaque variable is, to say the least, surprising. Adding the -x option makes it slightly less so. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 7: 1:12 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from zorak.cidera.com (zorak.cidera.com [207.239.230.137]) by hub.freebsd.org (Postfix) with ESMTP id 4323C37B440; Tue, 8 May 2001 07:01:00 -0700 (PDT) (envelope-from rharris@cidera.com) Received: from localhost (localhost [[UNIX: localhost]]) by zorak.cidera.com (8.11.0/8.11.0) with ESMTP id f48E0xP20677; Tue, 8 May 2001 10:00:59 -0400 (EDT) X-Authentication-Warning: zorak.cidera.com: rharris owned process doing -bs Date: Tue, 8 May 2001 10:00:59 -0400 (EDT) From: Rob Harris To: questions@freebsd.org Cc: hackers@freebsd.org Subject: natd forwarding broadcast broken?? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've been ripping out what little hair I have left for two days on this problem... Here's my situation: I have a box (FreeBSD 4.0/i386) that has a ton of broadcast traffic coming into it's fxp1 port. I want that traffic to show up on another LAN as broadcast, effectively changing the dest addr of the packet from 255.255.255.255 to 172.31.85.255. When I use ipfw and natd to change the dest ip of packets from 255.255.255.255 to a unicast address on that subnet, (e.g. 172.31.85.10) it works just fine (i.e. I can see the traffic show up on the 172.31.85/24 lan) However, when I set the dest IP for broadcast no traffic shows up at all... More specifically, in the above unicast case, I can see the traffic leaving the destination box's ethernet interface (via netstat 1). In the broadcast case, I see nothing leaving the ethernet interface. Is this a limitation or a bug? Could it be a routing issue (though, not sure how.) When running in debug mode, natd is reportedly aliasing the packet properly: In [UDP] [UDP] 212.34.164.122:4054 -> 255.255.255.255:9090 aliased to [UDP] 212.34.164.122:4054 -> 172.31.85.255:9090 Part of me thinks that for some reason IP NAT is not turning on the broadcast flag for the socket, but I'm not sure. Little help? Muchas Gracias. --Rob ____________________________________________________________________________ Rob Harris 8037 Laurel Lakes Court, Laurel MD 301.598.0500 x2236 Cidera, Inc. rharris@cidera.com fax: 301.598.0837 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "Don't rush me sonny. You rush a miracle man, you get rotten miracles." --Miracle Max, The Princess Bride To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 7:47:57 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.noos.fr (claudel.noos.net [212.198.2.83]) by hub.freebsd.org (Postfix) with ESMTP id 8113437B423 for ; Tue, 8 May 2001 07:47:53 -0700 (PDT) (envelope-from clefevre@poboxes.com) Received: (qmail 1973883 invoked by uid 0); 8 May 2001 14:47:50 -0000 Received: from d165.dhcp212-198-231.noos.fr (HELO gits.dyndns.org) ([212.198.231.165]) (envelope-sender ) by claudel.noos.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 8 May 2001 14:47:50 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.3/8.11.3) id f48Ell441218; Tue, 8 May 2001 16:47:47 +0200 (CEST) (envelope-from clefevre@poboxes.com) To: "Munish Chopra" Cc: freebsd-hackers@freebsd.org Subject: Re: The FreeBSD NVIDIA Driver Initiative References: X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C Reply-To: Cyrille Lefevre In-Reply-To: Mail-Copies-To: never From: Cyrille Lefevre Date: 08 May 2001 16:47:44 +0200 Message-ID: <3dafganj.fsf@gits.dyndns.org> Lines: 12 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Munish Chopra" writes: > If the following isn't an appropriate subject for discussion on this > particular mailing list, please move ensuing discussion to one that is > more appropriate (possibly -hackers or -hardware). NVidia discussions usually are in -multimedia, no ? Cyrille. -- home: mailto:clefevre@poboxes.com UNIX is user-friendly; it's just particular work: mailto:Cyrille.Lefevre@edf.fr about who it chooses to be friends with. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 7:53:26 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by hub.freebsd.org (Postfix) with ESMTP id 266CB37B423 for ; Tue, 8 May 2001 07:53:21 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0302.cvx21-bradley.dialup.earthlink.net [209.179.193.47]) by smtp10.atl.mindspring.net (8.9.3/8.8.5) with ESMTP id KAA14934; Tue, 8 May 2001 10:53:16 -0400 (EDT) Message-ID: <3AF80870.39A8705B@mindspring.com> Date: Tue, 08 May 2001 07:53:36 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Alfred Perlstein Cc: Dima Dorfman , hackers@FreeBSD.ORG Subject: Re: Getting peer credentials on a unix domain socket References: <20010504230540.00BEE3E0B@bazooka.unixfreak.org> <20010504170738.U18676@fw.wintelcom.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alfred Perlstein wrote: > Someone had some patches for a getpeercreds() syscall, but I wasn't > happy with it considering we already have the sendmsg() stuff to pass > credentials along with the fact that the initial creator of a socket > may be long gone before it's used to connect to something. The credentials (ucred) persist; that's actually part of the problems I was having a while ago with 30,000+ open files (if they didn't, I'd have had 65,000+ open files before I saw any problems, and the reasons would have been much more obviously a bit count boundary problem, instead of a bug hunt). I think adding a new system call is _not_ the way to go; there are perfectly good fcntl() commands, which fail to work under FreeBSD, but work just fine under Solaris, SunOS, Linux, and most other UNIX systems (we are back to "struct fileops" being major suckage here). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 8:20:11 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from johnson.mail.mindspring.net (johnson.mail.mindspring.net [207.69.200.177]) by hub.freebsd.org (Postfix) with ESMTP id 9E5B237B422 for ; Tue, 8 May 2001 08:20:07 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0302.cvx21-bradley.dialup.earthlink.net [209.179.193.47]) by johnson.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id LAA06466; Tue, 8 May 2001 11:20:04 -0400 (EDT) Message-ID: <3AF80EB8.FBCFB097@mindspring.com> Date: Tue, 08 May 2001 08:20:24 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "William E. Baxter" Cc: hackers@FreeBSD.ORG Subject: Re: Getting peer credentials & link management & overpartitioning References: <20010504230540.00BEE3E0B@bazooka.unixfreak.org> <20010504170738.U18676@fw.wintelcom.net> <20010504214702.A29392@zeus.superscript.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "William E. Baxter" wrote: [ ... "Subject:" ... ] > And as Alfred points out, perhaps unintentionally, the > information should be passed at connect(), because the > client process may exit before accept() returns. Many > simple servers require credentials and nothing more. In > such cases, there is no reason for the client to wait > until accept() returns. I think that the most important issue to address is the one of intentional interposition, without a tunnel. Specifically, it is extremely useful to consider a link management device for a dial-on-demand or on-demand-VPN type system, where you are hooking to what is in effect, a circuit switched network. The historical problem is the glue code. Really, you want to be able to have a daemon that opens a /dev/link (or other device), and if the device is open, all attempts to open a socket may be administratively denied, based on the credential of the requester. This permits a centrally administered link management policy, without having to grow warts on every program in the ports directory in order to have common link control. The biggest intrusion is the ability to fail calls to things like "connect(2)" with "EADMIN" or a similar administrative denial error. I am _completely_ convinced that the most glaring architectural error in the design of the Whistle InterJet was the lack of a centrally administered link management policy. Lack of such a policy led to wrapper programs and intrusions (sometimes by adverse code) into standard network programs, for things like sendmail and other porgrams that needed to run at periodic intervals, but for which a "non-business hours" policy needed to enforce that the link stay down without explicit demand on behalf of a real human. If there were only _one_ thing I could go back and change to save a butt-load of useless meetings and a huge amount of support overhead, it would be a hard call, but I'd probably have to pick "implement centralized link management". > My ucspi-ipc package provides a framework for turning filters > into servers based on getpeereid(): > > http://www.superscript.com/ucspi-ipc/intro.html > > A collection of simple servers, some of which perform > operations normally delegated to setuid programs, is > available at: > > http://www.superscript.com/ipctools/intro.html The primary reason for SUID is to get priviledged ports, or to enable things like "chroot(2)", since it takes priviledge to relinquish priviledge (ironic, eh?). SCO had a nice approach to this, where it could flag certain programs as having additional, specific rights (as opposed to "all-or-nothing"). Specifically, the most useful one was the ability to change to another (non-root) UID... once. The second most useful was the ability to get a priviledged port. I really can't see how, say, telnetd would benefit from the design you put forth (actually, it'd be much better off as a pty-using netgraph node, IMO). I think that the general utility of the idea of partitioning is useful only for trivial programs (e.g. qmail or DJBDNS), which are, by design, already partitioned, and so, also by design, have some serious limitations. > If you think that getpeereid(), or sufficient basis for it, > should appear in future versions of *BSD, please tell the > implementors. My implementation remains theirs for the asking. FWIW, I think it should, if only for the link managemenet case. I certainly think that, if adopted, it should be a (3) wrapper in the library for fcntl(2); personally, I would have it stick with a pure fcntl(2) interface, rather than introducing yet another abstraction. I also think that the entire system as it currently exists is overkill; I would like to see integration of image priviledges instead, most likely through the POSIX ACL mechanisms which have been recently adopted by FreeBSD , Linux, and others. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 8:45:32 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from blount.mail.mindspring.net (blount.mail.mindspring.net [207.69.200.226]) by hub.freebsd.org (Postfix) with ESMTP id 085D737B424 for ; Tue, 8 May 2001 08:45:28 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0302.cvx21-bradley.dialup.earthlink.net [209.179.193.47]) by blount.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id LAA21696; Tue, 8 May 2001 11:45:23 -0400 (EDT) Message-ID: <3AF814A8.39E959F5@mindspring.com> Date: Tue, 08 May 2001 08:45:44 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Ingo Flaschberger Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: no keyboard References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ingo Flaschberger wrote: > > > > > the problem is, when i connect after the boot a keyboard > > > > at the box, it is not recognized. at the colocations we > > > > often need access to this boxes (not remote access). > > > > is there a solution for this problem? > > > > Note : this is a way to kill your keyboard : an AT keyboard is not > > hot-plug compatible > > i have never killed a keyboard with un / plugging. > at linux it works. I've cooked several. It's not nearly as likely these days; in the original AT days, the controller chip was on board the keyboard itself, and inadequately isolated. Using a KVM switch is roughly tantamount to doing the same thing, only without the static issue. FreeBSD has an extremely annnoying habit of taking a keyboard that has been successfully configured by the BIOS, and then reconfiguring it "destructively" during probe, such that, if there is no KVM hooked up, or there is no keyboard and mouse hooked up, that the keyboard and mouse get "lost". Linux doesn't have this problem, and neither does Windows (I believe from looking at the source to the Windows 98 mouse driver from the DDK CDROM from Microsoft, that the mouse driver periodically resynchronizes "just in case someone uses a KVM switch on me"). It's really, really annoying. At least one company has revised their KVM switch firmware for FreeBSD's peculiar tastes, but you still have to have the KVM switch plugged in at FreeBSD boot time, or it loses its mind. I rather suspect that the mouse issue could be dealt with in moused, with a tiny amount of kernel cooperation. For the keyboard itself, it's really a matter of getting FreeBSD's nose out of the keyboard controller at probe time (I actually think it's the LED code that causes the problem, but that's just my gut feeling on it), and letting the BIOS set it up however it wants it set up, and have FreeBSD adapt to that, instead. I think the destructive probe is probably an artifact of the pre-VM86() days, before we could ask the BIOS if there is a PS/2 mouse port present. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 8:49:13 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from guild.plethora.net (guild.plethora.net [205.166.146.8]) by hub.freebsd.org (Postfix) with ESMTP id C767437B424 for ; Tue, 8 May 2001 08:49:07 -0700 (PDT) (envelope-from seebs@guild.plethora.net) Received: from guild.plethora.net (seebs@localhost.plethora.net [127.0.0.1]) by guild.plethora.net (8.10.1/8.10.1) with ESMTP id f48Fmsm06656 for ; Tue, 8 May 2001 10:48:56 -0500 (CDT) Message-Id: <200105081548.f48Fmsm06656@guild.plethora.net> From: seebs@plethora.net (Peter Seebach) Reply-To: seebs@plethora.net (Peter Seebach) To: freebsd-hackers@freebsd.org Subject: Re: no keyboard In-reply-to: Your message of "Tue, 08 May 2001 08:45:44 PDT." <3AF814A8.39E959F5@mindspring.com> Date: Tue, 08 May 2001 10:48:54 -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <3AF814A8.39E959F5@mindspring.com>, Terry Lambert writes: >FreeBSD has an extremely annnoying habit of taking a keyboard >that has been successfully configured by the BIOS, and then >reconfiguring it "destructively" during probe, such that, if >there is no KVM hooked up, or there is no keyboard and mouse >hooked up, that the keyboard and mouse get "lost". Yes. This is one of the most annoying "features" I have ever seen, and with PC keyboards, I'm not even sure it makes sense - it's not as though there's much need for configuring. >I think the destructive probe is probably an artifact of the >pre-VM86() days, before we could ask the BIOS if there is a >PS/2 mouse port present. That would fit. I once wrote a patch to let you specify in the config file what kind of mouse you use, and if you did this, and the probe failed, it would just assume that's what you meant. I believe it worked fine with my 4-button trackball. I submitted the code and forgot about it; I don't have a copy anymore, and I can't swear it was very well tested. It was well enough tested that I could ignore the switch problem on my FreeBSD box. -s To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 9: 4: 3 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from maynard.mail.mindspring.net (maynard.mail.mindspring.net [207.69.200.243]) by hub.freebsd.org (Postfix) with ESMTP id E4AA637B422 for ; Tue, 8 May 2001 09:04:00 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0302.cvx21-bradley.dialup.earthlink.net [209.179.193.47]) by maynard.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id MAA03387; Tue, 8 May 2001 12:03:56 -0400 (EDT) Message-ID: <3AF81901.A5315CA3@mindspring.com> Date: Tue, 08 May 2001 09:04:17 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Aman Cc: "freebsd-hackers@freebsd.org" , "Sandeep (ROCK MAN)" , Jaswinder Singh Kohli Subject: Re: squeeze freeBSDs' kernel size References: <3AF50686.F09BBDD5@runbox.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Aman wrote: > > kldstat shows the kernel as a loaded module. does it mean > the kernel after getting in the core is resident to it's > complete physical size. Its complete physical size... only including static BSS allocations. > my question is, does the pagedaemon carry out any sort of > paging or segmentation on the kernel and it's loadable > modules though the latter seems necessary. The inpcb's, tcpcb's, and similar data allocated via zalloci() are in fact allocated in pageable memory. These are post initialization allocations (and are very annoying, since their allocations apparently _must_ be contiguous in the address map, so they must be per-sized to a large size, if you ever expect to open a lot of sockets). > how much size can be really squeezed out of the kernel Not a lot, unless you reduce resources available to user space. For example, a properly cut-down kernel that does not load unnecessary modules can still run in 4MB. For most useful applications these days, networking is required, which tends to bloat things up a bit more than might be desirable. One big factor here appears to be the unnecessary mbuf allocation for each socket, and the IPv6 stuff. It appears to be very difficult to make the IPv6 stuff "Go Away!" gracefully, without still bloating some kernel structures; part of that appears to be the fact that it's not really tagged very well as to what is IPv6 vs. what's IPv4... my guess is that the IPv6 people really, really didn't want us ripping IPv6 back out, once they were able to get it into the kernel. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 9:52: 5 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hall.mail.mindspring.net (hall.mail.mindspring.net [207.69.200.60]) by hub.freebsd.org (Postfix) with ESMTP id DA37237B423 for ; Tue, 8 May 2001 09:52:02 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0302.cvx21-bradley.dialup.earthlink.net [209.179.193.47]) by hall.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id MAA11887; Tue, 8 May 2001 12:51:41 -0400 (EDT) Message-ID: <3AF82432.F150DB51@mindspring.com> Date: Tue, 08 May 2001 09:52:02 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Makoto MATSUSHITA Cc: dave@jetcafe.org, hackers@FreeBSD.ORG Subject: Re: Question about building source References: <200105080611.XAA06142@hokkshideh.jetcafe.org> <20010508160646F.matusita@jp.FreeBSD.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Makoto MATSUSHITA wrote: > dave> $ cd /usr/src > dave> $ make installworld DESTDIR=/vol1/FreeBSD > dave> will install the entire OS into /vol1/FreeBSD? > > Yes (or it should be). > > dave> Has anyone ever tried this? ;) > > You should have already seen the result that uses "make installworld > DESTDIR=/what/ever" -- FreeBSD distribution itself :-) FWIW: This breaks if you have updated your C++ compiler, since the .mk files incorrectly override the paths for thing like the RTTI header files and the CRT0 stuff... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 10:50:36 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f74.law4.hotmail.com [216.33.149.74]) by hub.freebsd.org (Postfix) with ESMTP id 8F65C37B42C for ; Tue, 8 May 2001 10:50:27 -0700 (PDT) (envelope-from messiah_man@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 8 May 2001 10:50:27 -0700 Received: from 212.97.248.17 by lw4fd.law4.hotmail.msn.com with HTTP; Tue, 08 May 2001 17:50:27 GMT X-Originating-IP: [212.97.248.17] From: "Munish Chopra" To: clefevre@poboxes.com Cc: freebsd-hackers@freebsd.org Subject: Re: The FreeBSD NVIDIA Driver Initiative Date: Tue, 08 May 2001 19:50:27 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 08 May 2001 17:50:27.0412 (UTC) FILETIME=[5D995140:01C0D7E7] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sorry if I messed up, but the only discussions I've taken part in or heard of were in -stable, -current, -questions, -hardware and -hackers. I guess I should have looked around some more. My bad. Cheers, Munish >From: Cyrille Lefevre >Reply-To: Cyrille Lefevre >To: "Munish Chopra" >CC: freebsd-hackers@freebsd.org >Subject: Re: The FreeBSD NVIDIA Driver Initiative >Date: 08 May 2001 16:47:44 +0200 > >"Munish Chopra" writes: > > > If the following isn't an appropriate subject for discussion on this > > particular mailing list, please move ensuing discussion to one that is > > more appropriate (possibly -hackers or -hardware). > >NVidia discussions usually are in -multimedia, no ? > >Cyrille. >-- >home: mailto:clefevre@poboxes.com UNIX is user-friendly; it's just >particular >work: mailto:Cyrille.Lefevre@edf.fr about who it chooses to be friends >with. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 10:54:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from updraft.jp.freebsd.org (updraft.jp.FreeBSD.ORG [210.157.158.42]) by hub.freebsd.org (Postfix) with ESMTP id 3E53937B422 for ; Tue, 8 May 2001 10:54:45 -0700 (PDT) (envelope-from matusita@jp.FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by updraft.jp.freebsd.org (8.11.3+3.4W/8.11.3) with ESMTP/inet id f48Hsc893942 for ; Wed, 9 May 2001 02:54:38 +0900 (JST) (envelope-from matusita@jp.FreeBSD.org) In-Reply-To: <3AF82432.F150DB51@mindspring.com> References: <200105080611.XAA06142@hokkshideh.jetcafe.org> <20010508160646F.matusita@jp.FreeBSD.org> <3AF82432.F150DB51@mindspring.com> X-Face: '*aj"d@ijeQ:/X}]oM5c5Uz{ZZZk90WPt>a^y4$cGQp8:!H\W=hSM;PuNiidkc]/%,;6VGu e+`&APmz|P;F~OL/QK%;P2vU>\j4X.8@i%j6[%DTs_3J,Fff0)*oHg$A.cDm&jc#pD24WK@{,"Ef!0 P\):.2}8jo-BiZ?X&t$V X-User-Agent: Mew/1.94.2 XEmacs/21.5 (alfalfa) X-FaceAnim: (-O_O-)(O_O- )(_O- )(O- )(- -)( -O)( -O_)( -O_O)(-O_O-) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Dispatcher: imput version 20000228(IM140) Lines: 10 From: Makoto MATSUSHITA To: hackers@FreeBSD.ORG Subject: Re: Question about building source Date: Wed, 09 May 2001 02:54:23 +0900 Message-Id: <20010509025423Q.matusita@jp.FreeBSD.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG tlambert2> FWIW: This breaks if you have updated your C++ compiler, tlambert2> since the .mk files incorrectly override the paths for tlambert2> thing like the RTTI header files and the CRT0 stuff... We have chroot(8) already, no problems:) Perhaps the original poster assume that /vol1/FreeBSD is for a jail(8) environment. -- - Makoto `MAR' MATSUSHITA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 10:56:37 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from femail13.sdc1.sfba.home.com (femail13.sdc1.sfba.home.com [24.0.95.140]) by hub.freebsd.org (Postfix) with ESMTP id 6655837B423 for ; Tue, 8 May 2001 10:56:32 -0700 (PDT) (envelope-from stephen@math.missouri.edu) Received: from math.missouri.edu ([24.12.197.197]) by femail13.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010508175631.CHQF570.femail13.sdc1.sfba.home.com@math.missouri.edu> for ; Tue, 8 May 2001 10:56:31 -0700 Message-ID: <3AF8334E.F8A02B08@math.missouri.edu> Date: Tue, 08 May 2001 12:56:30 -0500 From: Stephen Montgomery-Smith X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Subject: Re: The FreeBSD NVIDIA Driver Initiative References: <3dafganj.fsf@gits.dyndns.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Cyrille Lefevre wrote: > > "Munish Chopra" writes: > > > If the following isn't an appropriate subject for discussion on this > > particular mailing list, please move ensuing discussion to one that is > > more appropriate (possibly -hackers or -hardware). > > NVidia discussions usually are in -multimedia, no ? I can see that in general that one would like to limit day to day discussions about video cards to only the appropriate newsgroups. But I think that an announcement such as this is of such great interest that it should be sent several groups. I don't think that announcements as to how this is proceeding on a day by day basis should be distributed widely. But I do hope that when beta versions are available that this info will also be widely distributed. Also, maybe Munish could send his announcement to the comp.unix.bsd.freebsd newsgroups. -- Stephen Montgomery-Smith stephen@math.missouri.edu http://www.math.missouri.edu/~stephen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 12:17:23 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from sentry.gw.tislabs.com (sentry.gw.tislabs.com [192.94.214.100]) by hub.freebsd.org (Postfix) with ESMTP id 2F45537B423 for ; Tue, 8 May 2001 12:17:20 -0700 (PDT) (envelope-from tfraser@tislabs.com) Received: by sentry.gw.tislabs.com; id PAA09860; Tue, 8 May 2001 15:21:05 -0400 (EDT) From: Received: from bucky.gw.tislabs.com(10.33.60.70) by sentry.gw.tislabs.com via smap (V5.5) id xma009810; Tue, 8 May 01 15:20:19 -0400 Received: (from tfraser@localhost) by bucky.gw.tislabs.com (8.9.3/8.9.3) id PAA05235; Tue, 8 May 2001 15:35:37 -0400 Date: Tue, 8 May 2001 15:35:37 -0400 Message-Id: <200105081935.PAA05235@bucky.gw.tislabs.com> X-Authentication-Warning: bucky.gw.tislabs.com: tfraser set sender to tfraser@bucky.gw.tislabs.com using -f To: freebsd-hackers@FreeBSD.org Subject: announce: kernel security BOF at USENIX Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! NAI Labs is sponsoring a Birds-Of-a-Feather (BOF) session at the 2001 USENIX Annual Technical Conference to give members of the Open Source kernel security community a chance to meet and discuss ideas in person. Crispin Cowan (WireX), Peter Loscocco (NSA), Amon Ott (RSBAC) and Robert Watson (NAI Labs and the FreeBSD Project) have kindly agreed to kick off the session with short presentations on their work. The remainder of the session will be a relatively informal event; the specific issues addressed will be determined by the participants. The posted agenda is as follows: Representatives of several Linux and FreeBSD security projects will present their work and views on providing new support for kernel security extensions. Presenters will include Crispin Cowan (WireX/Immunix), Peter Loscocco (NSA/SELinux), Amon Ott (RSBAC), and Robert Watson (NAI Labs/TrustedBSD). A question and answer period will follow. During this period, all participants will be free to introduce issues that they feel are of critical importance. Likely topics of discussion include requirements for general policy support, the hook-based implementation efforts spawned by the 2001 Linux Kernel Summit, and the future of security in the FreeBSD and Linux kernels. This BOF should be one of several events of interest at the 2001 USENIX Annual Technical Conference. There are five technical sessions with "Security" in their titles. In one of these sessions, Stephen Smalley will be presenting a paper on the NSA's Security-Enhanced Linux project, Robert Watson will be presenting a paper on TrustedBSD, and I (Tim Fraser) will be presenting a paper on LOMAC. The conference is scheduled for 25-30 June 2001 in Boston, Massachusetts, USA. The BOF will be from 8PM to 10PM on Thursday, 28 June. More details can be found at: http://www.usenix.org/events/usenix01/ . - Tim Fraser, NAI Labs To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 16:12:45 2001 Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 618) id 6EC1A37B423; Tue, 8 May 2001 16:12:43 -0700 (PDT) Subject: Call for testers: NatSemi DP83821 gigE driver To: freebsd-hackers@FreeBSD.ORG Date: Tue, 8 May 2001 16:12:43 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20010508231243.6EC1A37B423@hub.freebsd.org> From: wpaul@FreeBSD.ORG (Bill Paul) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks to the nice people at SMC, I finally got my hands on a couple of gigE NICs and have a preliminary driver available for one of them. The if_nge driver supports the NatSemi DP83820 gigabit ethernet MAC, which is used on the EZ Card 1000 (SMC9462TX), the D-Link DFE-500T, the Asante FriendlyNet Giganix 1000TA and 1000TPC, and (I believe) a couple of Addtron cards. These cards also use a NatSemi DP83861 PHY. The driver source is available from the following locations: http://www.freebsd.org/~wpaul/National/4.x 4.x if_nge source http://www.freebsd.org/~wpaul/National/5.x 5.x if_nge source http://www.freebsd.org/~wpaul/National/PHY nsgphy source (4.x and 5.x) Note that this is very alpha code. I can't test it very well as I have only one halfway working test box in the office right now. Don't ask me how well it performs because I DON'T KNOW. I *do* know the following: - 10/100 autoneg works - 1000mbps autoneg with an Alteon AceNIC seems to work - RX and TX at 10/100 works - RX and TX at 1000 works - jumbograms work Note that I'm not supplying a whole checklist of instructions that show how to add the driver to your system, because I want to insure that only the people who already know how to do this will send me bug reports. :) It's possible to build the driver directly into your kernel or compile it as a module. You also must have the nsgphy driver loaded in order for the if_nge driver to work. (It will actually work with the ukphy driver -- but only at 100mbps.) Anyway, if you have one of these cards and can test the code, please do, and let me know the results. -Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 16:21:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [64.0.106.45]) by hub.freebsd.org (Postfix) with ESMTP id 884B537B422; Tue, 8 May 2001 16:21:18 -0700 (PDT) (envelope-from scanner@jurai.net) Received: from localhost (scanner@localhost) by sasami.jurai.net (8.9.3/8.8.7) with ESMTP id TAA03320; Tue, 8 May 2001 19:21:17 -0400 (EDT) Date: Tue, 8 May 2001 19:21:17 -0400 (EDT) From: To: Bill Paul Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Call for testers: NatSemi DP83821 gigE driver In-Reply-To: <20010508231243.6EC1A37B423@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Is there a POC we can all send thanks to for supplying the neccessary HW and doco? Since they seem to be a more friendly company then Intel it would do us well IMO to thank them for it. ============================================================================= -Chris Watson (316) 326-3862 | FreeBSD Consultant, FreeBSD Geek Work: scanner@jurai.net | Open Systems Inc., Wellington, Kansas Home: scanner@deceptively.shady.org | http://open-systems.net ============================================================================= WINDOWS: "Where do you want to go today?" LINUX: "Where do you want to go tomorrow?" BSD: "Are you guys coming or what?" ============================================================================= irc.openprojects.net #FreeBSD -Join the revolution! ICQ: 20016186 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 16:43:55 2001 Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 618) id EB02737B422; Tue, 8 May 2001 16:43:51 -0700 (PDT) Subject: Re: Call for testers: NatSemi DP83821 gigE driver In-Reply-To: from "scanner@jurai.net" at "May 8, 2001 07:21:17 pm" To: scanner@jurai.net Date: Tue, 8 May 2001 16:43:51 -0700 (PDT) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20010508234351.EB02737B422@hub.freebsd.org> From: wpaul@FreeBSD.ORG (Bill Paul) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Is there a POC we can all send thanks to for supplying the neccessary HW > and doco? Since they seem to be a more friendly company then Intel it > would do us well IMO to thank them for it. Actually, it was my contact at Intel who put me in touch with the right people at SMC. As for the documentation, National has all the manuals for their stuff online: http://www.national.com/ds/DP/DP83820.pdf http://www.national.com/ds/DP/DP83821.pdf http://www.national.com/ds/DP/DP83861.pdf Those are the controller and PHY manuals, respectively. (The 83821 is actually the same as the 83820, but 32-bit only. I think Addtron is the only one that uses the 32-bit version.) Note that the DP83861 PHY seems strikingly similar to the LSI Logic L80600 PHY. At least, the manuals look a lot alike. Don't ask me why, I just work here. That said, Intel also agreed to let D-Link release the LXT1001 manual to me, so I have that too. Both D-Link and SMC sell cards using both these chips; SMC got me their cards first, so I'm using them for my testing. I sent a confirmation of receipt and thank you note to the SMC people today. I'm not sure if I should be posting their e-mail addresses all over the lists though. -Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 17:14:41 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [64.0.106.45]) by hub.freebsd.org (Postfix) with ESMTP id 0A59537B423; Tue, 8 May 2001 17:14:35 -0700 (PDT) (envelope-from scanner@jurai.net) Received: from localhost (scanner@localhost) by sasami.jurai.net (8.9.3/8.8.7) with ESMTP id UAA04263; Tue, 8 May 2001 20:14:34 -0400 (EDT) Date: Tue, 8 May 2001 20:14:33 -0400 (EDT) From: To: Bill Paul Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Call for testers: NatSemi DP83821 gigE driver In-Reply-To: <20010508234351.EB02737B422@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Actually, it was my contact at Intel who put me in touch with the right > people at SMC. As for the documentation, National has all the manuals for > their stuff online: > That said, Intel also agreed to let D-Link release the LXT1001 manual > to me, so I have that too. Both D-Link and SMC sell cards using both I will never understand Intel. *shrug* > I sent a confirmation of receipt and thank you note to the SMC > people today. I'm not sure if I should be posting their e-mail addresses > all over the lists though. Excellent. As long as someone did, I think it's important friendly vendors know we appreciate it. ============================================================================= -Chris Watson (316) 326-3862 | FreeBSD Consultant, FreeBSD Geek Work: scanner@jurai.net | Open Systems Inc., Wellington, Kansas Home: scanner@deceptively.shady.org | http://open-systems.net ============================================================================= WINDOWS: "Where do you want to go today?" LINUX: "Where do you want to go tomorrow?" BSD: "Are you guys coming or what?" ============================================================================= irc.openprojects.net #FreeBSD -Join the revolution! ICQ: 20016186 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 17:28:17 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from softweyr.com (mail.dobox.com [208.187.122.44]) by hub.freebsd.org (Postfix) with ESMTP id E3D5737B42C; Tue, 8 May 2001 17:28:10 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from [127.0.0.1] (helo=softweyr.com ident=ed47fc5e69186476f6f701ab957648ce) by softweyr.com with esmtp (Exim 3.16 #1) id 14wX7w-0000IU-00; Sun, 06 May 2001 16:35:44 -0600 Message-ID: <3AF5D1BF.93588882@softweyr.com> Date: Sun, 06 May 2001 16:35:43 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: James Housley Cc: hackers@freebsd.org, questions@freebsd.org, Joel Sherrill Subject: Re: real time References: <3AF30CF8.FC28EDA1@thehousleys.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG James Housley wrote: > > Wes Peters wrote: > > > > Charles: > > > > > > -----Original Message----- > > > > Joao Carlos asked: > > > > > > > > Does FreeBSD has any related work about it as an real time operating > > > > system? > > > > Where can i find information about that ?? > > > > > > Here's one starting point, > > > > > > http://www.rtmx.com/ > > > > > > They offer extensions to OpenBSD. > > > > Used to. RTMX contributed the RTMX code base to OpenBSD and stopped > > distributing it themselves over a year ago. Since then, it has > > disappeared, with no mention of it on the OpenBSD web site. Neither > > OpenBSD.org, rtmx.com, nor rtmx.net has a "search" feature, so > > looking for it is nearly impossible. There is nothing in the OpenBSD > > change logs mentioning RTMX, either. > > > > RTEMS, http://www.oarcorp.com, does compile and run on FreeBSD. I have > been contacted/contacting one of their main people about closer ties. > The tools are in the ports tree. Tell Joel I said Hi. I like everything about RTEMS except the GPL that has infested it. I wish we could convince OARcorp to shed this and come up with a license that allows binary distribution. The licensing issue is the primary advantage eCOS has over RTEMS at this time, doubly ironic now that RootHack owns eCOS. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 17:42:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from beastie.saturn-tech.com (beastie.saturn-tech.com [207.229.19.136]) by hub.freebsd.org (Postfix) with ESMTP id 2503137B422; Tue, 8 May 2001 17:42:18 -0700 (PDT) (envelope-from drussell@saturn-tech.com) Received: from localhost (drussell@localhost) by beastie.saturn-tech.com (8.11.1/8.11.0) with ESMTP id f493Iq505350; Tue, 8 May 2001 21:18:52 -0600 (MDT) (envelope-from drussell@saturn-tech.com) X-Authentication-Warning: beastie.saturn-tech.com: drussell owned process doing -bs Date: Tue, 8 May 2001 21:18:52 -0600 (MDT) From: Doug Russell To: Bill Paul Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Call for testers: NatSemi DP83821 gigE driver In-Reply-To: <20010508234351.EB02737B422@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 8 May 2001, Bill Paul wrote: > I sent a confirmation of receipt and thank you note to the SMC > people today. I'm not sure if I should be posting their e-mail addresses > all over the lists though. Perhaps in this type of situation, someone needs to simply collate a list of names/organisations that have said "thanks", which could be sent as a thank-you by someone in actual contact, such as yourself? We'd just need a mailbox somewhere to collect them. Comments? Later...... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 20: 7:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 618) id 89C1D37B423; Tue, 8 May 2001 20:07:20 -0700 (PDT) Subject: Re: Call for testers: NatSemi DP83821 gigE driver In-Reply-To: from Doug Russell at "May 8, 2001 09:18:52 pm" To: drussell@saturn-tech.com (Doug Russell) Date: Tue, 8 May 2001 20:07:20 -0700 (PDT) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20010509030720.89C1D37B423@hub.freebsd.org> From: wpaul@FreeBSD.ORG (Bill Paul) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > On Tue, 8 May 2001, Bill Paul wrote: > > > I sent a confirmation of receipt and thank you note to the SMC > > people today. I'm not sure if I should be posting their e-mail addresses > > all over the lists though. > > Perhaps in this type of situation, someone needs to simply collate a list > of names/organisations that have said "thanks", which could be sent as a > thank-you by someone in actual contact, such as yourself? > > We'd just need a mailbox somewhere to collect them. > > Comments? No, no more comments. Guys? You're doing it again. Call for testers I said. So test. No more noise. Test. Talk later. Test now. K PLZ THX. -Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 22:10:52 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f180.pav1.hotmail.com [64.4.31.180]) by hub.freebsd.org (Postfix) with ESMTP id 0363137B422 for ; Tue, 8 May 2001 22:10:51 -0700 (PDT) (envelope-from jayeshkrishna@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 8 May 2001 22:10:50 -0700 Received: from 32.97.136.231 by pv1fd.pav1.hotmail.msn.com with HTTP; Wed, 09 May 2001 05:10:50 GMT X-Originating-IP: [32.97.136.231] From: "Jayesh Krishna" To: freebsd-hackers@FreeBSD.ORG Subject: help me please Date: Wed, 09 May 2001 10:40:50 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 09 May 2001 05:10:50.0846 (UTC) FILETIME=[6A42FFE0:01C0D846] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi guys... I am comfortable with Linux Device Drivers. Presently I am trying to write some pseudo-drivers in FreeBSD(4.2-Release). I tried out make_pseudo_driver.sh in the /usr/share/examples/drivers but it does not work :-( I also went through the "FreeBSD Device Driver Writer's Guide" by Eric L. Hernes but it seems to be outdated :-( Please someone point me out to some docs regarding writing device drivers in FreeBSD.... jayesh _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 22:11:35 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id B5BA137B422 for ; Tue, 8 May 2001 22:11:32 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from hornet.unixfreak.org (hornet [63.198.170.140]) by bazooka.unixfreak.org (Postfix) with ESMTP id 282DD3E2B; Tue, 8 May 2001 22:11:32 -0700 (PDT) To: tlambert2@mindspring.com Cc: hackers@FreeBSD.ORG Subject: Re: Getting peer credentials on a unix domain socket In-Reply-To: <3AF80870.39A8705B@mindspring.com>; from tlambert2@mindspring.com on "Tue, 08 May 2001 07:53:36 -0700" Date: Tue, 08 May 2001 22:11:31 -0700 From: Dima Dorfman Message-Id: <20010509051132.282DD3E2B@bazooka.unixfreak.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Terry Lambert writes: > I think adding a new system call is _not_ the way to go; there > are perfectly good fcntl() commands, which fail to work under > FreeBSD, but work just fine under Solaris, SunOS, Linux, and > most other UNIX systems (we are back to "struct fileops" being > major suckage here). Are you objecting to specifically making this a system call, or implementing it in general? I.e., is a socket option acceptable? Basically, this thread is about trying to find a mechanism that can be used to meet these two conditions on unix domain sockets: 1. Server can obtain the credentials of the connect() caller. 2. The above can be done without depending on the connect() caller to send any data through the socket. Condition 1 is easy to meet; SCM_CREDS already exists. On the other hand, nobody has found an existing way to meet condition 2. If you can change this (i.e., describe a way to do this for the list), great. Otherwise, I have a patch[1] that implements this as a socket option, and William Baxter has a patch to implement it as a system call. Dima Dorfman dima@unixfreak.org [1] http://www.unixfreak.org/~dima/home/peercred.diff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue May 8 22:52:26 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from catastrophe.net (ss189-189.dvsn-chi-il.outlook.net [208.45.189.189]) by hub.freebsd.org (Postfix) with SMTP id DEB4D37B42C for ; Tue, 8 May 2001 22:52:18 -0700 (PDT) (envelope-from bill@catastrophe.net) Received: (qmail 26229 invoked by uid 40001); 9 May 2001 05:52:15 -0000 Date: Wed, 9 May 2001 00:52:15 -0500 (CDT) From: Casey Jones To: , , Subject: Getty Problems Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello - It looks like this is nothing new as I've found some questions as such in the mailing list archives, but without solution :( I just did a cvsup and make world to 4.3-RELEASE My kernel was compiled with the same kernel config as before (one that worked without a problem). However, when I boot my machine, I get the following error can't exec getty '/usr/libexec/getty' for port /dev/ttyv0 The boot cycle just hangs and it echo back that error every 30 seconds or so. I've definitely done a cd /dev && /bin/sh MAKEDEV all and all the devices are there properly. I can boot into single user mode and run "/usr/libexec/getty Pc" and get a console. This goes on even if I toy with the different parameters in /etc/ttys I can't seem to find a fix, and it's a bit critical. If you can please help I would appreciate it very much!! Thank you. Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 0: 0:29 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from web5304.mail.yahoo.com (web5304.mail.yahoo.com [216.115.106.113]) by hub.freebsd.org (Postfix) with SMTP id 4866E37B42C for ; Wed, 9 May 2001 00:00:24 -0700 (PDT) (envelope-from vishubp@yahoo.com) Message-ID: <20010509070024.24670.qmail@web5304.mail.yahoo.com> Received: from [203.200.20.3] by web5304.mail.yahoo.com; Wed, 09 May 2001 08:00:24 BST Date: Wed, 9 May 2001 08:00:24 +0100 (BST) From: =?iso-8859-1?q?vishwanath=20pargaonkar?= Subject: how shd i crash dump kernel To: questions@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 X-Loop: FreeBSD.ORG Hi, i have freebsd 4.2 release. i installed my changed new kernel(with modifications in source). since it had problem it crashed at begining saying panic page fault etc.. now i want to debug this kernel. so i enabled dumpdev = my swap partition in /etc/rc.conf . and rebooted. this time i started my original working kernel in single user mode. and then gave savecore -N /kernel.that.panicked /var/crash. but this said no core. y is this? tell me how shd i make my kernel to dump core so that i analyse it. tell me if procedure i followed was right? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 1:57:35 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from rafiu.psi-domain.co.uk (rafiu.psi-domain.co.uk [212.87.84.199]) by hub.freebsd.org (Postfix) with ESMTP id 469B437B422 for ; Wed, 9 May 2001 01:57:29 -0700 (PDT) (envelope-from heckfordj@psi-domain.co.uk) Received: from smtp.psi-domain.co.uk (mail.trident-uk.co.uk [195.166.16.10]) by rafiu.psi-domain.co.uk (Postfix) with SMTP id 62DA0402EC6; Wed, 9 May 2001 09:52:52 +0100 (BST) Date: Wed, 9 May 2001 10:56:12 +0100 From: Jamie Heckford To: Sean Winn Cc: freebsd-hackers@freebsd.org Subject: Re: bin/27205: Listing all users in the passwd file Message-ID: <20010509105612.A4112@storm.psi-domain.co.uk> Reply-To: heckfordj@psi-domain.co.uk References: <20010508153202.9C4B5402EC6@rafiu.psi-domain.co.uk> <5.1.0.14.2.20010509171743.03e700c0@mail.gothic.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <5.1.0.14.2.20010509171743.03e700c0@mail.gothic.net.au>; from sean@gothic.net.au on Wed, May 09, 2001 at 08:30:53 +0100 X-Mailer: Balsa 1.1.1 Lines: 161 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Good points, glad to see the usual FreeBSD approach of allowing only the best into the code ;) Some sort of wrapper makes perfect sense for the sendmail option - I did think of this, but your right, it is best to assume the "user-friendly" approach and not give users tweaking to do out of the box. Could be a possibilty of adding it as a switch / option to pw(8), with NIS capabilities? (Rewritten in C of course) Would this be deemed useful and anyone happy to review a patch? Jamie On 2001.05.09 08:30 Sean Winn wrote: > At 04:32 8/05/01 +0100, you wrote: > > > >Number: 27205 > > >Category: bin > > >Synopsis: Listing all users in the passwd file > > >Confidential: no > > >Severity: non-critical > > >Priority: low > > >Responsible: freebsd-bugs > > >State: open > > >Quarter: > > >Keywords: > > >Date-Required: > > >Class: change-request > > >Submitter-Id: current-users > > >Arrival-Date: Tue May 08 08:40:00 PDT 2001 > > >Closed-Date: > > >Last-Modified: > > >Originator: Jamie Heckford > > >Release: FreeBSD 4.2-STABLE i386 > > >Organization: > >Psi-Domain Limited > > >Environment: > > > >FreeBSD storm.psi-domain.co.uk 4.2-STABLE FreeBSD 4.2-STABLE #2: Fri > >Mar 2 10:32:25 GMT 2001 > > > > >Description: > > > >I was recently trying to discover a way of getting a list of all users > on > >one of my systems, and could not find an easy way to do it. > > > >I discovered the following awk script that prints out all users on the > system > >(from /etc/passwd). (Courtesy of sendmail.org) > > > >awk -F: '$3 > 100 { print $1 }' /etc/passwd > > > >Which will print out a list of all users in the passwd file wuth a UID > greater > >than 100. > > > >Could this be turned into a command such as "userlist", and/or would it > be > >deemed usefull? > > Not particularly, as it doesn't work with NIS, and won't work with > nsswitch.conf. > > A small perl script or C program using getpwent() in a loop is more > effective, as it takes into account both NIS and nsswitch.conf > > > > > >Another good feature that many people get stuck on is for sending email > to > >all users on the system. Maybe it could be included as part of the > sendmail > >distro, with something like: > > > >awk -F: '$3 > 100 { print $1 }' /etc/passwd > /etc/mail/allusers > > Note: it also picks up 'nobody' > > >and put in cron.daily. > > > >This could then be a default in /etc/mail/aliases: > > > >allusers: :include:/etc/mail/allusers > > > >What do you think? :) > > Sure. Give spammers one address to email *everyone* on your system in one > > fell swoop... > > In itself, it's a bad default; I'd use a small script that actually > checks > the source address (yes, easily forged, but rarely done on incoming spam) > > before sending out the email to all users. > > In fact, that's what I do... > > (http://www.gothic.net.au/dist/allusers.c) > > The domain and group are hardcoded, but easy enough to change. > > >Jamie > > > > > > >How-To-Repeat: > > > >userlist > >-------- > > > >awk -F: '$3 > 100 { print $1 }' /etc/passwd > > > >Sendmail > >------- > > > >awk -F: '$3 > 100 { print $1 }' /etc/passwd > /etc/mail/allusers > >echo "allusers: :include:/etc/mail/allusers" >> /etc/aliases ; > newaliases > >echo "#\!/bin/sh" > /etc/periodic/daily/350.allusers > >echo "awk -F: '$3 > 100 { print $1 }' /etc/passwd > /etc/mail/allusers" > >> > >/etc/periodic/daily/350.allusers > >chmod 0755 /etc/periodic/daily/350.allusers > > > > >Fix: > > > >Tested the above and worked fine, just need someone to tell me its great > >or completly useless! :) > > > > >Release-Note: > > >Audit-Trail: > > >Unformatted: > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > >with "unsubscribe freebsd-bugs" in the body of the message > > > -- Jamie Heckford Network Operations Manager Psi-Domain - Innovative Linux Solutions. Ask Us How. FreeBSD - The power to serve Join our mailing list and stay informed by emailing majordomo@psi-domain.co.uk with the line: subscribe collective ===================================== email: heckfordj@psi-domain.co.uk web: http://www.psi-domain.co.uk/ tel: +44 (0)1737 789 246 fax: +44 (0)1737 789 245 mobile: +44 (0)7866 724 224 ===================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 5:38:57 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from catastrophe.net (ss189-189.dvsn-chi-il.outlook.net [208.45.189.189]) by hub.freebsd.org (Postfix) with SMTP id 0853E37B424 for ; Wed, 9 May 2001 05:38:50 -0700 (PDT) (envelope-from bill@catastrophe.net) Received: (qmail 27302 invoked by uid 40001); 9 May 2001 12:38:48 -0000 Date: Wed, 9 May 2001 07:38:48 -0500 (CDT) From: Casey Jones To: , , Subject: Re: Getty Problems In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello - Well, I found the problem I was experiencing. /etc/rc was sort of "blown away" during my mergemaster, and it caused no filesystem mounts to happen. So now that it is fixed, life is good. Thanks for reading this! On Wed, 9 May 2001, Casey Jones wrote: > > Hello - > > It looks like this is nothing new as I've found some questions as such > in the mailing list archives, but without solution :( > > I just did a cvsup and make world to 4.3-RELEASE > > My kernel was compiled with the same kernel config as before (one that > worked without a problem). > > However, when I boot my machine, I get the following error > > can't exec getty '/usr/libexec/getty' for port /dev/ttyv0 > > The boot cycle just hangs and it echo back that error every 30 seconds or > so. > > I've definitely done a > > cd /dev && /bin/sh MAKEDEV all > > and all the devices are there properly. > > I can boot into single user mode and run "/usr/libexec/getty Pc" and get a > console. > > This goes on even if I toy with the different parameters in /etc/ttys > > I can't seem to find a fix, and it's a bit critical. If you can please > help I would appreciate it very much!! > > Thank you. > > Bill > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 7:38:25 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id C986837B422 for ; Wed, 9 May 2001 07:38:16 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 1645 invoked by uid 1000); 9 May 2001 14:37:44 -0000 Date: Wed, 9 May 2001 17:37:44 +0300 From: Peter Pentchev To: Jamie Heckford Cc: Sean Winn , freebsd-hackers@freebsd.org Subject: Re: bin/27205: Listing all users in the passwd file Message-ID: <20010509173744.F645@ringworld.oblivion.bg> Mail-Followup-To: Jamie Heckford , Sean Winn , freebsd-hackers@freebsd.org References: <20010508153202.9C4B5402EC6@rafiu.psi-domain.co.uk> <5.1.0.14.2.20010509171743.03e700c0@mail.gothic.net.au> <20010509105612.A4112@storm.psi-domain.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010509105612.A4112@storm.psi-domain.co.uk>; from heckfordj@psi-domain.co.uk on Wed, May 09, 2001 at 10:56:12AM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'd think id(1) would be a more proper place, as it already knows how to format various passwd(5) and group(5) information. How about the attached patch? (and I'm probably starting another of those bikesheds as to whether new options should be added to existing utilities..) G'luck, Peter -- This sentence contains exactly threee erors. On Wed, May 09, 2001 at 10:56:12AM +0100, Jamie Heckford wrote: > Good points, glad to see the usual FreeBSD approach of allowing > only the best into the code ;) > > Some sort of wrapper makes perfect sense for the sendmail option - > I did think of this, but your right, it is best to assume the > "user-friendly" approach > and not give users tweaking to do out of the box. > > Could be a possibilty of adding it as a switch / option to pw(8), with > NIS capabilities? (Rewritten in C of course) Would this be deemed useful > and anyone happy to review a patch? [snip] > > > > > >I discovered the following awk script that prints out all users on the > > system > > >(from /etc/passwd). (Courtesy of sendmail.org) > > > > > >awk -F: '$3 > 100 { print $1 }' /etc/passwd > > > > > >Which will print out a list of all users in the passwd file wuth a UID > > greater > > >than 100. > > > > > >Could this be turned into a command such as "userlist", and/or would it > > be > > >deemed usefull? > > > > Not particularly, as it doesn't work with NIS, and won't work with > > nsswitch.conf. > > > > A small perl script or C program using getpwent() in a loop is more > > effective, as it takes into account both NIS and nsswitch.conf Index: src/usr.bin/id/id.1 =================================================================== RCS file: /home/ncvs/src/usr.bin/id/id.1,v retrieving revision 1.9 diff -u -r1.9 id.1 --- src/usr.bin/id/id.1 2000/11/20 19:20:48 1.9 +++ src/usr.bin/id/id.1 2001/05/09 14:33:53 @@ -43,21 +43,28 @@ .Nd return user identity .Sh SYNOPSIS .Nm +.Op Fl a .Op Ar user .Nm -.Fl G Op Fl n +.Fl G Op Fl an .Op Ar user .Nm .Fl P +.Op Fl a .Op Ar user .Nm -.Fl g Op Fl nr +.Fl g +.Op Fl a | Fl r +.Op Fl n .Op Ar user .Nm .Fl p +.Op Fl a .Op Ar user .Nm -.Fl u Op Fl nr +.Fl u +.Op Fl a | Fl r +.Op Fl n .Op Ar user .Sh DESCRIPTION The @@ -80,6 +87,10 @@ as white-space separated numbers, in no particular order. .It Fl P Display the id as a password file entry. +.It Fl a +Display information about all system users, not just about the calling process. +This flag cannot be used together with +.Fl r . .It Fl g Display the effective group ID as a number. .It Fl n @@ -118,6 +129,8 @@ and .Fl u options instead of the effective ID. +This flag cannot be used together with +.Fl a . .It Fl u Display the effective user ID as a number. .El Index: src/usr.bin/id/id.c =================================================================== RCS file: /home/ncvs/src/usr.bin/id/id.c,v retrieving revision 1.12 diff -u -r1.12 id.c --- src/usr.bin/id/id.c 1999/09/06 20:07:12 1.12 +++ src/usr.bin/id/id.c 2001/05/09 14:33:53 @@ -55,6 +55,9 @@ #include #include +int Gflag, Pflag, aflag, gflag, id, nflag, pflag, rflag, uflag; + +int id_doit __P((struct passwd *)); void current __P((void)); void pline __P((struct passwd *)); void pretty __P((struct passwd *)); @@ -69,12 +72,10 @@ int argc; char *argv[]; { - struct group *gr; struct passwd *pw; - int Gflag, Pflag, ch, gflag, id, nflag, pflag, rflag, uflag; + int ch; - Gflag = Pflag = gflag = nflag = pflag = rflag = uflag = 0; - while ((ch = getopt(argc, argv, "PGgnpru")) != -1) + while ((ch = getopt(argc, argv, "PGagnpru")) != -1) switch(ch) { case 'G': Gflag = 1; @@ -82,6 +83,9 @@ case 'P': Pflag = 1; break; + case 'a': + aflag = 1; + break; case 'g': gflag = 1; break; @@ -104,6 +108,9 @@ argc -= optind; argv += optind; + if (aflag && (rflag || (argc != 0))) + usage(); + switch(Gflag + Pflag + gflag + pflag + uflag) { case 1: break; @@ -115,7 +122,20 @@ usage(); } - pw = *argv ? who(*argv) : NULL; + if (!aflag) { + pw = *argv ? who(*argv) : NULL; + id_doit(pw); + } else { + while ((pw = getpwent()) != NULL) + id_doit(pw); + } +} + +int +id_doit(pw) + struct passwd *pw; +{ + struct group *gr; if (gflag) { id = pw ? pw->pw_gid : rflag ? getgid() : getegid(); @@ -123,7 +143,7 @@ (void)printf("%s\n", gr->gr_name); else (void)printf("%u\n", id); - exit(0); + return (0); } if (uflag) { @@ -132,29 +152,29 @@ (void)printf("%s\n", pw->pw_name); else (void)printf("%u\n", id); - exit(0); + return (0); } if (Gflag) { group(pw, nflag); - exit(0); + return (0); } if (Pflag) { pline(pw); - exit(0); + return (0); } if (pflag) { pretty(pw); - exit(0); + return (0); } if (pw) user(pw); - else + else if (!aflag) current(); - exit(0); + return (0); } void To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 8: 6:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id DA91237B423 for ; Wed, 9 May 2001 08:06:47 -0700 (PDT) (envelope-from adsharma@sharmas.dhs.org) Received: from sharmas.dhs.org (cpe-66-1-147-119.ca.sprintbbd.net [66.1.147.119]) by hawk.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id IAA29057 for ; Wed, 9 May 2001 08:06:38 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id IAA02819 for hackers@freebsd.org; Wed, 9 May 2001 08:02:09 -0700 Date: Wed, 9 May 2001 08:02:08 -0700 From: Arun Sharma To: hackers@freebsd.org Subject: FreeBSD ld.so performance ? Message-ID: <20010509080208.A2814@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG http://www.suse.de/~bastian/Export/linking.txt Has anyone done a comparative study ? -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 8:12:24 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from backup.meridianksi.com (backup.meridianksi.com [207.86.113.195]) by hub.freebsd.org (Postfix) with ESMTP id 4ADA037B43C for ; Wed, 9 May 2001 08:12:20 -0700 (PDT) (envelope-from rdewalt@meridianksi.com) Received: from RD933 ([207.86.113.199]) by backup.meridianksi.com (Post.Office MTA v3.5.3 release 223 ID# 0-57398U100L2S100V35) with SMTP id com for ; Wed, 9 May 2001 11:09:45 -0400 Message-Id: <3.0.3.32.20010509111058.019020f8@mail.meridianksi.com> X-Sender: rdewalt@mail.meridianksi.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Wed, 09 May 2001 11:10:58 -0400 To: freebsd-hackers@freebsd.org From: rdewalt@meridianksi.com (Ryan Dewalt) Subject: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 (I attempted to post this to freebsd-hackers once before, but for some reason, my attempt hadn't made it to the list, so I swapped to a different e-mail account and posted this once again.) I've recently reverse engineered a small piece of hardware, The 'Microsoft Sidewinder Strategic Commander" (MSSC hereafter). Official page: http://www.microsoft.com/products/hardware/sidewinder/devices/SComm/ I've done some cursory searching and found no information on this device under FreeBSD, so in the spirit of hacking, I wrote my own. And have fleshed out how to use it for an input device on FreeBSD. (The MSSC is a 'game device' designed for the left hand with Real Time Strategy games in mind. X/Y/Rotate, plus 12 individual buttons and a 3pos slider.) I've gone as far as to cobble together a 'Frankenstein' version of 'moused' and it works just fine. I have been using it as a left handed mouse on my one machine for about three days now. Since I don't exactly have immediate usage for the device, and using it as a mouse is not the most optimal. (X only supports buttons 1-5 out of the 12 of the device, plus the granularity of the device is not that great for fine work. It was meant to be a game controller after all.) I'd like to release my code to the public for comments, and perhaps someone else can find use of my work. BUT, given the way the world has appeared to be to me, with legal battles and wars over intellectual properties I'm coming to this list for advice before releasing anything. However this device might have alot of potential for an input device for some other project. 1: Legally 'Covering My Fannie'. Speaking of Microsoft and Reverse Engineering is often done with the same care as someone handling a crystal-meth addicted rampaging bull. For personal reasons I do not wish to wander over to the Dark Side of the Force, and release the specifications knowingly stepping on potential legal toes. As I said above, I didn't need any unusual methods to RE the device, very 'clean room' as it were. The machine that I did all the work on is a dedicated FreeBSD computer, the Official Drivers were/are not even installed in any of the computers under my control during the whole time. That, coupled with the nature of USB making it almost trivial to RE a gamepad, it was not a particularly hard task for me. 2: Should I release the code that is wholly my own under the BSD license? Its experimental and practically useless as anything other than experiment/demonstration. The msscd program is a hack. A very ugly hack, but it works. However it was created by taking a chainsaw to moused and removing what I didn't need... That in and of itself has other issues as well. Can I release my findings without having the business end of a lawyer pointed at me? As you can probably guess, this is my first real attempt at this. - -Ryan -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use iQA/AwUBOvleAcMKzu1ijLJKEQItbwCfbSi0/m+JkAwcQB/KL45dLcjx47wAnjaT MEGq4VGVw5FjpU+e81kYymIz =MoWK -----END PGP SIGNATURE----- -- Ryan Dewalt - Code Poet rdewalt@meridianksi.com . 7033229565x116 "When I say rare I mean just let it look at the oven in terror, then bring it out to me." - Wolf "The 10th Kingdom" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 8:19:11 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp6.mindspring.com (smtp6.mindspring.com [207.69.200.110]) by hub.freebsd.org (Postfix) with ESMTP id C701237B424 for ; Wed, 9 May 2001 08:19:08 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0261.cvx21-bradley.dialup.earthlink.net [209.179.193.6]) by smtp6.mindspring.com (8.9.3/8.8.5) with ESMTP id LAA19655; Wed, 9 May 2001 11:19:02 -0400 (EDT) Message-ID: <3AF95FFB.40DCF441@mindspring.com> Date: Wed, 09 May 2001 08:19:23 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Makoto MATSUSHITA Cc: hackers@FreeBSD.ORG Subject: Re: Question about building source References: <200105080611.XAA06142@hokkshideh.jetcafe.org> <20010508160646F.matusita@jp.FreeBSD.org> <3AF82432.F150DB51@mindspring.com> <20010509025423Q.matusita@jp.FreeBSD.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Makoto MATSUSHITA wrote: > > tlambert2> FWIW: This breaks if you have updated your C++ compiler, > tlambert2> since the .mk files incorrectly override the paths for > tlambert2> thing like the RTTI header files and the CRT0 stuff... > > We have chroot(8) already, no problems:) Perhaps the original poster > assume that /vol1/FreeBSD is for a jail(8) environment. It still breaks. See bsd.orig.mk; you _can't_ use a compiler other than one installed in the default location, or it will override the compiler defaults which tell it where the correct header and crt0 files live. Really. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 8:45:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from rafiu.psi-domain.co.uk (rafiu.psi-domain.co.uk [212.87.84.199]) by hub.freebsd.org (Postfix) with ESMTP id 2969137B423 for ; Wed, 9 May 2001 08:45:22 -0700 (PDT) (envelope-from heckfordj@psi-domain.co.uk) Received: from smtp.psi-domain.co.uk (mail.trident-uk.co.uk [195.166.16.10]) by rafiu.psi-domain.co.uk (Postfix) with SMTP id CE814402EC6; Wed, 9 May 2001 16:17:37 +0100 (BST) Date: Wed, 9 May 2001 17:20:58 +0100 From: Jamie Heckford To: Peter Pentchev Cc: freebsd-hackers@freebsd.org Subject: Re: bin/27205: Listing all users in the passwd file Message-ID: <20010509172058.E5971@storm.psi-domain.co.uk> Reply-To: heckfordj@psi-domain.co.uk References: <20010508153202.9C4B5402EC6@rafiu.psi-domain.co.uk> <5.1.0.14.2.20010509171743.03e700c0@mail.gothic.net.au> <20010509105612.A4112@storm.psi-domain.co.uk> <20010509173744.F645@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <20010509173744.F645@ringworld.oblivion.bg>; from roam@orbitel.bg on Wed, May 09, 2001 at 15:37:44 +0100 X-Mailer: Balsa 1.1.1 Lines: 267 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Yup, thats the sort of thing I meant. Worthy of a review by any of the commiters? I can remember a big thing going around about modifications to existing programs a couple of weeks ago, this was not intended to upset / annoy / start a flame war anyone! :) Jamie On 2001.05.09 15:37 Peter Pentchev wrote: > I'd think id(1) would be a more proper place, as it already knows how to > format various passwd(5) and group(5) information. > > How about the attached patch? (and I'm probably starting another of > those > bikesheds as to whether new options should be added to existing > utilities..) > > G'luck, > Peter > > -- > This sentence contains exactly threee erors. > > On Wed, May 09, 2001 at 10:56:12AM +0100, Jamie Heckford wrote: > > Good points, glad to see the usual FreeBSD approach of allowing > > only the best into the code ;) > > > > Some sort of wrapper makes perfect sense for the sendmail option - > > I did think of this, but your right, it is best to assume the > > "user-friendly" approach > > and not give users tweaking to do out of the box. > > > > Could be a possibilty of adding it as a switch / option to pw(8), with > > NIS capabilities? (Rewritten in C of course) Would this be deemed > useful > > and anyone happy to review a patch? > [snip] > > > > > > > >I discovered the following awk script that prints out all users on > the > > > system > > > >(from /etc/passwd). (Courtesy of sendmail.org) > > > > > > > >awk -F: '$3 > 100 { print $1 }' /etc/passwd > > > > > > > >Which will print out a list of all users in the passwd file wuth a > UID > > > greater > > > >than 100. > > > > > > > >Could this be turned into a command such as "userlist", and/or would > it > > > be > > > >deemed usefull? > > > > > > Not particularly, as it doesn't work with NIS, and won't work with > > > nsswitch.conf. > > > > > > A small perl script or C program using getpwent() in a loop is more > > > effective, as it takes into account both NIS and nsswitch.conf > > Index: src/usr.bin/id/id.1 > =================================================================== > RCS file: /home/ncvs/src/usr.bin/id/id.1,v > retrieving revision 1.9 > diff -u -r1.9 id.1 > --- src/usr.bin/id/id.1 2000/11/20 19:20:48 1.9 > +++ src/usr.bin/id/id.1 2001/05/09 14:33:53 > @@ -43,21 +43,28 @@ > .Nd return user identity > .Sh SYNOPSIS > .Nm > +.Op Fl a > .Op Ar user > .Nm > -.Fl G Op Fl n > +.Fl G Op Fl an > .Op Ar user > .Nm > .Fl P > +.Op Fl a > .Op Ar user > .Nm > -.Fl g Op Fl nr > +.Fl g > +.Op Fl a | Fl r > +.Op Fl n > .Op Ar user > .Nm > .Fl p > +.Op Fl a > .Op Ar user > .Nm > -.Fl u Op Fl nr > +.Fl u > +.Op Fl a | Fl r > +.Op Fl n > .Op Ar user > .Sh DESCRIPTION > The > @@ -80,6 +87,10 @@ > as white-space separated numbers, in no particular order. > .It Fl P > Display the id as a password file entry. > +.It Fl a > +Display information about all system users, not just about the calling > process. > +This flag cannot be used together with > +.Fl r . > .It Fl g > Display the effective group ID as a number. > .It Fl n > @@ -118,6 +129,8 @@ > and > .Fl u > options instead of the effective ID. > +This flag cannot be used together with > +.Fl a . > .It Fl u > Display the effective user ID as a number. > .El > Index: src/usr.bin/id/id.c > =================================================================== > RCS file: /home/ncvs/src/usr.bin/id/id.c,v > retrieving revision 1.12 > diff -u -r1.12 id.c > --- src/usr.bin/id/id.c 1999/09/06 20:07:12 1.12 > +++ src/usr.bin/id/id.c 2001/05/09 14:33:53 > @@ -55,6 +55,9 @@ > #include > #include > > +int Gflag, Pflag, aflag, gflag, id, nflag, pflag, rflag, uflag; > + > +int id_doit __P((struct passwd *)); > void current __P((void)); > void pline __P((struct passwd *)); > void pretty __P((struct passwd *)); > @@ -69,12 +72,10 @@ > int argc; > char *argv[]; > { > - struct group *gr; > struct passwd *pw; > - int Gflag, Pflag, ch, gflag, id, nflag, pflag, rflag, uflag; > + int ch; > > - Gflag = Pflag = gflag = nflag = pflag = rflag = uflag = 0; > - while ((ch = getopt(argc, argv, "PGgnpru")) != -1) > + while ((ch = getopt(argc, argv, "PGagnpru")) != -1) > switch(ch) { > case 'G': > Gflag = 1; > @@ -82,6 +83,9 @@ > case 'P': > Pflag = 1; > break; > + case 'a': > + aflag = 1; > + break; > case 'g': > gflag = 1; > break; > @@ -104,6 +108,9 @@ > argc -= optind; > argv += optind; > > + if (aflag && (rflag || (argc != 0))) > + usage(); > + > switch(Gflag + Pflag + gflag + pflag + uflag) { > case 1: > break; > @@ -115,7 +122,20 @@ > usage(); > } > > - pw = *argv ? who(*argv) : NULL; > + if (!aflag) { > + pw = *argv ? who(*argv) : NULL; > + id_doit(pw); > + } else { > + while ((pw = getpwent()) != NULL) > + id_doit(pw); > + } > +} > + > +int > +id_doit(pw) > + struct passwd *pw; > +{ > + struct group *gr; > > if (gflag) { > id = pw ? pw->pw_gid : rflag ? getgid() : getegid(); > @@ -123,7 +143,7 @@ > (void)printf("%s\n", gr->gr_name); > else > (void)printf("%u\n", id); > - exit(0); > + return (0); > } > > if (uflag) { > @@ -132,29 +152,29 @@ > (void)printf("%s\n", pw->pw_name); > else > (void)printf("%u\n", id); > - exit(0); > + return (0); > } > > if (Gflag) { > group(pw, nflag); > - exit(0); > + return (0); > } > > if (Pflag) { > pline(pw); > - exit(0); > + return (0); > } > > if (pflag) { > pretty(pw); > - exit(0); > + return (0); > } > > if (pw) > user(pw); > - else > + else if (!aflag) > current(); > - exit(0); > + return (0); > } > > void > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > > -- Jamie Heckford Network Operations Manager Psi-Domain - Innovative Linux Solutions. Ask Us How. FreeBSD - The power to serve Join our mailing list and stay informed by emailing majordomo@psi-domain.co.uk with the line: subscribe collective ===================================== email: heckfordj@psi-domain.co.uk web: http://www.psi-domain.co.uk/ tel: +44 (0)1737 789 246 fax: +44 (0)1737 789 245 mobile: +44 (0)7866 724 224 ===================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 9: 2: 6 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from updraft.jp.freebsd.org (updraft.jp.FreeBSD.ORG [210.157.158.42]) by hub.freebsd.org (Postfix) with ESMTP id C937737B422 for ; Wed, 9 May 2001 09:02:02 -0700 (PDT) (envelope-from matusita@jp.FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by updraft.jp.freebsd.org (8.11.3+3.4W/8.11.3) with ESMTP/inet id f49G1x838197 for ; Thu, 10 May 2001 01:02:00 +0900 (JST) (envelope-from matusita@jp.FreeBSD.org) In-Reply-To: <3AF95FFB.40DCF441@mindspring.com> References: <3AF82432.F150DB51@mindspring.com> <20010509025423Q.matusita@jp.FreeBSD.org> <3AF95FFB.40DCF441@mindspring.com> X-Face: '*aj"d@ijeQ:/X}]oM5c5Uz{ZZZk90WPt>a^y4$cGQp8:!H\W=hSM;PuNiidkc]/%,;6VGu e+`&APmz|P;F~OL/QK%;P2vU>\j4X.8@i%j6[%DTs_3J,Fff0)*oHg$A.cDm&jc#pD24WK@{,"Ef!0 P\):.2}8jo-BiZ?X&t$V X-User-Agent: Mew/1.94.2 XEmacs/21.5 (alfalfa) X-FaceAnim: (-O_O-)(O_O- )(_O- )(O- )(- -)( -O)( -O_)( -O_O)(-O_O-) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Dispatcher: imput version 20000228(IM140) Lines: 18 From: Makoto MATSUSHITA To: hackers@FreeBSD.ORG Subject: Re: Question about building source Date: Thu, 10 May 2001 01:01:42 +0900 Message-Id: <20010510010142X.matusita@jp.FreeBSD.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG tlambert2> It still breaks. See bsd.orig.mk; you _can't_ use a tlambert2> compiler other than one installed in the default location, tlambert2> or it will override the compiler defaults which tell it tlambert2> where the correct header and crt0 files live. Really. ??? If you run 'chroot /vol1/FreeBSD /bin/sh', you'll get an environment that /vol1/FreeBSD is /; Compiler is in /usr/bin/cc. Headers are in /usr/include. Crt* files are in /usr/lib. All files are located as it should be. If it doesn't work as you have said, "make release' also _doesn't_ work; we cannot make a distribution. Obviously, it's wrong:) -- - Makoto `MAR' MATSUSHITA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 13:42:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from thought.adamantsys.com (w120.z064002057.sjc-ca.dsl.cnc.net [64.2.57.120]) by hub.freebsd.org (Postfix) with ESMTP id 8108637B422 for ; Wed, 9 May 2001 13:42:32 -0700 (PDT) (envelope-from brian@CSUA.Berkeley.EDU) Received: from localhost (localhost [127.0.0.1]) by thought.adamantsys.com (8.11.2/8.11.2) with ESMTP id f49Kh6s02505; Wed, 9 May 2001 13:43:07 -0700 (PDT) (envelope-from brian@CSUA.Berkeley.EDU) Date: Wed, 9 May 2001 13:43:06 -0700 (PDT) From: "Brian W. Buchanan" X-Sender: brian@thought.adamantsys.com To: Ryan Dewalt Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: USB HIDs In-Reply-To: <3.0.3.32.20010509111058.019020f8@mail.meridianksi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 9 May 2001, Ryan Dewalt wrote: > I've recently reverse engineered a small piece of hardware, The > 'Microsoft Sidewinder Strategic Commander" (MSSC hereafter). What do you mean by "reverse-engineering"? I wrote a userland USB HID driver using libusb for an experimental RTS game engine as an afternoon project -- no "reverse-engineering" required at all, and my driver works equally well with the Strategic Commander or a Gravis USB gamepad or probably any other USB mouse or joystick-like device. usb(3) is your friend. I haven't yet figured out how to turn on the lights under some of the buttons, however. If you figured this out, please tell me how to do it. :) Brian -- Brian Buchanan brian@CSUA.Berkeley.EDU -------------------------------------------------------------------------- FreeBSD - The Power to Serve! http://www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 14: 7:37 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ajax1.sovam.com (ajax1.sovam.com [194.67.1.172]) by hub.freebsd.org (Postfix) with ESMTP id 2BC7937B422 for ; Wed, 9 May 2001 14:07:34 -0700 (PDT) (envelope-from avn@any.ru) Received: from ts9-a418.dial.sovam.com ([195.239.71.162]:1094 "EHLO srv2.any" ident: "root" whoson: "-unregistered-" smtp-auth: TLS-CIPHER: "EDH-RSA-DES-CBC3-SHA keybits 192/192 version TLSv1/SSLv3" TLS-PEER: ) by ajax1.sovam.com with ESMTP id ; Thu, 10 May 2001 01:07:20 +0400 Received: from localhost (avn@localhost) by srv2.any (8.11.3/8.11.3) with ESMTP id f49L72Z05615 for ; Thu, 10 May 2001 01:07:02 +0400 (MSD) (envelope-from avn@any.ru) X-Authentication-Warning: srv2.any: avn owned process doing -bs Date: Thu, 10 May 2001 01:07:02 +0400 (MSD) From: "Alexey V. Neyman" X-X-Sender: To: Subject: sysctl / CTL_DEBUG Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hello there! There is the following phrase in sysctl(3) manpage: ========== The system defines twenty (struct ctldebug) variables named debug0 through debug19. ========== Though `sysctl debug | wc -l` shows 43 sysctl variables. And, I was unable to locate definition of 'struct ctldebug' neither in /usr/include/sys/sysctl.h (as promised by man page) nor in source tree. May I ask for clarifications? -------------------------------------+------------------------------ "May the Sun and Water always | Regards, Alexey V. Neyman fall upon you!" (Supox, from SC2) | mailto: avn@any.ru -------------------------------------+------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 15:15:45 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hokkshideh.jetcafe.org (hokkshideh.jetcafe.org [205.147.43.4]) by hub.freebsd.org (Postfix) with ESMTP id DAD3337B422 for ; Wed, 9 May 2001 15:15:42 -0700 (PDT) (envelope-from dave@jetcafe.org) Received: from hokkshideh.jetcafe.org (localhost [127.0.0.1]) by hokkshideh.jetcafe.org (8.8.8/8.8.5) with ESMTP id PAA16536; Wed, 9 May 2001 15:15:28 -0700 (PDT) Message-Id: <200105092215.PAA16536@hokkshideh.jetcafe.org> X-Mailer: exmh version 2.2 06/23/2000 with version: MH 6.8.4 #1[UCI] To: tlambert2@mindspring.com Cc: Makoto MATSUSHITA , hackers@FreeBSD.ORG Subject: Re: Question about building source Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 09 May 2001 15:15:27 -0700 From: Dave Hayes Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Terry Lambert writes: > It still breaks. See bsd.orig.mk; you _can't_ use a compiler > other than one installed in the default location, or it will > override the compiler defaults which tell it where the correct > header and crt0 files live. Really. So this breaks the C++ compiler and any apps that were compiled with this? Forgive me if I don't understand this... ------ Dave Hayes - Consultant - Altadena CA, USA - dave@jetcafe.org >>> The opinions expressed above are entirely my own <<< "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 18: 8:41 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 7869737B422 for ; Wed, 9 May 2001 18:08:37 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 958FA6ACBE; Thu, 10 May 2001 10:38:35 +0930 (CST) Date: Thu, 10 May 2001 10:38:35 +0930 From: Greg Lehey To: Jayesh Krishna Cc: freebsd-hackers@FreeBSD.ORG Subject: Writing device drivers (was: help me please) Message-ID: <20010510103835.A56501@wantadilla.lemis.com> 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 jayeshkrishna@hotmail.com on Wed, May 09, 2001 at 10:40:50AM +0530 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday, 9 May 2001 at 10:40:50 +0530, Jayesh Krishna wrote: > Hi guys... > I am comfortable with Linux Device Drivers. Presently I am trying > to write some pseudo-drivers in FreeBSD(4.2-Release). I tried out > make_pseudo_driver.sh > in the /usr/share/examples/drivers but it does not work :-( I also > went through the "FreeBSD Device Driver Writer's Guide" by Eric L. > Hernes but it seems to be outdated :-( > Please someone point me out to some docs regarding writing device > drivers in FreeBSD.... "UTSL". Take a look at a similar driver and get to understand it. I'm afraid that this is an area which is woefully undocumented. You'll also get more replies if you put a useful text on the Subject: line. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 18:29: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from dns1.ahaza.com (maitai.ahaza.com [209.180.220.98]) by hub.freebsd.org (Postfix) with ESMTP id 7CC6937B422 for ; Wed, 9 May 2001 18:28:59 -0700 (PDT) (envelope-from twiess@ahaza.com) Received: from relay.ux.ahaza.com ([209.180.221.130]) by dns1.ahaza.com (8.11.1/8.11.1) with ESMTP id f4A1SwF49982 for ; Wed, 9 May 2001 18:28:59 -0700 (PDT) (envelope-from twiess@ahaza.com) Received: from eunice.camelot.ahaza.com (eunice.camelot.ahaza.com [172.16.30.18]) by relay.ux.ahaza.com (8.11.1/8.11.1) with ESMTP id f4A1Swq68419 for ; Wed, 9 May 2001 18:28:58 -0700 (PDT) (envelope-from twiess@ahaza.com) Received: from akira.ahaza.com ([172.16.30.230]) by eunice.camelot.ahaza.com with Microsoft SMTPSVC(5.0.2195.1600); Wed, 9 May 2001 18:26:38 -0700 Date: Wed, 9 May 2001 18:31:52 +0000 (GMT) From: Tim Wiess X-X-Sender: To: Subject: KSD Message-ID: <20010509183110.G316-100000@akira.ahaza.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 10 May 2001 01:26:38.0523 (UTC) FILETIME=[427728B0:01C0D8F0] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, Lately I have been reading about the work that is being done to support kernel scheduled entities in FreeBSD. I am very anxious to look at the code for this and see if I might be able to contribute anything to the project. Although, it doesn't look like the code has been merged into CURRENT yet. Is this true? If so, does anyone know where the current development for this is being done? Thanks. tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 18:36:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.viasoft.com.cn (unknown [61.153.1.177]) by hub.freebsd.org (Postfix) with ESMTP id 38CEF37B422 for ; Wed, 9 May 2001 18:36:04 -0700 (PDT) (envelope-from bsddiy@163.net) Received: from xyf ([192.168.1.54]) by mail.viasoft.com.cn (8.9.3/8.9.3) with SMTP id JAA10650; Thu, 10 May 2001 09:34:50 +0800 Message-ID: <00a901c0d8f1$da76a360$3601a8c0@xyf> From: "David Xu" To: "Tim Wiess" , References: <20010509183110.G316-100000@akira.ahaza.com> Subject: Re: KSD Date: Thu, 10 May 2001 09:37:53 +0800 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG AFAIK, KSE is not started currently. you might have a look NetBSD, there is a branch for SA project, it seems they changed proc to lwp. many code has already been commited. Regards, David Xu ----- Original Message ----- From: Tim Wiess To: Sent: Thursday, May 10, 2001 2:31 AM Subject: KSD > Hello, > Lately I have been reading about the work that is being done to support > kernel scheduled entities in FreeBSD. I am very anxious to look at the > code for this and see if I might be able to contribute anything to the > project. Although, it doesn't look like the code has been merged into > CURRENT yet. Is this true? If so, does anyone know where the current > development for this is being done? > > Thanks. > > tim > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 18:39:15 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from dns1.ahaza.com (maitai.ahaza.com [209.180.220.98]) by hub.freebsd.org (Postfix) with ESMTP id 1E7F637B424 for ; Wed, 9 May 2001 18:39:09 -0700 (PDT) (envelope-from twiess@ahaza.com) Received: from relay.ux.ahaza.com ([209.180.221.130]) by dns1.ahaza.com (8.11.1/8.11.1) with ESMTP id f4A1d8F49992 for ; Wed, 9 May 2001 18:39:08 -0700 (PDT) (envelope-from twiess@ahaza.com) Received: from eunice.camelot.ahaza.com (eunice.camelot.ahaza.com [172.16.30.18]) by relay.ux.ahaza.com (8.11.1/8.11.1) with ESMTP id f4A1d7q68438; Wed, 9 May 2001 18:39:07 -0700 (PDT) (envelope-from twiess@ahaza.com) Received: from akira.ahaza.com ([172.16.30.230]) by eunice.camelot.ahaza.com with Microsoft SMTPSVC(5.0.2195.1600); Wed, 9 May 2001 18:36:47 -0700 Date: Wed, 9 May 2001 18:42:01 +0000 (GMT) From: Tim Wiess X-X-Sender: To: David Xu Cc: Subject: Re: KSD In-Reply-To: <00a901c0d8f1$da76a360$3601a8c0@xyf> Message-ID: <20010509184054.A316-100000@akira.ahaza.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 10 May 2001 01:36:47.0828 (UTC) FILETIME=[ADA3B940:01C0D8F1] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG OK, thanks. I'll check it out. tim On Thu, 10 May 2001, David Xu wrote: > AFAIK, KSE is not started currently. you might have a look NetBSD, > there is a branch for SA project, it seems they changed proc to lwp. > many code has already been commited. > > Regards, > David Xu > > ----- Original Message ----- > From: Tim Wiess > To: > Sent: Thursday, May 10, 2001 2:31 AM > Subject: KSD > > > > Hello, > > Lately I have been reading about the work that is being done to support > > kernel scheduled entities in FreeBSD. I am very anxious to look at the > > code for this and see if I might be able to contribute anything to the > > project. Although, it doesn't look like the code has been merged into > > CURRENT yet. Is this true? If so, does anyone know where the current > > development for this is being done? > > > > Thanks. > > > > tim > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 19:51:10 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from gandalf.vi.bravenet.com (gandalf.bravenet.com [139.142.105.50]) by hub.freebsd.org (Postfix) with SMTP id 4D35637B424 for ; Wed, 9 May 2001 19:51:07 -0700 (PDT) (envelope-from dphoenix@bravenet.com) Received: (qmail 21147 invoked by uid 1000); 10 May 2001 02:51:05 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 10 May 2001 02:51:05 -0000 Date: Wed, 9 May 2001 19:51:05 -0700 (PDT) From: Dan Phoenix To: freebsd-hackers@freebsd.org Subject: vinum on 2 ide drives? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG These 2 are from running it on each on the ide drives without vinum. [root@gorbag /mnt1]# dd if=/dev/zero of=bigfile bs=16384k count=1000 1000+0 records in 1000+0 records out 16777216000 bytes transferred in 799.865832 secs (20975038 bytes/sec) [root@gorbag /mnt2]# dd if=/dev/zero of=bigfile bs=16384k count=1000 1000+0 records in 1000+0 records out 16777216000 bytes transferred in 796.395885 secs (21066427 bytes/sec) [root@gorbag /mnt2]# This is from running it on both drives striped with vinum. [root@gorbag /backup]# dd if=/dev/zero of=bigfile bs=16384k count=1000 1000+0 records in 1000+0 records out 16777216000 bytes transferred in 1365.405607 secs (12287350 bytes/sec) [root@gorbag /backup]# seems to be quite abit slower.. now i was running systat -vm 1 while writing to the striped vinum drive and did see both of them getting hit equally. IN this case prob at around 99% IO on both of them half the time. [root@gorbag dphoenix]# cat /etc/vinum.conf drive ibm1 device /dev/ad1s1e drive ibm2 device /dev/ad2s1e volume stripe plex org striped 512s sd length 58643m drive ibm1 sd length 58643m drive ibm2 [root@gorbag dphoenix]# ad1: 58644MB [119150/16/63] at ata0-slave UDMA33 ad2: 58644MB [119150/16/63] at ata1-master UDMA33 As you can see these are 2 ide drives with 58643 Megs each. Well you can see that with fdisk anyhow...fdisk seems to be 1 meg less than what dmesg reports. Any suggestions to get some speed here? Or should i just go back to single ide drives split up again? -- Dan +------------------------------------------------------+ | BRAVENET WEB SERVICES | | dan@bravenet.com | | screen;cd /usr/src;make buildworld;cd ~ | | cp MYKERNEL /sys/i386/conf;cd /usr/src | | make buildkernel KERNCONF=MYKERNEL | |make installkernel KERNCONF=MYKERNEL;make installworld| +______________________________________________________+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 20:24:17 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 73E5F37B424; Wed, 9 May 2001 20:24:09 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 269B76ACBE; Thu, 10 May 2001 12:54:07 +0930 (CST) Date: Thu, 10 May 2001 12:54:06 +0930 From: Greg Lehey To: Dan Phoenix Cc: FreeBSD Questions Subject: Re: vinum on 2 ide drives? Message-ID: <20010510125406.I56501@wantadilla.lemis.com> 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 dphoenix@bravenet.com on Wed, May 09, 2001 at 07:51:05PM -0700 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [redirected to -questions] On Wednesday, 9 May 2001 at 19:51:05 -0700, Dan Phoenix wrote: > > > These 2 are from running it on each on the ide drives without vinum. > > [root@gorbag /mnt1]# dd if=/dev/zero of=bigfile bs=16384k count=1000 > 1000+0 records in > 1000+0 records out > 16777216000 bytes transferred in 799.865832 secs (20975038 bytes/sec) > [root@gorbag /mnt2]# dd if=/dev/zero of=bigfile bs=16384k count=1000 > 1000+0 records in > 1000+0 records out > 16777216000 bytes transferred in 796.395885 secs (21066427 bytes/sec) > [root@gorbag /mnt2]# > > This is from running it on both drives striped with vinum. > > [root@gorbag /backup]# dd if=/dev/zero of=bigfile bs=16384k count=1000 > 1000+0 records in > 1000+0 records out > 16777216000 bytes transferred in 1365.405607 secs (12287350 bytes/sec) > [root@gorbag /backup]# > > seems to be quite abit slower.. Indeed. That's puzzling. > now i was running systat -vm 1 while writing to the striped vinum > drive and did see both of them getting hit equally. IN this case > prob at around 99% IO on both of them half the time. > > [root@gorbag dphoenix]# cat /etc/vinum.conf > drive ibm1 device /dev/ad1s1e > drive ibm2 device /dev/ad2s1e > volume stripe > plex org striped 512s > sd length 58643m drive ibm1 > sd length 58643m drive ibm2 > [root@gorbag dphoenix]# You shouldn't be using power-of-2 stripes. But that's not what's causing your problem.s > ad1: 58644MB [119150/16/63] at ata0-slave UDMA33 > ad2: 58644MB [119150/16/63] at ata1-master UDMA33 Nice drives. They should be much faster than that on dd, but you were going via the file system. > Any suggestions to get some speed here? Or should i just go back to > single ide drives split up again? I'd like to understand what's going on here first. This isn't typical behaviour. Since you seem to not have anything useful on the drives, could you repeat with rawio (/usr/ports/benchmarks/rawio)? We can also take this offline. Greg -- For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 22: 4: 3 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from thought.adamantsys.com (w120.z064002057.sjc-ca.dsl.cnc.net [64.2.57.120]) by hub.freebsd.org (Postfix) with ESMTP id 79C4337B422 for ; Wed, 9 May 2001 22:03:58 -0700 (PDT) (envelope-from brian@CSUA.Berkeley.EDU) Received: from localhost (localhost [127.0.0.1]) by thought.adamantsys.com (8.11.2/8.11.2) with ESMTP id f4A54Ys03574 for ; Wed, 9 May 2001 22:04:35 -0700 (PDT) (envelope-from brian@CSUA.Berkeley.EDU) Date: Wed, 9 May 2001 22:04:34 -0700 (PDT) From: "Brian W. Buchanan" X-Sender: brian@thought.adamantsys.com To: hackers@freebsd.org Subject: fd driver hacking to recover data Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Any fdc driver gurus in the house? I have a bunch of old floppy disks with some text files I'd like to recover. Many of them have errors and are unreadable past a certain point in the disk. Others I can't read from at all. The ones I can't read, period, are all 1.44MB-size floppies. I've tried dd'ing from /dev/fd0c, /dev/fd0.1440, etc., but exits with "Input/Output Error" before copying anything. The kernel prints: fd0c: hard error reading fsbn 0 of 0-31 (ST0 40 ST1 1 ST2 0 cyl 0 hd 0 sec 1) I've been more successful reading 720K floppies from /dev/fd0.720, but many of them have errors that stop dd in its tracks, yielding another Input/Output error. The kernel prints: fd0c: hard error reading fsbn 1503 of 1488-1503 (ST0 44 ST1 20 ST2 20 cyl 41 hd 1 sec 10) Since the files on the disks are just text, all I want to do is to be able to extract as many of the bits on the disk as possible, even if some of the bits are wrong, and then run strings over it and sort out the content. I've looked at the floppy driver source and it seems to be incredibly low-level, i.e. it turns the drive motor on and off, even. Can someone familiar with the driver give me some pointers as to what I'd have to modify to let it 1) read those 1.44MB disks, and 2) tolerate data errors? Thanks, Brian -- Brian Buchanan brian@CSUA.Berkeley.EDU -------------------------------------------------------------------------- FreeBSD - The Power to Serve! http://www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 22:10:32 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by hub.freebsd.org (Postfix) with ESMTP id 9577737B42C for ; Wed, 9 May 2001 22:10:28 -0700 (PDT) (envelope-from luigi@info.iet.unipi.it) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id HAA43359; Thu, 10 May 2001 07:07:53 +0200 (CEST) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200105100507.HAA43359@info.iet.unipi.it> Subject: Re: fd driver hacking to recover data In-Reply-To: from "Brian W. Buchanan" at "May 9, 2001 10:04:34 pm" To: "Brian W. Buchanan" Date: Thu, 10 May 2001 07:07:53 +0200 (CEST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I have a bunch of old floppy disks with some text files I'd like to > recover. Many of them have errors and are unreadable past a certain point > in the disk. Others I can't read from at all. > > The ones I can't read, period, are all 1.44MB-size floppies. I've tried > dd'ing from /dev/fd0c, /dev/fd0.1440, etc., but exits with "Input/Output > Error" before copying anything. i think you can try dd from the raw device (/dev/rfd) using the "iseek" or "skip" option to jump over the missing sectors. Alternatively, you can use "conv=noerror,sync" to keep reading after errors (the bad blocks are NUL-filled) cheers luigi > The kernel prints: > > fd0c: hard error reading fsbn 0 of 0-31 (ST0 40 ST1 1 ST2 0 > cyl 0 hd 0 sec 1) > > > I've been more successful reading 720K floppies from /dev/fd0.720, but > many of them have errors that stop dd in its tracks, yielding another > Input/Output error. > > The kernel prints: > > fd0c: hard error reading fsbn 1503 of 1488-1503 (ST0 44 > ST1 20 ST2 20 cyl 41 hd 1 sec 10) > > > Since the files on the disks are just text, all I want to do is to be able > to extract as many of the bits on the disk as possible, even if some of > the bits are wrong, and then run strings over it and sort out the > content. I've looked at the floppy driver source and it seems to be > incredibly low-level, i.e. it turns the drive motor on and off, even. Can > someone familiar with the driver give me some pointers as to what I'd have > to modify to let it 1) read those 1.44MB disks, and 2) tolerate data > errors? > > Thanks, > > Brian > > -- > Brian Buchanan brian@CSUA.Berkeley.EDU > -------------------------------------------------------------------------- > FreeBSD - The Power to Serve! http://www.freebsd.org > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 22:23:57 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp-2.enteract.com (smtp-2.enteract.com [207.229.143.4]) by hub.freebsd.org (Postfix) with ESMTP id 1DAF937B422 for ; Wed, 9 May 2001 22:23:45 -0700 (PDT) (envelope-from dscheidt@tumbolia.com) Received: from shell-2.enteract.com (shell-2.enteract.com [207.229.143.41]) by smtp-2.enteract.com (Postfix) with ESMTP id 402345E59; Thu, 10 May 2001 00:23:44 -0500 (CDT) Date: Thu, 10 May 2001 00:23:43 -0500 (CDT) From: David Scheidt X-Sender: dscheidt@shell-2.enteract.com To: Luigi Rizzo Cc: "Brian W. Buchanan" , hackers@FreeBSD.ORG Subject: Re: fd driver hacking to recover data In-Reply-To: <200105100507.HAA43359@info.iet.unipi.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 10 May 2001, Luigi Rizzo wrote: :> I have a bunch of old floppy disks with some text files I'd like to :> recover. Many of them have errors and are unreadable past a certain point :> in the disk. Others I can't read from at all. :> :> The ones I can't read, period, are all 1.44MB-size floppies. I've tried :> dd'ing from /dev/fd0c, /dev/fd0.1440, etc., but exits with "Input/Output :> Error" before copying anything. : :i think you can try dd from the raw device (/dev/rfd) using the "iseek" :or "skip" option to jump over the missing sectors. :Alternatively, you can use "conv=noerror,sync" to keep reading :after errors (the bad blocks are NUL-filled) Depending on how the disks are flakey, you may be able to read the bad blocks some of the time. Multiple passes with dd, and combining the results by hand may be worth trying, as might be different floppy drives. David -- dscheidt@tumbolia.com Bipedalism is only a fad. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 22:36:11 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from thought.adamantsys.com (w120.z064002057.sjc-ca.dsl.cnc.net [64.2.57.120]) by hub.freebsd.org (Postfix) with ESMTP id 53DA337B423 for ; Wed, 9 May 2001 22:36:09 -0700 (PDT) (envelope-from brian@CSUA.Berkeley.EDU) Received: from localhost (localhost [127.0.0.1]) by thought.adamantsys.com (8.11.2/8.11.2) with ESMTP id f4A5aks03716 for ; Wed, 9 May 2001 22:36:46 -0700 (PDT) (envelope-from brian@CSUA.Berkeley.EDU) Date: Wed, 9 May 2001 22:36:46 -0700 (PDT) From: "Brian W. Buchanan" X-Sender: brian@thought.adamantsys.com To: hackers@FreeBSD.ORG Subject: Re: fd driver hacking to recover data In-Reply-To: <200105100507.HAA43359@info.iet.unipi.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 10 May 2001, Luigi Rizzo wrote: > > I have a bunch of old floppy disks with some text files I'd like to > > recover. Many of them have errors and are unreadable past a certain point > > in the disk. Others I can't read from at all. > > > > The ones I can't read, period, are all 1.44MB-size floppies. I've tried > > dd'ing from /dev/fd0c, /dev/fd0.1440, etc., but exits with "Input/Output > > Error" before copying anything. > > i think you can try dd from the raw device (/dev/rfd) using the "iseek" > or "skip" option to jump over the missing sectors. > Alternatively, you can use "conv=noerror,sync" to keep reading > after errors (the bad blocks are NUL-filled) Okay, this works for the disks with errors in the middle of them. Thanks! Reading from the raw devices unfortunately doesn't get me any farther with the high density disks. -- Brian Buchanan brian@CSUA.Berkeley.EDU -------------------------------------------------------------------------- FreeBSD - The Power to Serve! http://www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 22:41:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 7225137B422 for ; Wed, 9 May 2001 22:41:18 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 930A36ACBC; Thu, 10 May 2001 15:11:16 +0930 (CST) Date: Thu, 10 May 2001 15:11:16 +0930 From: Greg Lehey To: "Brian W. Buchanan" Cc: hackers@freebsd.org Subject: Re: fd driver hacking to recover data Message-ID: <20010510151116.L56501@wantadilla.lemis.com> 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 brian@CSUA.Berkeley.EDU on Wed, May 09, 2001 at 10:04:34PM -0700 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday, 9 May 2001 at 22:04:34 -0700, Brian W. Buchanan wrote: > Any fdc driver gurus in the house? > > I have a bunch of old floppy disks with some text files I'd like to > recover. Many of them have errors and are unreadable past a certain point > in the disk. Others I can't read from at all. > > The ones I can't read, period, are all 1.44MB-size floppies. I've tried > dd'ing from /dev/fd0c, /dev/fd0.1440, etc., but exits with "Input/Output > Error" before copying anything. > > The kernel prints: > > fd0c: hard error reading fsbn 0 of 0-31 (ST0 40 ST1 1 ST2 0 > cyl 0 hd 0 sec 1) > > > I've been more successful reading 720K floppies from /dev/fd0.720, but > many of them have errors that stop dd in its tracks, yielding another > Input/Output error. > > The kernel prints: > > fd0c: hard error reading fsbn 1503 of 1488-1503 (ST0 44 > ST1 20 ST2 20 cyl 41 hd 1 sec 10) > > > Since the files on the disks are just text, all I want to do is to be able > to extract as many of the bits on the disk as possible, even if some of > the bits are wrong, and then run strings over it and sort out the > content. I've looked at the floppy driver source and it seems to be > incredibly low-level, i.e. it turns the drive motor on and off, even. Can > someone familiar with the driver give me some pointers as to what I'd have > to modify to let it 1) read those 1.44MB disks, and 2) tolerate data > errors? One possibility that I've used in the past is to use a 'read track' command. This was back in the days of 8" floppies, but I think the controllers still understand it. Basically the command starts at the index mark and transfers data with no kind of interpretation until the next index mark. It's up to the program to then find the start of each sector and extract the data. If you're up to this kind of hack, I can check for more details. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed May 9 22:42:52 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f196.pav1.hotmail.com [64.4.31.196]) by hub.freebsd.org (Postfix) with ESMTP id 120D737B422 for ; Wed, 9 May 2001 22:42:50 -0700 (PDT) (envelope-from jayeshkrishna@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 9 May 2001 22:42:49 -0700 Received: from 32.97.136.233 by pv1fd.pav1.hotmail.msn.com with HTTP; Thu, 10 May 2001 05:42:49 GMT X-Originating-IP: [32.97.136.233] From: "Jayesh Krishna" To: hackers@freebsd.org Subject: help regarding writing pseudo-drivers in FreeBSD Date: Thu, 10 May 2001 11:12:49 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 10 May 2001 05:42:49.0850 (UTC) FILETIME=[0C7D85A0:01C0D914] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I am comfortable with Linux Device Drivers. Presently I am trying to write some pseudo-drivers in FreeBSD(4.2-release). I tried out make_pseudo_driver.sh in the /usr/share/examples/drivers but it does not work :-( I also went through the "FreeBSD Device Driver Writer's Guide" by Eric L. Hernes but it seems to be outdated :-( Please someone point me out to some docs regarding writing device drivers in FreeBSD.... jayesh _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 0:40:31 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id D77B137B423; Thu, 10 May 2001 00:40:28 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from hornet.unixfreak.org (hornet [63.198.170.140]) by bazooka.unixfreak.org (Postfix) with ESMTP id 847EE3E28; Thu, 10 May 2001 00:40:28 -0700 (PDT) To: hackers@freebsd.org Cc: phk@freebsd.org Subject: Who's cleaning up after disk_clone? Date: Thu, 10 May 2001 00:40:28 -0700 From: Dima Dorfman Message-Id: <20010510074028.847EE3E28@bazooka.unixfreak.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG disk_clone is set as the dev_clone handler by the disk minilayer to create /dev/disk0sXY devices; however, as far as I can tell, those devices are never destroyed. For example (/dev is devfs here): dima@spike# mdconfig -a -t swap -s 32m md0 dima@spike# disklabel -r -w md0 auto dima@spike# ll /dev/md* crw-r----- 1 root operator 95, 0x00010002 May 10 00:12 /dev/md0 crw-r----- 1 root operator 95, 2 May 10 00:30 /dev/md0c crw------- 1 root wheel 95, 0xffff00ff May 10 00:12 /dev/mdctl dima@spike# mdconfig -du0 dima@spike# ll /dev/md* crw-r----- 1 root operator 95, 2 May 10 00:30 /dev/md0c crw------- 1 root wheel 95, 0xffff00ff May 10 00:12 /dev/mdctl Why is md0c still there? It was created as part of the disklabel operation. Furthermore, dima@spike# kldunload md dima@spike# ls /dev/md0c will cause a page fault in kernel mode in this situation. I can't get a crash dump, but vn_isdisk() was called from vn_stat() which was called from stat() (ls called this), and I'm guessing it crashed because there is a stale (now unloaded) cdevsw associated with /dev/md0c. So, my questions are: - is this a bug? At least the page fault is; and - what should be destroying /dev/md0c? Thanks for any insight, Dima Dorfman dima@unixfreak.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 0:46: 7 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [209.152.133.57]) by hub.freebsd.org (Postfix) with ESMTP id 2172537B423 for ; Thu, 10 May 2001 00:46:06 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.3/8.11.1) id f4A7jvg52023; Thu, 10 May 2001 00:45:57 -0700 (PDT) (envelope-from obrien) Date: Thu, 10 May 2001 00:45:57 -0700 From: "David O'Brien" To: Luigi Rizzo Cc: "Brian W. Buchanan" , hackers@FreeBSD.ORG Subject: Re: fd driver hacking to recover data Message-ID: <20010510004557.B51951@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG References: <200105100507.HAA43359@info.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105100507.HAA43359@info.iet.unipi.it>; from luigi@info.iet.unipi.it on Thu, May 10, 2001 at 07:07:53AM +0200 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, May 10, 2001 at 07:07:53AM +0200, Luigi Rizzo wrote: > i think you can try dd from the raw device (/dev/rfd) using the "iseek" Uh, the raw device is "/dev/fd". To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 1:21:53 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.iside.net (ns2.iside.net [212.73.214.202]) by hub.freebsd.org (Postfix) with ESMTP id 8492137B422 for ; Thu, 10 May 2001 01:21:50 -0700 (PDT) (envelope-from julien@iside.net) X-Virus-Protected-by-iSide: McAfee virus scanning engine Received: from [193.251.60.11] (HELO yoshi) by mail.iside.net (CommuniGate Pro SMTP 3.4.2) with SMTP id 3488282 for hackers@freebsd.org; Thu, 10 May 2001 10:17:23 +0200 Message-ID: <002401c0d92a$81f7fa20$662d44c3@yoshi> From: "julien" To: References: Subject: Re: help regarding writing pseudo-drivers in FreeBSD Date: Thu, 10 May 2001 10:23:33 +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.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Have a look at http://www.daemonnews.org/200010/blueprints.html , i think it's a good starting point, with an example of an "echo" pseudo device driver. You could also look at /usr/src/sys/net/if_tun* (tunneling pseudo device) for a more real life example. Hope this helps -- ------------------------------- --> julien@iside.net ------------------------------- ----- Original Message ----- From: "Jayesh Krishna" To: Sent: Thursday, May 10, 2001 7:42 AM Subject: help regarding writing pseudo-drivers in FreeBSD > Hi, > I am comfortable with Linux Device Drivers. Presently I am trying > to write some pseudo-drivers in FreeBSD(4.2-release). I tried out > make_pseudo_driver.sh > in the /usr/share/examples/drivers but it does not work :-( I also > went through the "FreeBSD Device Driver Writer's Guide" by Eric L. > Hernes but it seems to be outdated :-( > Please someone point me out to some docs regarding writing device > drivers in FreeBSD.... > > jayesh > > ________________________________________________________________________ _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 3:51:23 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from web5305.mail.yahoo.com (web5305.mail.yahoo.com [216.115.106.114]) by hub.freebsd.org (Postfix) with SMTP id 9170637B423 for ; Thu, 10 May 2001 03:51:18 -0700 (PDT) (envelope-from vishubp@yahoo.com) Message-ID: <20010510105118.912.qmail@web5305.mail.yahoo.com> Received: from [203.200.20.3] by web5305.mail.yahoo.com; Thu, 10 May 2001 11:51:18 BST Date: Thu, 10 May 2001 11:51:18 +0100 (BST) From: =?iso-8859-1?q?vishwanath=20pargaonkar?= Subject: kernel size.. To: questions@freebsd.org, 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 X-Loop: FreeBSD.ORG Hi, i have free bsd 4.2 stable. i did some changes may be 10-15 lines to kernel source. but thing i am amazed is kernel size. size of kernel.GENERIC is 3258128. but as of my kernel is 13068130 when i cheked it. my kernel is stable there is no probs. but y is size soo big?? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 4: 0:50 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 3C30E37B423 for ; Thu, 10 May 2001 04:00:45 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 53201 invoked by uid 1000); 10 May 2001 11:00:11 -0000 Date: Thu, 10 May 2001 14:00:11 +0300 From: Peter Pentchev To: vishwanath pargaonkar Cc: questions@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: kernel size.. Message-ID: <20010510140011.D496@ringworld.oblivion.bg> Mail-Followup-To: vishwanath pargaonkar , questions@freebsd.org, freebsd-hackers@freebsd.org References: <20010510105118.912.qmail@web5305.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010510105118.912.qmail@web5305.mail.yahoo.com>; from vishubp@yahoo.com on Thu, May 10, 2001 at 11:51:18AM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, May 10, 2001 at 11:51:18AM +0100, vishwanath pargaonkar wrote: > Hi, > i have free bsd 4.2 stable. > i did some changes may be 10-15 lines to kernel > source. > but thing i am amazed is kernel size. > size of kernel.GENERIC is 3258128. > but as of my kernel is 13068130 when i cheked it. > my kernel is stable there is no probs. > but y is size soo big?? Have you by any chance compiled it with debugging symbols? G'luck, Peter -- This sentence every third, but it still comprehensible. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 4: 1:23 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 5F6A737B422 for ; Thu, 10 May 2001 04:01:16 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4AB1B308068; Thu, 10 May 2001 12:01:11 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4AB1Ad30642; Thu, 10 May 2001 12:01:10 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200105101101.f4AB1Ad30642@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Greg Lehey Cc: Jayesh Krishna , freebsd-hackers@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: Writing device drivers (was: help me please) In-Reply-To: Message from Greg Lehey of "Thu, 10 May 2001 10:38:35 +0930." <20010510103835.A56501@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 10 May 2001 12:01:10 +0100 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Wednesday, 9 May 2001 at 10:40:50 +0530, Jayesh Krishna wrote: > > Hi guys... > > I am comfortable with Linux Device Drivers. Presently I am trying > > to write some pseudo-drivers in FreeBSD(4.2-Release). I tried out > > make_pseudo_driver.sh > > in the /usr/share/examples/drivers but it does not work :-( I also > > went through the "FreeBSD Device Driver Writer's Guide" by Eric L. > > Hernes but it seems to be outdated :-( > > Please someone point me out to some docs regarding writing device > > drivers in FreeBSD.... > > "UTSL". Take a look at a similar driver and get to understand it. > I'm afraid that this is an area which is woefully undocumented. > > You'll also get more replies if you put a useful text on the Subject: > line. You should probably tell julian@ about the problems you have with make_pseudo_driver.sh. > Greg > -- > Finger grog@lemis.com for PGP public key > See complete headers for address and phone numbers -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 4:15: 4 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bilver.wjv.com (dhcp-1-209.n01.orldfl01.us.ra.verio.net [157.238.210.209]) by hub.freebsd.org (Postfix) with ESMTP id 3C58037B422; Thu, 10 May 2001 04:14:58 -0700 (PDT) (envelope-from bill@bilver.wjv.com) Received: (from bill@localhost) by bilver.wjv.com (8.11.1/8.11.1) id f4ABErB66310; Thu, 10 May 2001 07:14:53 -0400 (EDT) (envelope-from bill) Date: Thu, 10 May 2001 07:14:50 -0400 From: Bill Vermillion To: vishwanath pargaonkar Cc: questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: kernel size.. Message-ID: <20010510071450.A66285@wjv.com> Reply-To: bv@wjv.com References: <20010510105118.912.qmail@web5305.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010510105118.912.qmail@web5305.mail.yahoo.com>; from vishubp@yahoo.com on Thu, May 10, 2001 at 11:51:18AM +0100 Organization: W.J.Vermillion / Orlando - Winter Park Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, May 10, 2001 at 11:51:18AM +0100, vishwanath pargaonkar thus sprach: > i have free bsd 4.2 stable. > i did some changes may be 10-15 lines to kernel > source. > but thing i am amazed is kernel size. > size of kernel.GENERIC is 3258128. > but as of my kernel is 13068130 when i cheked it. > my kernel is stable there is no probs. > but y is size soo big?? No one will have a clue unless you at least tell us what lines you modified. -- Bill Vermillion - bv @ wjv . com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 4:53:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (fxp0.halvsten.ip.cybercity.dk [212.242.40.114]) by hub.freebsd.org (Postfix) with ESMTP id F060E37B422 for ; Thu, 10 May 2001 04:53:27 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.3/8.11.3) with ESMTP id f4A8H0p75406; Thu, 10 May 2001 10:17:00 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Dima Dorfman Cc: hackers@freebsd.org Subject: Re: Who's cleaning up after disk_clone? In-Reply-To: Your message of "Thu, 10 May 2001 00:40:28 PDT." <20010510074028.847EE3E28@bazooka.unixfreak.org> Date: Thu, 10 May 2001 10:17:00 +0200 Message-ID: <75404.989482620@critter> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20010510074028.847EE3E28@bazooka.unixfreak.org>, Dima Dorfman write s: >disk_clone is set as the dev_clone handler by the disk minilayer to >create /dev/disk0sXY devices; however, as far as I can tell, those >devices are never destroyed. For example (/dev is devfs here): This is a subset of a larger problem: How to modules clean up properly. In this case it is slightly more complicated by the fact that the disk minilayer is involved. >So, my questions are: > > - is this a bug? At least the page fault is; and Yes. > - what should be destroying /dev/md0c? The disk-minilayer. We need some to keep track of cloned dev_t's so we can nuke them at various strategic points, havn't gotten to that yet. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 5:15:50 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-32.dsl.lsan03.pacbell.net [63.207.60.32]) by hub.freebsd.org (Postfix) with ESMTP id 357B837B422; Thu, 10 May 2001 05:15:45 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id E89CF66C04; Thu, 10 May 2001 05:15:44 -0700 (PDT) Date: Thu, 10 May 2001 05:15:44 -0700 From: Kris Kennaway To: vishwanath pargaonkar Cc: questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: kernel size.. Message-ID: <20010510051544.A2635@xor.obsecurity.org> References: <20010510105118.912.qmail@web5305.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010510105118.912.qmail@web5305.mail.yahoo.com>; from vishubp@yahoo.com on Thu, May 10, 2001 at 11:51:18AM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, May 10, 2001 at 11:51:18AM +0100, vishwanath pargaonkar wrote: > Hi, > i have free bsd 4.2 stable. > i did some changes may be 10-15 lines to kernel > source. > but thing i am amazed is kernel size. > size of kernel.GENERIC is 3258128. > but as of my kernel is 13068130 when i cheked it. > my kernel is stable there is no probs. > but y is size soo big?? It includes debug symbols, which are stripped out when kernel.debug is copied to /kernel. Kris --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6+oZwWry0BWjoQKURAvprAKDjYzvDGp03cB5VBqi8WzI5/CH06gCfQwiv uO3WV1tyk+QH4Uhv9sJh4BM= =2HXE -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 8:28:31 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from johnson.mail.mindspring.net (johnson.mail.mindspring.net [207.69.200.177]) by hub.freebsd.org (Postfix) with ESMTP id D1A4E37B423 for ; Thu, 10 May 2001 08:28:27 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0519.cvx7-bradley.dialup.earthlink.net [209.178.166.9]) by johnson.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id LAA02540; Thu, 10 May 2001 11:28:21 -0400 (EDT) Message-ID: <3AFAB3A9.798899F@mindspring.com> Date: Thu, 10 May 2001 08:28:41 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Makoto MATSUSHITA Cc: hackers@FreeBSD.ORG Subject: Re: Question about building source References: <3AF82432.F150DB51@mindspring.com> <20010509025423Q.matusita@jp.FreeBSD.org> <3AF95FFB.40DCF441@mindspring.com> <20010510010142X.matusita@jp.FreeBSD.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Makoto MATSUSHITA wrote: > tlambert2> It still breaks. See bsd.orig.mk; you _can't_ use a > tlambert2> compiler other than one installed in the default location, > tlambert2> or it will override the compiler defaults which tell it > tlambert2> where the correct header and crt0 files live. Really. > > ??? > > If you run 'chroot /vol1/FreeBSD /bin/sh', you'll get an environment > that /vol1/FreeBSD is /; Compiler is in /usr/bin/cc. Headers are in > /usr/include. Crt* files are in /usr/lib. All files are located as it > should be. > > If it doesn't work as you have said, "make release' also _doesn't_ > work; we cannot make a distribution. Obviously, it's wrong:) I think you are missing the facts: o I am using a non-default compiler installation, so that mu C++ include directory is in /usr/local/include o DESTDIR is set o Look in /usr/share/bsd.prog.mk for ".if defined(DESTDIR)"; it overrides my compiler defaults for the values of CFLAGS and CXXINCLUDES. This makes them _WRONG_: .if defined(DESTDIR) CFLAGS+= -I${DESTDIR}/usr/include CXXINCLUDES+= -I${DESTDIR}/usr/include/g++ .endif o Look in /usr/share/bsd.lib.mk: it does the same thing: .if defined(DESTDIR) CFLAGS+= -I${DESTDIR}/usr/include CXXINCLUDES+= -I${DESTDIR}/usr/include/g++ .endif Specifically, you get the _WRONG_ and other C++ header files, which makes exceptions and run time type information _NOT WORK_. See also: http://www.FreeBSD.org/cgi/cvsweb.cgi/src/share/mk/bsd.prog.mk?rev=1.86.2.3&content-type=text/x-cvsweb-markup http://www.FreeBSD.org/cgi/cvsweb.cgi/src/share/mk/bsd.lib.mk?rev=1.91.2.1&content-type=text/x-cvsweb-markup The /usr/include/g++ files are _WRONG_... The /usr/local/include/g++ are _RIGHT_... The BSD .mk files insist on using the wrong .mk files; I don't know how much clearer I can make it?!? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 9:31:37 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [209.152.133.57]) by hub.freebsd.org (Postfix) with ESMTP id 490BB37B422 for ; Thu, 10 May 2001 09:31:35 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.3/8.11.1) id f4AGVFO03512; Thu, 10 May 2001 09:31:15 -0700 (PDT) (envelope-from obrien) Date: Thu, 10 May 2001 09:31:10 -0700 From: "David Mr. Hackers O'Brien" To: Terry Lambert Cc: Makoto MATSUSHITA , hackers@FreeBSD.ORG Subject: Re: Question about building source Message-ID: <20010510093110.A3480@dragon.nuxi.com> Reply-To: hackers@FreeBSD.ORG References: <3AF82432.F150DB51@mindspring.com> <20010509025423Q.matusita@jp.FreeBSD.org> <3AF95FFB.40DCF441@mindspring.com> <20010510010142X.matusita@jp.FreeBSD.org> <3AFAB3A9.798899F@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3AFAB3A9.798899F@mindspring.com>; from tlambert2@mindspring.com on Thu, May 10, 2001 at 08:28:41AM -0700 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, May 10, 2001 at 08:28:41AM -0700, Terry Lambert wrote: > > If it doesn't work as you have said, "make release' also _doesn't_ > > work; we cannot make a distribution. Obviously, it's wrong:) > > I think you are missing the facts: ... > o Look in /usr/share/bsd.prog.mk for ".if defined(DESTDIR)"; > it overrides my compiler defaults for the values of CFLAGS > and CXXINCLUDES. This makes them _WRONG_: ... > The BSD .mk files insist on using the wrong .mk files; I don't > know how much clearer I can make it?!? I went thru this last month -- bsd.*.mk assumes /usr/src and the base compilers. Peroid. People didn't want to accept that, but you are giving more proof of it. If you want to change the assumptions of about the base system, you have to be willing to change bsd.*.mk. Peroid. -- -- David (obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 10:53:21 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from jhs.muc.de (jhs.muc.de [193.149.49.84]) by hub.freebsd.org (Postfix) with ESMTP id EA2DF37B42C for ; Thu, 10 May 2001 10:53:04 -0700 (PDT) (envelope-from jhs@jhs.muc.de) Received: from park.jhs.private (localhost [127.0.0.1]) by jhs.muc.de (8.11.0/8.11.0) with ESMTP id f4AGpMh58396; Thu, 10 May 2001 16:51:22 GMT (envelope-from jhs@park.jhs.private) Message-Id: <200105101651.f4AGpMh58396@jhs.muc.de> To: "Brian W. Buchanan" , j@uriah.heep.sax.de (J Wunsch) Cc: hackers@FreeBSD.ORG Subject: Re: fd driver hacking to recover data In-Reply-To: Message from "Brian W. Buchanan" of "Wed, 09 May 2001 22:04:34 PDT." Date: Thu, 10 May 2001 18:51:22 +0200 From: "Julian Stacey Jhs@jhs.muc.de" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brian, Joerg, cc hackers "Brian W. Buchanan" wrote: > Any fdc driver gurus in the house? > > I have a bunch of old floppy disks with some text files I'd like to > recover. Many of them have errors and are unreadable past a certain point > in the disk. Others I can't read from at all. > > The ones I can't read, period, are all 1.44MB-size floppies. I've tried > dd'ing from /dev/fd0c, /dev/fd0.1440, etc., but exits with "Input/Output > Error" before copying anything. > > The kernel prints: > > fd0c: hard error reading fsbn 0 of 0-31 (ST0 40 ST1 1 ST2 0 > cyl 0 hd 0 sec 1) > > > I've been more successful reading 720K floppies from /dev/fd0.720, but > many of them have errors that stop dd in its tracks, yielding another > Input/Output error. > > The kernel prints: > > fd0c: hard error reading fsbn 1503 of 1488-1503 (ST0 44 > ST1 20 ST2 20 cyl 41 hd 1 sec 10) > > > Since the files on the disks are just text, all I want to do is to be able > to extract as many of the bits on the disk as possible, even if some of > the bits are wrong, and then run strings over it and sort out the > content. I've looked at the floppy driver source and it seems to be > incredibly low-level, i.e. it turns the drive motor on and off, even. Can > someone familiar with the driver give me some pointers as to what I'd have > to modify to let it 1) read those 1.44MB disks, and 2) tolerate data > errors? I have a program that will rescue your data ! It runs on DOS-3.2 & FreeBSD-any BUT the rescue component only runs on DOS (however at least you can compile & play with it on BSD to get used to it). I have no idea if the FreeBSD ports DOS emulators allow access to floppy hardware or not ? If not, the other options are: - to boot with DOS to run my program, - or modify the FreeBSD fd driver to pass the buffer on error. By chance my program was just being discussed on another list, Here's extracts: --------------------- > Message-Id: <200105072157.f47LvVs42257@jhs.muc.de> > To: freebsd-scsi@FreeBSD.ORG > Cc: pechter@ureach.com, "Ron Klinkien" > Subject: Re: Recovered data with positive head offset field replaceable unit msg > Date: Mon, 07 May 2001 23:57:31 +0200 > From: "Julian Stacey Jhs@jhs.muc.de" > Sender: owner-freebsd-scsi@FreeBSD.ORG > > > > It's possible to recover most text data from bad floppies by repeat > scanning, even without varying the offset, even with failing CRCs: > I wrote a program that does that in ~87 > http://bim.bsn.com/~jhs/src/bsd/jhs/bin/public/valid/valid.c & valid.1 > (The recover part of the program's now larger functionality runs > only on DOS though, not on Unix, as DOS passes filled buffers back > even when read() returns CRC error, whereas FreeBSD discards the > buffer content on error. > > Julian --------------------- > Date: Wed, 9 May 2001 09:11:58 +0200 (MET DST) > Message-Id: <200105090711.f497Bwr27407@uriah.heep.sax.de> > From: j@uriah.heep.sax.de (J Wunsch) > Subject: Re: Recovered data with positive head offset field replaceable unit msg > To: freebsd-scsi@FreeBSD.ORG > > Arranging for a `read track' functionality in the FreeBSD floppy > driver should be possible. This will return you the entire /bit/ > contents of the track, no CRC checks &c. Only the first sector ID > will be synchronized, the remainder of the track is returned as it > appears on the floppy; you need to manually bit-dealign and perhaps > bit-reverse the remaining data. --------------------- Hi Joerg, Thanks, Doing a track was what Greg L suggested to brian@CSUA.Berkeley.EDU, however that sounds like more work, & not optimal maybe ? In 1987 with DOS I was lucky, I did a read() on each sector, copied each sector with a good CRC to hard disc, & only repeat tried bad floppy sectors, doing a statistical average of each bit, (if none of the reads gave me a good CRC). (I also did multi sectors initially, then dropped to single sectors on error). To avoid head (*) wear & increase chance of a good CRC to the max, I'd prefer to stick to doing single sector seeks & reads, not tracks. (*) Forget media wear: I reccomend anyone who uses my valid.c to read odd sectors a few hundred/thousand times off already bad media, to discard media after reading :-) In an ideal world with lots of free time ;-) Brian Julian or Joerg would extend src/sys/isa/fd.c to support http://bim.bsn.com/~jhs/src/bsd/jhs/bin/public/valid/valid.c :-) - Julian Stacey Unix Consultant - Munich Germany http://bim.bsn.com/~jhs/ Ihr Rauchen => mein allergischer Kopfschmerz ! Kau/Schnupftabak probieren ! Like Linux ? Then also look at FreeBSD with its 5000+ packages ! sector, & though I got -1, the sector data was there (even if mangled) Julian - Julian Stacey Unix Consultant - Munich Germany http://bim.bsn.com/~jhs/ Ihr Rauchen => mein allergischer Kopfschmerz ! Kau/Schnupftabak probieren ! Like Linux ? Then also look at FreeBSD with its 5000+ packages ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 12:59:41 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id ACD9B37B422 for ; Thu, 10 May 2001 12:59:38 -0700 (PDT) (envelope-from julian@elischer.org) Received: from elischer.org (InterJet.elischer.org [192.168.1.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA09734; Thu, 10 May 2001 13:33:53 -0700 (PDT) Message-ID: <3AFAF14E.EE22009F@elischer.org> Date: Thu, 10 May 2001 12:51:42 -0700 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Brian Somers Cc: Greg Lehey , Jayesh Krishna , freebsd-hackers@FreeBSD.ORG Subject: Re: Writing device drivers (was: help me please) References: <200105101101.f4AB1Ad30642@hak.lan.Awfulhak.org> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brian Somers wrote: > > > On Wednesday, 9 May 2001 at 10:40:50 +0530, Jayesh Krishna wrote: > > > Hi guys... > > > I am comfortable with Linux Device Drivers. Presently I am trying > > > to write some pseudo-drivers in FreeBSD(4.2-Release). I tried out > > > make_pseudo_driver.sh > > > in the /usr/share/examples/drivers but it does not work :-( I also > > > went through the "FreeBSD Device Driver Writer's Guide" by Eric L. > > > Hernes but it seems to be outdated :-( > > > Please someone point me out to some docs regarding writing device > > > drivers in FreeBSD.... > > > > "UTSL". Take a look at a similar driver and get to understand it. > > I'm afraid that this is an area which is woefully undocumented. > > > > You'll also get more replies if you put a useful text on the Subject: > > line. > > You should probably tell julian@ about the problems you have with > make_pseudo_driver.sh. The pseudo one is known to be WAYYYYYYY out of date... the other one there (make_device_driver.sh) is more or less up to date. > > > Greg > > -- > > Finger grog@lemis.com for PGP public key > > See complete headers for address and phone numbers > > -- > Brian > > Don't _EVER_ lose your sense of humour ! > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 13: 0:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from cs.utep.edu (mail.cs.utep.edu [129.108.5.3]) by hub.freebsd.org (Postfix) with ESMTP id 0A61437B422 for ; Thu, 10 May 2001 13:00:44 -0700 (PDT) (envelope-from janb@cs.utep.edu) Received: from gecko (gecko [129.108.5.51]) by cs.utep.edu (8.11.3/8.11.3) with ESMTP id f4AJxx802885; Thu, 10 May 2001 13:59:59 -0600 (MDT) Date: Thu, 10 May 2001 14:00:00 -0600 (MDT) From: X-Sender: To: "Julian Stacey Jhs@jhs.muc.de" Cc: "Brian W. Buchanan" , J Wunsch , Subject: Re: fd driver hacking to recover data In-Reply-To: <200105101651.f4AGpMh58396@jhs.muc.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I wrote such a program on Win2000. If you feel this is helpful,email me and I will send it to you. JAn > > I have a program that will rescue your data ! > It runs on DOS-3.2 & FreeBSD-any BUT the rescue component only runs on DOS > (however at least you can compile & play with it on BSD to get used to it). > > I have no idea if the FreeBSD ports DOS emulators allow access to floppy > hardware or not ? If not, the other options are: > - to boot with DOS to run my program, > - or modify the FreeBSD fd driver to pass the buffer on error. > > By chance my program was just being discussed on another list, Here's extracts: > --------------------- > > Message-Id: <200105072157.f47LvVs42257@jhs.muc.de> > > To: freebsd-scsi@FreeBSD.ORG > > Cc: pechter@ureach.com, "Ron Klinkien" > > Subject: Re: Recovered data with positive head offset field replaceable unit msg > > Date: Mon, 07 May 2001 23:57:31 +0200 > > From: "Julian Stacey Jhs@jhs.muc.de" > > Sender: owner-freebsd-scsi@FreeBSD.ORG > > > > > > > > It's possible to recover most text data from bad floppies by repeat > > scanning, even without varying the offset, even with failing CRCs: > > I wrote a program that does that in ~87 > > http://bim.bsn.com/~jhs/src/bsd/jhs/bin/public/valid/valid.c & valid.1 > > (The recover part of the program's now larger functionality runs > > only on DOS though, not on Unix, as DOS passes filled buffers back > > even when read() returns CRC error, whereas FreeBSD discards the > > buffer content on error. > > > > Julian > --------------------- > > Date: Wed, 9 May 2001 09:11:58 +0200 (MET DST) > > Message-Id: <200105090711.f497Bwr27407@uriah.heep.sax.de> > > From: j@uriah.heep.sax.de (J Wunsch) > > Subject: Re: Recovered data with positive head offset field replaceable unit msg > > To: freebsd-scsi@FreeBSD.ORG > > > > Arranging for a `read track' functionality in the FreeBSD floppy > > driver should be possible. This will return you the entire /bit/ > > contents of the track, no CRC checks &c. Only the first sector ID > > will be synchronized, the remainder of the track is returned as it > > appears on the floppy; you need to manually bit-dealign and perhaps > > bit-reverse the remaining data. > --------------------- > > Hi Joerg, > Thanks, > Doing a track was what Greg L suggested to brian@CSUA.Berkeley.EDU, > however that sounds like more work, & not optimal maybe ? > In 1987 with DOS I was lucky, I did a read() on each sector, copied each > sector with a good CRC to hard disc, & only repeat tried > bad floppy sectors, doing a statistical average of each bit, > (if none of the reads gave me a good CRC). > (I also did multi sectors initially, then dropped to single sectors on error). > To avoid head (*) wear & increase chance of a good CRC to the max, > I'd prefer to stick to doing single sector seeks & reads, not tracks. > (*) Forget media wear: I reccomend anyone who uses my valid.c > to read odd sectors a few hundred/thousand times off already bad media, > to discard media after reading :-) > In an ideal world with lots of free time ;-) Brian Julian or Joerg > would extend src/sys/isa/fd.c to support > http://bim.bsn.com/~jhs/src/bsd/jhs/bin/public/valid/valid.c :-) > > - > Julian Stacey Unix Consultant - Munich Germany http://bim.bsn.com/~jhs/ > Ihr Rauchen => mein allergischer Kopfschmerz ! Kau/Schnupftabak probieren ! > Like Linux ? Then also look at FreeBSD with its 5000+ packages ! > > > > > > > > > > > > > > > > > > > > > > > > > > sector, & though I got -1, the sector data was there (even if mangled) > > Julian > - > Julian Stacey Unix Consultant - Munich Germany http://bim.bsn.com/~jhs/ > Ihr Rauchen => mein allergischer Kopfschmerz ! Kau/Schnupftabak probieren ! > Like Linux ? Then also look at FreeBSD with its 5000+ packages ! > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 13:47: 6 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (Postfix) with ESMTP id A596837B422 for ; Thu, 10 May 2001 13:47:01 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id WAA15678; Thu, 10 May 2001 22:46:49 +0200 (CEST) Received: (from j@localhost) by uriah.heep.sax.de (8.11.3/8.11.3) id f4AKZxh46555; Thu, 10 May 2001 22:35:59 +0200 (MET DST) (envelope-from j) Date: Thu, 10 May 2001 22:35:59 +0200 From: J Wunsch To: "Julian Stacey Jhs@jhs.muc.de" Cc: "Brian W. Buchanan" , hackers@FreeBSD.ORG Subject: Re: fd driver hacking to recover data Message-ID: <20010510223559.B46010@uriah.heep.sax.de> Reply-To: Joerg Wunsch References: <200105101651.f4AGpMh58396@jhs.muc.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200105101651.f4AGpMh58396@jhs.muc.de>; from jhs@jhs.muc.de on Thu, May 10, 2001 at 06:51:22PM +0200 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG As Julian Stacey Jhs@jhs.muc.de wrote: >> fd0c: hard error reading fsbn 0 of 0-31 (ST0 40 ST1 1 ST2 0 >> cyl 0 hd 0 sec 1) >> fd0c: hard error reading fsbn 1503 of 1488-1503 (ST0 44 >> ST1 20 ST2 20 cyl 41 hd 1 sec 10) For this kind of errors, it's hard to recover. The first one is a `no address mark', i. e. the synchronization field for the very first sector hasn't been found at all until the index hole passed by a second time. This means the floppy is hosed, i doubt you would be able to recover anything even at bit-level. I think even the READ TRACK command of the FDC would fail in that case, since it tries to synchronize to the first address mark of each track first (and then returns the stream of bits starting at that point, up to the index hole). The second one isn't all that much better either. Since both ST1 and ST2 display the `bad_crc', it means it's a CRC error in the address mark field already, thus the beginning of this sector hasn't been found. If only one of those messages were there, it would be a CRC error in the data field instead, so the address mark had been recognized, but the data are corrupted. In that case (and only in that case), the FDC actually does transfer the data to the kernel buffer, and it might be possible to somehow transfer it to the userland program as well. >> Since the files on the disks are just text, all I want to do is to >> be able to extract as many of the bits on the disk as possible, >> even if some of the bits are wrong, and then run strings over it >> and sort out the content. Btw. (don't know whether that's news to you), dd if=/dev/fd0 of=savefile conv=noerror,sync would prevent dd from stopping at the first error, and insert a block full of null bytes for all bad sectors. Note however that it'll be dog slow, since one read(2) is being issued for each sector by itself, which will almost guarantee to lose one floppy revolution until the next sector can be read. (Normally, when handling a floppy, you could increase the block size to something larger, e. g. bs=18k to issue one read(2) for an entire cylinder, but for conv=error, it would then declare the entire cylinder's worth of data to be in error, and discard them.) > I have a program that will rescue your data ! I seriously doubt it will recover the floppy with the dead address marks. ;-) > I have no idea if the FreeBSD ports DOS emulators allow access to floppy > hardware or not ? Nope. > - or modify the FreeBSD fd driver to pass the buffer on error. See above, it would only help at all in the (not so frequent) case of a CRC error in the data field. In all cases of an error in the address mark detection, the FDC doesn't return errored data either. > In 1987 with DOS I was lucky, ... In 1987, you had 5.25" floppies however. ;-) I can still read all of them today, while all the 3.5" crap fails within way shorter intervals, and thus probably also fails more frequently with address mark errors. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 14:20:30 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mimer.webgiro.com (mimer.webgiro.com [213.162.131.14]) by hub.freebsd.org (Postfix) with ESMTP id 792CB37B423 for ; Thu, 10 May 2001 14:20:20 -0700 (PDT) (envelope-from abial@webgiro.com) Received: by mimer.webgiro.com (Postfix, from userid 501) id B7BC7345DC; Thu, 10 May 2001 23:39:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mimer.webgiro.com (Postfix) with ESMTP id B2EFB34521; Thu, 10 May 2001 23:39:28 +0200 (CEST) Date: Thu, 10 May 2001 23:39:28 +0200 (CEST) From: Andrzej Bialecki To: Trimarchi Michael Cc: freebsd-hackers@freebsd.org Subject: Re: picoBSD In-Reply-To: <5.0.0.25.2.20010508084509.009e5710@pop1.village.tin.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 8 May 2001, Trimarchi Michael wrote: > Where is the picoBSD source code ? Can i compile for ARM processor ? 1. /usr/src/release/picobsd 2. No (i.e. you could cross-compile the programs/libs, but I haven't seen the FreeBSD ARM kernel running yet.. :-) -- Andrzej // ---------------------------------------------------------------- // Andrzej Bialecki , Chief System Architect // WebGiro AB, Sweden (http://www.webgiro.com) // ---------------------------------------------------------------- // FreeBSD developer (http://www.freebsd.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 16:42:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from msgbas1.cos.agilent.com (msgbas1x.cos.agilent.com [192.6.9.33]) by hub.freebsd.org (Postfix) with ESMTP id DD9FB37B424 for ; Thu, 10 May 2001 16:42:20 -0700 (PDT) (envelope-from ashish_lal@agilent.com) Received: from msgrel1.cos.agilent.com (msgrel1.cos.agilent.com [130.29.152.77]) by msgbas1.cos.agilent.com (Postfix) with ESMTP id 4B50A56F for ; Thu, 10 May 2001 17:42:20 -0600 (MDT) Received: from axcsbh2.cos.agilent.com (axcsbh2.cos.agilent.com [130.29.152.144]) by msgrel1.cos.agilent.com (Postfix) with SMTP id 0DDFB22 for ; Thu, 10 May 2001 17:42:20 -0600 (MDT) Received: from 130.29.152.144 by axcsbh2.cos.agilent.com (InterScan E-Mail VirusWall NT); Thu, 10 May 2001 17:42:19 -0600 (Mountain Daylight Time) Received: by axcsbh2.cos.agilent.com with Internet Mail Service (5.5.2653.19) id ; Thu, 10 May 2001 17:42:19 -0600 Message-ID: <3BA28805BB22D41183A2009027AA5AFA04C52FD3@axand03.and.agilent.com> From: ashish_lal@agilent.com To: freebsd-hackers@freebsd.org Subject: kernel boot up problem Date: Thu, 10 May 2001 17:42:18 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi: I am using FreeBSD 3.3 on a proprietary machine. The problem is that a T1 card (which is a PCI device) conflicts with an in-built PCI Intel Ethernet 10/100 card (fxp0). Please let me know me if I have to modify the T1 driver. Basically the kernel stops after the T1 driver's probe function (I don't think it reaches the attach function). The fxp0 and the T1 card show an IRQL conflict (both have irq 0x10). Is there a way to resolve this conflict? I have tried "boot -c" and can't change the irql of either device. Thanks, --Ashish To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 18:42:19 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by hub.freebsd.org (Postfix) with ESMTP id EA7DD37B424 for ; Thu, 10 May 2001 18:42:17 -0700 (PDT) (envelope-from jazepeda@pacbell.net) Received: from zippy.mybox.zip ([207.214.149.95]) by mta5.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0GD500HGAE2C9A@mta5.snfc21.pbi.net> for hackers@freebsd.org; Thu, 10 May 2001 18:42:13 -0700 (PDT) Received: by zippy.mybox.zip (Postfix, from userid 1000) id D97F8181C; Thu, 10 May 2001 18:42:11 -0700 (PDT) Date: Thu, 10 May 2001 18:42:11 -0700 From: Alex Zepeda Subject: Re: FreeBSD ld.so performance ? In-reply-to: <20010509080208.A2814@sharmas.dhs.org>; from arun@sharmas.dhs.org on Wed, May 09, 2001 at 08:02:08AM -0700 To: Arun Sharma Cc: hackers@freebsd.org Message-id: <20010510184211.A1937@zippy.mybox.zip> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <20010509080208.A2814@sharmas.dhs.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, May 09, 2001 at 08:02:08AM -0700, Arun Sharma wrote: > http://www.suse.de/~bastian/Export/linking.txt > > Has anyone done a comparative study ? Not really, however even with the recent rtld patches.. KDE apps aren't very quick on their feet. This leads me to believe that the most room for improvement is left in g++ and/or gnu ld, not the rtld. Of course reducing the number of shlibs that KDE requires would go a long way towards creating faster startup as well.. - alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 20:20:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 9272C37B423 for ; Thu, 10 May 2001 20:20:41 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from spike.unixfreak.org (spike [63.198.170.139]) by bazooka.unixfreak.org (Postfix) with ESMTP id F3FB43E28; Thu, 10 May 2001 20:20:40 -0700 (PDT) To: Poul-Henning Kamp Cc: hackers@freebsd.org Subject: Re: Who's cleaning up after disk_clone? In-Reply-To: <75404.989482620@critter>; from phk@critter.freebsd.dk on "Thu, 10 May 2001 10:17:00 +0200" Date: Thu, 10 May 2001 20:20:40 -0700 From: Dima Dorfman Message-Id: <20010511032041.F3FB43E28@bazooka.unixfreak.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Poul-Henning Kamp writes: > In message <20010510074028.847EE3E28@bazooka.unixfreak.org>, Dima Dorfman writes: > > - what should be destroying /dev/md0c? > > The disk-minilayer. > > We need some to keep track of cloned dev_t's so we can nuke them > at various strategic points, havn't gotten to that yet. Well, that sounds pretty easy to do. Patch attached. It solves this problem quite effectively. At this point it only nukes the clones when disk_destroy is called; I don't know if there are other places this should be done. Comments? Dima Dorfman dima@unixfreak.org Index: sys/conf.h =================================================================== RCS file: /st/src/FreeBSD/src/sys/sys/conf.h,v retrieving revision 1.127 diff -u -r1.127 conf.h --- sys/conf.h 2001/05/01 08:13:17 1.127 +++ sys/conf.h 2001/05/11 03:17:14 @@ -86,6 +86,7 @@ int __sid_bsize_best; /* optimal block size */ } __si_disk; } __si_u; + LIST_ENTRY(specinfo) si_clist; }; #define si_tty __si_u.__si_tty.__sit_tty Index: sys/disk.h =================================================================== RCS file: /st/src/FreeBSD/src/sys/sys/disk.h,v retrieving revision 1.17 diff -u -r1.17 disk.h --- sys/disk.h 2000/06/15 20:30:53 1.17 +++ sys/disk.h 2001/05/11 03:17:14 @@ -30,6 +30,7 @@ dev_t d_dev; struct diskslices *d_slice; struct disklabel d_label; + LIST_HEAD(, specinfo) d_clones; LIST_ENTRY(disk) d_list; }; Index: kern/subr_disk.c =================================================================== RCS file: /st/src/FreeBSD/src/sys/kern/subr_disk.c,v retrieving revision 1.36 diff -u -r1.36 subr_disk.c --- kern/subr_disk.c 2001/05/06 21:55:22 1.36 +++ kern/subr_disk.c 2001/05/11 03:17:14 @@ -86,6 +86,7 @@ *dev = make_dev(pdev->si_devsw, dkmakeminor(u, s, p), UID_ROOT, GID_OPERATOR, 0640, name); + LIST_INSERT_HEAD(&dp->d_clones, *dev, si_clist); return; } } @@ -129,6 +130,7 @@ dp->d_dev = dev; dp->d_dsflags = flags; dp->d_devsw = cdevsw; + LIST_INIT(&dp->d_clones); LIST_INSERT_HEAD(&disklist, dp, d_list); if (!once) { EVENTHANDLER_REGISTER(dev_clone, disk_clone, 0, 1000); @@ -174,7 +176,14 @@ void disk_destroy(dev_t dev) { + dev_t pdev; + LIST_REMOVE(dev->si_disk, d_list); + while (!LIST_EMPTY(&dev->si_disk->d_clones)) { + pdev = LIST_FIRST(&dev->si_disk->d_clones); + LIST_REMOVE(pdev, si_clist); + destroy_dev(pdev); + } bzero(dev->si_disk, sizeof(*dev->si_disk)); dev->si_disk = NULL; destroy_dev(dev); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 21:38:38 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tango.entreri.com (tango.entreri.com [205.219.158.250]) by hub.freebsd.org (Postfix) with ESMTP id 0F6BD37B423 for ; Thu, 10 May 2001 21:38:36 -0700 (PDT) (envelope-from dp@penix.org) Received: from penix.org (Toronto-ppp220721.sympatico.ca [64.228.103.46]) by tango.entreri.com (8.10.2/8.9.1) with ESMTP id f4B1acx13511; Thu, 10 May 2001 20:36:39 -0500 Message-ID: <3AFB4529.474AC40E@penix.org> Date: Thu, 10 May 2001 21:49:29 -0400 From: Paul Halliday X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: ashish_lal@agilent.com Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: kernel boot up problem References: <3BA28805BB22D41183A2009027AA5AFA04C52FD3@axand03.and.agilent.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ashish_lal@agilent.com wrote: > > Hi: > I am using FreeBSD 3.3 on a proprietary machine. The problem is that a T1 > card (which is a PCI device) conflicts with an in-built PCI Intel Ethernet > 10/100 card (fxp0). Please let me know me if I have to modify the T1 driver. You can probably change the builtins defaults from your bios. -- Paul H. =============================================================== Don't underestimate the power of stupid people in large groups. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu May 10 21:56:15 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from beastie.mckusick.com (beastie.mckusick.com [209.31.233.184]) by hub.freebsd.org (Postfix) with ESMTP id DB78237B423 for ; Thu, 10 May 2001 21:56:09 -0700 (PDT) (envelope-from mckusick@mckusick.com) Received: from beastie.mckusick.com (localhost [127.0.0.1]) by beastie.mckusick.com (8.9.3/8.9.3) with ESMTP id VAA14681; Thu, 10 May 2001 21:56:07 -0700 (PDT) (envelope-from mckusick@beastie.mckusick.com) Message-Id: <200105110456.VAA14681@beastie.mckusick.com> To: Alfred Perlstein Subject: Re: utilizing write caching Cc: hackers@freebsd.org In-Reply-To: Your message of "Thu, 19 Apr 2001 00:07:12 PDT." <20010419000712.C976@fw.wintelcom.net> Date: Thu, 10 May 2001 21:56:07 -0700 From: Kirk McKusick Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sorry for the slow response. I only read my freebsd.org email very occationally. Soft updates does do most of its writes asynchronously, but it still needs to know when the data has really hit stable store. With SCSI disks, we can use tag queuing to reliably get this information. With IDE disks the only way to get this information is to disable write-cacheing. Most failure senarios allow IDE disks to write out their caches - software crashes, plug pulled out of the wall, etc. Where they cannot write out their caches are instances where the power drops nearly instantly such as a power supply failure, or the battery being pulled out of a laptop. We could decide that we are willing to lump those sorts of failures in with media failure as a class of problems that we choose not to protect against, but I think that should be a decision that users have to take an active role to make (much as they can choose to mount their filesystems async). So, I agree with the decision to turn off write caching by default, though there should be an easy way to reenable it for those users that want to run the associated risks. Kirk McKusick =-=-=-=-=-= Date: Thu, 19 Apr 2001 00:07:12 -0700 From: Alfred Perlstein To: hackers@freebsd.org Cc: Kirk McKusick Subject: utilizing write caching I'm sure you guys remeber the recent discusion wrt write caching on disks possibly causing inconsistancies for UFS and just about any filesystem or program that expect things like fsync() to actually work. The result of the discussion was that write caching was disabled for all disks. I really think this is suboptimal. I mean _really_ suboptimal, my laptop disk is a pig since the default went in for ata disks. Or maybe it's just a pig anyway, but I'd like to take a look at this. The most basic fix to gain performance back would be to have the device examine the B_ASYNC flags and decide there whether or not to perform write caching. However, I have this strange feeling that softupdates is actually able to issue the meta-data writes with B_ASYNC set. Kirk, is this true? If so would it be possible to tag the buffer with yet another flag saying "yes, write me async, but safely" when doing softdep disk io? If softupdates doesn't use B_ASYNC, then it seems trivial to make DEV_STRATEGY propogate B_ASYNC into the bio request (BIO_STRATEGY) via OR'ing something like BIO_CACHE so that the device driver could then choose to activate write caching. This is still suboptimal because we'll be turning off caching when the buffer system is experiencing a shortage and issuing sync writes in order not to deadlock, but it's still better IMO than turning it off completely. If on the otherhand Kirk can figure out a quick hack to flag buffers that need completely stable storage (including fsync(2)*) ops then I think we've got a solution. (*) i'll look at fsync and physio if the scope of fixing those seems to be too much wrt to time available. If softupdates doesn't use B_ASYNC something like this: Index: sys/bio.h =================================================================== RCS file: /home/ncvs/src/sys/sys/bio.h,v retrieving revision 1.104 diff -u -r1.104 bio.h --- sys/bio.h 2001/01/14 18:48:42 1.104 +++ sys/bio.h 2001/04/19 06:53:52 @@ -91,6 +91,7 @@ #define BIO_ERROR 0x00000001 #define BIO_ORDERED 0x00000002 #define BIO_DONE 0x00000004 +#define BIO_ASYNC 0x00000008 /* Device may choose to write cache */ #define BIO_FLAG2 0x40000000 /* Available for local hacks */ #define BIO_FLAG1 0x80000000 /* Available for local hacks */ Index: sys/conf.h =================================================================== RCS file: /home/ncvs/src/sys/sys/conf.h,v retrieving revision 1.126 diff -u -r1.126 conf.h --- sys/conf.h 2001/03/26 12:41:26 1.126 +++ sys/conf.h 2001/04/19 06:52:08 @@ -157,6 +157,8 @@ (bp)->b_io.bio_offset = (bp)->b_offset; \ else \ (bp)->b_io.bio_offset = dbtob((bp)->b_blkno); \ + if ((bp)->b_flags & B_ASYNC) \ + (bp)->b_io.bio_flags |= BIO_ASYNC \ (bp)->b_io.bio_done = bufdonebio; \ (bp)->b_io.bio_caller2 = (bp); \ BIO_STRATEGY(&(bp)->b_io, dummy); \ could do the trick, no? -- -Alfred Perlstein - [alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. ----- End forwarded message ----- -- -Alfred Perlstein - [alfred@freebsd.org] Daemon News Magazine in your snail-mail! http://magazine.daemonnews.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 0:56:29 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mr200.netcologne.de (mr200.netcologne.de [194.8.194.109]) by hub.freebsd.org (Postfix) with ESMTP id C614D37B422 for ; Fri, 11 May 2001 00:56:26 -0700 (PDT) (envelope-from pherman@frenchfries.net) Received: from husten.security.at12.de (dial-213-168-96-2.netcologne.de [213.168.96.2]) by mr200.netcologne.de (Mirapoint) with ESMTP id AFI37987; Fri, 11 May 2001 09:56:24 +0200 (CEST) Received: from localhost (localhost.security.at12.de [127.0.0.1]) by husten.security.at12.de (8.11.3/8.11.3) with ESMTP id f4B7u8m27867 for ; Fri, 11 May 2001 09:56:08 +0200 (CEST) (envelope-from pherman@frenchfries.net) Date: Fri, 11 May 2001 09:56:08 +0200 (CEST) From: Paul Herman To: Subject: ulimit -b in /bin/sh Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Not sure if -arch is a better list for this. If so, followups there. The units for sbsize in limits is currently displayed in bytes, not kilobytes. Changing the output to kb to be consistent with the others (datasize, stacksize, memoryuse, etc.) shouldn't be a problem... The problem would be with "limits -e". Right now, /bin/sh expects sbsize, i.e. "ulimit -b", to be in bytes rather than kilobytes. Ideally, /bin/sh should take "ulimit -b 1024" to mean "set sbsize limit to 1MB", just like "ulimit -m 1024" means "set memoryuse to 1MB." Now, get out your POLA guns. Would this change to /bin/sh be too astonishing? Are we stuck with the way it is now, or is it best to nip it in the bud and change this behavior now? -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 5:57:18 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f55.pav1.hotmail.com [64.4.31.55]) by hub.freebsd.org (Postfix) with ESMTP id EDCA137B423 for ; Fri, 11 May 2001 05:57:14 -0700 (PDT) (envelope-from jayeshkrishna@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 11 May 2001 05:57:14 -0700 Received: from 32.97.136.233 by pv1fd.pav1.hotmail.msn.com with HTTP; Fri, 11 May 2001 12:57:14 GMT X-Originating-IP: [32.97.136.233] From: "Jayesh Krishna" To: julian@elischer.org Cc: freebsd-hackers@freebsd.org Subject: Re: Writing device drivers (was: help me please) Date: Fri, 11 May 2001 18:27:14 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 11 May 2001 12:57:14.0821 (UTC) FILETIME=[E6D63750:01C0DA19] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, Thanx Julian for pointing me to the tunnel pseudo-driver. But my major concern was regarding linking the driver to the kernel( i am trying to use static linking stuff). I am presently doing a major grep on "tun" 8-) It would be great if i could get some docs regding which files have to be modified so that the kernel realises my driver. So far i could figure out that the below files have to be modified( did i leave anything ????) /usr/src/sys/i386/conf/* /usr/src/sys/conf/majors /usr/src/sys/conf/files Do i really have to modify the /usr/src/sys/modules/* files??? jayesh >From: Julian Elischer >To: Brian Somers >CC: Greg Lehey , Jayesh Krishna >, freebsd-hackers@FreeBSD.ORG >Subject: Re: Writing device drivers (was: help me please) >Date: Thu, 10 May 2001 12:51:42 -0700 > >Brian Somers wrote: > > > > > On Wednesday, 9 May 2001 at 10:40:50 +0530, Jayesh Krishna wrote: > > > > Hi guys... > > > > I am comfortable with Linux Device Drivers. Presently I am trying > > > > to write some pseudo-drivers in FreeBSD(4.2-Release). I tried out > > > > make_pseudo_driver.sh > > > > in the /usr/share/examples/drivers but it does not work :-( I also > > > > went through the "FreeBSD Device Driver Writer's Guide" by Eric L. > > > > Hernes but it seems to be outdated :-( > > > > Please someone point me out to some docs regarding writing >device > > > > drivers in FreeBSD.... > > > > > > "UTSL". Take a look at a similar driver and get to understand it. > > > I'm afraid that this is an area which is woefully undocumented. > > > > > > You'll also get more replies if you put a useful text on the Subject: > > > line. > > > > You should probably tell julian@ about the problems you have with > > make_pseudo_driver.sh. > >The pseudo one is known to be WAYYYYYYY out of date... > >the other one there (make_device_driver.sh) >is more or less up to date. > > > > > > Greg > > > -- > > > Finger grog@lemis.com for PGP public key > > > See complete headers for address and phone numbers > > > > -- > > Brian > > > > > > Don't _EVER_ lose your sense of humour ! > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > >-- > __--_|\ Julian Elischer > / \ julian@elischer.org > ( OZ ) World tour 2000-2001 >---> X_.---._/ > v _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 6: 9:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 79FF037B422 for ; Fri, 11 May 2001 06:09:46 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4BD9i325002; Fri, 11 May 2001 14:09:44 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4BD9e692990; Fri, 11 May 2001 14:09:41 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200105111309.f4BD9e692990@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: "Jayesh Krishna" Cc: julian@elischer.org, freebsd-hackers@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: Writing device drivers (was: help me please) In-Reply-To: Message from "Jayesh Krishna" of "Fri, 11 May 2001 18:27:14 +0530." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 11 May 2001 14:09:37 +0100 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > hi, > Thanx Julian for pointing me to the tunnel pseudo-driver. > But my major concern was regarding linking the driver to the kernel( i > am trying to use static linking stuff). I am presently doing > a major grep on "tun" 8-) > It would be great if i could get some docs regding which files > have to be modified so that the kernel realises my driver. So far > i could figure out that the below files have to be modified( did i leave > anything ????) > > /usr/src/sys/i386/conf/* > /usr/src/sys/conf/majors > /usr/src/sys/conf/files That's about it. > Do i really have to modify the /usr/src/sys/modules/* files??? Only if you want a module (and have a MODULE_DECLARE in your source). I would suggest that it's worthwhile spending the time making your code modular - it makes development easier and leads to better practices of ensuring that your detach cleans up all resources etc. > jayesh -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 7:41:51 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail-ob05.one.net.au (mail-ob05.one.net.au [61.12.0.165]) by hub.freebsd.org (Postfix) with ESMTP id 63D4E37B440; Fri, 11 May 2001 07:41:42 -0700 (PDT) (envelope-from adrirub@one.net.au) Received: Received: [from one.net.au (async9_pool_1.adel.mega.one.net.au [61.12.244.9]) by mail-ob05.one.net.au with ESMTP id f4BEfAa28147; Sat, 12 May 2001 00:41:11 +1000 (EST)] Message-ID: <3AFBFB36.526C4B2A@one.net.au> Date: Sat, 12 May 2001 00:16:14 +0930 From: Rubens X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Cc: freebsd-fs@freebsd.org Subject: Re: Cannot mount logical partitions References: <3AFA9A65.F3CCB40B@one.net.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG (From post to comp.unix.bsd.misc) Hmmm - since I got no answers to that, I changed the kernel and fdisk code to do it, and it looks like it worked. I am including uuencoded versions of both context diffs. (FreeBSD 4.2) begin 644 kernel_patch M26YD97@Z('-Y7,O:V5R;B]S M=6)R7V1I"!E M>'1E;F1E9"!P87)T:71I;VX@*B\*("`C:6YC;'5D92`\7,O;6%L;&]C+F@^"B`@(VEN8VQU9&4@/'-Y M7-L;V7!E(#T]($Q)3E!465!?15A414Y$140@?'P*("`) M"2`@("!S<"T^9'-?='EP92`]/2!$3U-05%E07T585$5.1$5$6"D*("`)"0EM M8G)?97AT96YD960H8G`M/F)?9&5V+"!L<"P@F4@ M/3T@,"D*("`)"0EC;VYT:6YU93L*("`)"6EF("AD<"T^9'!?='EP(#T]($1/ M4U!465!?15A414Y$140@?'P**R`)"0ED<"T^9'!?='EP(#T]($Q)3E!465!? M15A414Y$140@?'P*("`)"2`@("!D<"T^9'!?='EP(#T]($1/4U!465!?15A4 G14Y$1418*2!["B`@"0D)S!X.#,L("),:6YU M>"!F:6QE#@U+"`B3&EN=7@@17AT96YD960@4&%R M=&ET:6]N(GT*("`)+'LP>#DS+"`B06UO96)A(&9I;&5S>7-T96TB?0H@(`DL M>S!X.30L(")!;6]E8F$@8F%D(&)L;V-K('1A8FQE(GT*("`)+'LP>#E&+"`B )0E-$+T]3(GT* ` end Rubens Ramos Fernandes Junior wrote: > > Sorry, I know this has already been discussed but I read heaps of > threads and I still cannot mount my linux ext2 logical partitions > under FreeBSD! > > Under linux (RH6.2), I have: > hdb1 hdb2* > > And I can only mount ad1s1 under FreeBSD 4.2. > I used MAKEDEV to create ad1s3, 4, 5 and 6, > used "options EXT2FS" > and tried to mount /dev/ad1s[3-5] without any success. > > I also tried all sorts of weird stuff, like trying to mount > /dev/ad1s[1-6][a-h]... > > Also removed all options from the linux filesystems using > tune2fs... (sparse_sblocks...) > > I heard people saying they can mount their ext2 logical partitions > in FreeBSD, but how? > > Thanks a lot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 10:49:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.numachi.com (numachi.numachi.com [198.175.254.2]) by hub.freebsd.org (Postfix) with SMTP id CFDCC37B43C for ; Fri, 11 May 2001 10:49:44 -0700 (PDT) (envelope-from reichert@natto.numachi.com) Received: (qmail 2577 invoked by uid 3001); 11 May 2001 17:49:43 -0000 Received: from natto.numachi.com (198.175.254.216) by numachi.numachi.com with SMTP; 11 May 2001 17:49:43 -0000 Received: (qmail 4636 invoked by uid 1001); 11 May 2001 17:49:43 -0000 Date: Fri, 11 May 2001 13:49:43 -0400 From: Brian Reichert To: freebsd-hackers@freebsd.org Subject: availability of 'St.d - Server Tester (disk)' Message-ID: <20010511134943.C2681@numachi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm trying to get to but the DNS for simon-shapiro.org is screwed. The name server seems to be hosting the ftp/web server as well, so I can use this: Does anyone have any opinions (good/bad) about this utility? -- Brian 'you Bastard' Reichert 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA Intel architecture: the left-hand path To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 10:53:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from msgbas1.cos.agilent.com (msgbas1x.cos.agilent.com [192.6.9.33]) by hub.freebsd.org (Postfix) with ESMTP id 3236937B423 for ; Fri, 11 May 2001 10:53:31 -0700 (PDT) (envelope-from ashish_lal@agilent.com) Received: from msgrel1.cos.agilent.com (msgrel1.cos.agilent.com [130.29.152.77]) by msgbas1.cos.agilent.com (Postfix) with ESMTP id 7BF8F1268; Fri, 11 May 2001 11:53:23 -0600 (MDT) Received: from axcsbh4.cos.agilent.com (axcsbh4.cos.agilent.com [130.29.152.145]) by msgrel1.cos.agilent.com (Postfix) with SMTP id 2ECC7BC; Fri, 11 May 2001 11:53:23 -0600 (MDT) Received: from 130.29.152.145 by axcsbh4.cos.agilent.com (InterScan E-Mail VirusWall NT); Fri, 11 May 2001 11:53:22 -0600 (Mountain Daylight Time) Received: by axcsbh4.cos.agilent.com with Internet Mail Service (5.5.2653.19) id ; Fri, 11 May 2001 11:53:22 -0600 Message-ID: <3BA28805BB22D41183A2009027AA5AFA04C5308C@axand03.and.agilent.com> From: ashish_lal@agilent.com To: dp@penix.org Cc: freebsd-hackers@FreeBSD.ORG Subject: RE: kernel boot up problem Date: Fri, 11 May 2001 11:53:21 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks for the reply. I first tried to change the IRQ from the BIOS. I saw that the IRQ of both the cards changes together. The machine has 4 CPUs and I am booting from CPU #1. The bios shows 4 PCI slots. The "Plug and Play OS" entry in the BIOS is set to "No". Any help will be greatly appreciated. Thanks, --Ashish -----Original Message----- From: Paul Halliday [mailto:dp@penix.org] Sent: Thursday, May 10, 2001 9:49 PM To: ashish_lal@agilent.com Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: kernel boot up problem ashish_lal@agilent.com wrote: > > Hi: > I am using FreeBSD 3.3 on a proprietary machine. The problem is that a T1 > card (which is a PCI device) conflicts with an in-built PCI Intel Ethernet > 10/100 card (fxp0). Please let me know me if I have to modify the T1 driver. You can probably change the builtins defaults from your bios. -- Paul H. =============================================================== Don't underestimate the power of stupid people in large groups. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 11: 9:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tango.entreri.com (tango.entreri.com [205.219.158.250]) by hub.freebsd.org (Postfix) with ESMTP id EC98937B424 for ; Fri, 11 May 2001 11:09:30 -0700 (PDT) (envelope-from dp@penix.org) Received: from penix.org (Toronto-ppp220721.sympatico.ca [64.228.103.46]) by tango.entreri.com (8.10.2/8.9.1) with ESMTP id f4BI9fx14804; Fri, 11 May 2001 13:09:41 -0500 Message-ID: <3AFC2DE8.10A6FEF0@penix.org> Date: Fri, 11 May 2001 14:22:32 -0400 From: Paul Halliday X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-RC i386) X-Accept-Language: en MIME-Version: 1.0 To: ashish_lal@agilent.com Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: kernel boot up problem References: <3BA28805BB22D41183A2009027AA5AFA04C5308C@axand03.and.agilent.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ashish_lal@agilent.com wrote: > > Thanks for the reply. I first tried to change the IRQ from the BIOS. I saw > that the IRQ of both the cards changes together. hmm.. the only other thing I could suggest is if possible is flashing the eprom on the T1 card. I am not sure if this card supports it or not but if it came with some sort of utility disk then this could be another possible fix. good luck. > The machine has 4 CPUs and > I am booting from CPU #1. The bios shows 4 PCI slots. The "Plug and Play OS" > entry in the BIOS is set to "No". > Any help will be greatly appreciated. > Thanks, > --Ashish > -- Paul Halliday. http://dp.penix.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 15:13: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bubbette.cs.rice.edu (bubbette.cs.rice.edu [128.42.3.109]) by hub.freebsd.org (Postfix) with ESMTP id 0417537B423 for ; Fri, 11 May 2001 15:13:00 -0700 (PDT) (envelope-from ssiyer@bubbette.cs.rice.edu) Received: (from ssiyer@localhost) by bubbette.cs.rice.edu (8.11.3/8.9.3) id f4BMAXM04978 for freebsd-hackers@FreeBSD.org; Fri, 11 May 2001 17:10:33 -0500 (CDT) (envelope-from ssiyer) Date: Fri, 11 May 2001 17:10:33 -0500 From: Sitaram Iyer To: freebsd-hackers@FreeBSD.org Subject: possible bug in/around dscheck()? Message-ID: <20010511171033.A4960@cs.rice.edu> Reply-To: Sitaram Iyer Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i X-url: http://www.cs.rice.edu/~ssiyer/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I was mirroring some disks (happily ignoring badblocks), using rsh source_machine dd if=/dev/ad0 bs=1MB | dd of=/dev/ad0 bs=1MB with FreeBSD-4.3-release running both machines. This sometimes (disastrously) aborts when a partition boundary is crossed. Sure enough, dscheck() invoked from diskstrategy() complains about b_bcount not on a sector boundary (happens in one of three locations within dscheck). I think this condition should not be checked when dd'ing entire disks. Incidentally, I think the 2.2.6-release kernel does the right thing. On a related note, is there any reason why dd should abort after 8GB? I'm not sure this always happens, but I've definitely noticed it once. PS - please Cc any replies to me. Thanks. Sitaram To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 15:16:45 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bsdconspiracy.net (bsdconspiracy.net [208.187.122.220]) by hub.freebsd.org (Postfix) with ESMTP id CEACC37B423 for ; Fri, 11 May 2001 15:16:42 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from wes by bsdconspiracy.net with local (Exim 3.14 #1) id 14yLCZ-00023C-00; Fri, 11 May 2001 16:15:59 -0600 Subject: Re: kernel boot up problem In-Reply-To: <3BA28805BB22D41183A2009027AA5AFA04C5308C@axand03.and.agilent.com> from "ashish_lal@agilent.com" at "May 11, 2001 11:53:21 am" To: ashish_lal@agilent.com Date: Fri, 11 May 2001 16:15:59 -0600 (MDT) Cc: dp@penix.org, freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL66 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: From: Wes Peters Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Charset iso-8859-1 unsupported, filtering to ASCII...] Please send email to FreeBSD lists in plain ASCII, this really hoses those of us who use (or are stuck with) old mailers. > > Hi: > > I am using FreeBSD 3.3 on a proprietary machine. The problem is that a T1 > > card (which is a PCI device) conflicts with an in-built PCI Intel Ethernet > > 10/100 card (fxp0). Please let me know me if I have to modify the T1 > > driver. > > Thanks for the reply. I first tried to change the IRQ from the BIOS. I saw > that the IRQ of both the cards changes together. The machine has 4 CPUs and > I am booting from CPU #1. The bios shows 4 PCI slots. The "Plug and Play OS" > entry in the BIOS is set to "No". Did you try sticking the T1 card in another PCI slot? Some mothers have on-board resources like ethernet controllers "shared" with certain PCI slots, which leads to this sort of confusion. Wes Peters To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 15:48:48 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from amdext.amd.com (amdext.amd.com [139.95.251.1]) by hub.freebsd.org (Postfix) with ESMTP id 7CEB437B423 for ; Fri, 11 May 2001 15:48:46 -0700 (PDT) (envelope-from marc.miller@caexmta3.amd.com) Received: from ssvlgs01.amd.com (ssvlgs01.amd.com [139.95.250.16]) by amdext.amd.com (8.9.3/8.9.3/AMD) with SMTP id PAA14961 for ; Fri, 11 May 2001 15:48:45 -0700 (PDT) From: marc.miller@caexmta3.amd.com Received: from 139.95.250.1 by ssvlgs01.amd.com with ESMTP (Tumbleweed MMS SMTP Relay (MMS v4.7)); Fri, 11 May 2001 15:48:44 -0700 X-Server-Uuid: 02753650-11b0-11d5-bbc5-00508bf987eb Received: from caexmta3.amd.com (caexmta3.amd.com [139.95.53.7]) by amdint.amd.com (8.9.3/8.9.3/AMD) with ESMTP id PAA18634 for ; Fri, 11 May 2001 15:48:44 -0700 (PDT) Received: by caexmta3.amd.com with Internet Mail Service (5.5.2653.19) id ; Fri, 11 May 2001 15:48:43 -0700 Message-ID: <858788618A93D111B45900805F85267A03668B45@caexmta3.amd.com> To: hackers@FreeBSD.org Subject: subscribe Date: Fri, 11 May 2001 15:48:42 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 16E2B3C629063-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 16:58:38 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from winston.osd.bsdi.com (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id A7B8637B423 for ; Fri, 11 May 2001 16:58:34 -0700 (PDT) (envelope-from jkh@osd.bsdi.com) Received: from localhost (jkh@localhost [127.0.0.1]) by winston.osd.bsdi.com (8.11.3/8.11.2) with ESMTP id f4BNw5305365; Fri, 11 May 2001 16:58:05 -0700 (PDT) (envelope-from jkh@osd.bsdi.com) To: marc.miller@caexmta3.amd.com Cc: hackers@FreeBSD.ORG Subject: Re: subscribe In-Reply-To: <858788618A93D111B45900805F85267A03668B45@caexmta3.amd.com> References: <858788618A93D111B45900805F85267A03668B45@caexmta3.amd.com> X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010511165805E.jkh@osd.bsdi.com> Date: Fri, 11 May 2001 16:58:05 -0700 From: Jordan Hubbard X-Dispatcher: imput version 20000228(IM140) Lines: 31 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ Sorry to send you a form letter, but I just happen to have one which covers this case and it saves me some typing :) -jkh ] If you're receiving this message, it's because you just sent a "subscribe" message erroneously to one of our mailing lists, resulting in thousands (and, in some cases, tens of thousands) of people seeing a "subscribe me" message in their mailboxes when they have nothing to do with the process of adding users like yourself to our mailing lists. What we suggest is to read our mailing list FAQ at: http://www.freebsd.org/handbook/eresources.html#ERESOURCES-MAIL Paying particular attention to section 27.1.2: "How to subscribe." You should also be very sure to read section 27.1.3 as well, the mailing list charters. These describe very precisely just how each mailing list may be used and the range of topics allowed for each one. This will help you from making the SECOND most common new user mistake which is to post messages on subject A incorrectly to a mailing list devoted exclusively to the discussion of subject B. The FreeBSD mailing lists have gotten simply huge, with discussion traffic often exceeding 500,000 messages a week, and your cooperation is greatly appreciated in trying to keep the "noise level" down to manageable proportions so that those actually involved in project development, as well as the users of the project, can remain active members of the mailing lists. Thank you. Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 17: 1:43 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from winston.osd.bsdi.com (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id E76C237B423 for ; Fri, 11 May 2001 17:01:41 -0700 (PDT) (envelope-from jkh@osd.bsdi.com) Received: from localhost (jkh@localhost [127.0.0.1]) by winston.osd.bsdi.com (8.11.3/8.11.2) with ESMTP id f4C01E305396 for ; Fri, 11 May 2001 17:01:14 -0700 (PDT) (envelope-from jkh@osd.bsdi.com) To: hackers@FreeBSD.ORG Subject: Re: subscribe In-Reply-To: <20010511165805E.jkh@osd.bsdi.com> References: <858788618A93D111B45900805F85267A03668B45@caexmta3.amd.com> <20010511165805E.jkh@osd.bsdi.com> X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010511170113S.jkh@osd.bsdi.com> Date: Fri, 11 May 2001 17:01:13 -0700 From: Jordan Hubbard X-Dispatcher: imput version 20000228(IM140) Lines: 6 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Argh! I'm sorry folks, I almost always remember to delete the cc line when I send somebody that particular form letter so as not to spam the list myself, but this time I forgot to do that before typing the send command. Bad Jordan, no cookie! - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 17: 2:18 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from newgold.net (usr.srcsys.org [209.42.222.44]) by hub.freebsd.org (Postfix) with SMTP id 5CD1737B43F for ; Fri, 11 May 2001 17:02:10 -0700 (PDT) (envelope-from jmallett@newgold.net) Received: (qmail 9191 invoked by uid 1000); 11 May 2001 23:59:03 -0000 Date: Fri, 11 May 2001 19:59:03 -0400 (EDT) From: Joseph Mallett To: Jordan Hubbard Cc: , Subject: Re: subscribe In-Reply-To: <20010511165805E.jkh@osd.bsdi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jordan, looks like you sold out! =P -- [ Joseph Mallett ] [ http://srcsys.org ] [ xMach Core Team xMach: Proactively Unbloated Microkernel BSD ] [ Proud {Free,Net}BSD User; (Obj)C(++) Programmer ] [ http://xMach.org ] On Fri, 11 May 2001, Jordan Hubbard wrote: > [ Sorry to send you a form letter, but I just happen to have one which > covers this case and it saves me some typing :) -jkh ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 18: 3:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 633C637B43C; Fri, 11 May 2001 18:03:20 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from spike.unixfreak.org (spike [63.198.170.139]) by bazooka.unixfreak.org (Postfix) with ESMTP id B3B893E0B; Fri, 11 May 2001 18:03:19 -0700 (PDT) To: hackers@freebsd.org Cc: gad@freebsd.org Subject: xargs(1) "replstr" patch Date: Fri, 11 May 2001 18:03:19 -0700 From: Dima Dorfman Message-Id: <20010512010319.B3B893E0B@bazooka.unixfreak.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Folks, The attached patch adds a "replacement string" feature to xargs(1). There's a full description in the man page update (also attached), but the following should demonstrate the new functionality: dima@spike% ./xargs -J [] echo CMD LINE [] ARGS < test CMD LINE this is the contents of the test file ARGS dima@spike% ./xargs -J [] echo CMD [] LINE ARGS < test CMD this is the contents of the test file LINE ARGS dima@spike% ./xargs -J [] echo [] CMD LINE ARGS < test this is the contents of the test file CMD LINE ARGS This is similar to, but not identical to, the -I option described in SUSv2. The latter allows the replstr ("[]" above) to be attached to other arguments, and appear multiple times. Furthermore, it implies '-n 1'. Although the features are similar, they can solve different problems; even if -I is implemented later, this (-J) would still be useful. -J also doesn't have the performance implications attached with -I. There was a nice, long thread about this on current a few weeks ago (topic: "Re: cp -d dir patch for review (or 'xargs'?)"). It was rather inconclusive, but nobody managed to come up with a way to *properly* and *easily* imitate this functionality. Writing a script to do this *properly* (i.e., handle environment growth) isn't as easy as it sounds (although it's possible, of course). The patch is a joint effort between myself and Garance Dorsihn (gad). Comments? Suggestions? Thanks in advance, Dima Dorfman dima@unixfreak.org Index: xargs.1 =================================================================== RCS file: /st/src/FreeBSD/src/usr.bin/xargs/xargs.1,v retrieving revision 1.13 diff -u -r1.13 xargs.1 --- xargs.1 2001/05/02 06:41:46 1.13 +++ xargs.1 2001/05/11 23:57:27 @@ -36,7 +36,7 @@ .\" @(#)xargs.1 8.1 (Berkeley) 6/6/93 .\" $FreeBSD: src/usr.bin/xargs/xargs.1,v 1.13 2001/05/02 06:41:46 dd Exp $ .\" -.Dd June 6, 1993 +.Dd May 7, 2001 .Dt XARGS 1 .Os .Sh NAME @@ -45,6 +45,7 @@ .Sh SYNOPSIS .Nm .Op Fl 0 +.Op Fl J Ar replstr .Oo .Fl n Ar number .Op Fl x @@ -91,6 +92,38 @@ .Fl print0 function in .Xr find 1 . +.It Fl J Ar replstr +If this option is specified, +.Nm +will use the data read from standard input to replace the first occurrence of +.Ar replstr +instead of appending that data after all other arguments. +This option will not effect how many arguments will be read from input +.Pq Fl n , +or the size of the command(s) +.Nm +will generate +.Pq Fl s . +The option just moves where those arguments will be placed in the command(s) +that are executed. +The +.Ar replstr +must show up as a distinct +.Ar argument +to +.Nm . +It will not be recognized if, for instance, it is in the middle of a +quoted string. +Furthermore, only the first occurrence of the +.Ar replstr +will be replaced. +For example, the following command will copy the list of files and +directories which start with an uppercase letter in the current +directory to +.Pa destdir : +.Pp +.Dl /bin/ls -1d [A-Z]* | xargs -J [] cp -rp [] destdir +.Pp .It Fl n Ar number Set the maximum number of arguments taken from standard input for each invocation of the utility. @@ -173,6 +206,11 @@ utility is expected to be .St -p1003.2 compliant. +The +.Fl J +option is a non-standard +.Fx +extention which may not be available on other operating systems. .Sh BUGS If .Ar utility Index: xargs.c =================================================================== RCS file: /st/src/FreeBSD/src/usr.bin/xargs/xargs.c,v retrieving revision 1.9 diff -u -r1.9 xargs.c --- xargs.c 1999/08/28 01:07:50 1.9 +++ xargs.c 2001/05/11 23:57:27 @@ -70,10 +70,15 @@ { register int ch; register char *p, *bbp, *ebp, **bxp, **exp, **xp; - int cnt, indouble, insingle, nargs, nflag, nline, xflag, wasquoted; - char **av, *argp, **ep = env; + int cnt, jfound, indouble, insingle; + int nargs, nflag, nline, xflag, wasquoted; + char **av, **avj, *argp, **ep, *replstr; long arg_max; + ep = env; + jfound = 0; + replstr = NULL; /* set if user requests -J */ + /* * POSIX.2 limits the exec line length to ARG_MAX - 2K. Running that * caused some E2BIG errors, so it was changed to ARG_MAX - 4K. Given @@ -96,8 +101,11 @@ nline -= strlen(*ep++) + 1 + sizeof(*ep); } nflag = xflag = wasquoted = 0; - while ((ch = getopt(argc, argv, "0n:s:tx")) != -1) + while ((ch = getopt(argc, argv, "0J:n:s:tx")) != -1) switch(ch) { + case 'J': + replstr = optarg; + break; case 'n': nflag = 1; if ((nargs = atoi(optarg)) <= 0) @@ -144,6 +152,13 @@ else { cnt = 0; do { + if (replstr && strcmp(*argv, replstr) == 0) { + jfound = 1; + argv++; + for (avj = argv; *avj; avj++) + cnt += strlen(*avj) + 1; + break; + } cnt += strlen(*bxp++ = *argv) + 1; } while (*++argv); } @@ -211,6 +226,10 @@ if (xp == exp || p > ebp || ch == EOF) { if (xflag && xp != exp && p > ebp) errx(1, "insufficient space for arguments"); + if (jfound) { + for (avj = argv; *avj; avj++) + *xp++ = *avj; + } *xp = NULL; run(av); if (ch == EOF) @@ -253,6 +272,10 @@ if (xflag) errx(1, "insufficient space for arguments"); + if (jfound) { + for (avj = argv; *avj; avj++) + *xp++ = *avj; + } *xp = NULL; run(av); xp = bxp; @@ -307,7 +330,8 @@ static void usage() { - (void)fprintf(stderr, -"usage: xargs [-0] [-t] [-n number [-x]] [-s size] [utility [argument ...]]\n"); + fprintf(stderr, + "usage: xargs [-0t] [-J replstr] [-n number [-x]] [-s size]\n" + " [utility [argument ...]]\n"); exit(1); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 18:35:21 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [209.152.133.57]) by hub.freebsd.org (Postfix) with ESMTP id 0000037B43C for ; Fri, 11 May 2001 18:35:18 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.3/8.11.1) id f4C1YvF61236; Fri, 11 May 2001 18:34:57 -0700 (PDT) (envelope-from obrien) Date: Fri, 11 May 2001 18:34:57 -0700 From: "David O'Brien" To: Jordan Hubbard Cc: hackers@FreeBSD.ORG Subject: Re: subscribe Message-ID: <20010511183457.A61080@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG References: <858788618A93D111B45900805F85267A03668B45@caexmta3.amd.com> <20010511165805E.jkh@osd.bsdi.com> <20010511170113S.jkh@osd.bsdi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010511170113S.jkh@osd.bsdi.com>; from jkh@osd.bsdi.com on Fri, May 11, 2001 at 05:01:13PM -0700 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, May 11, 2001 at 05:01:13PM -0700, Jordan Hubbard wrote: > Argh! I'm sorry folks, I almost always remember to delete the cc line > when I send somebody that particular form letter so as not to spam the > list myself, but this time I forgot to do that before typing the send > command. Bad Jordan, no cookie! Why is it we can't have majordomo filter these out and send the people your form reponce. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 20:33:25 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id 0568E37B43F; Fri, 11 May 2001 20:33:22 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.11.3/8.11.3) with ESMTP id f4C3XEB47480; Fri, 11 May 2001 23:33:14 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20010512010319.B3B893E0B@bazooka.unixfreak.org> References: <20010512010319.B3B893E0B@bazooka.unixfreak.org> Date: Fri, 11 May 2001 23:33:12 -0400 To: Dima Dorfman , hackers@FreeBSD.ORG From: Garance A Drosihn Subject: Re: xargs(1) "replstr" patch Cc: gad@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 6:03 PM -0700 5/11/01, Dima Dorfman wrote: >Comments? Suggestions? The one oddity I forgot to ask Dima about was in the man page. We included an example, which in nroff source is: >+For example, the following command will copy the list of files and >+directories which start with an uppercase letter in the current >+directory to >+.Pa destdir : >+.Pp >+.Dl /bin/ls -1d [A-Z]* | xargs -J [] cp -rp [] destdir >+.Pp When I install this man page on -stable, and do a 'man xargs', that last line is displayed to the user as: /bin/ls -1d [A-Z]* | xargs -J [] cp -rp /bin/ls0 0/bin/ls1 I keep meaning to test this on -current, but my freebsd-current box is at home, and I never remember to try this when I get home. But at least on -stable, it seems that ANYTHING I put after the 'cp -rp' gets translated into '/bin/ls0 0/bin/ls1'. This seems odd to me, but then I don't really know what any of the nroff macros are doing. (insert weak smiley here) -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 20:37:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 67FA837B423 for ; Fri, 11 May 2001 20:37:31 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from spike.unixfreak.org (spike [63.198.170.139]) by bazooka.unixfreak.org (Postfix) with ESMTP id E8F2E3E0B; Fri, 11 May 2001 20:37:30 -0700 (PDT) To: Garance A Drosihn Cc: hackers@FreeBSD.ORG Subject: Re: xargs(1) "replstr" patch In-Reply-To: ; from drosih@rpi.edu on "Fri, 11 May 2001 23:33:12 -0400" Date: Fri, 11 May 2001 20:37:30 -0700 From: Dima Dorfman Message-Id: <20010512033730.E8F2E3E0B@bazooka.unixfreak.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Garance A Drosihn writes: > At 6:03 PM -0700 5/11/01, Dima Dorfman wrote: > >+For example, the following command will copy the list of files and > >+directories which start with an uppercase letter in the current > >+directory to > >+.Pa destdir : > >+.Pp > >+.Dl /bin/ls -1d [A-Z]* | xargs -J [] cp -rp [] destdir > >+.Pp > > When I install this man page on -stable, and do a 'man xargs', > that last line is displayed to the user as: > > /bin/ls -1d [A-Z]* | xargs -J [] cp -rp /bin/ls0 0/bin/ls1 That's because it uses more than 8 arguments to ".Dl". Old versions of mdoc (read: anything before about a month ago) had a silly limit on the number of arguments. This isn't a problem on any recent -current or -stable. Dima Dorfman dima@unixfreak.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 22:53:23 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from wilma.widomaker.com (wilma.widomaker.com [204.17.220.5]) by hub.freebsd.org (Postfix) with ESMTP id 2ABB337B423 for ; Fri, 11 May 2001 22:53:20 -0700 (PDT) (envelope-from shannon@widomaker.com) Received: from [206.246.249.221] (helo=escape.shannon.net) by wilma.widomaker.com with esmtp (Exim 3.22 #2) id 14ySL8-000GvJ-00 for freebsd-hackers@freebsd.org; Sat, 12 May 2001 01:53:18 -0400 Received: (from shannon@localhost) by escape.shannon.net (8.11.0/8.8.8) id f4BNsQa23395 for freebsd-hackers@freebsd.org; Fri, 11 May 2001 19:54:26 -0400 (EDT) Date: Fri, 11 May 2001 19:54:26 -0400 From: Shannon To: freebsd-hackers@freebsd.org Subject: FreeBSD 4.3 crashing with USB hub attached... Message-ID: <20010511195426.B23309@widomaker.com> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I just installed FreeBSD 4.3 on a machine that runs Linux, and had been running FreeBSD 3.5-4.1, various releases. No problems, at least nothing major. However, when booting up after the install, the machine crashed before it set all devices. I noticed that the system had trouble with some of the USB devices, but didn't really think much of it. It just was taking it a long time to query the USB chain. That chain consists of two devices in their own port, and a joystick and Visor docking station plugged into a hub. The hub is a cheap Belkin unit like you find in CompUSA or Best Buy. For the second boot I unplugged the USB hub. This time everything was fine... I'm sending this mail from the FreeBSD machine's console. I can understand USB problems, and I have heard bad things about a lot of USB hubs. However, I don't generally expect a BSD kernel to die because of something like that, so I wonder if I've not found a bug. It seems to boot up fine without the hub so far, so this seems repeatable. If it fails to boot any time without the hub, I'll make sure to note that, but I really think there is something wrong in the USB code. When I can get back on the net I'll search some more, but right now I can't find any other similar reports. Anyway, here's the kernel crash dump that came up: Fatal trap12: page fault in kernel mode fault virtual address = 0x34 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01b35f6 stack pointer = 0x10:0xc046ead4 frame pointer = 0x10:0xc046ead4 code segment = base 0x0, limit 0xffffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 0 (swapper) interrupt mask = net tty bio cam trap number = 12 panic: page fault -- shannon@widomaker.com _________________________________________________ ______________________/ armchairrocketscientistgraffitiexenstentialist "And in billows of might swell the Saxons before her,-- Unite, oh unite! Or the billows burst o'er her!" -- Downfall of the Gael To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 23:10:50 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from digitalinet.com (digitalinet.com [216.65.124.130]) by hub.freebsd.org (Postfix) with SMTP id 1C29137B43C for ; Fri, 11 May 2001 23:10:47 -0700 (PDT) (envelope-from dan@BSDpro.com) Received: (qmail 73695 invoked from network); 12 May 2001 06:10:49 -0000 Received: from unknown (HELO blackhole.BSDpro.com) (216.27.143.75) by host194.digitalinet.com with SMTP; 12 May 2001 06:10:49 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Daniel Hemmerich Reply-To: dan@BSDpro.com Organization: www.BSDpro.com To: freebsd-hackers@freebsd.org Subject: adding a new function to libc Date: Sat, 12 May 2001 02:10:45 -0400 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01051202104500.95296@blackhole.BSDpro.com> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Any comments, suggestions, swears concerning adding a new function, strndup(), to libc? So that instead of permitting it to attempt to allocate a large chunk of memory, it is possible to give it a max length. char * strndup(str, max_len) const char *str; size_t max_len; { size_t len; char *copy; len = strlen(str) + 1; if (len > max_len) len = max_len; if ((copy = malloc(len)) == NULL) return (NULL); memcpy(copy, str, len); return (copy); } -- Daniel Hemmerich dan@BSDpro.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 23:35:36 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from guild.plethora.net (guild.plethora.net [205.166.146.8]) by hub.freebsd.org (Postfix) with ESMTP id E38FB37B423 for ; Fri, 11 May 2001 23:35:33 -0700 (PDT) (envelope-from seebs@guild.plethora.net) Received: from guild.plethora.net (seebs@localhost.plethora.net [127.0.0.1]) by guild.plethora.net (8.10.1/8.10.1) with ESMTP id f4C6ZUq15722; Sat, 12 May 2001 01:35:30 -0500 (CDT) Message-Id: <200105120635.f4C6ZUq15722@guild.plethora.net> From: seebs@bsdi.com (Peter Seebach) Reply-To: seebs@bsdi.com (Peter Seebach) To: dan@bsdpro.com Cc: freebsd-hackers@freebsd.org Subject: Re: adding a new function to libc In-reply-to: Your message of "Sat, 12 May 2001 02:10:45 EDT." <01051202104500.95296@blackhole.BSDpro.com> Date: Sat, 12 May 2001 01:35:29 -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <01051202104500.95296@blackhole.BSDpro.com>, Daniel Hemmerich writes : >Any comments, suggestions, swears concerning adding a new function, >strndup(), to libc? Well, the obvious potential concern is that str[a-z]* is reserved namespace, and what if a future spec has a *different* strndup? >So that instead of permitting it to attempt to allocate a large chunk of >memory, it is possible to give it a max length. Well, this one is clearly wrong, because if you have a string of max_len, it isn't terminated. -s To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri May 11 23:39:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from wilma.widomaker.com (wilma.widomaker.com [204.17.220.5]) by hub.freebsd.org (Postfix) with ESMTP id 94A5437B423 for ; Fri, 11 May 2001 23:39:14 -0700 (PDT) (envelope-from shannon@daydream.shannon.net) Received: from [206.246.249.217] (helo=escape.shannon.net) by wilma.widomaker.com with esmtp (Exim 3.22 #2) id 14yT3Z-000I0S-00 for freebsd-hackers@freebsd.org; Sat, 12 May 2001 02:39:13 -0400 Received: from daydream (mail@daydream.shannon.net [192.168.1.10]) by escape.shannon.net (8.11.0/8.8.8) with ESMTP id f4C6YLq00765 for ; Sat, 12 May 2001 02:34:21 -0400 (EDT) Received: from shannon by daydream with local (Exim 3.12 #1 (Debian)) id 14ySyr-0000Rf-00 for ; Sat, 12 May 2001 02:34:21 -0400 Date: Sat, 12 May 2001 02:34:21 -0400 From: Shannon Hendrix To: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 4.3 crashing with USB hub attached... Message-ID: <20010512023419.C1461@widomaker.com> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20010511195426.B23309@widomaker.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010511195426.B23309@widomaker.com>; from shannon@widomaker.com on Fri, May 11, 2001 at 07:54:26PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, May 11, 2001 at 07:54:26PM -0400, Shannon wrote: > For the second boot I unplugged the USB hub. This time everything was > fine... I'm sending this mail from the FreeBSD machine's console. Replying to my own post: The problem is the Logitech joystick, not the hub itself. Every time I boot with the joystick plugged in, FreeBSD 4.3 pukes. I've testing most other things with 4.3 on my hardware, and nothing else seems amiss. It's just like 4.2 except that no version prior to 4.3 would crash because of (or triggered by rather) a USB device. The joystick is a force-feedback model (Logi Formula Force), but is otherwise just your average every day USB joystick. -- "If you tell the truth, you don't have to remember anything" -- Mark Twain ______________________________________________________________________ Charles Shannon Hendrix s h a n n o n @ w i d o m a k e r . c o m To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 0:26: 8 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from winston.osd.bsdi.com (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id A78F137B424; Sat, 12 May 2001 00:26:05 -0700 (PDT) (envelope-from jkh@osd.bsdi.com) Received: from localhost (jkh@localhost [127.0.0.1]) by winston.osd.bsdi.com (8.11.3/8.11.2) with ESMTP id f4C7Pb306363; Sat, 12 May 2001 00:25:37 -0700 (PDT) (envelope-from jkh@osd.bsdi.com) To: obrien@FreeBSD.ORG Cc: hackers@FreeBSD.ORG Subject: Re: subscribe In-Reply-To: <20010511183457.A61080@dragon.nuxi.com> References: <20010511165805E.jkh@osd.bsdi.com> <20010511170113S.jkh@osd.bsdi.com> <20010511183457.A61080@dragon.nuxi.com> X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010512002537H.jkh@osd.bsdi.com> Date: Sat, 12 May 2001 00:25:37 -0700 From: Jordan Hubbard X-Dispatcher: imput version 20000228(IM140) Lines: 19 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I guess we could, but somebody would have to do it. :) - Jordan From: "David O'Brien" Subject: Re: subscribe Date: Fri, 11 May 2001 18:34:57 -0700 > On Fri, May 11, 2001 at 05:01:13PM -0700, Jordan Hubbard wrote: > > Argh! I'm sorry folks, I almost always remember to delete the cc line > > when I send somebody that particular form letter so as not to spam the > > list myself, but this time I forgot to do that before typing the send > > command. Bad Jordan, no cookie! > > Why is it we can't have majordomo filter these out and send the people > your form reponce. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 3: 4:56 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 1597137B424; Sat, 12 May 2001 03:04:50 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4CA4i398494; Sat, 12 May 2001 11:04:44 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4CA4gX91830; Sat, 12 May 2001 11:04:42 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200105121004.f4CA4gX91830@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Dima Dorfman Cc: hackers@FreeBSD.ORG, gad@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: xargs(1) "replstr" patch In-Reply-To: Message from Dima Dorfman of "Fri, 11 May 2001 18:03:19 PDT." <20010512010319.B3B893E0B@bazooka.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 12 May 2001 11:04:42 +0100 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'd suggest going ahead and committing it ASAP - before people start ``discussing'' it again :oI Feel free to blame me for reviewing it !!! > Folks, > > The attached patch adds a "replacement string" feature to xargs(1). > There's a full description in the man page update (also attached), but > the following should demonstrate the new functionality: > > dima@spike% ./xargs -J [] echo CMD LINE [] ARGS < test > CMD LINE this is the contents of the test file ARGS > dima@spike% ./xargs -J [] echo CMD [] LINE ARGS < test > CMD this is the contents of the test file LINE ARGS > dima@spike% ./xargs -J [] echo [] CMD LINE ARGS < test > this is the contents of the test file CMD LINE ARGS > > This is similar to, but not identical to, the -I option described in > SUSv2. The latter allows the replstr ("[]" above) to be attached to > other arguments, and appear multiple times. Furthermore, it implies > '-n 1'. Although the features are similar, they can solve different > problems; even if -I is implemented later, this (-J) would still be > useful. -J also doesn't have the performance implications attached > with -I. > > There was a nice, long thread about this on current a few weeks ago > (topic: "Re: cp -d dir patch for review (or 'xargs'?)"). It was > rather inconclusive, but nobody managed to come up with a way to > *properly* and *easily* imitate this functionality. Writing a script > to do this *properly* (i.e., handle environment growth) isn't as easy > as it sounds (although it's possible, of course). > > The patch is a joint effort between myself and Garance Dorsihn (gad). > > Comments? Suggestions? > > Thanks in advance, > > Dima Dorfman > dima@unixfreak.org [.....] -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 3:24: 7 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id F0FA837B423 for ; Sat, 12 May 2001 03:24:03 -0700 (PDT) (envelope-from msmith@mass.dis.org) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.3/8.11.3) with ESMTP id f4CAUKm02439; Sat, 12 May 2001 03:30:20 -0700 (PDT) (envelope-from msmith@mass.dis.org) Message-Id: <200105121030.f4CAUKm02439@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: ashish_lal@agilent.com Cc: dp@penix.org, freebsd-hackers@FreeBSD.ORG Subject: Re: kernel boot up problem In-reply-to: Your message of "Fri, 11 May 2001 11:53:21 MDT." <3BA28805BB22D41183A2009027AA5AFA04C5308C@axand03.and.agilent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 12 May 2001 03:30:20 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You don't have to change anything; IRQ sharing is allowed by PCI (and in fact, unless you change the slot the card is in, you can't change one without changing the other). > Thanks for the reply. I first tried to change the IRQ from the BIOS. I saw > that the IRQ of both the cards changes together. The machine has 4 CPUs and > I am booting from CPU #1. The bios shows 4 PCI slots. The "Plug and Play OS" > entry in the BIOS is set to "No". > Any help will be greatly appreciated. > Thanks, > --Ashish > > -----Original Message----- > From: Paul Halliday [mailto:dp@penix.org] > Sent: Thursday, May 10, 2001 9:49 PM > To: ashish_lal@agilent.com > Cc: freebsd-hackers@FreeBSD.ORG > Subject: Re: kernel boot up problem > > > > > ashish_lal@agilent.com wrote: > > > > Hi: > > I am using FreeBSD 3.3 on a proprietary machine. The problem is that a T1 > > card (which is a PCI device) conflicts with an in-built PCI Intel Ethernet > > 10/100 card (fxp0). Please let me know me if I have to modify the T1 > driver. > > You can probably change the builtins defaults from your bios. > > -- > Paul H. > =============================================================== > Don't underestimate the power of stupid people in large groups. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 3:37:59 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 1CEA637B423 for ; Sat, 12 May 2001 03:37:51 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 52759 invoked by uid 1000); 12 May 2001 10:37:14 -0000 Date: Sat, 12 May 2001 13:37:14 +0300 From: Peter Pentchev To: Brian Somers Cc: Dima Dorfman , hackers@FreeBSD.ORG, gad@FreeBSD.ORG Subject: Re: xargs(1) "replstr" patch Message-ID: <20010512133714.A52713@ringworld.oblivion.bg> Mail-Followup-To: Brian Somers , Dima Dorfman , hackers@FreeBSD.ORG, gad@FreeBSD.ORG References: <200105121004.f4CA4gX91830@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105121004.f4CA4gX91830@hak.lan.Awfulhak.org>; from brian@Awfulhak.org on Sat, May 12, 2001 at 11:04:42AM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Seconded :) G'luck, Peter -- Do you think anybody has ever had *precisely this thought* before? On Sat, May 12, 2001 at 11:04:42AM +0100, Brian Somers wrote: > I'd suggest going ahead and committing it ASAP - before people start > ``discussing'' it again :oI > > Feel free to blame me for reviewing it !!! > > > Folks, > > > > The attached patch adds a "replacement string" feature to xargs(1). > > There's a full description in the man page update (also attached), but > > the following should demonstrate the new functionality: > > > > dima@spike% ./xargs -J [] echo CMD LINE [] ARGS < test > > CMD LINE this is the contents of the test file ARGS > > dima@spike% ./xargs -J [] echo CMD [] LINE ARGS < test > > CMD this is the contents of the test file LINE ARGS > > dima@spike% ./xargs -J [] echo [] CMD LINE ARGS < test > > this is the contents of the test file CMD LINE ARGS > > > > This is similar to, but not identical to, the -I option described in > > SUSv2. The latter allows the replstr ("[]" above) to be attached to > > other arguments, and appear multiple times. Furthermore, it implies > > '-n 1'. Although the features are similar, they can solve different > > problems; even if -I is implemented later, this (-J) would still be > > useful. -J also doesn't have the performance implications attached > > with -I. > > > > There was a nice, long thread about this on current a few weeks ago > > (topic: "Re: cp -d dir patch for review (or 'xargs'?)"). It was > > rather inconclusive, but nobody managed to come up with a way to > > *properly* and *easily* imitate this functionality. Writing a script > > to do this *properly* (i.e., handle environment growth) isn't as easy > > as it sounds (although it's possible, of course). > > > > The patch is a joint effort between myself and Garance Dorsihn (gad). > > > > Comments? Suggestions? > > > > Thanks in advance, > > > > Dima Dorfman > > dima@unixfreak.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 4:15:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hall.mail.mindspring.net (hall.mail.mindspring.net [207.69.200.60]) by hub.freebsd.org (Postfix) with ESMTP id 6A2AE37B423 for ; Sat, 12 May 2001 04:15:29 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0001.cvx21-bradley.dialup.earthlink.net [209.179.192.1]) by hall.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id HAA02867; Sat, 12 May 2001 07:15:26 -0400 (EDT) Message-ID: <3AFD1B64.EC2AE5D6@mindspring.com> Date: Sat, 12 May 2001 04:15:48 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: hackers@FreeBSD.ORG Cc: Makoto MATSUSHITA Subject: Re: Question about building source References: <3AF82432.F150DB51@mindspring.com> <20010509025423Q.matusita@jp.FreeBSD.org> <3AF95FFB.40DCF441@mindspring.com> <20010510010142X.matusita@jp.FreeBSD.org> <3AFAB3A9.798899F@mindspring.com> <20010510093110.A3480@dragon.nuxi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "David Mr. Hackers O'Brien" wrote: > On Thu, May 10, 2001 at 08:28:41AM -0700, Terry Lambert wrote: > > > If it doesn't work as you have said, "make release' also _doesn't_ > > > work; we cannot make a distribution. Obviously, it's wrong:) > > > > I think you are missing the facts: > ... > > o Look in /usr/share/bsd.prog.mk for ".if defined(DESTDIR)"; > > it overrides my compiler defaults for the values of CFLAGS > > and CXXINCLUDES. This makes them _WRONG_: > ... > > The BSD .mk files insist on using the wrong .mk files; I don't > > know how much clearer I can make it?!? > > I went thru this last month -- bsd.*.mk assumes /usr/src and > the base compilers. Peroid. People didn't want to accept > that, but you are giving more proof of it. If you want to > change the assumptions of about the base system, you have to > be willing to change bsd.*.mk. Peroid. It's trivial to fix. I've posted the patches twice, now; I've had the problem since 3.x, when I was working at Whistle, and first had the problem, after fixing threaded exception handling in g++ with Jeremy Allison. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 4:24:12 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hall.mail.mindspring.net (hall.mail.mindspring.net [207.69.200.60]) by hub.freebsd.org (Postfix) with ESMTP id 173F637B424 for ; Sat, 12 May 2001 04:24:09 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0001.cvx21-bradley.dialup.earthlink.net [209.179.192.1]) by hall.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id HAA16805 for ; Sat, 12 May 2001 07:24:08 -0400 (EDT) Message-ID: <3AFD1D6D.51731EAC@mindspring.com> Date: Sat, 12 May 2001 04:24:29 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: hackers@freebsd.org Subject: SSH Must Die Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This whole ssh B.S. is very annoying. After an upgrade from 4.2 to 4.3 using a CDROM boot plus upgrade menu option, SSH stops working, for no good reason (_any_ reason is no good). It complains about RSA not being in libcrypto, even though "nm" shows that that claim is full of crap. Yes, I have /dev/random, and yes, I have it in my kernel, even though it makes my boots slow as hell. How do I update the whole thing, so that the problem goes away? Alternately, can we rip it bodily out of FreeBSD, and flush it down the toilet? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 4:54:29 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from granger.mail.mindspring.net (granger.mail.mindspring.net [207.69.200.148]) by hub.freebsd.org (Postfix) with ESMTP id A4A3337B423 for ; Sat, 12 May 2001 04:54:25 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0001.cvx21-bradley.dialup.earthlink.net [209.179.192.1]) by granger.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id HAA17739; Sat, 12 May 2001 07:54:21 -0400 (EDT) Message-ID: <3AFD2482.5A27EAB8@mindspring.com> Date: Sat, 12 May 2001 04:54:42 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: ashish_lal@agilent.com Cc: dp@penix.org, freebsd-hackers@FreeBSD.ORG Subject: Re: kernel boot up problem References: <3BA28805BB22D41183A2009027AA5AFA04C5308C@axand03.and.agilent.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ashish_lal@agilent.com wrote: > > Thanks for the reply. I first tried to change the IRQ from > the BIOS. I saw that the IRQ of both the cards changes > together. The machine has 4 CPUs and I am booting from CPU > #1. The bios shows 4 PCI slots. The "Plug and Play OS" entry > in the BIOS is set to "No". > Any help will be greatly appreciated. Since you are using FreeBSD 3.3, you will not be able to fix this in software, unless you are willing to upgrade. The fact that changing the interrupt in the BIOS changed both of them tells me that you are using PCI cards, and that you changesd the INT {A|B|C|D} mapping to the ISA interrupt number, and didn't change the card setting. The only way to make sure that interrupts do not conflict is to permit them to be reassigned, if the cards support this (many do not) and the BIOS supports it (you will have to enable "Plug-N-Play", which will probably break other things, since 3.3 is not a "PnP" OS). There are two possibilities: 1) You are sticking the card in a slot that shares an interrupt with another slot; for most modern systems, this means you are using slot 5, since there are only 4 PCI interrupts; if you are not using all the slots, then the easy answer is to move the card (modern systems make slot 1 use INT A, slot 2 use INT B, and so on -- cascading interrupts between slots -- and this wraps around, beginning with slot 5). If all your slots are full, you will have to get rid of one of your cards, or upgrade your OS. 2) You are using an old motherboard. Old motherboards did not cascade interrupts, and relied on the card jumpers to select interrupts. Given the vintage of your FreeBSD installation, this might be the case; if so, change the jumper settings on your cards, or upgrade your motherboard. Note: If you are using an old motherboard that doesn't cascade the PCI interrupts, it's also extremely likely that it can only handle 2 bus masters (e.g. Intel Mercury and Saturn chipsets, etc.), so you are flirting with disaster, anyway. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 4:57:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from granger.mail.mindspring.net (granger.mail.mindspring.net [207.69.200.148]) by hub.freebsd.org (Postfix) with ESMTP id A54B437B423 for ; Sat, 12 May 2001 04:57:32 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0001.cvx21-bradley.dialup.earthlink.net [209.179.192.1]) by granger.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id HAA22413; Sat, 12 May 2001 07:57:25 -0400 (EDT) Message-ID: <3AFD253B.60992A63@mindspring.com> Date: Sat, 12 May 2001 04:57:47 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: dan@BSDpro.com Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: adding a new function to libc References: <01051202104500.95296@blackhole.BSDpro.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Daniel Hemmerich wrote: > > Any comments, suggestions, swears concerning adding a new function, > strndup(), to libc? > > So that instead of permitting it to attempt to allocate a large > chunk of memory, it is possible to give it a max length. How about just knowing what you are passing to the function before you call it, so that it isn't a problem? FWIW, I didn't like some of the Linux libc and kernel function extensions of similar ilk which were brought into FreeBSD, either: sloppy programmers should learn to ask people "Would you like fries with that?", and stay away from computers. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 4:59:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from granger.mail.mindspring.net (granger.mail.mindspring.net [207.69.200.148]) by hub.freebsd.org (Postfix) with ESMTP id EF85837B424; Sat, 12 May 2001 04:59:15 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0001.cvx21-bradley.dialup.earthlink.net [209.179.192.1]) by granger.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id HAA17329; Sat, 12 May 2001 07:59:14 -0400 (EDT) Message-ID: <3AFD25A7.7D97B061@mindspring.com> Date: Sat, 12 May 2001 04:59:35 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mike Smith Cc: ashish_lal@agilent.com, dp@penix.org, freebsd-hackers@FreeBSD.ORG Subject: Re: kernel boot up problem References: <200105121030.f4CAUKm02439@mass.dis.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith wrote: > > You don't have to change anything; IRQ sharing is allowed by > PCI (and in fact, unless you change the slot the card is in, > you can't change one without changing the other). [ ... ] > > > I am using FreeBSD 3.3 on a proprietary machine. ********************** -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 5:10:29 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from rapier.smartspace.co.za (rapier.smartspace.co.za [66.8.25.34]) by hub.freebsd.org (Postfix) with SMTP id 44BF537B423 for ; Sat, 12 May 2001 05:10:24 -0700 (PDT) (envelope-from nbm@rapier.smartspace.co.za) Received: (qmail 33847 invoked by uid 1001); 12 May 2001 12:09:45 -0000 Date: Sat, 12 May 2001 14:09:45 +0200 From: Neil Blakey-Milner To: Terry Lambert Cc: hackers@freebsd.org Subject: Re: SSH Must Die Message-ID: <20010512140945.A31698@rapier.smartspace.co.za> References: <3AFD1D6D.51731EAC@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3AFD1D6D.51731EAC@mindspring.com>; from tlambert2@mindspring.com on Sat, May 12, 2001 at 04:24:29AM -0700 Organization: Building Intelligence X-Operating-System: FreeBSD 4.2-RELEASE i386 X-URL: http://rucus.ru.ac.za/~nbm/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat 2001-05-12 (04:24), Terry Lambert wrote: > This whole ssh B.S. is very annoying. > > After an upgrade from 4.2 to 4.3 using a CDROM boot plus > upgrade menu option, SSH stops working, for no good reason > (_any_ reason is no good). > > It complains about RSA not being in libcrypto, even though > "nm" shows that that claim is full of crap. > > Yes, I have /dev/random, and yes, I have it in my kernel, > even though it makes my boots slow as hell. 4.3 doesn't have "device random", or any way of building without it. How is it changing the speed of your boot? I've actually just done a 4.3 CD upgrade, but not from 4.2, and it worked. Can you give the modification times of your libcrypto and ssh, and make sure you're executing /usr/bin/ssh. And the output of 'ld /usr/bin/ssh'. Perhaps truss an ssh to a host and disconnect immediately. It might be failing after trying to open or read from /dev/urandom. Can you give the output of 'ls -l /dev/*random'? Maybe someone will have something useful to go on from the information above instead of "it doesn't work". Neil -- Neil Blakey-Milner nbm@mithrandr.moria.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 5:24: 8 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tisch.mail.mindspring.net (tisch.mail.mindspring.net [207.69.200.157]) by hub.freebsd.org (Postfix) with ESMTP id 526B537B424 for ; Sat, 12 May 2001 05:24:05 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0001.cvx21-bradley.dialup.earthlink.net [209.179.192.1]) by tisch.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id IAA17256 for ; Sat, 12 May 2001 08:24:03 -0400 (EDT) Message-ID: <3AFD2B79.AB7627B8@mindspring.com> Date: Sat, 12 May 2001 05:24:25 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: hackers@freebsd.org Subject: Re: adding a new function to libc Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG To follow myself up: > > > > Any comments, suggestions, swears concerning adding a new function, > > strndup(), to libc? > > > > So that instead of permitting it to attempt to allocate a large > > chunk of memory, it is possible to give it a max length. > > How about just knowing what you are passing to the function > before you call it, so that it isn't a problem? There might actually be tiny value in such a function, but not the way you've written it. The value would be in avoiding the strlen() call prior to the malloc(), which would permit a single traversal of the string, relative to the standard strdup() function, which always ens up doing two traversals (one to get the length, and a second to do the copy). See the strncpy() sources. The downside risk would be that you could end up allocating too much memory, e.g.: char string[BIGFREAKINGARRAY]; char *s; ... s = strndup( string, BIGFREAKINGARRAY); So it seems to me that the people who would want to use it would probably end up shooting themselves anyway. Something that seems more useful would be an asnprintf(), and you could (ab)use it to get the same functionality, but in this case "more useful" still doesn't mean "generally useful". -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 6: 0: 8 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ns1.hutchtel.net (ns1.hutchtel.net [206.9.112.100]) by hub.freebsd.org (Postfix) with ESMTP id CE2E937B443 for ; Sat, 12 May 2001 06:00:01 -0700 (PDT) (envelope-from jpaetzel@hutchtel.net) Received: from mark9.vladsempire.net (hutch-228.hutchtel.net [206.10.67.156]) by ns1.hutchtel.net (8.9.1/8.9.0) with SMTP id HAA01753; Sat, 12 May 2001 07:59:58 -0500 (CDT) Content-Type: text/plain; charset="iso-8859-1" From: j To: Terry Lambert , hackers@FreeBSD.ORG Subject: Re: SSH Must Die Date: Sat, 12 May 2001 08:05:36 -0500 X-Mailer: KMail [version 1.2] References: <3AFD1D6D.51731EAC@mindspring.com> In-Reply-To: <3AFD1D6D.51731EAC@mindspring.com> MIME-Version: 1.0 Message-Id: <01051208053600.00484@mark9.vladsempire.net> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Saturday 12 May 2001 06:24, Terry Lambert wrote: > This whole ssh B.S. is very annoying. > > After an upgrade from 4.2 to 4.3 using a CDROM boot plus > upgrade menu option, SSH stops working, for no good reason > (_any_ reason is no good). > You did make the needed additions to /etc/pam.conf, didn't you? > It complains about RSA not being in libcrypto, even though > "nm" shows that that claim is full of crap. > > Yes, I have /dev/random, and yes, I have it in my kernel, > even though it makes my boots slow as hell. > > How do I update the whole thing, so that the problem goes > away? > > Alternately, can we rip it bodily out of FreeBSD, and > flush it down the toilet? > > -- Terry What would we use for remote command line access if that happened? Josh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 7: 7:32 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by hub.freebsd.org (Postfix) with ESMTP id D77CF37B43E for ; Sat, 12 May 2001 07:07:25 -0700 (PDT) (envelope-from netch@iv.nn.kiev.ua) Received: (from uucp@localhost) by segfault.kiev.ua (8) with UUCP id RCT78040; Sat, 12 May 2001 17:07:11 +0300 (EEST) (envelope-from netch@iv.nn.kiev.ua) Received: (from netch@localhost) by iv.nn.kiev.ua (8.11.3/8.11.3) id f4CE5ja59012; Sat, 12 May 2001 17:05:45 +0300 (EEST) (envelope-from netch) Date: Sat, 12 May 2001 17:05:44 +0300 From: Valentin Nechayev To: Daniel Hemmerich Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: adding a new function to libc Message-ID: <20010512170544.A343@iv.nn.kiev.ua> References: <01051202104500.95296@blackhole.BSDpro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01051202104500.95296@blackhole.BSDpro.com>; from dan@BSDpro.com on Sat, May 12, 2001 at 02:10:45AM -0400 X-42: On Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello Daniel Hemmerich! Sat, May 12, 2001 at 02:10:45, dan (Daniel Hemmerich) wrote about "adding a new function to libc": > Any comments, suggestions, swears concerning adding a new function, > strndup(), to libc? > > So that instead of permitting it to attempt to allocate a large chunk of > memory, it is possible to give it a max length. Really, one should not use C-style null-terminated strings except situations where they are nesessary (e.g. kernel interface) because they all are too longfied nightmare, due to brain-damaged interface and high inefficiency. Recent libc changes - adding strlcpy() and strlcat() - were motivated AFAIU with well-grounded fear to find *selves in BugTraq top list of buggy platforms, and with aspiration to get rid of K&R crap - strcpy(), etc. (There is no such object as "unlimited string buffer"; there are "limited buffer" and "NUL-terminated constant string". strcpy() was designed to work with wrong "unlimited string buffer" concept and hence it must die. The same for its sisters such as strncat().) strndup(), in any of common-possible interpretations, is danger because caller cannot get info whether source string were longer (and copy is cut) or not. You can use such cutting actively in rare cases, e.g. debugging printing, but for sensitive work such _silent_ cutting can produce only bugs, not any useful thing. I cannot see any reason to include such danger function to libc. The most concrete factor is that your code is buggy because if source string is longer than max_len, destination string is not terminated with NUL properly. And it is inefficient: there is no need to waste processor time and cache cells to read unuseful data in strlen(). Hence, I'll think the better implementation is char* strndup( const char* src, size_t max_len ) { size_t len = strnlen( src, max_len ); char* ret = malloc( len + 1 ); if( ret ) { strncpy( ret, src, len ); ret[ len ] = 0; } return ret; } Here strnlen() is used which is non-standard but I saw it in ~4 quite different projects (e.g. Linux kernel) with identical interface and result value; a variant of implementation follows: /* This is candidate to have optimized assembler variant */ size_t strnlen( const char* src, size_t max ) { size_t n; while( n < max && *src != '\0' ) n++; return n; } > char * > strndup(str, max_len) > const char *str; > size_t max_len; > { > size_t len; > char *copy; > > len = strlen(str) + 1; > if (len > max_len) > len = max_len; > if ((copy = malloc(len)) == NULL) > return (NULL); > memcpy(copy, str, len); > return (copy); > } > > -- > Daniel Hemmerich > dan@BSDpro.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 7:13:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 35D4737B43E for ; Sat, 12 May 2001 07:13:19 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 56845 invoked by uid 1000); 12 May 2001 14:12:41 -0000 Date: Sat, 12 May 2001 17:12:41 +0300 From: Peter Pentchev To: Valentin Nechayev Cc: Daniel Hemmerich , freebsd-hackers@FreeBSD.ORG Subject: Re: adding a new function to libc Message-ID: <20010512171240.A54542@ringworld.oblivion.bg> Mail-Followup-To: Valentin Nechayev , Daniel Hemmerich , freebsd-hackers@FreeBSD.ORG References: <01051202104500.95296@blackhole.BSDpro.com> <20010512170544.A343@iv.nn.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010512170544.A343@iv.nn.kiev.ua>; from netch@iv.nn.kiev.ua on Sat, May 12, 2001 at 05:05:44PM +0300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, May 12, 2001 at 05:05:44PM +0300, Valentin Nechayev wrote: > Hello Daniel Hemmerich! [snip] > > Here strnlen() is used which is non-standard but I saw it in ~4 quite > different projects (e.g. Linux kernel) with identical interface > and result value; a variant of implementation follows: > > /* This is candidate to have optimized assembler variant */ > size_t strnlen( const char* src, size_t max ) > { > size_t n; > while( n < max && *src != '\0' ) > n++; > return n; > } I really hope you meant *src++ there :) G'luck, Peter -- If there were no counterfactuals, this sentence would not have been paradoxical. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 7:15:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by hub.freebsd.org (Postfix) with ESMTP id 20BB137B424 for ; Sat, 12 May 2001 07:15:28 -0700 (PDT) (envelope-from netch@iv.nn.kiev.ua) Received: (from uucp@localhost) by segfault.kiev.ua (8) with UUCP id RFX78356; Sat, 12 May 2001 17:15:19 +0300 (EEST) (envelope-from netch@iv.nn.kiev.ua) Received: (from netch@localhost) by iv.nn.kiev.ua (8.11.3/8.11.3) id f4CEE1V70280; Sat, 12 May 2001 17:14:01 +0300 (EEST) (envelope-from netch) Date: Sat, 12 May 2001 17:14:01 +0300 From: Valentin Nechayev To: Terry Lambert Cc: hackers@FreeBSD.ORG Subject: Re: SSH Must Die Message-ID: <20010512171401.B343@iv.nn.kiev.ua> References: <3AFD1D6D.51731EAC@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3AFD1D6D.51731EAC@mindspring.com>; from tlambert2@mindspring.com on Sat, May 12, 2001 at 04:24:29AM -0700 X-42: On Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sat, May 12, 2001 at 04:24:29, tlambert2 (Terry Lambert) wrote about "SSH Must Die": > This whole ssh B.S. is very annoying. > After an upgrade from 4.2 to 4.3 using a CDROM boot plus > upgrade menu option, SSH stops working, for no good reason > (_any_ reason is no good). > It complains about RSA not being in libcrypto, even though > "nm" shows that that claim is full of crap. > Yes, I have /dev/random, and yes, I have it in my kernel, > even though it makes my boots slow as hell. Oh. The random device which needs entropy seed is -current artifact, isn't it? On -current, I watched identical problem with mystical ssh brokenness, with "No RSA support in libcrypto and libssl" message from ssh, after when all possible underwater stones were verified (including /dev/random and /dev/urandom, respect to markm@ reply). Unfortunately I had to make this system working in any way before I could do any diagnose, and it was completely rebuilt to RELENG_4. But, your case seems to be another. > How do I update the whole thing, so that the problem goes > away? > Alternately, can we rip it bodily out of FreeBSD, and > flush it down the toilet? Do you know another SSH implementation with good license? /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 7:24:16 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from winston.osd.bsdi.com (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id 60C3F37B443 for ; Sat, 12 May 2001 07:24:11 -0700 (PDT) (envelope-from jkh@osd.bsdi.com) Received: from localhost (jkh@localhost [127.0.0.1]) by winston.osd.bsdi.com (8.11.3/8.11.2) with ESMTP id f4CENK310089; Sat, 12 May 2001 07:23:20 -0700 (PDT) (envelope-from jkh@osd.bsdi.com) To: tlambert2@mindspring.com Cc: hackers@FreeBSD.ORG Subject: Re: SSH Must Die In-Reply-To: <3AFD1D6D.51731EAC@mindspring.com> References: <3AFD1D6D.51731EAC@mindspring.com> X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010512072320L.jkh@osd.bsdi.com> Date: Sat, 12 May 2001 07:23:20 -0700 From: Jordan Hubbard X-Dispatcher: imput version 20000228(IM140) Lines: 31 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ssh works just fine for me in 4.3. You must be doing something wrong. - Jordan From: Terry Lambert Subject: SSH Must Die Date: Sat, 12 May 2001 04:24:29 -0700 > This whole ssh B.S. is very annoying. > > After an upgrade from 4.2 to 4.3 using a CDROM boot plus > upgrade menu option, SSH stops working, for no good reason > (_any_ reason is no good). > > It complains about RSA not being in libcrypto, even though > "nm" shows that that claim is full of crap. > > Yes, I have /dev/random, and yes, I have it in my kernel, > even though it makes my boots slow as hell. > > How do I update the whole thing, so that the problem goes > away? > > Alternately, can we rip it bodily out of FreeBSD, and > flush it down the toilet? > > -- Terry > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 7:59:56 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from assaris.sics.se (h122n4fls32o892.telia.com [213.64.47.122]) by hub.freebsd.org (Postfix) with ESMTP id A72ED37B424 for ; Sat, 12 May 2001 07:59:50 -0700 (PDT) (envelope-from assar@assaris.sics.se) Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.9.3) id QAA04783; Sat, 12 May 2001 16:59:41 +0200 (CEST) (envelope-from assar) To: dan@BSDpro.com Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: adding a new function to libc References: <01051202104500.95296@blackhole.BSDpro.com> From: Assar Westerlund Date: 12 May 2001 16:59:41 +0200 In-Reply-To: Daniel Hemmerich's message of "Sat, 12 May 2001 02:10:45 -0400" Message-ID: <5ld79efw9u.fsf@assaris.sics.se> Lines: 27 User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Daniel Hemmerich writes: > Any comments, suggestions, swears concerning adding a new function, > strndup(), to libc? See src/crypto/heimdal/lib/roken/strndup.c :-) > char * > strndup(str, max_len) > const char *str; > size_t max_len; > { > size_t len; > char *copy; > > len = strlen(str) + 1; > if (len > max_len) > len = max_len; > if ((copy = malloc(len)) == NULL) > return (NULL); > memcpy(copy, str, len); > return (copy); > } Doesn't work for a non-terminated str and doesn't 0-terminate the return string when str is too long. /assar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 8:23:51 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by hub.freebsd.org (Postfix) with ESMTP id 7108B37B423 for ; Sat, 12 May 2001 08:23:46 -0700 (PDT) (envelope-from netch@iv.nn.kiev.ua) Received: (from uucp@localhost) by segfault.kiev.ua (8) with UUCP id SIZ80263; Sat, 12 May 2001 18:23:22 +0300 (EEST) (envelope-from netch@iv.nn.kiev.ua) Received: (from netch@localhost) by iv.nn.kiev.ua (8.11.3/8.11.3) id f4CFM4800342; Sat, 12 May 2001 18:22:04 +0300 (EEST) (envelope-from netch) Date: Sat, 12 May 2001 18:22:04 +0300 From: Valentin Nechayev To: roam@orbitel.bg Cc: Daniel Hemmerich , freebsd-hackers@FreeBSD.ORG Subject: Re: adding a new function to libc Message-ID: <20010512182203.A297@iv.nn.kiev.ua> References: <01051202104500.95296@blackhole.BSDpro.com> <20010512170544.A343@iv.nn.kiev.ua> <20010512171240.A54542@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010512171240.A54542@ringworld.oblivion.bg>; from roam@orbitel.bg on Sat, May 12, 2001 at 05:12:41PM +0300 X-42: On Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sat, May 12, 2001 at 17:12:41, roam (Peter Pentchev) wrote about "Re: adding a new function to libc": > > /* This is candidate to have optimized assembler variant */ > > size_t strnlen( const char* src, size_t max ) > > { > > size_t n; > > while( n < max && *src != '\0' ) > > n++; > > return n; > > } > > I really hope you meant *src++ there :) Yes, sorry. I incorrectly hoped to write it again from brain instead of copying from sources.;| Variant from my sources: size_t strnlen( const char* src, size_t maxlen ) { register size_t len = 0; while( len < maxlen && src[len] ) len++; return len; } Variant from linux kernel: #ifndef __HAVE_ARCH_STRNLEN size_t strnlen(const char * s, size_t count) { const char *sc; for (sc = s; count-- && *sc != '\0'; ++sc) /* nothing */; return sc - s; } #endif /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 10: 7:28 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (Postfix) with ESMTP id 1401537B43F for ; Sat, 12 May 2001 10:07:21 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from beppo (beppo [192.67.166.79]) by feral.com (8.9.3/8.9.3) with ESMTP id KAA06881; Sat, 12 May 2001 10:07:03 -0700 Date: Sat, 12 May 2001 10:06:59 -0700 (PDT) From: Matthew Jacob Reply-To: mjacob@feral.com To: Jordan Hubbard Cc: tlambert2@mindspring.com, hackers@FreeBSD.ORG Subject: Re: SSH Must Die In-Reply-To: <20010512072320L.jkh@osd.bsdi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 12 May 2001, Jordan Hubbard wrote: > ssh works just fine for me in 4.3. You must be doing something > wrong. There's a very likely 3rd possibility: ssh works fine, but the upgrade process has holes that even traps the experienced. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 10:50:18 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from maile.telia.com (maile.telia.com [194.22.190.16]) by hub.freebsd.org (Postfix) with ESMTP id 9291337B43E for ; Sat, 12 May 2001 10:50:13 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by maile.telia.com (8.11.2/8.11.0) with ESMTP id f4CHoBM01707 for ; Sat, 12 May 2001 19:50:12 +0200 (CEST) Received: from ertr1013.student.uu.se (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id TAA25356 for ; Sat, 12 May 2001 19:50:11 +0200 (CEST) Received: (qmail 6387 invoked by uid 1001); 12 May 2001 17:50:11 -0000 Date: Sat, 12 May 2001 19:50:10 +0200 From: Erik Trulsson To: hackers@FreeBSD.ORG Subject: Re: SSH Must Die Message-ID: <20010512195010.A6364@student.uu.se> Mail-Followup-To: hackers@FreeBSD.ORG References: <3AFD1D6D.51731EAC@mindspring.com> <20010512072320L.jkh@osd.bsdi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010512072320L.jkh@osd.bsdi.com>; from jkh@osd.bsdi.com on Sat, May 12, 2001 at 07:23:20AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, May 12, 2001 at 07:23:20AM -0700, Jordan Hubbard wrote: > ssh works just fine for me in 4.3. You must be doing something > wrong. > > - Jordan > > From: Terry Lambert > Subject: SSH Must Die > Date: Sat, 12 May 2001 04:24:29 -0700 > > > This whole ssh B.S. is very annoying. > > > > After an upgrade from 4.2 to 4.3 using a CDROM boot plus > > upgrade menu option, SSH stops working, for no good reason > > (_any_ reason is no good). > > > > It complains about RSA not being in libcrypto, even though > > "nm" shows that that claim is full of crap. > > > > Yes, I have /dev/random, and yes, I have it in my kernel, > > even though it makes my boots slow as hell. > > > > How do I update the whole thing, so that the problem goes > > away? > > > > Alternately, can we rip it bodily out of FreeBSD, and > > flush it down the toilet? Exactly how is rpping it out of FreeBSD supposed to make ssh work? I think I had similar problems at some point between 4.2-R and 4.3-R. At some (fairly late IIRC) point inbetween the version numbers of some of the crypto libraries was increased. After a buildworld I had both libXXXX.so.1 and libXXXX.so.2 installed in /usr/lib. I think deleting/moving one of them (the .so.1 one IIRC) and then doing a new build/installworld with 'COMPAT4X=yes' in /etc/make.conf made things work correctly. I am afraid I don't remember the details exactly but it might be a starting point. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 11:43:43 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from moutvdom01.kundenserver.de (moutvdom01.kundenserver.de [195.20.224.200]) by hub.freebsd.org (Postfix) with ESMTP id ABB7037B423 for ; Sat, 12 May 2001 11:43:40 -0700 (PDT) (envelope-from mail-service@friedhof2000.de) Received: from [195.20.224.220] (helo=mrvdom04.kundenserver.de) by moutvdom01.kundenserver.de with esmtp (Exim 2.12 #2) id 14yeMe-0008DL-00 for freebsd-hackers@freebsd.org; Sat, 12 May 2001 20:43:40 +0200 Received: from pd904dd79.dip.t-dialin.net ([217.4.221.121] helo=celeron) by mrvdom04.kundenserver.de with smtp (Exim 2.12 #2) id 14yeMZ-0000bN-00 for freebsd-hackers@freebsd.org; Sat, 12 May 2001 20:43:35 +0200 From: Mail-Service To: freebsd-hackers@freebsd.org Subject: Jetzt gewinnen, in über 100 Gewinnspielen! Reply-To: mail-service@friedhof2000.de MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: BulkMailer 2.0 (www.kroll-software.de) Message-Id: Date: Sat, 12 May 2001 20:43:35 +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Falls unerwünscht, bitte sofort löschen! Gewinn24.de meldet Sie jeden Monat bei über 100 der besten Gewinnspiele im Internet an. Sie sparen mit Gewinn24.de eine Menge Zeit und Geld. Für maximal 2,- DM pro Monat sind Sie dabei und haben jeden Monat Gewinnchancen auf viele tolle Preise im Gesamtwert von mehreren Millionen DM. http://www.Gewinn24.de/index.php3?partner=7294 *Bei Beschwerden bitte an alex-albert@01019freenet.de * To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 12: 8: 3 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tonnant.cnchost.com (tonnant.concentric.net [207.155.248.72]) by hub.freebsd.org (Postfix) with ESMTP id 82EEF37B423 for ; Sat, 12 May 2001 12:08:01 -0700 (PDT) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by tonnant.cnchost.com id PAA13219; Sat, 12 May 2001 15:07:56 -0400 (EDT) [ConcentricHost SMTP Relay 1.11] Message-ID: <200105121907.PAA13219@tonnant.cnchost.com> To: dan@BSDpro.com Cc: freebsd-hackers@freebsd.org Subject: Re: adding a new function to libc In-reply-to: Your message of "Sat, 12 May 2001 02:10:45 EDT." <01051202104500.95296@blackhole.BSDpro.com> Date: Sat, 12 May 2001 12:07:56 -0700 From: Bakul Shah Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Any comments, suggestions, swears concerning adding a new function, > strndup(), to libc? Many very good programmers I know carry around a library of useful functions (and usually don't bother about inclusion in libc). So I would suggest first you should keep this function in your own library for a few years and *only* then, and only if from experience you truly think it to be generally useful should you propose it for inclusion in a standard library. And *when* you do that you should a) present a correct version of the function (not a buggy one as you did here) and, more importantly b) a clear explanation of its function including how boundary conditions are handled. For your own library you don't have to jump through these hoops; this is necessary only when you want to let loose one of your favorite functions on unsuspecting libc users! Then the function behavior must be fully and carefully specified. Even for your own use, as was suggested by Valentin Nechayev, the strangely named function "strnlen(str, max)" is a better lower level function since it guarantees "str" won't be traversed beyond "max" chars and it is likely to be useful in more situations. As suggested by Terry Lambert, `asnprintf' would be another alternative. Though IMHO these string functions have sprouted like weeds, for very little added functionality. The fact str[a-z]* is reserved namespace should tell you how bad the situation is. What is needed is a decent unicode string library, derived from the collective experience with perl scripts. Unicode strings should be counted instead of null terminated so we are talking about a brand new set of functions. May be such a library can be standardized in a future standards effort after some experience with it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 14:23:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id 5325C37B43E for ; Sat, 12 May 2001 14:23:29 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.11.3/8.11.3) with ESMTP id f4CLNKc47482; Sat, 12 May 2001 17:23:23 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20010512033730.E8F2E3E0B@bazooka.unixfreak.org> References: <20010512033730.E8F2E3E0B@bazooka.unixfreak.org> Date: Sat, 12 May 2001 17:23:16 -0400 To: Dima Dorfman From: Garance A Drosihn Subject: Re: xargs(1) "replstr" patch Cc: hackers@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 8:37 PM -0700 5/11/01, Dima Dorfman wrote: >Garance A Drosihn writes: > > When I install this man page on -stable, and do a 'man xargs', >> that last line is displayed to the user as: >> > > /bin/ls -1d [A-Z]* | xargs -J [] cp -rp /bin/ls0 0/bin/ls1 > >... Old versions of mdoc (read: anything before about a month >ago) had a silly limit on the number of arguments. This isn't >a problem on any recent -current or -stable. Okay, I updated my -stable machine, and the man page does display fine now. looks good. -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 16:24:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from maynard.mail.mindspring.net (maynard.mail.mindspring.net [207.69.200.243]) by hub.freebsd.org (Postfix) with ESMTP id 99D5F37B43F for ; Sat, 12 May 2001 16:24:30 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0808.cvx21-bradley.dialup.earthlink.net [209.179.195.43]) by maynard.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id TAA26820; Sat, 12 May 2001 19:24:26 -0400 (EDT) Message-ID: <3AFDC640.83A13495@mindspring.com> Date: Sat, 12 May 2001 16:24:48 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Jordan Hubbard Cc: hackers@FreeBSD.ORG Subject: Re: SSH Must Die References: <3AFD1D6D.51731EAC@mindspring.com> <20010512072320L.jkh@osd.bsdi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jordan Hubbard wrote: > > ssh works just fine for me in 4.3. You must be doing something > wrong. I used that "sysinstall" thing Jordan wrote to upgrade from a 4.2 to a 4.3 system. Is that what I'm doing wrong? ;^). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 16:31:12 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from maynard.mail.mindspring.net (maynard.mail.mindspring.net [207.69.200.243]) by hub.freebsd.org (Postfix) with ESMTP id 3990537B424 for ; Sat, 12 May 2001 16:31:10 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0808.cvx21-bradley.dialup.earthlink.net [209.179.195.43]) by maynard.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id TAA20278; Sat, 12 May 2001 19:31:06 -0400 (EDT) Message-ID: <3AFDC7D1.2B00F93C@mindspring.com> Date: Sat, 12 May 2001 16:31:29 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Erik Trulsson Cc: hackers@FreeBSD.ORG Subject: Re: SSH Must Die References: <3AFD1D6D.51731EAC@mindspring.com> <20010512072320L.jkh@osd.bsdi.com> <20010512195010.A6364@student.uu.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Erik Trulsson wrote: > Exactly how is rpping it out of FreeBSD supposed to make ssh work? I don't necessarily want it to work or not work, I just want it to quit being a pain in my backside. If it can't be made to upgrade correctly, then ripping it out also satisfies the criteria necessary to achieve the intended goal. > I think I had similar problems at some point between 4.2-R > and 4.3-R. At some (fairly late IIRC) point inbetween the > version numbers of some of the crypto libraries was increased. > After a buildworld I had both libXXXX.so.1 and libXXXX.so.2 > installed in /usr/lib. I think deleting/moving one of them > (the .so.1 one IIRC) and then doing a new build/installworld > with 'COMPAT4X=yes' in /etc/make.conf made things work > correctly. I am afraid I don't remember the details exactly > but it might be a starting point. Yes, I see multiple installed copies of the libraries on my system. Since this is a cDROM from a "make release", I expected to see that for compatability reasons. Are you saying that if I install the new "compat4" stuff from the 4.3 CDROM, the problem will solve itself? I am willing to try that, but won't be able to tell you what happened until Monday. Thanks, -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 16:40:31 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from granger.mail.mindspring.net (granger.mail.mindspring.net [207.69.200.148]) by hub.freebsd.org (Postfix) with ESMTP id 1BF7C37B423 for ; Sat, 12 May 2001 16:40:28 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0808.cvx21-bradley.dialup.earthlink.net [209.179.195.43]) by granger.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id TAA07230; Sat, 12 May 2001 19:40:26 -0400 (EDT) Message-ID: <3AFDC9FF.3854EBC2@mindspring.com> Date: Sat, 12 May 2001 16:40:47 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: j Cc: hackers@FreeBSD.ORG Subject: Re: SSH Must Die References: <3AFD1D6D.51731EAC@mindspring.com> <01051208053600.00484@mark9.vladsempire.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG j wrote: > On Saturday 12 May 2001 06:24, Terry Lambert wrote: > > This whole ssh B.S. is very annoying. > > > > After an upgrade from 4.2 to 4.3 using a CDROM boot plus > > upgrade menu option, SSH stops working, for no good reason > > (_any_ reason is no good). > > > > You did make the needed additions to /etc/pam.conf, didn't you? What additions are necessary between 4.2 and 4.3? I was under the impression that "sysinstall" was supposed to "just do the right thing, and don't hassle me"? If you have a dead chicken I should wave over my keyboard, hand it over! 8-). > > Alternately, can we rip it bodily out of FreeBSD, and > > flush it down the toilet? > > What would we use for remote command line access if that happened? I was always partial to "telnet", but then I haven't really taken enough methamphetamines in my life (and the few I have taken were given to me by doctors) to make me as extraorfdinarily paranoid as most people seem to be these days. Of course, the idea that I'm being increasingly surrounded by mentally unstable "speed freaks" might be considered a paranoid fantasy by some, I suppose... 8-p. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 16:49: 7 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mark9.vladsempire.net (hutch-1061.hutchtel.net [206.10.69.61]) by hub.freebsd.org (Postfix) with ESMTP id 7350937B423 for ; Sat, 12 May 2001 16:49:04 -0700 (PDT) (envelope-from jpaetzel@hutchtel.net) Received: from mark9.vladsempire.net (mark9.vladsempire.net [10.0.0.97]) by mark9.vladsempire.net (Postfix) with SMTP id B299629F; Sat, 12 May 2001 18:54:16 -0500 (CDT) Content-Type: text/plain; charset="iso-8859-1" From: Josh Paetzel To: Terry Lambert Subject: Re: SSH Must Die Date: Sat, 12 May 2001 18:54:16 -0500 X-Mailer: KMail [version 1.2] Cc: hackers@FreeBSD.ORG References: <3AFD1D6D.51731EAC@mindspring.com> <01051208053600.00484@mark9.vladsempire.net> <3AFDC9FF.3854EBC2@mindspring.com> In-Reply-To: <3AFDC9FF.3854EBC2@mindspring.com> MIME-Version: 1.0 Message-Id: <01051218541602.03957@mark9.vladsempire.net> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Saturday 12 May 2001 18:40, Terry Lambert wrote: > j wrote: > > On Saturday 12 May 2001 06:24, Terry Lambert wrote: > > > This whole ssh B.S. is very annoying. > > > > > > After an upgrade from 4.2 to 4.3 using a CDROM boot plus > > > upgrade menu option, SSH stops working, for no good reason > > > (_any_ reason is no good). > > > > You did make the needed additions to /etc/pam.conf, didn't you? > > What additions are necessary between 4.2 and 4.3? I was > under the impression that "sysinstall" was supposed to > "just do the right thing, and don't hassle me"? > > If you have a dead chicken I should wave over my keyboard, > hand it over! 8-). Make sure you have these lines in /etc/pam.conf sshd auth sufficient pam_skey.so sshd auth required pam_unix.so try_first_pass sshd session required pam_permit.so These lines are not in 4.2-rel and they are needed in 4.3-rel. Have fun. Josh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 16:52:31 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mailf.telia.com (mailf.telia.com [194.22.194.25]) by hub.freebsd.org (Postfix) with ESMTP id 4ECDF37B423 for ; Sat, 12 May 2001 16:52:27 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailf.telia.com (8.11.2/8.11.0) with ESMTP id f4CNqPt14025 for ; Sun, 13 May 2001 01:52:26 +0200 (CEST) Received: from ertr1013.student.uu.se (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id BAA22471 for ; Sun, 13 May 2001 01:52:25 +0200 (CEST) Received: (qmail 11778 invoked by uid 1001); 12 May 2001 23:52:26 -0000 Date: Sun, 13 May 2001 01:52:26 +0200 From: Erik Trulsson To: Terry Lambert Cc: hackers@FreeBSD.ORG Subject: Re: SSH Must Die Message-ID: <20010513015226.A11730@student.uu.se> Mail-Followup-To: Terry Lambert , hackers@FreeBSD.ORG References: <3AFD1D6D.51731EAC@mindspring.com> <20010512072320L.jkh@osd.bsdi.com> <20010512195010.A6364@student.uu.se> <3AFDC7D1.2B00F93C@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3AFDC7D1.2B00F93C@mindspring.com>; from tlambert2@mindspring.com on Sat, May 12, 2001 at 04:31:29PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, May 12, 2001 at 04:31:29PM -0700, Terry Lambert wrote: > Erik Trulsson wrote: > > Exactly how is rpping it out of FreeBSD supposed to make ssh work? > > I don't necessarily want it to work or not work, I just > want it to quit being a pain in my backside. > > If it can't be made to upgrade correctly, then ripping it > out also satisfies the criteria necessary to achieve the > intended goal. > > > I think I had similar problems at some point between 4.2-R > > and 4.3-R. At some (fairly late IIRC) point inbetween the > > version numbers of some of the crypto libraries was increased. > > After a buildworld I had both libXXXX.so.1 and libXXXX.so.2 > > installed in /usr/lib. I think deleting/moving one of them > > (the .so.1 one IIRC) and then doing a new build/installworld > > with 'COMPAT4X=yes' in /etc/make.conf made things work > > correctly. I am afraid I don't remember the details exactly > > but it might be a starting point. > > Yes, I see multiple installed copies of the libraries > on my system. Since this is a cDROM from a "make release", > I expected to see that for compatability reasons. > > Are you saying that if I install the new "compat4" stuff > from the 4.3 CDROM, the problem will solve itself? I am > willing to try that, but won't be able to tell you what > happened until Monday. > The "compat4" stuff should install libraries in /usr/lib/compat/ After you have installed those, make sure that libraries found in /usr/lib/compat/ are not also installed in /usr/lib/ (E.g. if you have both /usr/lib/compat/libssl.so.1 and /usr/lib/libssl.so.1 then you should delete the latter.) And then you should use ldconfig or reboot to make sure that the right libraries are found. At least that fixed it for me but YMMV. (Might work with just removing the duplicate libraries from /usr/lib, except that if you have any binaries linked against the older versions they will probably stop working.) (No, I don't know why it wouldn't work with the older libraries residing in /usr/lib/ . It should have worked as I understand things. Well, everything works fine for me now anyway.) -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 17:13:15 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from winston.osd.bsdi.com (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id 375AF37B43E for ; Sat, 12 May 2001 17:13:10 -0700 (PDT) (envelope-from jkh@osd.bsdi.com) Received: from localhost (jkh@localhost [127.0.0.1]) by winston.osd.bsdi.com (8.11.3/8.11.2) with ESMTP id f4D0CN321115; Sat, 12 May 2001 17:12:26 -0700 (PDT) (envelope-from jkh@osd.bsdi.com) To: tlambert2@mindspring.com Cc: hackers@FreeBSD.ORG Subject: Re: SSH Must Die In-Reply-To: <3AFDC640.83A13495@mindspring.com> References: <3AFD1D6D.51731EAC@mindspring.com> <20010512072320L.jkh@osd.bsdi.com> <3AFDC640.83A13495@mindspring.com> X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010512171223V.jkh@osd.bsdi.com> Date: Sat, 12 May 2001 17:12:23 -0700 From: Jordan Hubbard X-Dispatcher: imput version 20000228(IM140) Lines: 12 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I used that "sysinstall" thing Jordan wrote to upgrade > from a 4.2 to a 4.3 system. > > Is that what I'm doing wrong? ;^). Probably! Anybody would be the first to tell you that sysinstall's "upgrade" feature only gets you there unassisted maybe 3 times out of 5. The contents of /etc are side-stepped around, for example, they're not merged by any stretch of the imagination and I think there are a whole bunch of disclaimers in sysinstall to that effect. - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 19:33:57 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-32.dsl.lsan03.pacbell.net [63.207.60.32]) by hub.freebsd.org (Postfix) with ESMTP id BB21A37B43E for ; Sat, 12 May 2001 19:33:54 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 4D74B66C04; Sat, 12 May 2001 19:33:54 -0700 (PDT) Date: Sat, 12 May 2001 19:33:54 -0700 From: Kris Kennaway To: Terry Lambert Cc: Jordan Hubbard , hackers@FreeBSD.ORG Subject: Re: SSH Must Die Message-ID: <20010512193354.A47163@xor.obsecurity.org> References: <3AFD1D6D.51731EAC@mindspring.com> <20010512072320L.jkh@osd.bsdi.com> <3AFDC640.83A13495@mindspring.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3AFDC640.83A13495@mindspring.com>; from tlambert2@mindspring.com on Sat, May 12, 2001 at 04:24:48PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 12, 2001 at 04:24:48PM -0700, Terry Lambert wrote: > Jordan Hubbard wrote: > >=20 > > ssh works just fine for me in 4.3. You must be doing something > > wrong. >=20 > I used that "sysinstall" thing Jordan wrote to upgrade > from a 4.2 to a 4.3 system. >=20 > Is that what I'm doing wrong? ;^). sysinstall does a very minimal job of merging the contents of /etc. Certainly it could be improved (mergemaster works nicely when you have the source tree around). Your patches would be appreciated. Kris --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6/fKRWry0BWjoQKURAkZHAJ4/++TzSSjj64hTYsBXluLlsPqtUACg1Dsc ZTonhLMPVXm06c6oXEdEP3Y= =l/Nr -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat May 12 19:37:57 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-32.dsl.lsan03.pacbell.net [63.207.60.32]) by hub.freebsd.org (Postfix) with ESMTP id F19D537B43E for ; Sat, 12 May 2001 19:37:54 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 9B7C966C04; Sat, 12 May 2001 19:37:54 -0700 (PDT) Date: Sat, 12 May 2001 19:37:54 -0700 From: Kris Kennaway To: Daniel Hemmerich Cc: freebsd-hackers@freebsd.org Subject: Re: adding a new function to libc Message-ID: <20010512193754.A47253@xor.obsecurity.org> References: <01051202104500.95296@blackhole.BSDpro.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <01051202104500.95296@blackhole.BSDpro.com>; from dan@BSDpro.com on Sat, May 12, 2001 at 02:10:45AM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 12, 2001 at 02:10:45AM -0400, Daniel Hemmerich wrote: > Any comments, suggestions, swears concerning adding a new function,=20 > strndup(), to libc? >=20 > So that instead of permitting it to attempt to allocate a large chunk of= =20 > memory, it is possible to give it a max length. #include int main(int argc, char **argv) { char *p; asprintf(&p, "%.*s", 100, argv[1]); printf("%s %d\n", p, strlen(p)); } Kris --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6/fOBWry0BWjoQKURAhMTAKDyzA+tsHhVYVBpJwQQIFqvhdf+cgCeI02s 5t8WOV+SaBoyO2tE3FzM/Pg= =EThX -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message