From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 11 11:26:01 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B64F316A403 for ; Sun, 11 Mar 2007 11:26:01 +0000 (UTC) (envelope-from artifact.one@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id 4EBFA13C471 for ; Sun, 11 Mar 2007 11:26:01 +0000 (UTC) (envelope-from artifact.one@googlemail.com) Received: by nf-out-0910.google.com with SMTP id k27so1523706nfc for ; Sun, 11 Mar 2007 04:26:00 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Jkf+K9TDjdp9R1CjYigoJLuwRvuHoMURSUO4D8qAAu2+A3vOGlauGsJLD5iT7ykFcBRyDKrhpMQsa4hpQYWD/mN1xx+3nAnJj4e+4688953Uiyr05JvlJdwXEWBWjoaYxtT2HLD/QZkj4uQtHHSwoaueSRluLlrv6IvtCF8xzAM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=P0+u8WERNgSNiOb02HSeO0vV1hcdjcFxWj0tA6wz5rVKVmw46vP+B1MRuxxNT3eIwH2wShoQ7XeP0dfhpjgqp3PCjX+XRbZcFs9LkvEFf3K80uFg1BtUFjx9CUaXNTpmTRQ517nbhPNNkol1/ZQou4gU0aW6GyfOQhhxiFcsYDk= Received: by 10.78.193.19 with SMTP id q19mr475471huf.1173610641454; Sun, 11 Mar 2007 03:57:21 -0700 (PDT) Received: by 10.78.153.9 with HTTP; Sun, 11 Mar 2007 03:57:21 -0700 (PDT) Message-ID: <8e96a0b90703110357r13e85897r59a66b93916de172@mail.gmail.com> Date: Sun, 11 Mar 2007 10:57:21 +0000 From: "mal content" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Realtime priority to thread, not process. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2007 11:26:01 -0000 Hello. Is it possible to give a thread realtime priority, as opposed to an entire process? thanks, MC From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 11 20:48:12 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A640816A401 for ; Sun, 11 Mar 2007 20:48:12 +0000 (UTC) (envelope-from frank@knobbe.us) Received: from mailb.knobbe.us (mailb.knobbe.us [66.179.47.215]) by mx1.freebsd.org (Postfix) with SMTP id 7133813C4C7 for ; Sun, 11 Mar 2007 20:48:12 +0000 (UTC) (envelope-from frank@knobbe.us) Received: from localhost (HELO mail.knobbe.us) by localhost with SMTP; 11 Mar 2007 15:21:29 -0500 Received: from localhost (HELO ??) by localhost with SMTP; 11 Mar 2007 15:21:28 -0500 From: Frank Knobbe To: freebsd-bugs@freebsd.org, freebsd-hackers@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-BKrFh2QutLa+J4NTn9iE" Date: Sun, 11 Mar 2007 15:21:26 -0500 Message-Id: <1173644486.23887.21.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 FreeBSD GNOME Team Port X-Mailman-Approved-At: Mon, 12 Mar 2007 00:10:01 +0000 Cc: darrenr@freebsd.org, darrenr@pobox.com Subject: Fix for bug in IPFilters ipfs tool X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2007 20:48:12 -0000 --=-BKrFh2QutLa+J4NTn9iE Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Greetings, A couple years ago, I had sent a patch to Darren for ipfs in ipfilter (patched on FreeBSD 5.3). I never heard back from him, and assumed that either it wasn't in proper format or already being worked on or he was too busy. Now that I'm upgrading my systems to FBSD 6.2, I encountered the same problem, and roughly the same fix has to be applied again, so it doesn't appear like it had been looked at. Hence I'm posting again (this time to the list). My setup is such that I have two router connections from my hosting provider which I feed to two small switched which are linked with a cross-over cable. The server has two network cards which connect to each switch. Only one card is active at a time. I got a script running that pings the default gateway and when it fails, it does the following: - Bring interface A down, and B up. - Remove the IP address from i/f A and assign to i/f B. - Run sed over rc.conf, ipf.rules and ipnat.rules and change the interface name from A to B. - Save currently active ipfilter rules (using ipfstat), run sed over those to change the i/f name, and reload them. - And finally, save the ipfilter state table, run ipfs over it to change the i/f names, and reload the state table. This way the server achieves complete redundancy. Any router, switch, cable, NIC can fail, and the server will switch to the other network card while preserving connection states. Works like a charm. But only after I had worked on ipfs. Out of the box, ipfs did not properly make the interface change in the saved state files. In FBSD 6.2, the command to change the interfaces (-i) is even disabled, probably because it never worked :) Below is a patch that will fix ipfs such that it is able to successfully change the interface names in the saved state files. The patch below also enables the -i flag again. After applying this patch, one can change interfaces as outlined above, and have ipfs rename them in the state files, allowing a clean fail-over between interfaces within ipfilter and also preserving the connection state. Any established connection will remain active. This is my first bug/fix report, so please be gentle if I cross-posted too much. I would appreciate if someone could apply the patch to ipfs.c so that other users can make use of it. The version of ipfs this was diff'ed from is: /* $FreeBSD: src/contrib/ipfilter/tools/ipfs.c,v 1.3.2.1 2006/08/24 07:37:1 0 guido Exp $ */ ---8<----------------------------------------------------------------------= -- --- ipfs.c.org Sun Mar 11 14:19:32 2007 +++ ipfs.c Sun Mar 11 14:21:24 2007 @@ -133,6 +133,14 @@ strcpy(ips.ips_is.is_ifname[1], s); rw =3D 1; } + if (!strncmp(ips.ips_is.is_ifname[2], ifs, olen + 1)) { + strcpy(ips.ips_is.is_ifname[2], s); + rw =3D 1; + } + if (!strncmp(ips.ips_is.is_ifname[3], ifs, olen + 1)) { + strcpy(ips.ips_is.is_ifname[3], s); + rw =3D 1; + } if (rw =3D=3D 1) { if (lseek(fd, pos, SEEK_SET) !=3D pos) { perror("lseek"); @@ -190,6 +198,14 @@ strcpy(nat->nat_ifnames[1], s); rw =3D 1; } + if (!strncmp(nat->nat_ifnames[2], ifs, olen + 1)) { + strcpy(nat->nat_ifnames[2], s); + rw =3D 1; + } + if (!strncmp(nat->nat_ifnames[3], ifs, olen + 1)) { + strcpy(nat->nat_ifnames[3], s); + rw =3D 1; + } if (rw =3D=3D 1) { if (lseek(fd, pos, SEEK_SET) !=3D pos) { perror("lseek"); @@ -216,7 +232,7 @@ char *dirname =3D NULL, *filename =3D NULL, *ifs =3D NULL; =20 progname =3D argv[0]; - while ((c =3D getopt(argc, argv, "d:f:lNnSRruvWw")) !=3D -1) + while ((c =3D getopt(argc, argv, "d:f:i:lNnSRruvWw")) !=3D -1) switch (c) { case 'd' : ---8<----------------------------------------------------------------------= -- Regards, Frank --=20 It is said that the Internet is a public utility. As such, it is best compared to a sewer. A big, fat pipe with a bunch of crap sloshing against your ports. --=-BKrFh2QutLa+J4NTn9iE Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBF9GTGjt2fjCi9PsERArphAJ9lFAJb2spQg5go0KZ2Xypm6v5+FgCcCS98 FyHYq3xUgqpbEMV3DgdOKdg= =ndEO -----END PGP SIGNATURE----- --=-BKrFh2QutLa+J4NTn9iE-- From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 12 02:48:22 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7A5D216A403 for ; Mon, 12 Mar 2007 02:48:22 +0000 (UTC) (envelope-from mayong@mail.com) Received: from fallback.us4.outblaze.com (fallback.us4.outblaze.com [205.158.62.120]) by mx1.freebsd.org (Postfix) with ESMTP id 5EB4413C4B9 for ; Mon, 12 Mar 2007 02:48:22 +0000 (UTC) (envelope-from mayong@mail.com) Received: from webmail-outgoing.us4.outblaze.com (webmail-outgoing.us4.outblaze.com [205.158.62.67]) by fallback.us4.outblaze.com (Postfix) with ESMTP id 2D6581C0B515 for ; Mon, 12 Mar 2007 02:22:25 +0000 (GMT) Received: from unknown (unknown [192.168.8.90]) by webmail-outgoing.us4.outblaze.com (Postfix) with QMQP id B432118001A4 for ; Mon, 12 Mar 2007 02:22:24 +0000 (GMT) X-OB-Received: from unknown (205.158.62.49) by wfilter2.us4.outblaze.com; 12 Mar 2007 02:22:24 -0000 Received: by ws1-1.us4.outblaze.com (Postfix, from userid 1001) id 7B4221BF297; Mon, 12 Mar 2007 02:22:24 +0000 (GMT) MIME-Version: 1.0 From: "Yong Ma" To: freebsd-hackers@freebsd.org Date: Mon, 12 Mar 2007 10:22:24 +0800 Received: from [124.16.138.62] by ws1-1.us4.outblaze.com with http for mayong@mail.com; Mon, 12 Mar 2007 10:22:24 +0800 X-Originating-Ip: 124.16.138.62 X-Originating-Server: ws1-1.us4.outblaze.com Message-Id: <20070312022224.7B4221BF297@ws1-1.us4.outblaze.com> X-Mailman-Approved-At: Mon, 12 Mar 2007 03:39:07 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Port/Package Management? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 02:48:22 -0000 Hello everybody, I want to konw how the FreeBSD package management (port/package) works, but I didn't find enough useful information about that. Can anybody give me some documents or links more detail about this or just tell me where to start? Thank you ! Happy Hacking, May the source be with you! Yong From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 12 04:06:44 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DCA6016A401 for ; Mon, 12 Mar 2007 04:06:44 +0000 (UTC) (envelope-from geek.dwells@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.240]) by mx1.freebsd.org (Postfix) with ESMTP id 9FEE313C44B for ; Mon, 12 Mar 2007 04:06:44 +0000 (UTC) (envelope-from geek.dwells@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1178329ana for ; Sun, 11 Mar 2007 21:06:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=o1Wtip9xonDujTO3BK7KtYeCRZFAmw6tWgz6ea33pJKmddT19uM/YdTqNTFAngkFFYqKthzJhUe1eFevrqgaeqU/n6X+IZrD7W0onUhnwYPgVmnNLDA4ziZouJFfn5IbnIN6DPaZyjNaWThOv/P5BGQGd407afzJoIY+n1eFGSA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=T/Z5Ep+i6Nvo3w9CO/7nslcaKYVXEUmUYivTVYGKmTVamKcoE1CWxFKJCsmS6PsxMScp61qQ8lPH91FH0psbSTsn96iujWZiDWTJ5esVfI1XSJHpYr5m2QkGRYHXAjo+UqlUo1jbJEyve2bH8/73g6flHwiKI4NqG0NVEo5Lz/c= Received: by 10.115.61.1 with SMTP id o1mr1093898wak.1173672403471; Sun, 11 Mar 2007 21:06:43 -0700 (PDT) Received: by 10.115.17.9 with HTTP; Sun, 11 Mar 2007 21:06:43 -0700 (PDT) Message-ID: Date: Mon, 12 Mar 2007 09:36:43 +0530 From: "ajay gopalakrishnan" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: How does not practice freebsd kernel programming? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 04:06:44 -0000 Hi, What is the best way to start practicing kernel programming on freebsd for amateurs. I have found many sites about Linux kernel programming but none for FReebsd kernel programming. What are the usual steps followed while learning freebsd kernel programming? Thanks, Ajay. From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 12 04:34:39 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4944B16A400 for ; Mon, 12 Mar 2007 04:34:39 +0000 (UTC) (envelope-from egypcio@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.179]) by mx1.freebsd.org (Postfix) with ESMTP id D8A2913C459 for ; Mon, 12 Mar 2007 04:34:38 +0000 (UTC) (envelope-from egypcio@gmail.com) Received: by ik-out-1112.google.com with SMTP id c21so1538980ika for ; Sun, 11 Mar 2007 21:34:37 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EEs8r4stjR4mwAshwTv9zKsxukkY7CdkFl8nqVKCMY4EVbp7vyMnMhFzEyW9/wJ/Vxh2OzlHeVlxil+kwIxacQwe0YBypGjTSPzJ9orc7DEW9MHZG4cT9AOZnmd8COzlmHe/u5Pcl3+GqJJ7BjQGsJYnwlWnJ8ajASt2U8eG9WU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Zm7EgW80Je5KCQpmHZkA8dpHuqyuhnNsng4KxXuIQH60t301tJStuoO+06UZKWQHeFbD6+GeaMlXKG7m/22fvFuvV9zrw+tx7BYyoqBaej9HkufCe9kPSLK8DiuOyLE9dyGUfAuKXrcGgS5c9e+kGxmIUMkQq2H7x/4GKP3f2pg= Received: by 10.70.87.5 with SMTP id k5mr9474649wxb.1173672370185; Sun, 11 Mar 2007 21:06:10 -0700 (PDT) Received: by 10.100.134.16 with HTTP; Sun, 11 Mar 2007 21:06:09 -0700 (PDT) Message-ID: <8b5ad0e10703112106l60a697c9h2d19d8f61980085@mail.gmail.com> Date: Mon, 12 Mar 2007 01:06:09 -0300 From: "=?ISO-8859-1?Q?Zavam,_Vin=EDcius?=" To: freebsd-hackers@freebsd.org In-Reply-To: <20070312022224.7B4221BF297@ws1-1.us4.outblaze.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20070312022224.7B4221BF297@ws1-1.us4.outblaze.com> Subject: Re: Port/Package Management? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 04:34:39 -0000 2007/3/11, Yong Ma : > Hello everybody, I want to konw how the FreeBSD package management > (port/package) works, but I didn't find enough useful information about > that. Can anybody give me some documents or links more detail about this > or just tell me where to start? Thank you ! > > Happy Hacking, May the source be with you! > > Yong where to start? freebsd.org/docs.html or freebsd.org/handbook second floor; freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-overview.html and so on.. "may the source be with you!" []'s --=20 Zavam, Vin=EDcius de A. From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 12 04:38:55 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7131D16A405 for ; Mon, 12 Mar 2007 04:38:55 +0000 (UTC) (envelope-from freebsd@scottevil.com) Received: from pro28.abac.com (pro28.abac.com [66.226.64.29]) by mx1.freebsd.org (Postfix) with ESMTP id 5D2D113C48A for ; Mon, 12 Mar 2007 04:38:55 +0000 (UTC) (envelope-from freebsd@scottevil.com) Received: from [192.168.2.83] (CPE-24-166-164-34.kc.res.rr.com [24.166.164.34]) (authenticated bits=0) by pro28.abac.com (8.13.6/8.13.6) with ESMTP id l2C3wvSc038580 for ; Sun, 11 Mar 2007 20:58:58 -0700 (PDT) (envelope-from freebsd@scottevil.com) Message-ID: <45F4D001.4030901@scottevil.com> Date: Sun, 11 Mar 2007 22:58:57 -0500 From: Scott Oertel User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 6.2-RELEASE Kernel Panic (thread taskq) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 04:38:55 -0000 Hello all, I have 8 machines running 6.2-RELEASE, they're all under pretty heavy load. All but one is running Dual Opterons on Tyan motherboards, the other is running 2x Dual Core Xeon, on a Supermicro mb. I am receiving this panic on all the machines, some of them it happens once a month, others every few days. The only thing they all have in common now is they're running 3ware 9550SX SATA RAID controllers, and a PAE/SMP kernel I have done a lot of searching around and have found other people having this same issue, but nobody seems to have a fix for it, or the threads just die eventually. I'm trying to get a dump but they seem to be corrupted when I try and load them into the debugger. I am going to attempt to do some online debugging next time I encounter one of these panic's Anyway, here is the panic message. I have access to a serial console on all the machines, and I've enabled the kernel option to drop to the debugger on panic. Does anyone have any advice, or a fix in regards to this issue? Here is the closest thing I got with nm from the instruction pointer: [root@xxx ~]# nm -n /boot/kernel/kernel | grep c03f60 c03f6050 T _mtx_lock_sleep ------------- kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid = 3; apic id = 07 fault virtual address = 0x104 fault code = supervisor read, page not present instruction pointer = 0x20:0xc03f60ed stack pointer = 0x28:0xe8e05c90 frame pointer = 0x28:0xe8e05c9c code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 5 (thread taskq) trap number = 12 panic: page fault cpuid = 3 Uptime: 2d19h50m39s Cannot dump. No dump device defined. ### NOTE: I've defined the dump device now. Automatic reboot in 15 seconds - press a key on the console to abort Thanks, Scott Oertel From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 12 06:53:53 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 85DC316A401 for ; Mon, 12 Mar 2007 06:53:53 +0000 (UTC) (envelope-from mayong@mail.com) Received: from webmail-outgoing.us4.outblaze.com (webmail-outgoing.us4.outblaze.com [205.158.62.67]) by mx1.freebsd.org (Postfix) with ESMTP id 6DED913C44B for ; Mon, 12 Mar 2007 06:53:53 +0000 (UTC) (envelope-from mayong@mail.com) Received: from unknown (unknown [192.168.8.90]) by webmail-outgoing.us4.outblaze.com (Postfix) with QMQP id 0B0781800121 for ; Mon, 12 Mar 2007 06:53:53 +0000 (GMT) X-OB-Received: from unknown (205.158.62.55) by wfilter2.us4.outblaze.com; 12 Mar 2007 06:53:52 -0000 Received: by ws1-3.us4.outblaze.com (Postfix, from userid 1001) id B850B10285; Mon, 12 Mar 2007 06:53:52 +0000 (GMT) MIME-Version: 1.0 From: "Yong Ma" To: =?iso-8859-1?B?WmF2YW0sIFZpbu1jaXVz?= , freebsd-hackers@freebsd.org Date: Mon, 12 Mar 2007 14:53:52 +0800 Received: from [124.16.138.62] by ws1-3.us4.outblaze.com with http for mayong@mail.com; Mon, 12 Mar 2007 14:53:52 +0800 X-Originating-Ip: 124.16.138.62 X-Originating-Server: ws1-3.us4.outblaze.com Message-Id: <20070312065352.B850B10285@ws1-3.us4.outblaze.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Port/Package Management? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 06:53:53 -0000 ----- Original Message ----- From: "Zavam, Vin=EDcius" To: freebsd-hackers@freebsd.org Subject: Re: Port/Package Management? Date: Mon, 12 Mar 2007 01:06:09 -0300 2007/3/11, Yong Ma : > Hello everybody, I want to konw how the FreeBSD package management > (port/package) works, but I didn't find enough useful information about > that. Can anybody give me some documents or links more detail about this > or just tell me where to start? Thank you ! > > Happy Hacking, May the source be with you! > > Yong where to start? freebsd.org/docs.html or freebsd.org/handbook second floor; freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-overview.html and so on.. "may the source be with you!" []'s -- Zavam, Vin=EDcius de A. _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscribe@freebsd.org I have been using and working with FreeBSD for about 3 years, and I think I know how to use the port/package system well. This time I am interested in the operational principle of the port/package system, what is going on while installing packages, and=20 where is the source files if I want to do some modification? thamk you Yong=20 From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 12 07:42:03 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B076716A402 for ; Mon, 12 Mar 2007 07:42:03 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 491FA13C45A for ; Mon, 12 Mar 2007 07:42:03 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so2029413ugh for ; Mon, 12 Mar 2007 00:42:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rg2VBL7O6AYufzG5ZtDPPDdc9bwArBrmvmnmYodOJfK9+v7g/bW8sBswjZWzOjJF6QaJBpq/Lwy2/8I9RJ/Ey/k999klwO4uWpjbgEYusKP+S2hVvpohjY5/a2zxKNdR2m2C+EBLv2iPKATEH/yzXTgdzox1iPYxwG3ruWLqKZQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uBL5wCpVeRj2mXYwYADxBJNritKB2miiEvH/5CxTkhxIm4RzW2WaVJVJ728T6OiVF9tDlbgJejJFAmAvq5+WB+xsMw0kBXhavD+MNVWb0eHle+ZUn3w+bcs0SgK3x5ge1fc49iRLGsE5gUQIuTnw+BK5wzIg7NOpZ1ojZ1imXzY= Received: by 10.115.92.2 with SMTP id u2mr1136936wal.1173685321413; Mon, 12 Mar 2007 00:42:01 -0700 (PDT) Received: by 10.115.33.15 with HTTP; Mon, 12 Mar 2007 00:42:01 -0700 (PDT) Message-ID: <84dead720703120042n5643cf81x8ad7efe9a90abdf3@mail.gmail.com> Date: Mon, 12 Mar 2007 13:12:01 +0530 From: "Joseph Koshy" To: "Yong Ma" In-Reply-To: <20070312065352.B850B10285@ws1-3.us4.outblaze.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070312065352.B850B10285@ws1-3.us4.outblaze.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Port/Package Management? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 07:42:03 -0000 > This time I am interested in the operational principle > of the port/package system, what is going on while > installing packages, and where is the source files if > I want to do some modification? See /usr/src/usr.sbin/pkg_install/* -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 12 10:33:14 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 76D0E16A402 for ; Mon, 12 Mar 2007 10:33:14 +0000 (UTC) (envelope-from citrin@citrin.ru) Received: from mail.classis.ru (classis.ru [213.248.60.120]) by mx1.freebsd.org (Postfix) with ESMTP id 3A9E713C457 for ; Mon, 12 Mar 2007 10:33:14 +0000 (UTC) (envelope-from citrin@citrin.ru) Received: from citrin (unknown [81.19.65.95]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: citrin.citrin.ru) by mail.classis.ru (Postfix) with ESMTP id 9FBA41227A80 for ; Mon, 12 Mar 2007 13:11:26 +0300 (MSK) Date: Mon, 12 Mar 2007 13:10:34 +0300 From: Anton Yuzhaninov X-Mailer: The Bat! (v3.62.14) Professional Organization: Rambler X-Priority: 3 (Normal) Message-ID: <782951585.20070312131034@citrin.ru> To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Why max mmap size limited to half of virtual address space? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 10:33:14 -0000 Hello, Why max mmap size limited to half virtual address space? On i386 it limited to 2 Gb: /sys/vm/vm_mmap.c /* make sure mapping fits into numeric range etc */ if ((ssize_t) uap->len < 0 || ((flags & MAP_ANON) && uap->fd != -1)) return (EINVAL); (ssize_t) uap->len < 0 limit maximum value for uap->len to SIZE_T_MAX/2 May be this check can be removed? It test it on FreeBSD 6.2 i386 - without this check a can map 2400 Mb file. Also mmap man page say, that 2 Gb limit was a documentation bug, but this limit still exist on i386. -- Anton Yuzhaninov. From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 12 07:43:33 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E617616A402 for ; Mon, 12 Mar 2007 07:43:33 +0000 (UTC) (envelope-from phi@evilphi.com) Received: from mail.twinthornes.com (mail.twinthornes.com [65.75.198.147]) by mx1.freebsd.org (Postfix) with ESMTP id C956D13C45B for ; Mon, 12 Mar 2007 07:43:33 +0000 (UTC) (envelope-from phi@evilphi.com) Received: from [10.0.0.35] (unknown [198.145.29.76]) by mail.twinthornes.com (Postfix) with ESMTP id 4F15A5B4; Sun, 11 Mar 2007 23:23:33 -0800 (PST) Message-ID: <45F4FF32.3060408@evilphi.com> Date: Mon, 12 Mar 2007 00:20:18 -0700 From: Darren Pilgrim User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Yong Ma References: <20070312065352.B850B10285@ws1-3.us4.outblaze.com> In-Reply-To: <20070312065352.B850B10285@ws1-3.us4.outblaze.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 12 Mar 2007 11:16:24 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Port/Package Management? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 07:43:34 -0000 Yong Ma wrote: > This time I am interested in the operational principle of the > port/package system, what is going on while installing packages, and > where is the source files if I want to do some modification? /usr/ports/Mk bsd.port.mk is the central component. There are extra files for various frameworks and platforms. -- Darren Pilgrim From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 12 11:36:46 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E347016A402 for ; Mon, 12 Mar 2007 11:36:46 +0000 (UTC) (envelope-from xride@x12.dk) Received: from swip.net (mailfe13.tele2.dk [212.247.155.131]) by mx1.freebsd.org (Postfix) with ESMTP id 81BF313C487 for ; Mon, 12 Mar 2007 11:36:46 +0000 (UTC) (envelope-from xride@x12.dk) X-Cloudmark-Score: 0.000000 [] Received: from x12.dk (account mu12272@get2net.dk [83.72.97.231] verified) by mailfe13.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 43551792; Mon, 12 Mar 2007 11:36:43 +0100 Received: by x12.dk (Postfix, from userid 666) id 72DC450844; Mon, 12 Mar 2007 11:36:42 +0100 (CET) Date: Mon, 12 Mar 2007 11:36:42 +0100 From: Soeren Straarup To: ajay gopalakrishnan Message-ID: <20070312103642.GM81938@x12.dk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org Subject: Re: How does not practice freebsd kernel programming? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 11:36:47 -0000 On Mon, Mar 12, 2007 at 09:36:43AM +0530, ajay gopalakrishnan wrote: > Hi, > > What is the best way to start practicing kernel programming on freebsd for > amateurs. I have found many sites about Linux kernel programming but none > for FReebsd kernel programming. > What are the usual steps followed while learning freebsd kernel programming? > The way I did it was to take a spare computer and then play with loadeable modules. Fx: http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics-char.html#AEN8704 Which I need to get updated. /Soeren -- Soeren Straarup | aka OZ2DAK aka Xride FreeBSD committer | FreeBSD since 2.2.6-R If a program is not working right, then send a patch From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 12 12:58:57 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 202FE16A402 for ; Mon, 12 Mar 2007 12:58:57 +0000 (UTC) (envelope-from raggen@passagen.se) Received: from av12-1-sn2.hy.skanova.net (av12-1-sn2.hy.skanova.net [81.228.8.185]) by mx1.freebsd.org (Postfix) with ESMTP id B229413C45A for ; Mon, 12 Mar 2007 12:58:56 +0000 (UTC) (envelope-from raggen@passagen.se) Received: by av12-1-sn2.hy.skanova.net (Postfix, from userid 502) id 93BD4381AE; Mon, 12 Mar 2007 13:58:55 +0100 (CET) Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av12-1-sn2.hy.skanova.net (Postfix) with ESMTP id 682FE380B9; Mon, 12 Mar 2007 13:58:55 +0100 (CET) Received: from [192.168.1.6] (81-231-90-251-no41.tbcn.telia.com [81.231.90.251]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id 3FE3137E60; Mon, 12 Mar 2007 13:58:55 +0100 (CET) Message-ID: <45F54E10.8090904@passagen.se> Date: Mon, 12 Mar 2007 13:56:48 +0100 From: Roger Olofsson User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Frank Knobbe References: <1173644486.23887.21.camel@localhost> In-Reply-To: <1173644486.23887.21.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Fix for bug in IPFilters ipfs tool X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 12:58:57 -0000 Hello Frank and thank you for your very inspiring post, I have a similar setup, two machines, both dualhomed, connected to two small switches where only one machine has both nics active at the same time. One diffence is that I use Freevrrpd as a heartbeat monitor which works excellent. The scripts you describe sounds similar to mine, I do some fiddling with cron as well and kick down and up some services. When Freevrrpd makes the switch from one machine to the other all connections appear to remain unaltered. I have not tcpdumped to see how much gets lost in the 3 seconds or so that the switch is allowed to take but the transition appears to work. I don't rely on ipfs at all, but your post made me realize that I should look into using it to complement freevrrpd. Thank you, /Roger Frank Knobbe skrev: > Greetings, > > A couple years ago, I had sent a patch to Darren for ipfs in ipfilter > (patched on FreeBSD 5.3). I never heard back from him, and assumed that > either it wasn't in proper format or already being worked on or he was > too busy. > > Now that I'm upgrading my systems to FBSD 6.2, I encountered the same > problem, and roughly the same fix has to be applied again, so it doesn't > appear like it had been looked at. Hence I'm posting again (this time to > the list). > > My setup is such that I have two router connections from my hosting > provider which I feed to two small switched which are linked with a > cross-over cable. The server has two network cards which connect to each > switch. Only one card is active at a time. I got a script running that > pings the default gateway and when it fails, it does the following: > - Bring interface A down, and B up. > - Remove the IP address from i/f A and assign to i/f B. > - Run sed over rc.conf, ipf.rules and ipnat.rules and change the > interface name from A to B. > - Save currently active ipfilter rules (using ipfstat), run sed over > those to change the i/f name, and reload them. > - And finally, save the ipfilter state table, run ipfs over it to change > the i/f names, and reload the state table. > > This way the server achieves complete redundancy. Any router, switch, > cable, NIC can fail, and the server will switch to the other network > card while preserving connection states. Works like a charm. > > But only after I had worked on ipfs. Out of the box, ipfs did not > properly make the interface change in the saved state files. In FBSD > 6.2, the command to change the interfaces (-i) is even disabled, > probably because it never worked :) > > Below is a patch that will fix ipfs such that it is able to successfully > change the interface names in the saved state files. The patch below > also enables the -i flag again. After applying this patch, one can > change interfaces as outlined above, and have ipfs rename them in the > state files, allowing a clean fail-over between interfaces within > ipfilter and also preserving the connection state. Any established > connection will remain active. > > This is my first bug/fix report, so please be gentle if I cross-posted > too much. I would appreciate if someone could apply the patch to ipfs.c > so that other users can make use of it. The version of ipfs this was > diff'ed from is: > > /* $FreeBSD: src/contrib/ipfilter/tools/ipfs.c,v 1.3.2.1 2006/08/24 > 07:37:1 > 0 guido Exp $ */ > > ---8<------------------------------------------------------------------------ > --- ipfs.c.org Sun Mar 11 14:19:32 2007 > +++ ipfs.c Sun Mar 11 14:21:24 2007 > @@ -133,6 +133,14 @@ > strcpy(ips.ips_is.is_ifname[1], s); > rw = 1; > } > + if (!strncmp(ips.ips_is.is_ifname[2], ifs, olen + 1)) { > + strcpy(ips.ips_is.is_ifname[2], s); > + rw = 1; > + } > + if (!strncmp(ips.ips_is.is_ifname[3], ifs, olen + 1)) { > + strcpy(ips.ips_is.is_ifname[3], s); > + rw = 1; > + } > if (rw == 1) { > if (lseek(fd, pos, SEEK_SET) != pos) { > perror("lseek"); > @@ -190,6 +198,14 @@ > strcpy(nat->nat_ifnames[1], s); > rw = 1; > } > + if (!strncmp(nat->nat_ifnames[2], ifs, olen + 1)) { > + strcpy(nat->nat_ifnames[2], s); > + rw = 1; > + } > + if (!strncmp(nat->nat_ifnames[3], ifs, olen + 1)) { > + strcpy(nat->nat_ifnames[3], s); > + rw = 1; > + } > if (rw == 1) { > if (lseek(fd, pos, SEEK_SET) != pos) { > perror("lseek"); > @@ -216,7 +232,7 @@ > char *dirname = NULL, *filename = NULL, *ifs = NULL; > > progname = argv[0]; > - while ((c = getopt(argc, argv, "d:f:lNnSRruvWw")) != -1) > + while ((c = getopt(argc, argv, "d:f:i:lNnSRruvWw")) != -1) > switch (c) > { > case 'd' : > ---8<------------------------------------------------------------------------ > > > Regards, > Frank > > > From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 12 16:33:34 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5ED1616A400 for ; Mon, 12 Mar 2007 16:33:34 +0000 (UTC) (envelope-from deathjestr@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.225]) by mx1.freebsd.org (Postfix) with ESMTP id 1B89A13C457 for ; Mon, 12 Mar 2007 16:33:34 +0000 (UTC) (envelope-from deathjestr@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1630910wxc for ; Mon, 12 Mar 2007 09:33:33 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=N/UHjTT0AQNhW1HfEpmL8YYo0c9CQ4CrJIdaAOA2tvCNaMn5U9TKjfz6Jsc4/sElVZBi61Cf1ZeF6zmFpQQJwliVEMoaJasoWeEwta6WptC8sMmS9SuixF3QOAka3Cc19kSpeWhz6nvPUfAgA8BkU5bJReM7Y9Q1Hks/V6BYmpM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Q7o+xI4jWOcQJCYL7ZpkAbFznPsY/ghw3+YZ8q2IXkvVyeLACoO3B5yUUct+H3/2R0zEfizZ8EFbrSfuXd8kD2BRw6eraiTCs3kRYgTMA1YBl7YVG15gG10Hou16m7FKjtrHQTueDA0sF7Lk4jhBZk3t3u+mihAifaxt81j/HVU= Received: by 10.90.94.2 with SMTP id r2mr4723144agb.1173717213214; Mon, 12 Mar 2007 09:33:33 -0700 (PDT) Received: by 10.90.78.13 with HTTP; Mon, 12 Mar 2007 09:33:32 -0700 (PDT) Message-ID: <44b564930703120933j9e59fd2x7ee2425aa3aa7e73@mail.gmail.com> Date: Mon, 12 Mar 2007 11:33:32 -0500 From: "Michael M. Press" To: "Soeren Straarup" , "ajay gopalakrishnan" In-Reply-To: <20070312103642.GM81938@x12.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070312103642.GM81938@x12.dk> Cc: freebsd-hackers@freebsd.org Subject: Re: How does not practice freebsd kernel programming? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 16:33:34 -0000 You can play with adding system calls to FreeBSD. This is not something that people need to do very often, but it is a good way to give yourself some experience writing code that runs in kernel mode. The following OnLamp tutorial is intended for OpenBSD, but I think most of it applies to FreeBSD as well: http://www.onlamp.com/pub/a/bsd/2003/10/09/adding_system_calls.html From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 12 16:35:50 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8405616A400 for ; Mon, 12 Mar 2007 16:35:50 +0000 (UTC) (envelope-from alex@6by9.org) Received: from imap.multamedio.de (imap.multamedio.de [62.52.48.122]) by mx1.freebsd.org (Postfix) with ESMTP id 423FD13C44C for ; Mon, 12 Mar 2007 16:35:50 +0000 (UTC) (envelope-from alex@6by9.org) Received: by imap.multamedio.de (Postfix, from userid 65534) id 73DA38D7F6; Mon, 12 Mar 2007 17:03:44 +0100 (CET) Received: from [192.168.0.38] (124.net2.multamedio.de [62.52.48.124]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by imap.multamedio.de (Postfix) with ESMTP id B65F988716; Mon, 12 Mar 2007 17:03:39 +0100 (CET) Message-ID: <45F579DA.9070103@6by9.org> Date: Mon, 12 Mar 2007 17:03:38 +0100 From: "Alexander N. Mueller" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on imap.multamedio.de X-Spam-Level: X-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Bogosity: Ham, tests=bogofilter, spamicity=0.397065, version=1.0.2 Subject: Re: How does not practice freebsd kernel programming? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 16:35:50 -0000 > What is the best way to start practicing kernel programming on freebsd for > amateurs. I have found many sites about Linux kernel programming but none > for FReebsd kernel programming. > What are the usual steps followed while learning freebsd kernel > programming? Maybe you should take a look at the book "The Design and Implementation of the FreeBSD Operating System" by Marshall Kirk McKusick. I'm also a beginner in this field, and IMHO this book is a great introduction. Regards, Alex From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 12 19:44:58 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4747016A403 for ; Mon, 12 Mar 2007 19:44:58 +0000 (UTC) (envelope-from freebsd@scottevil.com) Received: from pro28.abac.com (pro28.abac.com [66.226.64.29]) by mx1.freebsd.org (Postfix) with ESMTP id 313BC13C483 for ; Mon, 12 Mar 2007 19:44:58 +0000 (UTC) (envelope-from freebsd@scottevil.com) Received: from [10.34.1.89] ([64.126.14.3]) (authenticated bits=0) by pro28.abac.com (8.13.6/8.13.6) with ESMTP id l2CJir04083139 for ; Mon, 12 Mar 2007 12:44:55 -0700 (PDT) (envelope-from freebsd@scottevil.com) Message-ID: <45F5ADB3.1010405@scottevil.com> Date: Mon, 12 Mar 2007 14:44:51 -0500 From: Scott Oertel User-Agent: Thunderbird 2.0b2 (X11/20070307) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <45F4D001.4030901@scottevil.com> In-Reply-To: <45F4D001.4030901@scottevil.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 3.114 (RCVD_IN_XBL) X-Spam-Level: !!! Subject: Re: 6.2-RELEASE Kernel Panic (thread taskq) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 19:44:58 -0000 Scott Oertel wrote: > Hello all, > > I have 8 machines running 6.2-RELEASE, they're all under pretty heavy > load. All but one is running Dual Opterons on Tyan motherboards, the > other is running 2x Dual Core Xeon, on a Supermicro mb. I am receiving > this panic on all the machines, some of them it happens once a month, > others every few days. The only thing they all have in common now is > they're running 3ware 9550SX SATA RAID controllers, and a PAE/SMP kernel > > I have done a lot of searching around and have found other people > having this same issue, but nobody seems to have a fix for it, or the > threads just die eventually. I'm trying to get a dump but they seem to > be corrupted when I try and load them into the debugger. I am going to > attempt to do some online debugging next time I encounter one of these > panic's > > Anyway, here is the panic message. I have access to a serial console > on all the machines, and I've enabled the kernel option to drop to the > debugger on panic. Does anyone have any advice, or a fix in regards to > this issue? > > Here is the closest thing I got with nm from the instruction pointer: > > [root@xxx ~]# nm -n /boot/kernel/kernel | grep c03f60 > c03f6050 T _mtx_lock_sleep > > ------------- > > kernel trap 12 with interrupts disabled > Fatal trap 12: page fault while in kernel mode > > cpuid = 3; apic id = 07 > fault virtual address = 0x104 > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc03f60ed > stack pointer = 0x28:0xe8e05c90 > frame pointer = 0x28:0xe8e05c9c > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = resume, IOPL = 0 > current process = 5 (thread taskq) > trap number = 12 > panic: page fault > cpuid = 3 > > > Uptime: 2d19h50m39s > > Cannot dump. No dump device defined. ### NOTE: I've defined the > dump device now. > > Automatic reboot in 15 seconds - press a key on the console to abort > > > > > Thanks, > Scott Oertel > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" Any ideas? Should I forward this to the freebsd-stable list, do you guys think it would be more appropriate to send things like this there? -Scott Oertel From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 13 02:59:49 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BF3EE16A402 for ; Tue, 13 Mar 2007 02:59:49 +0000 (UTC) (envelope-from freebsd@scottevil.com) Received: from pro28.abac.com (pro28.abac.com [66.226.64.29]) by mx1.freebsd.org (Postfix) with ESMTP id AB1C113C45D for ; Tue, 13 Mar 2007 02:59:49 +0000 (UTC) (envelope-from freebsd@scottevil.com) Received: from [192.168.2.83] (CPE-24-166-164-34.kc.res.rr.com [24.166.164.34]) (authenticated bits=0) by pro28.abac.com (8.13.6/8.13.6) with ESMTP id l2D2xiwC018060; Mon, 12 Mar 2007 19:59:46 -0700 (PDT) (envelope-from freebsd@scottevil.com) Message-ID: <45F613A0.8000708@scottevil.com> Date: Mon, 12 Mar 2007 21:59:44 -0500 From: Scott Oertel User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Markus Oestreicher References: <45F4D001.4030901@scottevil.com> <45F5ADB3.1010405@scottevil.com> <45F5DFD0.2090101@x-trader.de> In-Reply-To: <45F5DFD0.2090101@x-trader.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: 6.2-RELEASE Kernel Panic (thread taskq) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 02:59:49 -0000 Markus Oestreicher wrote: > Scott Oertel schrieb: >>> I have 8 machines running 6.2-RELEASE, they're all under pretty >>> heavy load. All but one is running Dual Opterons on Tyan >>> motherboards, the other is running 2x Dual Core Xeon, on a >>> Supermicro mb. I am receiving this panic on all the machines, some >>> of them it happens once a month, others every few days. The only >>> thing they all have in common now is they're running 3ware 9550SX >>> SATA RAID controllers, and a PAE/SMP kernel >>> >>> I have done a lot of searching around and have found other people >>> having this same issue, but nobody seems to have a fix for it, or >>> the threads just die eventually. I'm trying to get a dump but they >>> seem to be corrupted when I try and load them into the debugger. I >>> am going to attempt to do some online debugging next time I >>> encounter one of these panic's > > I had the same panic about once a day. In my case the machine was a mail > server running amavisd-new and SpamAssassin. After I have disabled razor > and pyzor checks the machine has been stable for months. > > What are the machines running in your case? > > Markus Interesting, I read your previous post regarding the panic, it's nearly identical. These machines are hosting sites and filtering mail. I'll try and disable some of the filtering and see what happens. I'm not confident it will fix the problem, but it's worth a shot. Thanks, Scott Oertel From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 13 12:23:56 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CB1C516A401 for ; Tue, 13 Mar 2007 12:23:56 +0000 (UTC) (envelope-from geek.dwells@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 3E30B13C448 for ; Tue, 13 Mar 2007 12:23:56 +0000 (UTC) (envelope-from geek.dwells@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so255573ugh for ; Tue, 13 Mar 2007 05:23:55 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=shzD/hi95vYgE1dtjN3NAYL/+/WGFJVD6v+4tk+Ff1zcYfgPDy524R6sdPDYENLPY3kwh45FQfqi5vDBgUx6toZR+YCysfi2thM22B9IH3jwgAXhJQBwnVfFzI2rY5kmkz7gF3kX90SP7hewGJEiF+VKv+X6uUJ6xtpbePgMTgA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=HC4j9wtjG4zK1O6vo3OGA4Aqiy+17NOjuCYiaQof8qyrvQ8QZrI5L/sacnFIHZLxVuCrrGLMi++EmmdTT9Y8HFHJrk2+6ie7j0SdbmkOuKxftjZRTbZZSbtNAAgX7f6qwZe08WA5pA+gy+ZWErtm7G8v5fegKkBfg6o8qw7qah4= Received: by 10.114.176.1 with SMTP id y1mr2369269wae.1173788633974; Tue, 13 Mar 2007 05:23:53 -0700 (PDT) Received: by 10.115.17.9 with HTTP; Tue, 13 Mar 2007 05:23:53 -0700 (PDT) Message-ID: Date: Tue, 13 Mar 2007 17:53:53 +0530 From: "ajay gopalakrishnan" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: i am facing these issues after my FreeBSD 6.2 installation. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 12:23:56 -0000 Hi, I've recently installed FreeBSD release 6.2 successfully except that the following things that i need importantly dont work. How should i do these? 1. I am using PPP over Ethernet (PPPoE). I am running FreeBSD on Vmware and i set the network connection as "Bridged" on Vmware. I configured my Ethernet device with the correct IP, Gateway, Netmask, DNS but i dont know how to start my internet on FreeBSD. All i do to connect to the internet on Windows is give my username and password. I also read the PPPoE chapter on the FreeBSD manual but of no use. How should i start PPoE on FreeBSD? 2. I need Vim. I dont want to use Vi. I searched in my CD-1 and CD-2. But i could not find the package "vim" inside it. Since i am not able to connect to the internet is there any other way to install Vim ? 3. How should i configure FreeBSD to start in X mode directly. Currently i have to do startx to start X on my machine. 4. I want to make "bash" as the default shell instead of "csh". Where is that configured? 5. Where are the kernel sources located? I need it because i want to do kernel network programming? Is having kernel sources sufficient or there are other dependencies also? 6. How do developers usually keep their kernel sources in sync with the main Central Kernel source? Do we use CVS or Subversion for this? Thanks & Regards, Ajay. From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 13 13:20:56 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 826FA16A403 for ; Tue, 13 Mar 2007 13:20:56 +0000 (UTC) (envelope-from marc.loerner@hob.de) Received: from mailgate.hob.de (mailgate.hob.de [212.185.199.3]) by mx1.freebsd.org (Postfix) with ESMTP id 0B85013C4BA for ; Tue, 13 Mar 2007 13:20:55 +0000 (UTC) (envelope-from marc.loerner@hob.de) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate.hob.de (Postfix) with ESMTP id 9C0C527901 for ; Tue, 13 Mar 2007 13:49:58 +0100 (CET) Received: from mailgate.hob.de ([127.0.0.1]) by localhost (mailgate.hob.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24569-10 for ; Tue, 13 Mar 2007 13:49:58 +0100 (CET) Received: from imap.hob.de (mail2.hob.de [172.25.1.102]) by mailgate.hob.de (Postfix) with ESMTP id C1C0C27930 for ; Tue, 13 Mar 2007 13:49:57 +0100 (CET) Received: from linux03.hob.de (linux03.hob.de [172.22.0.190]) by imap.hob.de (Postfix on SuSE eMail Server 2.0) with ESMTP id 9EB7B2BBC for ; Tue, 13 Mar 2007 13:49:49 +0100 (CET) From: Marc =?iso-8859-1?q?L=F6rner?= Organization: hob To: freebsd-hackers@freebsd.org Date: Tue, 13 Mar 2007 13:49:54 +0100 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Message-Id: <200703131349.54830.marc.loerner@hob.de> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at hob.de Subject: Re: i am facing these issues after my FreeBSD 6.2 installation. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 13:20:56 -0000 > Hi, > > I've recently installed FreeBSD release 6.2 successfully except that the > following things that i need importantly dont work. How should i do these? > > 1. I am using PPP over Ethernet (PPPoE). I am running FreeBSD on Vmware and > i set the network connection as "Bridged" on Vmware. I configured my > Ethernet device with the correct IP, Gateway, Netmask, DNS but i dont know > how to start my internet on FreeBSD. All i do to connect to the internet on > Windows is give my username and password. I also read the PPPoE chapter on > the FreeBSD manual but of no use. How should i start PPoE on FreeBSD? > dunno > 2. I need Vim. I dont want to use Vi. I searched in my CD-1 and CD-2. But i > could not find the package "vim" inside it. Since i am not able to connect > to the internet is there any other way to install Vim ? maybe you put the vim package from internet on a floppy or cd-iso image then mount this image and tell vmware to use it. > > 3. How should i configure FreeBSD to start in X mode directly. Currently i > have to do startx to start X on my machine. change the entry in /etc/ttys starting with ttyv8... to: ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm on secure > > 4. I want to make "bash" as the default shell instead of "csh". Where is > that configured? in a shell type "chsh" then change the entry starting with "Shell:" according to the shell you want to have. > > 5. Where are the kernel sources located? I need it because i want to do > kernel network programming? Is having kernel sources sufficient or there > are other dependencies also? /usr/src/sys > > 6. How do developers usually keep their kernel sources in sync with the > main Central Kernel source? Do we use CVS or Subversion for this? dunno > > Thanks & Regards, > Ajay. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" HTH, Marc -- Freundliche Gruesse, Marc Lörner Tel.: +49 (0)9103-715-30046 Fax.: +49 (0)9103-715-271 Internet: http://www.hob.de E-Mail: marc.loerner@hob.de HOB GmbH & Co. KG Schwadermühlstraße 3 90556 Cadolzburg Geschaeftsfuehrer Klaus Brandstaetter - Franz Wiedenmann AG Fuerth HRA 5180 Steuer-Nr. 218/163/00107 USt-ID-Nr. DE 132747002 Komplementaerin HOB electronic BeteiligungsGmbH AG Fuerth HRB 3416 From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 13 13:08:32 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 629AC16A405; Tue, 13 Mar 2007 13:08:32 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.freebsd.org (Postfix) with ESMTP id 46A7F13C448; Tue, 13 Mar 2007 13:08:31 +0000 (UTC) (envelope-from max@love2party.net) Received: from [88.66.11.22] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1HR6Xd2r8w-000697; Tue, 13 Mar 2007 13:55:49 +0100 From: Max Laier Organization: FreeBSD To: "ajay gopalakrishnan" Date: Tue, 13 Mar 2007 13:55:41 +0100 User-Agent: KMail/1.9.5 References: In-Reply-To: X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart19896020.cqpAyk44Mp"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200703131355.48437.max@love2party.net> X-Provags-ID: V01U2FsdGVkX18wIY1n2ZHjyw2lwMABODfo7MQhYI3eBYjwip9 RAjweNcZ1xb2vxglDfIRH75PD+8DMtPIc96k7AfkpVzHaSR9Vb Dv2hkyRldaGUqVRsytS5A== X-Mailman-Approved-At: Tue, 13 Mar 2007 14:15:49 +0000 Cc: freebsd-questions@freebsd.org Subject: Re: i am facing these issues after my FreeBSD 6.2 installation. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 13:08:32 -0000 --nextPart19896020.cqpAyk44Mp Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello Ajay, On Tuesday 13 March 2007 13:23, ajay gopalakrishnan wrote: > I've recently installed FreeBSD release 6.2 successfully except that > the following things that i need importantly dont work. How should i do > these? this is the wrong list to ask such questions. I referred your email to=20 the more appropriate list "freebsd-questions". You might also find that=20 the handbook can be quite helpful. > 1. I am using PPP over Ethernet (PPPoE). I am running FreeBSD on Vmware > and i set the network connection as "Bridged" on Vmware. I configured > my Ethernet device with the correct IP, Gateway, Netmask, DNS but i > dont know how to start my internet on FreeBSD. All i do to connect to > the internet on Windows is give my username and password. I also read > the PPPoE chapter on the FreeBSD manual but of no use. How should i > start PPoE on FreeBSD? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pppoe.html > 2. I need Vim. I dont want to use Vi. I searched in my CD-1 and CD-2. > But i could not find the package "vim" inside it. Since i am not able > to connect to the internet is there any other way to install Vim ? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/editors.html > 3. How should i configure FreeBSD to start in X mode directly. > Currently i have to do startx to start X on my machine. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-xdm.html > 4. I want to make "bash" as the default shell instead of "csh". Where > is that configured? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/shells.html > 5. Where are the kernel sources located? I need it because i want to do > kernel network programming? Is having kernel sources sufficient or > there are other dependencies also? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-choosing.= html > 6. How do developers usually keep their kernel sources in sync with the > main Central Kernel source? Do we use CVS or Subversion for this? Use a cvsup file along these lines: =2D-- *default host=3Dcvsup.XXX.FreeBSD.org *default base=3D/home/YYYY/.cvsupdb *default prefix=3D/home/YYYY/fcvs *default release=3Dcvs *default delete use-rel-suffix *default compress src-all ports-all doc-all www cvsroot-all =2D-- After that "cvs -d /home/YYYY/fcvs co src" will get you up and running. =20 Ready to do "cvs diff -u" to check for the local changes you made etc. As a side note: If you can't figure out simple questions like this by=20 your self, you will have a hard time to do actual development. We=20 provide a large amount of documentation, but you must use it yourself! =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart19896020.cqpAyk44Mp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBF9p9UXyyEoT62BG0RAh/NAJwN1J6wZeSeYHr4mUo8PlDk9vmOMACfSSl5 DV5jiEJpx6dPTU3x+tJwVp4= =zlJI -----END PGP SIGNATURE----- --nextPart19896020.cqpAyk44Mp-- From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 13 14:17:19 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1645416A400 for ; Tue, 13 Mar 2007 14:17:19 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 8251F13C448 for ; Tue, 13 Mar 2007 14:17:18 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (wnetwv@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l2DEHAio064272; Tue, 13 Mar 2007 15:17:16 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l2DEHAFW064271; Tue, 13 Mar 2007 15:17:10 +0100 (CET) (envelope-from olli) Date: Tue, 13 Mar 2007 15:17:10 +0100 (CET) Message-Id: <200703131417.l2DEHAFW064271@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, geek.dwells@gmail.com In-Reply-To: X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 13 Mar 2007 15:17:16 +0100 (CET) Cc: Subject: Re: i am facing these issues after my FreeBSD 6.2 installation. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, geek.dwells@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 14:17:19 -0000 ajay gopalakrishnan wrote: > [...] Note, your questions are off-topic here. Please use the "questions" mailing list next time. > 1. I am using PPP over Ethernet (PPPoE). I am running FreeBSD on Vmware and > i set the network connection as "Bridged" on Vmware. I configured my > Ethernet device with the correct IP, Gateway, Netmask, DNS but i dont know > how to start my internet on FreeBSD. All i do to connect to the internet on > Windows is give my username and password. I also read the PPPoE chapter on > the FreeBSD manual but of no use. How should i start PPoE on FreeBSD? You're running PPPoE on your Windows host system, right? In that case you do not need to use PPPoE on the FreeBSD system. From the viewpoint of the FreeBSD system, it will look like a normal, direct ethernet interface. Just configure the correct settings (e.g. via sysinstall, or edit /etc/rc.conf directly). See the FreeBSD Handbook for details. > 2. I need Vim. I dont want to use Vi. I searched in my CD-1 and CD-2. But i > could not find the package "vim" inside it. Since i am not able to connect > to the internet is there any other way to install Vim ? Download the vim package from one of the FreeBSD FTP mirrors to your Windows host system, then make it available to the FreeBSD system (e.g. by creating an ISO image and mounting it inside the FreeBSD system). > 3. How should i configure FreeBSD to start in X mode directly. Currently i > have to do startx to start X on my machine. There are several possibilities to do that (e.g. enable the xdm entry in /etc/ttys). I think it is explained in the FreeBSD FAQ or Handbook. > 4. I want to make "bash" as the default shell instead of "csh". Where is > that configured? In the password database. Use the chsh(1) command to change your login shell. > 5. Where are the kernel sources located? In /usr/src/sys. > I need it because i want to do kernel network programming? What do you mean exactly? It's my impression that you don't really know what "kernel network programming" means (but I could be wrong). > Is having kernel sources sufficient or there are > other dependencies also? It should be sufficient. Please see the FreeBSD Developers Handbook for more information. > 6. How do developers usually keep their kernel sources in sync with the main > Central Kernel source? Do we use CVS or Subversion for this? There are several possibilities, the most common are probably CVS, cvsup or csup. I strongly recommend that you have a closer look at the documentation, because you can find all of your questions answered there. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "anyone new to programming should be kept as far from C++ as possible; actually showing the stuff should be considered a criminal offence" -- Jacek Generowicz From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 13 15:48:53 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D664B16A401 for ; Tue, 13 Mar 2007 15:48:53 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 8ABAF13C469 for ; Tue, 13 Mar 2007 15:48:53 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 84381207E; Tue, 13 Mar 2007 16:48:45 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id 766012049; Tue, 13 Mar 2007 16:48:45 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 1001) id F35E7B88E; Tue, 13 Mar 2007 16:48:44 +0100 (CET) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Anton Yuzhaninov References: <782951585.20070312131034@citrin.ru> Date: Tue, 13 Mar 2007 16:48:44 +0100 In-Reply-To: <782951585.20070312131034@citrin.ru> (Anton Yuzhaninov's message of "Mon, 12 Mar 2007 13:10:34 +0300") Message-ID: <86odmx5elf.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Why max mmap size limited to half of virtual address space? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 15:48:53 -0000 Anton Yuzhaninov writes: > Why max mmap size limited to half virtual address space? Because you also need address space for the kernel, your program, the libraries it uses and the data it works on (including the stack). > May be this check can be removed? It test it on FreeBSD 6.2 i386 - > without this check a can map 2400 Mb file. There's very little to gain from doing so. If you need more address space than 2 GB, switch to a 64-bit platform. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 13 17:04:25 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B20C16A401 for ; Tue, 13 Mar 2007 17:04:25 +0000 (UTC) (envelope-from peter_holmes2003@yahoo.com) Received: from web32914.mail.mud.yahoo.com (web32914.mail.mud.yahoo.com [209.191.69.114]) by mx1.freebsd.org (Postfix) with SMTP id 044BB13C458 for ; Tue, 13 Mar 2007 17:04:24 +0000 (UTC) (envelope-from peter_holmes2003@yahoo.com) Received: (qmail 1342 invoked by uid 60001); 13 Mar 2007 17:04:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=KjKcHNKXSWKD551IRMqZrENrC5BeDnCDn3Z76XJ+Ymfcpx9Qc5NItkusKlr9mkzpDJA797zwuuu8zzmBE2/I5p6M99TyhlP1swbydhp0dY+ozIHAAr6kU6JqTurU8s8FV2IvS4+n7uIjp8Fh8ewFuNTK6EY+o+s7J87az4PC+lQ=; X-YMail-OSG: C2m9Bl4VM1kB2tYIate_luh9F1ByE4_4ZySrB6SkHYV675z4.VvkC8UC.8HqTiIEbYJnae1hmJUwtTd4tAyqjmZGlSGbqcK27WOs5WNHLW.ctK3TllrxUk1tzhgF5eHrroohSuPuDDwMgzs- Received: from [207.17.136.151] by web32914.mail.mud.yahoo.com via HTTP; Tue, 13 Mar 2007 10:04:24 PDT Date: Tue, 13 Mar 2007 10:04:24 -0700 (PDT) From: Peter Holmes To: fbsd hackers MIME-Version: 1.0 Message-ID: <221230.1312.qm@web32914.mail.mud.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Pthread spin locks X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 17:04:25 -0000 I am not very sure about the spin lock behavior of pthreads. Here is the man page description: The pthread_spin_lock() function will acquire lock if it is not currently owned by another thread. If the lock cannot be acquired immediately, it will spin attempting to acquire the lock (it will not sleep) until it becomes available. For a single processor scenario. Let's say a pthread owns the lock and is blocked and now another thread tries to acquire it. Will the second thread not block until the first thread releases the lock. - Peter --------------------------------- Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 13 18:59:44 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB96716A402 for ; Tue, 13 Mar 2007 18:59:44 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id 2F84D13C46E for ; Tue, 13 Mar 2007 18:59:43 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 13530 invoked by uid 1001); 13 Mar 2007 18:59:50 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Tue, 13 Mar 2007 14:59:50 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17910.62630.306905.94171@bhuda.mired.org> Date: Tue, 13 Mar 2007 14:59:50 -0400 To: Marc =?iso-8859-1?q?L=F6rner?= In-Reply-To: <200703131349.54830.marc.loerner@hob.de> References: <200703131349.54830.marc.loerner@hob.de> X-Mailer: VM 7.17 under 21.4 (patch 20) "Double Solitaire" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: i am facing these issues after my FreeBSD 6.2 installation. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 18:59:44 -0000 > 5. Where are the kernel sources located? I need it because i want to do > kernel network programming? Is having kernel sources sufficient or there > are other dependencies also? As others have pointed out, /usr/src/sys. There are no other dependencies needed to work with that source. > 6. How do developers usually keep their kernel sources in sync with the > main Central Kernel source? Do we use CVS or Subversion for this? Again, as others have pointed out, cvsup, cvs, and a few others. However, unlike other systems, if you update the kernel sources, you need to update the rest of the system as well. And vice versa. Read the documentation (say /usr/src/UPDATING!!) for more info. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 13 19:50:00 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4776516A400 for ; Tue, 13 Mar 2007 19:50:00 +0000 (UTC) (envelope-from raggen@passagen.se) Received: from av10-2-sn2.hy.skanova.net (av10-2-sn2.hy.skanova.net [81.228.8.182]) by mx1.freebsd.org (Postfix) with ESMTP id B60AC13C487 for ; Tue, 13 Mar 2007 19:49:59 +0000 (UTC) (envelope-from raggen@passagen.se) Received: by av10-2-sn2.hy.skanova.net (Postfix, from userid 502) id B4242382B6; Tue, 13 Mar 2007 20:49:58 +0100 (CET) Received: from smtp4-2-sn2.hy.skanova.net (smtp4-2-sn2.hy.skanova.net [81.228.8.93]) by av10-2-sn2.hy.skanova.net (Postfix) with ESMTP id 9BF64382B6; Tue, 13 Mar 2007 20:49:58 +0100 (CET) Received: from [192.168.1.6] (81-231-90-251-no41.tbcn.telia.com [81.231.90.251]) by smtp4-2-sn2.hy.skanova.net (Postfix) with ESMTP id 8220E37E47; Tue, 13 Mar 2007 20:49:58 +0100 (CET) Message-ID: <45F6FFE6.8070903@passagen.se> Date: Tue, 13 Mar 2007 20:47:50 +0100 From: Roger Olofsson User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: ajay gopalakrishnan References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: i am facing these issues after my FreeBSD 6.2 installation. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 19:50:00 -0000 Hello Ajay, 2. May I suggest that you get the source code for vim and compile it? It's available at the wonderful Vi lovers homepage at -> http://thomer.com/vi/vi.html 3. You could, for instance, create a small file containing the startx command, make sure that file is executable by doing chmod ugo+x and place that file in /usr/local/etc/rc.d. 5. The sources are available as a package. Just install them using csup or any other method you prefer. Good luck! ajay gopalakrishnan skrev: > Hi, > > I've recently installed FreeBSD release 6.2 successfully except that the > following things that i need importantly dont work. How should i do these? > > 1. I am using PPP over Ethernet (PPPoE). I am running FreeBSD on Vmware and > i set the network connection as "Bridged" on Vmware. I configured my > Ethernet device with the correct IP, Gateway, Netmask, DNS but i dont know > how to start my internet on FreeBSD. All i do to connect to the internet on > Windows is give my username and password. I also read the PPPoE chapter on > the FreeBSD manual but of no use. How should i start PPoE on FreeBSD? > > 2. I need Vim. I dont want to use Vi. I searched in my CD-1 and CD-2. But i > could not find the package "vim" inside it. Since i am not able to connect > to the internet is there any other way to install Vim ? > > 3. How should i configure FreeBSD to start in X mode directly. Currently i > have to do startx to start X on my machine. > > 4. I want to make "bash" as the default shell instead of "csh". Where is > that configured? > > 5. Where are the kernel sources located? I need it because i want to do > kernel network programming? Is having kernel sources sufficient or there > are > other dependencies also? > > 6. How do developers usually keep their kernel sources in sync with the > main > Central Kernel source? Do we use CVS or Subversion for this? > > Thanks & Regards, > Ajay. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 14 19:24:05 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6117616A403 for ; Wed, 14 Mar 2007 19:24:05 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id 319A613C4AE for ; Wed, 14 Mar 2007 19:24:05 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from [192.168.42.21] (andersonbox1.centtech.com [192.168.42.21]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l2EJO3pO079545; Wed, 14 Mar 2007 14:24:03 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <45F84BD3.1010604@freebsd.org> Date: Wed, 14 Mar 2007 14:24:03 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.9 (X11/20070204) MIME-Version: 1.0 To: "R. Tyler Ballance" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/2839/Wed Mar 14 04:24:32 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=8.0 tests=BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Cc: FreeBSD Hackers Subject: Re: FreeBSD at SXSW X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 19:24:05 -0000 On 03/10/07 02:07, R. Tyler Ballance wrote: > I just thought that I'd throw this out there, I've run into some > folks running FreeBSD on various systems here at SXSW in Austin, and > would certainly like to coordinate a meetup with any users or hackers > as there's some folks here touting OpenSolaris' ZFS, and containers > in contrast to the experimental ZFS support on FreeBSD and jails. > > It'd be nice to meet with any hackers in the area that were also too > poor to make it out to AsiaBSDCon ;) I'm in Austin.. This probably isn't the right list, but if you post a meeting place/time (or a few) to one of the right lists, I'd like to know about it.. Eric From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 15 07:31:44 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BD2D216A400 for ; Thu, 15 Mar 2007 07:31:44 +0000 (UTC) (envelope-from remko@elvandar.org) Received: from caelis.elvandar.org (caelis.elvandar.org [217.148.169.59]) by mx1.freebsd.org (Postfix) with ESMTP id 7A08013C487 for ; Thu, 15 Mar 2007 07:31:44 +0000 (UTC) (envelope-from remko@elvandar.org) Received: from localhost (caelis.elvandar.org [217.148.169.59]) by caelis.elvandar.org (Postfix) with ESMTP id C9D7292FD31; Thu, 15 Mar 2007 08:03:52 +0100 (CET) Received: from caelis.elvandar.org ([217.148.169.59]) by localhost (caelis.elvandar.org [217.148.169.59]) (amavisd-new, port 10024) with ESMTP id 63320-01; Thu, 15 Mar 2007 08:03:46 +0100 (CET) Received: from redqueen.evilcoder-services.org (caelis.elvandar.org [217.148.169.59]) by caelis.elvandar.org (Postfix) with ESMTP id 2166B92FC9C; Thu, 15 Mar 2007 08:03:46 +0100 (CET) Received: by redqueen.evilcoder-services.org (Postfix, from userid 1001) id E7C5D65D9; Thu, 15 Mar 2007 08:03:45 +0100 (CET) Date: Thu, 15 Mar 2007 08:03:45 +0100 From: Remko Lodder To: Roger Olofsson Message-ID: <20070315070345.GE50172@elvandar.org> References: <45F6FFE6.8070903@passagen.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45F6FFE6.8070903@passagen.se> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 at elvandar.org Cc: freebsd-hackers@freebsd.org, ajay gopalakrishnan Subject: Re: i am facing these issues after my FreeBSD 6.2 installation. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2007 07:31:44 -0000 On Tue, Mar 13, 2007 at 08:47:50PM +0100, Roger Olofsson wrote: > Hello Ajay, > > 2. May I suggest that you get the source code for vim and compile it? > It's available at the wonderful Vi lovers homepage at -> > http://thomer.com/vi/vi.html > > 3. You could, for instance, create a small file containing the startx > command, make sure that file is executable by doing chmod ugo+x > and place that file in /usr/local/etc/rc.d. That is a very bad advise imo. rc.d scripts are started by root and unless the daemons started drop privileges, you will be running X as root, which is not something you want to persue. Additionally; there are far better alternatives then using these kind of solutions. That said; Thanks for the willingness to help someone out! It is really appriciated and shows the power of the FreeBSD Community! Cheers, Remko > > 5. The sources are available as a package. Just install them using csup > or any other method you prefer. > > Good luck! > -- Kind regards, Remko Lodder ** remko@elvandar.org FreeBSD ** remko@FreeBSD.org /* Quis custodiet ipsos custodes */ From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 15 10:59:39 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1028E16A405 for ; Thu, 15 Mar 2007 10:59:39 +0000 (UTC) (envelope-from raggen@passagen.se) Received: from av7-2-sn3.vrr.skanova.net (av7-2-sn3.vrr.skanova.net [81.228.9.182]) by mx1.freebsd.org (Postfix) with ESMTP id C690113C465 for ; Thu, 15 Mar 2007 10:59:38 +0000 (UTC) (envelope-from raggen@passagen.se) Received: by av7-2-sn3.vrr.skanova.net (Postfix, from userid 502) id 734F838439; Thu, 15 Mar 2007 11:59:04 +0100 (CET) Received: from smtp3-1-sn3.vrr.skanova.net (smtp3-1-sn3.vrr.skanova.net [81.228.9.101]) by av7-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 4820E38424; Thu, 15 Mar 2007 11:59:04 +0100 (CET) Received: from [192.168.1.6] (81-231-90-251-no41.tbcn.telia.com [81.231.90.251]) by smtp3-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 21D8A37E68; Thu, 15 Mar 2007 11:59:37 +0100 (CET) Message-ID: <45F92697.2030505@passagen.se> Date: Thu, 15 Mar 2007 11:57:27 +0100 From: Roger Olofsson User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Remko Lodder References: <45F6FFE6.8070903@passagen.se> <20070315070345.GE50172@elvandar.org> In-Reply-To: <20070315070345.GE50172@elvandar.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: i am facing these issues after my FreeBSD 6.2 installation. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2007 10:59:39 -0000 Remko Lodder skrev: > On Tue, Mar 13, 2007 at 08:47:50PM +0100, Roger Olofsson wrote: >> Hello Ajay, >> >> 2. May I suggest that you get the source code for vim and compile it? >> It's available at the wonderful Vi lovers homepage at -> >> http://thomer.com/vi/vi.html >> >> 3. You could, for instance, create a small file containing the startx >> command, make sure that file is executable by doing chmod ugo+x >> and place that file in /usr/local/etc/rc.d. > > That is a very bad advise imo. rc.d scripts are started by root and unless > the daemons started drop privileges, you will be running X as root, which > is not something you want to persue. Additionally; there are far better > alternatives then using these kind of solutions. > Yes, you are correct. I am so used to being root that I forgot the security aspect. I hereby retract my answer to this question. > That said; Thanks for the willingness to help someone out! It is really > appriciated and shows the power of the FreeBSD Community! > No offence taken, I am glad you pointed out my mistake. > Cheers, > Remko > >> 5. The sources are available as a package. Just install them using csup >> or any other method you prefer. >> >> Good luck! >> From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 15 12:59:29 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2A3B216A469; Thu, 15 Mar 2007 12:59:29 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 853BB13C4BE; Thu, 15 Mar 2007 12:59:28 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.13.8/jtpda-5.4) with ESMTP id l2FCxP1w091428 ; Thu, 15 Mar 2007 13:59:25 +0100 (CET) X-Ids: 166 Received: by parthe.lpthe.jussieu.fr (Postfix, from userid 10096) id E4D55BF674; Thu, 15 Mar 2007 13:58:33 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on parthe.lpthe.jussieu.fr X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id 16FE3BF565; Thu, 15 Mar 2007 13:58:33 +0100 (CET) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id 3209634; Thu, 15 Mar 2007 13:59:25 +0100 (CET) Date: Thu, 15 Mar 2007 13:59:25 +0100 From: Michel Talon To: freebsd-hackers@freebsd.org, freebsd-ports@freebsd.org Message-ID: <20070315125925.GA76035@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (shiva.jussieu.fr [134.157.0.166]); Thu, 15 Mar 2007 13:59:25 +0100 (CET) X-Virus-Scanned: ClamAV 0.88.7/2840/Thu Mar 15 04:46:20 2007 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at shiva.jussieu.fr with ID 45F9432D.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Mailman-Approved-At: Thu, 15 Mar 2007 13:16:31 +0000 Cc: Subject: pkgupgrade X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2007 12:59:29 -0000 Hello, this is to announce version 1.2 of pkgupgrade, a python tool aimed at upgrading freebsd ports installations mainly using binary packages. It has a companion program pkg_save.py by Cyrille Szymanski which performs backups prior to upgrades, which has been upgraded to version 0.7 and a small documentation. You can find them at: http://www.lpthe.jussieu.fr/~talon/pkgupgrade http://www.lpthe.jussieu.fr/~talon/pkg-save.py http://www.lpthe.jussieu.fr/~talon/README.pkgupgrade The main difference with previous version: - for homogeneity, Cyrille likes to call his program pkg_save.py, so i have changed the name accordingly in pkgupgrade. This requires changing the name in /usr/local/sbin. - there is a flag "pkg_release" such that, if True, it works as before, but if False, pkgupgrade will use the Latest packages from pointyhat. - There is a list COMPILE where you can put ports you insist of compiling, instead of using binary packages. This is to cope with the problem of people having special flags in /etc/make.conf for programs they use a lot. - When running UpgradeShell, if some postinstall scripts answer questions, they will not be screened out. There are some user unfriendliness, for example you have to edit the begnning of the script to modify its behavior, you need to put correct origins in the lists HOLD and COMPILE, no globbing has been implemented here, but otherwise the program has been tested on several machines and by several people, and it works. You can expect rather important time gains with respect to using portupgrade -aP to do the same job, and most importantly, you will know beforehand exactly what will be removed and upgraded or compiled, before changing anything on disk. The programs above are under BSD licence, and anyone is welcome to do anything he wants with them, including modifying, improving, rewriting in C++, whatever. Personnally i have no intention to change them in the short term. Perhaps rewrite in C++ later on, if nobody does, and if it appears useful. -- Michel TALON From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 16 00:21:06 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7776716A402; Fri, 16 Mar 2007 00:21:06 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id E6BF213C45B; Fri, 16 Mar 2007 00:21:05 +0000 (UTC) (envelope-from killing@multiplay.co.uk) X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on core6.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-24.7 required=6.0 tests=BAYES_00, USER_IN_WHITELIST, USER_IN_WHITELIST_TO autolearn=ham version=3.1.5 Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon PRO v9.5.4) with ESMTP id md50003616592.msg; Fri, 16 Mar 2007 00:20:22 +0000 Message-ID: <002901c76760$e6788d50$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: , Date: Fri, 16 Mar 2007 00:20:21 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-Spam-Processed: multiplay.co.uk, Fri, 16 Mar 2007 00:20:23 +0000 X-MDAV-Processed: multiplay.co.uk, Fri, 16 Mar 2007 00:20:23 +0000 Cc: Subject: Request to update hptmv driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 00:21:06 -0000 The current version of hptmv in the source tree is very old now v1.12 (2005-06) vs current v1.14 (2006-3) and it contains some really nasty bugs. We've been running the latest version available from HighPoint + some additional fixes, to ensure multi card installs dont corrupt on shutdown, for quite some time over a year now and would really appreciate it if someone could check these changes in so everyone can benefit. If anyone has the time, shouldn't take long, and ability to do this you can download our current version from here: ftp://ftp1.multiplay.co.uk/pub/os/FreeBSD/patches/hptmv-1.14-multicard.tar.gz Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 16 00:51:06 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 41C9E16A400; Fri, 16 Mar 2007 00:51:06 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 8914F13C457; Fri, 16 Mar 2007 00:51:05 +0000 (UTC) (envelope-from killing@multiplay.co.uk) X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on core6.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-24.7 required=6.0 tests=BAYES_00, USER_IN_WHITELIST, USER_IN_WHITELIST_TO autolearn=ham version=3.1.5 Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon PRO v9.5.4) with ESMTP id md50003616629.msg; Fri, 16 Mar 2007 00:50:30 +0000 Message-ID: <000f01c76765$1bdc9ff0$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Deniss Lee" , References: <938b57eb0703151655s7e14a4c1p7443405e6cb56f26@mail.gmail.com> Date: Fri, 16 Mar 2007 00:50:28 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-Spam-Processed: multiplay.co.uk, Fri, 16 Mar 2007 00:50:30 +0000 X-MDAV-Processed: multiplay.co.uk, Fri, 16 Mar 2007 00:50:31 +0000 Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Re: Strange freeze on -STABLE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 00:51:06 -0000 If its always when the box is quiet / no one using it, is it something to do with power saving settings? Steve Deniss Lee wrote: > But what's interesting - music keeps playing (line-in). Both pf > (firewall/routing) and sound card > is loaded as modules, music keeps playing, but network is > unresponsive. And this box usually > freezes when I'm asleep or when I'm not physically using it (ssh > only). ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 16 00:19:43 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0942316A400 for ; Fri, 16 Mar 2007 00:19:43 +0000 (UTC) (envelope-from deniss.lee@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.226]) by mx1.freebsd.org (Postfix) with ESMTP id BF7CF13C448 for ; Fri, 16 Mar 2007 00:19:42 +0000 (UTC) (envelope-from deniss.lee@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so385442wxc for ; Thu, 15 Mar 2007 17:19:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type; b=Ne+BQtBQpdvobD6w1lPCIOh7MRWhGRgsyUZ8aXPbzkWNnztCoydAroK0mlbl/KJu5qkf5JpsbwwjTVOkIEbP2H/gRavi9E6jmMZi6ZZ/cXuN+ShiH6smWssAFFCGGF6sT4skViOpjYpqH/R4Rf8lBB/lTpOTEF76im4hbqgP0Aw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:mime-version:content-type; b=llh7FYY1KsbZbFYTgEd1jtAOeTpfg0uI9KWFRc1gxZEwUVrIToyBU4rfiH86UK7G5Pa/1HiRHGmAjU83YIrDXAeTifG5EAuikHtMx7gBuBogt1eROl4oGInYwPPH/yCX94g4wTKU783D5XAiK+Z82s2eEVeQNTLZcOceGb7lgVs= Received: by 10.90.120.6 with SMTP id s6mr1245471agc.1174002939400; Thu, 15 Mar 2007 16:55:39 -0700 (PDT) Received: by 10.90.70.14 with HTTP; Thu, 15 Mar 2007 16:55:39 -0700 (PDT) Message-ID: <938b57eb0703151655s7e14a4c1p7443405e6cb56f26@mail.gmail.com> Date: Fri, 16 Mar 2007 01:55:39 +0200 From: "Deniss Lee" To: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 16 Mar 2007 02:19:56 +0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Strange freeze on -STABLE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 00:19:43 -0000 Nothing really has changed to my box (no new software, configuration issues). I just like rebuilding world/kernel to the latest -STABLE at least once in week. And about two weeks ago I started getting strange freezes. Since then I've tried doing anything to get away from those stupid freezes, but nothing helps. On random time periods my box freezes, but not like the usual way when I can't do anything. It drops all network connections (this box is also router), so I can't connect with SSH anymore or use Internet through it. It mystical freezes everything else - if I had opened some xterms (x11 also on this box) then can write some command (for example "ls") - it may or may not be executed, but what's strange - after execution it doesn't return to shell, it even doesn't react on ^C, ^Z or anything at all. Some applications I can close, some I cant and they just ignore my attempts. Sometimes I can even ctrl+alt+backspace (it gets executed after some while), sometimes I can't. Same with alt+ctrl+f1-f9 - it may work, it may not work. Only thing I can do is press "power button", but then (again - sometimes) I get: "acpi: suspend request ignored (not ready yet)". Then I just press it for 5 seconds and it powers off. After reboot fsck & stuff. It's just driving my crazy. But what's interesting - music keeps playing (line-in). Both pf (firewall/routing) and sound card is loaded as modules, music keeps playing, but network is unresponsive. And this box usually freezes when I'm asleep or when I'm not physically using it (ssh only). I'm really desperate. I've tried reinstalling from scratch, rebuilding world, using even GENERIC, but nothing helps. I'm using lastest FreeBSD 6.2-STABLE (recompiled even yesterday, but got crash again). Box is AMD Sempron. Please - really - any suggestions? I've run FreeBSD for years but I don't know what to do now with this situation. From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 16 11:34:40 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D72B716A402 for ; Fri, 16 Mar 2007 11:34:40 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id 8DF8813C45D for ; Fri, 16 Mar 2007 11:34:40 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1HSAhj-000KwL-By; Fri, 16 Mar 2007 13:34:39 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: freebsd-scsi@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 16 Mar 2007 13:34:39 +0200 From: Danny Braniss Message-ID: Cc: freebsd-hackers@freebsd.org Subject: iSCSI boot mussings X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 11:34:40 -0000 Hi, Now that I have my hands on a server that can boot iSCSI, I started to look into it. After figuring out what magic is needed in the dhcpd.conf (just add option root-path "iscsi:target-ip::::target-name") I can boot FreeBSD to the point that it can't find a root device, and assuming that some more magic can be applied (ala NFS), I'm just wondering aloud, if it's realy worth the efford. For a PXE based diskless solution, you need 1 - a working dhcpd 2 - a working tftpd 3 - a working NFS server with the exported root fs. appplying some minor magic, you can have only one read-only fs. For an iSCSI based diskless solution, you need 1- a working dhcpd 2- a working iscsi-initiator, unless the BIOS can be used. 3- a working target with a root fs (one for each client, unless applying 3 from the above). Hybrid solution: boot via PXE, but mount root via iSCSI So, what say you all? danny From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 16 15:59:44 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4184F16A401 for ; Fri, 16 Mar 2007 15:59:44 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 1D4DA13C44B for ; Fri, 16 Mar 2007 15:59:44 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id l2GFxVXl071526; Fri, 16 Mar 2007 11:59:32 -0400 (EDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-hackers@freebsd.org Date: Fri, 16 Mar 2007 11:59:37 -0400 User-Agent: KMail/1.9.5 References: In-Reply-To: X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200703161159.37735.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: freebsd-scsi@freebsd.org Subject: Re: iSCSI boot mussings X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 15:59:44 -0000 On Friday 16 March 2007 07:34, Danny Braniss wrote: > Hi, > Now that I have my hands on a server that can boot iSCSI, > I started to look into it. After figuring out what magic is needed > in the dhcpd.conf (just add option root-path > "iscsi:target-ip::::target-name") I can boot FreeBSD to the point that it > can't find a root device, and assuming that some more magic can be applied > (ala NFS), I'm just > wondering aloud, if it's realy worth the efford. > For a PXE based diskless solution, you need > 1 - a working dhcpd > 2 - a working tftpd > 3 - a working NFS server with the exported root fs. > appplying some minor magic, you can have only one read-only fs. > For an iSCSI based diskless solution, you need > 1- a working dhcpd > 2- a working iscsi-initiator, unless the BIOS can be used. > 3- a working target with a root fs > (one for each client, unless applying 3 from the above). > Hybrid solution: > boot via PXE, but mount root via iSCSI > > So, what say you all? =46rom the kernel's perspective (at the moment just prior to mounting root)= , is=20 there a difference between the last two approaches? The situation as I see = it=20 (in both cases) is that the kernel is loaded into memory (by some magical=20 means which is at this point irrelevant), and now has to locate a root devi= ce=20 using only what it already has to bootstrap the process. If what it already= =20 has includes BOOTP code then it's possible to get some additional informati= on=20 externally. Whether the initial magic was PXE or BIOS-based iSCSI, the kern= el=20 has to have its own storage drivers and do its own network setup, right? I think there are some benefits to being able to do this, but perhaps 90% o= f=20 them could be realized with what we already have (iscontrol and the=20 iscsi_initiator kernel module) plus some rc and fstab glue. Any kind of=20 diskless server farm needs at least one "master" server to run dhcpd, and i= f=20 you have it doing that you might as well have it do NFS and tftpd as well.= =20 Pretty much any client you'd want to use as an iSCSI initiator will have a= =20 decent NIC which nowadays implies PXE support. So it shouldn't be hard to g= et=20 root mounted using currently available means (local disk or PXE+NFS), and=20 from there have the option of using iSCSI for other partitions=20 (including /usr). A truly standalone iSCSI client will most likely want to use a TOE card, wh= ich=20 to the OS looks like any other SCSI adapter. (I'm unsure which if any such= =20 cards are currently supported in FreeBSD, but that's a tangential question.) Machines with iSCSI-capable BIOS'es are an inbetween case. Allowing such=20 machines to be standalone clients would require things like the initiator=20 name, the initiator's IP address and netmask, the target's IP address, and= =20 the target's (volume) name to be hard-coded in the kernel. It would be nice= =20 to support this scenario, but IMO it's the one with the lowest benefit/cost= =20 ratio. Making it easy to integrate iSCSI into existing environments (diskless or n= ot)=20 is IMO the biggest hole in the current implementation (the missing rc and=20 fstab bits I mentioned before). JN From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 16 14:46:07 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5B62F16A400; Fri, 16 Mar 2007 14:46:07 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id D0FC813C468; Fri, 16 Mar 2007 14:46:06 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.13.8/jtpda-5.4) with ESMTP id l2GEiUMv064344 ; Fri, 16 Mar 2007 15:44:41 +0100 (CET) X-Ids: 164 Received: by parthe.lpthe.jussieu.fr (Postfix, from userid 10096) id 613EBBF673; Fri, 16 Mar 2007 15:43:32 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on parthe.lpthe.jussieu.fr X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id B30E4BE834; Fri, 16 Mar 2007 15:43:31 +0100 (CET) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id 64F52C2; Fri, 16 Mar 2007 15:44:28 +0100 (CET) Date: Fri, 16 Mar 2007 15:44:28 +0100 From: Michel Talon To: freebsd-hackers@freebsd.org, freebsd-ports@freebsd.org Message-ID: <20070316144428.GA5014@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (shiva.jussieu.fr [134.157.0.164]); Fri, 16 Mar 2007 15:44:41 +0100 (CET) X-Virus-Scanned: ClamAV 0.88.7/2850/Fri Mar 16 12:05:03 2007 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at shiva.jussieu.fr with ID 45FAAD4E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Mailman-Approved-At: Fri, 16 Mar 2007 16:01:47 +0000 Cc: Subject: pkg_check.py X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 14:46:07 -0000 Hello, this is to announce version 1.0 of pkg_check.py, a python program to check the contents of /var/db/pkg, and the last piece of the puzzle in the programs trying to emulate portupgrade in a different way. It is available at: http://www.lpthe.jussieu.fr/~talon/pkg_check.py always under BSD licence. Its aim is basically to do the same thing as pkgdb -F. Explicitely it reads the +CONTENTS files and the MOVED file, discovers the dependencies and checks accordingly the +REGISTERED_BY. Optionally, it can update the origins in +CONTENTS to the most recent valid version, and fix the +REGISTERED_BY. Still another option is to decompose the set of packages in connected components (with respect to dependency) and produce graphviz files for these components. In practice there is always an enormous component which is unsuitable for plotting, but on small installations it can be nice. Anyways the program gives a detailed report in CheckLog, and runs in short time, a few seconds the first time, around a second when the files are in cache. -- Michel TALON From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 16 16:47:51 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 93DEC16A400; Fri, 16 Mar 2007 16:47:51 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 0AEFC13C455; Fri, 16 Mar 2007 16:47:50 +0000 (UTC) (envelope-from killing@multiplay.co.uk) X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on core6.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-24.7 required=6.0 tests=BAYES_00, USER_IN_WHITELIST, USER_IN_WHITELIST_TO autolearn=ham version=3.1.5 Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon PRO v9.5.4) with ESMTP id md50003618643.msg; Fri, 16 Mar 2007 16:47:39 +0000 Message-ID: <025c01c767ea$cff33820$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Steven Hartland" , , References: <002901c76760$e6788d50$b3db87d4@multiplay.co.uk> Date: Fri, 16 Mar 2007 16:47:33 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-Spam-Processed: multiplay.co.uk, Fri, 16 Mar 2007 16:47:40 +0000 X-MDAV-Processed: multiplay.co.uk, Fri, 16 Mar 2007 16:47:40 +0000 Cc: Subject: Re: Request to update hptmv driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 16:47:51 -0000 Steven Hartland wrote: > The current version of hptmv in the source tree is very > old now v1.12 (2005-06) vs current v1.14 (2006-3) and > it contains some really nasty bugs. We've been running > the latest version available from HighPoint + some > additional fixes, to ensure multi card installs dont > corrupt on shutdown, for quite some time over a year now > and would really appreciate it if someone could check > these changes in so everyone can benefit. > > If anyone has the time, shouldn't take long, and ability > to do this you can download our current version from here: > ftp://ftp1.multiplay.co.uk/pub/os/FreeBSD/patches/hptmv-1.14-multicard.tar.gz This is now logged as PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=110392 Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 16 17:51:21 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 83B9C16A404; Fri, 16 Mar 2007 17:51:21 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id 3A14713C468; Fri, 16 Mar 2007 17:51:21 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1HSGaF-0009MW-EB; Fri, 16 Mar 2007 19:51:19 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: John Nielsen In-reply-to: <200703161159.37735.lists@jnielsen.net> References: <200703161159.37735.lists@jnielsen.net> Comments: In-reply-to John Nielsen message dated "Fri, 16 Mar 2007 11:59:37 -0400." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 16 Mar 2007 19:51:19 +0200 From: Danny Braniss Message-ID: Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: iSCSI boot mussings X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 17:51:21 -0000 >> Hi, >> Now that I have my hands on a server that can boot iSCSI, >> I started to look into it. After figuring out what magic is needed >> in the dhcpd.conf (just add option root-path >> "iscsi:target-ip::::target-name") I can boot FreeBSD to the point that it >> can't find a root device, and assuming that some more magic can be applied >> (ala NFS), I'm just >> wondering aloud, if it's realy worth the efford. >> For a PXE based diskless solution, you need >> 1 - a working dhcpd >> 2 - a working tftpd >> 3 - a working NFS server with the exported root fs. >> appplying some minor magic, you can have only one read-only fs. >> For an iSCSI based diskless solution, you need >> 1- a working dhcpd >> 2- a working iscsi-initiator, unless the BIOS can be used. >> 3- a working target with a root fs >> (one for each client, unless applying 3 from the above). >> Hybrid solution: >> boot via PXE, but mount root via iSCSI >> >> So, what say you all? > >From the kernel's perspective (at the moment just prior to mounting root), is >there a difference between the last two approaches? with PXE, all the information, including the nfs-file-handle used to access the root partition is passed to the kernel (pxeboot), and nfsdiskless.c does the rest. With iSCSI zero, will need to be done. > The situation as I see it >(in both cases) is that the kernel is loaded into memory (by some magical >means which is at this point irrelevant), and now has to locate a root device >using only what it already has to bootstrap the process. If what it already >has includes BOOTP code then it's possible to get some additional information >externally. with PXE this is done via pxeboot (and my modified libstand/bootp.c which copies the dhcp obtained tags to the kernel environment). > Whether the initial magic was PXE or BIOS-based iSCSI, the kernel >has to have its own storage drivers and do its own network setup, right? > true, since FreeBSD does not like to use BIOS provided 'drivers'. the problem is 'discovering' the device used to boot, and here there is an added complication, the iSCSI is on top of the network card, so initializing the NIC will probably disconnect the iSCSI connection. It would be nice to use the BIOS supplied 'glue' to mount root, so that it can read /boot/loader.conf etc, then once the kernel is ready, remount root, >I think there are some benefits to being able to do this, but perhaps 90% of >them could be realized with what we already have (iscontrol and the >iscsi_initiator kernel module) plus some rc and fstab glue. but this can happen only after the kernel is running. horse/cart ... > Any kind of >diskless server farm needs at least one "master" server to run dhcpd, and if >you have it doing that you might as well have it do NFS and tftpd as well. >Pretty much any client you'd want to use as an iSCSI initiator will have a >decent NIC which nowadays implies PXE support. So it shouldn't be hard to get >root mounted using currently available means (local disk or PXE+NFS), and >from there have the option of using iSCSI for other partitions >(including /usr). I think that PXE is already concidered 'legacy' :-) > >A truly standalone iSCSI client will most likely want to use a TOE card, which >to the OS looks like any other SCSI adapter. (I'm unsure which if any such >cards are currently supported in FreeBSD, but that's a tangential question.) > This was my thinking too, but the few TOEs I've seen do not emulate a scsi device! and they are not cheap (last i checked they were over 1000$). >Machines with iSCSI-capable BIOS'es are an inbetween case. Allowing such >machines to be standalone clients would require things like the initiator >name, the initiator's IP address and netmask, the target's IP address, and >the target's (volume) name to be hard-coded in the kernel. It would be nice >to support this scenario, but IMO it's the one with the lowest benefit/cost >ratio. and some more, if you want password/CHAP ... > >Making it easy to integrate iSCSI into existing environments (diskless or not) >is IMO the biggest hole in the current implementation (the missing rc and >fstab bits I mentioned before). yes, but this is not a real problem, I have an almost working script. > >JN > From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 16 21:04:52 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3E1A216A403 for ; Fri, 16 Mar 2007 21:04:52 +0000 (UTC) (envelope-from derekj@tourneo.com) Received: from lon-gs2dmrelay.mistral.net (lon-gs2dmrelay.mistral.net [217.154.246.187]) by mx1.freebsd.org (Postfix) with ESMTP id 084D413C43E for ; Fri, 16 Mar 2007 21:04:51 +0000 (UTC) (envelope-from derekj@tourneo.com) Received: from 88-96-172-92.dsl.zen.co.uk ([88.96.172.92] helo=homexp) by lon-gs2dmrelay.mistral.net with esmtpa (Exim 4.51) id 1HSJG6-00011j-U5 for freebsd-hackers@freebsd.org; Fri, 16 Mar 2007 20:42:43 +0000 From: "Derekj Tourneo" To: Date: Fri, 16 Mar 2007 20:45:30 -0000 Message-ID: <000001c7680c$0a7255f0$0dd3000a@homexp> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcdoC/2D/r3W0L2qTlqHvZBXWxU2WQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Mailman-Approved-At: Fri, 16 Mar 2007 21:30:52 +0000 Subject: One method to recover a lost root password X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 21:04:52 -0000 How I recovered a lost root password in FreeBSD This was on a CyberGuard LX firewall, running version 4.2 BSD Luckily I did know one user name and it had no password. cgadmin Using the boot CD, pick option 4 for single use mode going through the country and keyboard going to the repair mode with CDROM/DVD option off the install menu, using the "live" CDROM filesystem gave me a root prompt Fixit# now mounting the hard drive, in my case /dev/ad0s3a mount /dev/ad0s3a /mnt now edit the master password file vi /mnt/etc/master.passwd on the root line, delete all characters between the first two :: to remove the root password altogether. hence ending up with root::0:0::00:Charlie &:/root:/bin/csh or something similar save the file now change permissions, but look at them first, make a note so you can put them back to the correct setting later chmod 777 /mnt/etc chmod 666 /mnt/etc/master.passwd reboot remove the CD and reboot the original system. For some reason my older FreeBSD version 4.3 filesystem did not like being mounted onto a FreeBSD 6.1 install CD Hence on reboot it made me do a manual fsck Then another reboot Now login as a user, cgadmin in my case get a prompt and run pwd_mkdb /etc/master.passwd This rebuilds the secure password database Now get another getty - say Alt-F4 and login as root Amazing!!!! Reboot if you like, set yourself a new root password and write it down this time I prefer a label on the bottom of the box, because if you have got this access, you can crack the password. Now don't forget to set the file security back to where it was chmod 755 /etc chmod 600 /etc/master.passwd Hope you enjoyed the day. Derek -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.11/723 - Release Date: 15/03/2007 11:27 From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 16 21:57:25 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B0B2816A403 for ; Fri, 16 Mar 2007 21:57:25 +0000 (UTC) (envelope-from david@madole.net) Received: from d.omd3.com (mx1.omd3.com [69.90.174.41]) by mx1.freebsd.org (Postfix) with ESMTP id 8FF0E13C458 for ; Fri, 16 Mar 2007 21:57:25 +0000 (UTC) (envelope-from david@madole.net) Received: from [66.212.193.19] (helo=david) by d.omd3.com with esmtpa (Exim 4.54) id 1HSKDW-000KhL-SV; Fri, 16 Mar 2007 17:44:07 -0400 Date: Fri, 16 Mar 2007 17:44:00 -0400 From: "David S. Madole" To: 'Derekj Tourneo' , "'freebsd-hackers@freebsd.org'" Message-ID: <387c4f3e.1c76814.28ed7ad1.29@madole.net> X-Priority: 3 Organization: Optimized Micro Devices X-Mailer: Bynari Insight Connector 3.1.3-0315164 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Cc: Subject: RE: One method to recover a lost root password X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 21:57:25 -0000 > From Derekj Tourneo on Friday, March 16, 2007 4:46 PM >=20 > How I recovered a lost root password in FreeBSD >=20 > Luckily I did know one user name and it had no password. > cgadmin=20 >=20 > going to the repair mode with CDROM/DVD option off the=20 > install menu, using the "live" CDROM filesystem gave me a=20 > root prompt Fixit# >=20 > now mounting the hard drive, in my case /dev/ad0s3a >=20 > =09mount /dev/ad0s3a /mnt > ... >=20 > now change permissions, but look at them first, make a note=20 > so you can put them back to the correct setting later chmod =20 > 777 /mnt/etc chmod 666 /mnt/etc/master.passwd >=20 > reboot >=20 > remove the CD and reboot the original system. =20 > For some reason my older FreeBSD version 4.3 filesystem did=20 > not like being mounted onto a FreeBSD 6.1 install CD Hence on=20 > reboot it made me do a manual fsck Then another reboot >=20 > Now login as a user, cgadmin in my case > get a prompt and run >=20 > =09pwd_mkdb /etc/master.passwd You don't need to know another account nor do you need all those other step= s. After you edit the /etc/master.passwd file by booting from the fixit CD = simply: pwd_mkdb -d /mnt/etc master.passwd If pwd_mkdb is not on the fixit CD -- I don't remember if it is -- you can = run it from your hard drive something like this, depending on what partitio= n it's on: /mnt/usr/sbin/pwd_mkdb -d /mnt/etc master.passwd Then just reboot and log in as root. David From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 01:01:29 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DB5D416A400; Sat, 17 Mar 2007 01:01:29 +0000 (UTC) (envelope-from ap@bnc.net) Received: from mailomat.net (mailomat.net [217.110.117.101]) by mx1.freebsd.org (Postfix) with ESMTP id 4C57313C457; Sat, 17 Mar 2007 01:01:28 +0000 (UTC) (envelope-from ap@bnc.net) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f-1.mailomat.net X-Spam-Level: X-Spam-Status: No, hits=-3.9 required=4.0 tests=ALL_TRUSTED=-1.8, AWL=0.450, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-TFF-CGPSA-Version: 1.5 X-Mailomat-CGPSA-Filter: Scanned X-Mailomat-SpamCatcher-Score: 50 [XX] X-Mailomat-Cloudmark-Score: 0.000000 [] Received: from [87.234.79.113] (account ap HELO [194.39.192.148]) by mailomat.net (CommuniGate Pro SMTP 5.1.5) with ESMTPSA id 16914197; Sat, 17 Mar 2007 01:01:23 +0100 In-Reply-To: <200703161159.37735.lists@jnielsen.net> References: <200703161159.37735.lists@jnielsen.net> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1D8F7F7D-E49D-4DD7-927C-36CC195D44CC@bnc.net> Content-Transfer-Encoding: 7bit From: Achim Patzner Date: Sat, 17 Mar 2007 01:01:15 +0100 To: John Nielsen X-Mailer: Apple Mail (2.752.3) Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: iSCSI boot mussings X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 01:01:30 -0000 On 16.03.2007, at 16:59, John Nielsen wrote: > A truly standalone iSCSI client will most likely want to use a TOE > card, which > to the OS looks like any other SCSI adapter. (I'm unsure which if > any such > cards are currently supported in FreeBSD, but that's a tangential > question.) Maybe someone feels like playing with these: http://www.myri.com/ Myri-10G/10gbe_solutions.html Achim From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 01:07:09 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8CB2116A406 for ; Sat, 17 Mar 2007 01:07:09 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.227]) by mx1.freebsd.org (Postfix) with ESMTP id 4AB9F13C458 for ; Sat, 17 Mar 2007 01:07:09 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so695421wxc for ; Fri, 16 Mar 2007 18:07:08 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Kf4GPcvbnRYQ+3RkDp2ees+nPtQCxLACETVkjJTnZnNkixXI6jE4fezA2iMoUGsFotIgxR3dWtMr3leaXgGd82Jw3mCqbi0K6+YtgnCwkzGksGzA28y+DsCiJBdTbonEb3g2WDFdUgACLySmgMxq7mG8iNSn9BJZnpGfL8/QVPU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OLFosNStSeWIZYERlSTl3Ab1qLXgsTONKTnp8wUw068Mr7lF4pUnLUDFQFg8OOxfQg9Ol3rMFxtIoLG29uypxAk7sZXDYfy3dJ1GChvYtFXHxoKqc92CuvRFChwI5gysOKP6ueJOjCAZezryDVDgrvLHUuz+1bGmHrNV/H+l1Vg= Received: by 10.90.79.6 with SMTP id c6mr2536273agb.1174093628412; Fri, 16 Mar 2007 18:07:08 -0700 (PDT) Received: by 10.90.25.1 with HTTP; Fri, 16 Mar 2007 18:07:08 -0700 (PDT) Message-ID: Date: Fri, 16 Mar 2007 18:07:08 -0700 From: "Kip Macy" To: "Achim Patzner" In-Reply-To: <1D8F7F7D-E49D-4DD7-927C-36CC195D44CC@bnc.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200703161159.37735.lists@jnielsen.net> <1D8F7F7D-E49D-4DD7-927C-36CC195D44CC@bnc.net> Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: iSCSI boot mussings X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 01:07:09 -0000 On 3/16/07, Achim Patzner wrote: > On 16.03.2007, at 16:59, John Nielsen wrote: > > A truly standalone iSCSI client will most likely want to use a TOE > > card, which > > to the OS looks like any other SCSI adapter. (I'm unsure which if > > any such > > cards are currently supported in FreeBSD, but that's a tangential > > question.) > > Maybe someone feels like playing with these: http://www.myri.com/ > Myri-10G/10gbe_solutions.html There are at least a half dozen if not a dozen HBA iSCSI initiators. The only gating factor is price. A pxebooted ramdisk image with an iSCSI software initiator in it is probably the best way to go for most people. I don't think that there is a FreeBSD driver for any of the current hardware iSCSI HBAs. -Kip From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 01:55:21 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2908916A400 for ; Sat, 17 Mar 2007 01:55:21 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout7.cac.washington.edu (mxout7.cac.washington.edu [140.142.32.178]) by mx1.freebsd.org (Postfix) with ESMTP id 0797A13C468 for ; Sat, 17 Mar 2007 01:55:21 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout7.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2H1tK11019025 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 16 Mar 2007 18:55:20 -0700 X-Auth-Received: from [192.168.10.41] (c-67-187-172-183.hsd1.ca.comcast.net [67.187.172.183]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2H1tJP3014364 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 16 Mar 2007 18:55:20 -0700 Message-ID: <45FB4A84.90509@u.washington.edu> Date: Fri, 16 Mar 2007 18:55:16 -0700 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.10 (X11/20070316) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <387c4f3e.1c76814.28ed7ad1.29@madole.net> In-Reply-To: <387c4f3e.1c76814.28ed7ad1.29@madole.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.3.16.184434 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: One method to recover a lost root password X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 01:55:21 -0000 David S. Madole wrote: >> From Derekj Tourneo on Friday, March 16, 2007 4:46 PM >> >> How I recovered a lost root password in FreeBSD >> >> Luckily I did know one user name and it had no password. >> cgadmin >> >> going to the repair mode with CDROM/DVD option off the >> install menu, using the "live" CDROM filesystem gave me a >> root prompt Fixit# >> >> now mounting the hard drive, in my case /dev/ad0s3a >> >> mount /dev/ad0s3a /mnt >> ... >> >> now change permissions, but look at them first, make a note >> so you can put them back to the correct setting later chmod >> 777 /mnt/etc chmod 666 /mnt/etc/master.passwd >> >> reboot >> >> remove the CD and reboot the original system. >> For some reason my older FreeBSD version 4.3 filesystem did >> not like being mounted onto a FreeBSD 6.1 install CD Hence on >> reboot it made me do a manual fsck Then another reboot >> >> Now login as a user, cgadmin in my case >> get a prompt and run >> >> pwd_mkdb /etc/master.passwd > > You don't need to know another account nor do you need all those other steps. After you edit the /etc/master.passwd file by booting from the fixit CD simply: > > pwd_mkdb -d /mnt/etc master.passwd > > If pwd_mkdb is not on the fixit CD -- I don't remember if it is -- you can run it from your hard drive something like this, depending on what partition it's on: > > /mnt/usr/sbin/pwd_mkdb -d /mnt/etc master.passwd > > Then just reboot and log in as root. > > David I am confused why this topic came up on this list.. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 05:49:05 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 718E816A402 for ; Sat, 17 Mar 2007 05:49:05 +0000 (UTC) (envelope-from xride@x12.dk) Received: from swip.net (mailfe09.tele2.dk [212.247.155.3]) by mx1.freebsd.org (Postfix) with ESMTP id 1061F13C448 for ; Sat, 17 Mar 2007 05:49:04 +0000 (UTC) (envelope-from xride@x12.dk) X-Cloudmark-Score: 0.000000 [] Received: from x12.dk (account mu12272@get2net.dk [83.72.97.231] verified) by mailfe09.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 271521759; Sat, 17 Mar 2007 06:49:03 +0100 Received: by x12.dk (Postfix, from userid 666) id 9EC6250844; Sat, 17 Mar 2007 06:49:02 +0100 (CET) Date: Sat, 17 Mar 2007 06:49:02 +0100 From: Soeren Straarup To: Derekj Tourneo Message-ID: <20070317054902.GB2108@x12.dk> References: <000001c7680c$0a7255f0$0dd3000a@homexp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001c7680c$0a7255f0$0dd3000a@homexp> User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org Subject: Re: One method to recover a lost root password X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 05:49:05 -0000 On Fri, Mar 16, 2007 at 08:45:30PM -0000, Derekj Tourneo wrote: > now edit the master password file > > vi /mnt/etc/master.passwd Try: vipw -d /mnt/etc It automaticly updates the right db(s) Futher reading: man 8 vipw /Soeren -- Soeren Straarup | aka OZ2DAK aka Xride FreeBSD committer | FreeBSD since 2.2.6-R If a program is not working right, then send a patch From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 09:46:48 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A0A6C16A404; Sat, 17 Mar 2007 09:46:48 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id 2343813C448; Sat, 17 Mar 2007 09:46:47 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1HSVUq-00091l-GY; Sat, 17 Mar 2007 11:46:44 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Achim Patzner In-reply-to: <1D8F7F7D-E49D-4DD7-927C-36CC195D44CC@bnc.net> References: <200703161159.37735.lists@jnielsen.net> <1D8F7F7D-E49D-4DD7-927C-36CC195D44CC@bnc.net> Comments: In-reply-to Achim Patzner message dated "Sat, 17 Mar 2007 01:01:15 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 17 Mar 2007 11:46:44 +0200 From: Danny Braniss Message-ID: Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: iSCSI boot mussings X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 09:46:48 -0000 > On 16.03.2007, at 16:59, John Nielsen wrote: > > A truly standalone iSCSI client will most likely want to use a TOE > > card, which > > to the OS looks like any other SCSI adapter. (I'm unsure which if > > any such > > cards are currently supported in FreeBSD, but that's a tangential > > question.) > > Maybe someone feels like playing with these: http://www.myri.com/ > Myri-10G/10gbe_solutions.html > > > Achim as far as I can tell, this is a 10G card, without any iSCSI support. danny From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 12:09:17 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5036716A404 for ; Sat, 17 Mar 2007 12:09:17 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 256C813C469 for ; Sat, 17 Mar 2007 12:09:17 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id EA9C946DE7; Sat, 17 Mar 2007 06:40:33 -0500 (EST) Date: Sat, 17 Mar 2007 12:40:33 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Garrett Cooper In-Reply-To: <45FB4A84.90509@u.washington.edu> Message-ID: <20070317123935.C7579@fledge.watson.org> References: <387c4f3e.1c76814.28ed7ad1.29@madole.net> <45FB4A84.90509@u.washington.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: One method to recover a lost root password X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 12:09:17 -0000 On Fri, 16 Mar 2007, Garrett Cooper wrote: > David S. Madole wrote: >>> From Derekj Tourneo on Friday, March 16, 2007 4:46 PM >>> >>> How I recovered a lost root password in FreeBSD >>> >>> Luckily I did know one user name and it had no password. cgadmin going to >>> the repair mode with CDROM/DVD option off the install menu, using the >>> "live" CDROM filesystem gave me a root prompt Fixit# > > I am confused why this topic came up on this list.. Because it is a way to hack BSD, obviously. :-) (It's gotten less frequent, but it used to be that once every few months an e-mail would turn up on the list asking about how to hack FreeBSD systems...) Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 13:02:10 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 117C616A400; Sat, 17 Mar 2007 13:02:10 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (palm.hoeg.nl [83.98.131.212]) by mx1.freebsd.org (Postfix) with ESMTP id C941D13C48A; Sat, 17 Mar 2007 13:02:09 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id CB1AF1CD33; Sat, 17 Mar 2007 14:02:08 +0100 (CET) Date: Sat, 17 Mar 2007 14:02:08 +0100 From: Ed Schouten To: hackers@freebsd.org, ports@freebsd.org Message-ID: <20070317130208.GW7449@hoeg.nl> References: <20070316081428.GU7449@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5G50dybFf3pRZKd7" Content-Disposition: inline In-Reply-To: <20070316081428.GU7449@hoeg.nl> User-Agent: Mutt/1.5.14 (2007-02-12) Cc: Subject: Re: Moving applications from to X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 13:02:10 -0000 --5G50dybFf3pRZKd7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, * Ed Schouten wrote: > Last year Kris made a list of applications that still make use of > : >=20 > http://lists.freebsd.org/pipermail/freebsd-current/2006-June/064010.html I took a look at all the ports in the list, except the internationalized ones (Japanese, etc). Below is a complete list of PR's that I have opened in the last days: - ports/110354: irc/party - ports/110356: irc/blackened - ports/110358: net/freewais-sf - ports/110360: misc/heyu - ports/110361: games/jzip - ports/110363: ports-mgmt/portmanager - ports/110378: misc/heyu2 - ports/110384: textproc/ispell - ports/110386: net/openldap* - ports/110434: editors/aee - ports/110435: mail/metamail - ports/110439: cad/spice - ports/110440: cad/cider - ports/110443: astro/ephem - ports/110444: devel/xxgdb Almost all non-internationalized ports should now work without COMPAT_43TTY. Some ports still include , but don't use it anyway (kdenetwork3, gtar, etc). There are some ports, however, that I didn't port because they were too big, used flags that aren't present in termios, looked like they were written by a bunch of monkeys, didn't run on my architecture, etc., etc.: - cad/magic - databases/grass - editors/em - emulators/dlx - games/freebsd-games - games/tads - mail/xmail - math/gap - misc/fep - misc/mshell - net-mgmt/annextools - net/pmf - net/rmsg - net/ztelnet When all the PR's are closed, I guess most people can live without COMPAT_43TTY as well. Maybe we should add a permanent #warning to to warn people that they shouldn't use it and that it depends on COMPAT_43TTY? --=20 Ed Schouten WWW: http://g-rave.nl/ --5G50dybFf3pRZKd7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFF++bQ52SDGA2eCwURAiYnAJ9mABy2KkyXvBgRsyBAgpOUj+gqlgCfUvQX uW9mwF9qKMj36JUIF8lfDcE= =AsDL -----END PGP SIGNATURE----- --5G50dybFf3pRZKd7-- From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 15:52:43 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C44AA16A400; Sat, 17 Mar 2007 15:52:43 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.freebsd.org (Postfix) with ESMTP id 66E9713C4AD; Sat, 17 Mar 2007 15:52:43 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp5-g19.free.fr (Postfix) with ESMTP id 4C1837DF2; Sat, 17 Mar 2007 16:52:42 +0100 (CET) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id 585D79D375; Sat, 17 Mar 2007 15:52:43 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 4396A405B; Sat, 17 Mar 2007 16:52:43 +0100 (CET) Date: Sat, 17 Mar 2007 16:52:43 +0100 From: Jeremie Le Hen To: Michel Talon Message-ID: <20070317155243.GO3773@obiwan.tataz.chchile.org> References: <20070315125925.GA76035@lpthe.jussieu.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070315125925.GA76035@lpthe.jussieu.fr> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-hackers@freebsd.org, freebsd-ports@freebsd.org Subject: Re: pkgupgrade X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 15:52:43 -0000 Dear Michel, On Thu, Mar 15, 2007 at 01:59:25PM +0100, Michel Talon wrote: > this is to announce version 1.2 of pkgupgrade, a python tool aimed at > upgrading freebsd ports installations mainly using binary packages. > It has a companion program pkg_save.py by Cyrille Szymanski which > performs backups prior to upgrades, which has been upgraded to version > 0.7 and a small documentation. You can find them at: > http://www.lpthe.jussieu.fr/~talon/pkgupgrade > http://www.lpthe.jussieu.fr/~talon/pkg-save.py > http://www.lpthe.jussieu.fr/~talon/README.pkgupgrade > The main difference with previous version: > - for homogeneity, Cyrille likes to call his program pkg_save.py, so i > have changed the name accordingly in pkgupgrade. This requires > changing the name in /usr/local/sbin. > - there is a flag "pkg_release" such that, if True, it works as before, > but if False, pkgupgrade will use the Latest packages from pointyhat. > - There is a list COMPILE where you can put ports you insist of > compiling, instead of using binary packages. This is to cope with the > problem of people having special flags in /etc/make.conf for programs > they use a lot. > - When running UpgradeShell, if some postinstall scripts answer > questions, they will not be screened out. > > There are some user unfriendliness, for example you have to edit the > begnning of the script to modify its behavior, you need to put correct > origins in the lists HOLD and COMPILE, no globbing has been implemented > here, but otherwise the program has been tested on several machines and > by several people, and it works. You can expect rather important time > gains with respect to using portupgrade -aP to do the same job, and most > importantly, you will know beforehand exactly what will be removed and > upgraded or compiled, before changing anything on disk. > > The programs above are under BSD licence, and anyone is welcome to do > anything he wants with them, including modifying, improving, rewriting > in C++, whatever. Personnally i have no intention to change them in the > short term. Perhaps rewrite in C++ later on, if nobody does, and if it > appears useful. Thank you for your work. I know that writting a manual page is not the most exciting task in a project. However, I strongly recommend you to write at least a small one and wrap the whole bunch into a port. People will likely be more willing to test it and you will get more feedback, including bug reports and enhancements. Best regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 16:49:26 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0834716A404; Sat, 17 Mar 2007 16:49:26 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from gateway.cybervisiontech.com.ua (gateway.cybervisiontech.com.ua [88.81.251.18]) by mx1.freebsd.org (Postfix) with ESMTP id B548813C46E; Sat, 17 Mar 2007 16:49:24 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (hq.cybervisiontech.com [127.0.0.1]) by zeus.cv-nj.com (Postfix) with ESMTP id CD081CBC2F; Fri, 16 Mar 2007 18:54:57 +0200 (EET) X-Virus-Scanned: amavisd-new at cybervisiontech.com Received: from zeus.cv-nj.com ([127.0.0.1]) by localhost (hq.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dYM1i7ivOfwp; Fri, 16 Mar 2007 18:54:56 +0200 (EET) Received: from [10.2.1.87] (rein.cybervisiontech.com.ua [10.2.1.87]) by zeus.cv-nj.com (Postfix) with ESMTP id 2DC5BCA440; Fri, 16 Mar 2007 18:54:56 +0200 (EET) Message-ID: <45FACBE4.5090403@icyb.net.ua> Date: Fri, 16 Mar 2007 18:55:00 +0200 From: Andriy Gapon User-Agent: Thunderbird 1.5.0.10 (X11/20070315) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, freebsd-amd64@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: nve: ethernet address reversal code X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 16:49:26 -0000 I am wondering what is the purpose of the following pieces of code in if_nve.c: /* ... nve_attach ... */ /* MAC is loaded backwards into h/w reg */ sc->hwapi->pfnGetNodeAddress(sc->hwapi->pADCX, sc->original_mac_addr); for (i = 0; i < 6; i++) { eaddr[i] = sc->original_mac_addr[5 - i]; } sc->hwapi->pfnSetNodeAddress(sc->hwapi->pADCX, eaddr); bcopy(eaddr, (char *)&sc->sc_macaddr, ETHER_ADDR_LEN); /* ... nve_detach ... */ /* Reload unreversed address back into MAC in original state */ if (sc->original_mac_addr) sc->hwapi->pfnSetNodeAddress(sc->hwapi->pADCX, sc->original_mac_addr); Small note: pointer check in nve_detach is obviously not needed because sc->original_mac_addr is not a pointer but an array. I am asking the question for two reasons: 1. [theoretical] I am not sure what pfnSetNodeAddress() is doing, but if it makes modification in NIC memory that can persist across PC reset or poweroff, then this code can be dangerous if a machine crashes/hangs/etc. 2. [practical] I recently installed 6.2-RELEASE amd64 on Asus M2N machine (chipset nForce 430 MCP == MCP61, onboard NIC pci chip id is 03ef). After a small patch to add this ID to nve everything worked very well (in 1 Gb mode). That is, almost everything: I had a very strange problems access one particular machine on my LAN. I still don't know what exactly was the problem, but during its investigation I noticed my MAC address looked strange compared to other MAC addresses. You, we have a bunch of machines with identical HW on our LAN, they all run either Linux or Windows, mine is the only FreeBSD one. So, my ethernet address was a5:07:9f:f3:18:00, but other guys had something like 00:18:f3:9f:XX:YY. After some digging around I went into the sources, changed [5-i] to [i] and everything started to work perfectly. Then I looked at some other machine that uses nve: FreeBSD 6.1 i386, Abit NF7 motherboard (nForce2 chipset). MAC address there is 00:50:8d:4d:aa:83, which looks pretty normal. So I am wondering if this is a 64-bit thing or something specific to a particular chipset. Unfortunately, I can not test i386 version of FreeBSD (patched to recognize my chipset) on this hardware now. P.S. just in case, here's a verbose dmesg after both of my patches and kldunload/kldload: Mar 14 19:05:32 rein kernel: pci0:7:0: reprobing on driver added Mar 14 19:05:32 rein kernel: nve0: port 0xe480-0xe487 mem 0xddefd000-0xddefdfff irq 20 at device 7.0 on pci0 Mar 14 19:05:32 rein kernel: nve0: nvenetlib.o version 1.0-13 Mar 14 19:05:32 rein kernel: nve0: Ethernet address 00:18:f3:9f:07:a5 Mar 14 19:05:32 rein kernel: miibus0: on nve0 Mar 14 19:05:32 rein kernel: ukphy0: on miibus0 Mar 14 19:05:32 rein kernel: ukphy0: OUI 0x001374, model 0x0001, rev. 6 Mar 14 19:05:32 rein kernel: ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto Mar 14 19:05:32 rein kernel: nve0: bpf attached Mar 14 19:05:32 rein kernel: nve0: Ethernet address: 00:18:f3:9f:07:a5 Mar 14 19:05:32 rein kernel: nve0: [MPSAFE] Mar 14 19:05:32 rein kernel: pci1: driver added Mar 14 19:05:32 rein kernel: pci2: driver added Mar 14 19:05:32 rein kernel: found-> vendor=0x10de, dev=0x016a, revid=0xa1 Mar 14 19:05:32 rein kernel: bus=2, slot=0, func=0 Mar 14 19:05:32 rein kernel: class=03-00-00, hdrtype=0x00, mfdev=0 Mar 14 19:05:32 rein kernel: cmdreg=0x0007, statreg=0x0010, cachelnsz=16 (dwords) Mar 14 19:05:32 rein kernel: lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) Mar 14 19:05:32 rein kernel: intpin=a, irq=16 Mar 14 19:05:32 rein kernel: powerspec 2 supports D0 D3 current D0 Mar 14 19:05:32 rein kernel: MSI supports 1 message, 64 bit -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 17:01:56 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 28DF616A402 for ; Sat, 17 Mar 2007 17:01:56 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id D408D13C484 for ; Sat, 17 Mar 2007 17:01:55 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1HScHw-000MHM-IA; Sat, 17 Mar 2007 19:01:52 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Andriy Gapon In-reply-to: <45FACBE4.5090403@icyb.net.ua> References: <45FACBE4.5090403@icyb.net.ua> Comments: In-reply-to Andriy Gapon message dated "Fri, 16 Mar 2007 18:55:00 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 17 Mar 2007 19:01:52 +0200 From: Danny Braniss Message-ID: Cc: freebsd-hackers@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: nve: ethernet address reversal code X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 17:01:56 -0000 > > I am wondering what is the purpose of the following pieces of code in > if_nve.c: > > /* ... nve_attach ... */ > /* MAC is loaded backwards into h/w reg */ > sc->hwapi->pfnGetNodeAddress(sc->hwapi->pADCX, sc->original_mac_addr); > for (i = 0; i < 6; i++) { > eaddr[i] = sc->original_mac_addr[5 - i]; > } > sc->hwapi->pfnSetNodeAddress(sc->hwapi->pADCX, eaddr); > bcopy(eaddr, (char *)&sc->sc_macaddr, ETHER_ADDR_LEN); > > > /* ... nve_detach ... */ > /* Reload unreversed address back into MAC in original state */ > if (sc->original_mac_addr) > sc->hwapi->pfnSetNodeAddress(sc->hwapi->pADCX, > sc->original_mac_addr); > > Small note: pointer check in nve_detach is obviously not needed because > sc->original_mac_addr is not a pointer but an array. > > > I am asking the question for two reasons: > > 1. [theoretical] I am not sure what pfnSetNodeAddress() is doing, but if > it makes modification in NIC memory that can persist across PC reset or > poweroff, then this code can be dangerous if a machine crashes/hangs/etc. > > 2. [practical] I recently installed 6.2-RELEASE amd64 on Asus M2N > machine (chipset nForce 430 MCP == MCP61, onboard NIC pci chip id is > 03ef). After a small patch to add this ID to nve everything worked very > well (in 1 Gb mode). That is, almost everything: I had a very strange > problems access one particular machine on my LAN. I still don't know > what exactly was the problem, but during its investigation I noticed my > MAC address looked strange compared to other MAC addresses. You, we have > a bunch of machines with identical HW on our LAN, they all run either > Linux or Windows, mine is the only FreeBSD one. > So, my ethernet address was a5:07:9f:f3:18:00, but other guys had > something like 00:18:f3:9f:XX:YY. After some digging around I went into > the sources, changed [5-i] to [i] and everything started to work perfectly. > Then I looked at some other machine that uses nve: FreeBSD 6.1 i386, > Abit NF7 motherboard (nForce2 chipset). MAC address there is > 00:50:8d:4d:aa:83, which looks pretty normal. > > So I am wondering if this is a 64-bit thing or something specific to a > particular chipset. Unfortunately, I can not test i386 version of > FreeBSD (patched to recognize my chipset) on this hardware now. > > P.S. just in case, here's a verbose dmesg after both of my patches and > kldunload/kldload: > Mar 14 19:05:32 rein kernel: pci0:7:0: reprobing on driver added > Mar 14 19:05:32 rein kernel: nve0: Adapter> port 0xe480-0xe487 mem 0xddefd000-0xddefdfff irq 20 at device 7.0 > on pci0 > Mar 14 19:05:32 rein kernel: nve0: nvenetlib.o version 1.0-13 > Mar 14 19:05:32 rein kernel: nve0: Ethernet address 00:18:f3:9f:07:a5 > Mar 14 19:05:32 rein kernel: miibus0: on nve0 > Mar 14 19:05:32 rein kernel: ukphy0: interface> on miibus0 > Mar 14 19:05:32 rein kernel: ukphy0: OUI 0x001374, model 0x0001, rev. 6 > Mar 14 19:05:32 rein kernel: ukphy0: 10baseT, 10baseT-FDX, 100baseTX, > 100baseTX-FDX, 1000baseT-FDX, auto > Mar 14 19:05:32 rein kernel: nve0: bpf attached > Mar 14 19:05:32 rein kernel: nve0: Ethernet address: 00:18:f3:9f:07:a5 > Mar 14 19:05:32 rein kernel: nve0: [MPSAFE] > Mar 14 19:05:32 rein kernel: pci1: driver added > Mar 14 19:05:32 rein kernel: pci2: driver added > Mar 14 19:05:32 rein kernel: found-> vendor=0x10de, dev=0x016a, > revid=0xa1 > Mar 14 19:05:32 rein kernel: bus=2, slot=0, func=0 > Mar 14 19:05:32 rein kernel: class=03-00-00, hdrtype=0x00, mfdev=0 > Mar 14 19:05:32 rein kernel: cmdreg=0x0007, statreg=0x0010, cachelnsz=16 > (dwords) > Mar 14 19:05:32 rein kernel: lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), > maxlat=0x00 (0 ns) > Mar 14 19:05:32 rein kernel: intpin=a, irq=16 > Mar 14 19:05:32 rein kernel: powerspec 2 supports D0 D3 current D0 > Mar 14 19:05:32 rein kernel: MSI supports 1 message, 64 bit > > > -- > Andriy Gapon we saw this too!, downgrading the BIOS fixed it for us. btw, 00:18:.... is the correct mac. the problem shows up only when booting via PXE. danny From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 21:47:45 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A6BB216A400 for ; Sat, 17 Mar 2007 21:47:45 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.freebsd.org (Postfix) with ESMTP id 8517B13C4BE for ; Sat, 17 Mar 2007 21:47:45 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.7] (may be forged)) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2HLlj7s015180 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 17 Mar 2007 14:47:45 -0700 X-Auth-Received: from [192.168.10.41] (c-67-187-172-183.hsd1.ca.comcast.net [67.187.172.183]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2HLlhgM005678 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 17 Mar 2007 14:47:44 -0700 Message-ID: <45FC61FF.3090009@u.washington.edu> Date: Sat, 17 Mar 2007 14:47:43 -0700 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.10 (X11/20070316) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.3.17.143934 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Possible grep(1) bug or user error :)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 21:47:45 -0000 I was recently grepping a directory and outputting to a file located in the same directory as follows: grep -ri {key} * > {key}.found The thing is that grep kept on feeding off of the {key}.found file and eventually ate up all the free space on the device (~12GB). Thankfully it wasn't one of my primary devices, so deleting it wasn't an issue. However I was wondering if this case should be considered (in error checking) and another option should be added to output grep info to a file, instead of /dev/stdout, which would affect the behavior of the --exclude flag (i.e. the output file would automatically be added to --exclude's relevant array of non-searched arguments). Thanks, -Garrett From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 22:14:50 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5AC4616A404 for ; Sat, 17 Mar 2007 22:14:50 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from pobox.codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 1899713C468 for ; Sat, 17 Mar 2007 22:14:49 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by pobox.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1HShAm-000Ld9-1i; Sun, 18 Mar 2007 01:14:48 +0300 Date: Sun, 18 Mar 2007 01:14:43 +0300 From: Eygene Ryabinkin To: Garrett Cooper Message-ID: <20070317221443.GD82045@codelabs.ru> References: <45FC61FF.3090009@u.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <45FC61FF.3090009@u.washington.edu> Sender: rea-fbsd@codelabs.ru X-Spam-Status: No, score=-2.2 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_40 Cc: freebsd-hackers@freebsd.org Subject: Re: Possible grep(1) bug or user error :)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 22:14:50 -0000 Garret, Sat, Mar 17, 2007 at 02:47:43PM -0700, Garrett Cooper wrote: > I was recently grepping a directory and outputting to a file located in the > same directory as follows: > > grep -ri {key} * > {key}.found > > The thing is that grep kept on feeding off of the {key}.found file and > eventually ate up all the free space on the device (~12GB). And what you expected? The file {key}.found was created prior to the expansion of '*', so grep was parsing that file and feeding it with the messages about the lines with {key} that were found. And these lines also provoked grep to add more lines about the {key} found, and so on. I think you got the idea of the infinite cycle you created. -- Eygene From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 22:16:42 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E431A16A400 for ; Sat, 17 Mar 2007 22:16:42 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.freebsd.org (Postfix) with ESMTP id B3C3D13C4AE for ; Sat, 17 Mar 2007 22:16:42 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2HMGgLO025852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 17 Mar 2007 15:16:42 -0700 X-Auth-Received: from [192.168.10.41] (c-67-187-172-183.hsd1.ca.comcast.net [67.187.172.183]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2HMGfxh006852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 17 Mar 2007 15:16:42 -0700 Message-ID: <45FC68C9.9070502@u.washington.edu> Date: Sat, 17 Mar 2007 15:16:41 -0700 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.10 (X11/20070316) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <45FC61FF.3090009@u.washington.edu> <20070317221443.GD82045@codelabs.ru> In-Reply-To: <20070317221443.GD82045@codelabs.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.3.17.150434 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CHARSET_IS_KOI8R 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_CHARSET_FARAWAY 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: Possible grep(1) bug or user error :)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 22:16:43 -0000 Eygene Ryabinkin wrote: > Garret, > > Sat, Mar 17, 2007 at 02:47:43PM -0700, Garrett Cooper wrote: >> I was recently grepping a directory and outputting to a file located in the >> same directory as follows: >> >> grep -ri {key} * > {key}.found >> >> The thing is that grep kept on feeding off of the {key}.found file and >> eventually ate up all the free space on the device (~12GB). > > And what you expected? The file {key}.found was created prior to the > expansion of '*', so grep was parsing that file and feeding it with > the messages about the lines with {key} that were found. And these > lines also provoked grep to add more lines about the {key} found, and > so on. I think you got the idea of the infinite cycle you created. Yeah, I did.. oh well, I'll mark this as user error. Amusing user error though ><.. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 22:19:37 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CC29E16A401 for ; Sat, 17 Mar 2007 22:19:37 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from optimus.centralmiss.com (ns.centralmiss.com [206.156.254.79]) by mx1.freebsd.org (Postfix) with ESMTP id A22A013C448 for ; Sat, 17 Mar 2007 22:19:37 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (adsl-072-148-013-213.sip.jan.bellsouth.net [72.148.13.213]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by optimus.centralmiss.com (Postfix) with ESMTP id 93087287B1; Sat, 17 Mar 2007 16:51:15 -0500 (CDT) Received: by draco.over-yonder.net (Postfix, from userid 100) id 1DC3161C6A; Sat, 17 Mar 2007 16:51:15 -0500 (CDT) Date: Sat, 17 Mar 2007 16:51:15 -0500 From: "Matthew D. Fuller" To: Soeren Straarup Message-ID: <20070317215114.GG96961@over-yonder.net> References: <000001c7680c$0a7255f0$0dd3000a@homexp> <20070317054902.GB2108@x12.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070317054902.GB2108@x12.dk> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.14-fullermd.3 (2007-02-12) Cc: freebsd-hackers@freebsd.org, Derekj Tourneo Subject: Re: One method to recover a lost root password X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 22:19:37 -0000 On Sat, Mar 17, 2007 at 06:49:02AM +0100 I heard the voice of Soeren Straarup, and lo! it spake thus: > On Fri, Mar 16, 2007 at 08:45:30PM -0000, Derekj Tourneo wrote: > > now edit the master password file > > > > vi /mnt/etc/master.passwd > > Try: vipw -d /mnt/etc > It automaticly updates the right db(s) # chroot /mnt passwd root -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream. From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 22:47:52 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1A67416A40D for ; Sat, 17 Mar 2007 22:47:52 +0000 (UTC) (envelope-from jimmy@mammothcheese.ca) Received: from smtp100.rog.mail.re2.yahoo.com (smtp100.rog.mail.re2.yahoo.com [206.190.36.78]) by mx1.freebsd.org (Postfix) with SMTP id AC2C613C4BE for ; Sat, 17 Mar 2007 22:47:51 +0000 (UTC) (envelope-from jimmy@mammothcheese.ca) Received: (qmail 42672 invoked from network); 17 Mar 2007 22:21:11 -0000 Received: from unknown (HELO ?74.110.53.6?) (jazzturk@rogers.com@74.110.53.6 with plain) by smtp100.rog.mail.re2.yahoo.com with SMTP; 17 Mar 2007 22:21:11 -0000 X-YMail-OSG: m56Q5XYVM1khSZrBRm9luudmZlYZRnjzPt3tr.x0pLiKYWLmiA9bZAdN7zSZmU3oFw-- Message-ID: <45FC69D5.3010406@mammothcheese.ca> Date: Sat, 17 Mar 2007 18:21:09 -0400 From: James Bailie User-Agent: Thunderbird 1.5.0.9 (X11/20061230) MIME-Version: 1.0 To: Garrett Cooper References: <45FC61FF.3090009@u.washington.edu> In-Reply-To: <45FC61FF.3090009@u.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Possible grep(1) bug or user error :)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 22:47:52 -0000 Garrett Cooper wrote: > grep -ri {key} * > {key}.found > > The thing is that grep kept on feeding off of the {key}.found file and > eventually ate up all the free space on the device (~12GB). The shell is redirecting stdout onto the found file before it is expanding the glob patterns, so the found file is being included in the expansion. You can force the expansion to occur first if you assign it to a variable: sh: FILES=*; grep -ri key $FILES > found csh: set FILES=*; grep -ri key $FILES > found Hope this helps, -- James Bailie http://www.mammothcheese.ca From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 23:09:24 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F16FC16A400 for ; Sat, 17 Mar 2007 23:09:24 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id CDD1F13C4BA for ; Sat, 17 Mar 2007 23:09:24 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2HN9OP8019659 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 17 Mar 2007 16:09:24 -0700 X-Auth-Received: from [192.168.10.41] (c-67-187-172-183.hsd1.ca.comcast.net [67.187.172.183]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2HN9NFr009539 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 17 Mar 2007 16:09:24 -0700 Message-ID: <45FC7523.9050100@u.washington.edu> Date: Sat, 17 Mar 2007 16:09:23 -0700 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.10 (X11/20070316) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <45FC61FF.3090009@u.washington.edu> <45FC69D5.3010406@mammothcheese.ca> In-Reply-To: <45FC69D5.3010406@mammothcheese.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.3.17.155934 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: Possible grep(1) bug or user error :)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 23:09:25 -0000 James Bailie wrote: > Garrett Cooper wrote: > > grep -ri {key} * > {key}.found > > > > The thing is that grep kept on feeding off of the {key}.found file and > > eventually ate up all the free space on the device (~12GB). > > The shell is redirecting stdout onto the found file before it is > expanding the glob patterns, so the found file is being included > in the expansion. You can force the expansion to occur first if > you assign it to a variable: > > sh: > > FILES=*; grep -ri key $FILES > found > > csh: > > set FILES=*; grep -ri key $FILES > found > > Hope this helps, Thanks James :). That's another good solution for working around that. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 21:50:57 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 06D3416A406; Sat, 17 Mar 2007 21:50:57 +0000 (UTC) (envelope-from tom@samplonius.org) Received: from ly.sdf.com (ly.sdf.com [216.113.193.83]) by mx1.freebsd.org (Postfix) with ESMTP id 8FEF913C45D; Sat, 17 Mar 2007 21:50:56 +0000 (UTC) (envelope-from tom@samplonius.org) Received: from localhost (localhost [127.0.0.1]) by ly.sdf.com (Postfix) with ESMTP id BCCFA114447; Sat, 17 Mar 2007 14:29:44 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Score: -3.958 X-Spam-Level: X-Spam-Status: No, score=-3.958 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, AWL=0.441, BAYES_00=-2.599] Received: from ly.sdf.com ([127.0.0.1]) by localhost (ly.sdf.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N+TvOrHdLDxv; Sat, 17 Mar 2007 14:29:42 -0700 (PDT) Received: from ly.sdf.com (ly.sdf.com [216.113.193.83]) by ly.sdf.com (Postfix) with ESMTP id 9104D114446; Sat, 17 Mar 2007 14:29:42 -0700 (PDT) Message-ID: <8169444.541174166982500.JavaMail.root@ly.sdf.com> Date: Sat, 17 Mar 2007 14:29:42 -0700 (PDT) From: Tom Samplonius To: John Nielsen In-Reply-To: <200703161159.37735.lists@jnielsen.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [216.113.193.85] X-Mailman-Approved-At: Sat, 17 Mar 2007 23:38:47 +0000 Cc: freebsd-scsi@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: iSCSI boot mussings X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 21:50:57 -0000 ... > A truly standalone iSCSI client will most likely want to use a TOE > card, which > to the OS looks like any other SCSI adapter. (I'm unsure which if any > such > cards are currently supported in FreeBSD, but that's a tangential > question.) I really doubt this. TOE iSCSI cards are quite rare. Qlogic has one, and it could work under FreeBSD, as it looks similar the other Qlogic HBA cards. But they are still pretty rare. And TOE doesn't necessarily imply iSCSI. Various cards existing ethernet cards have various levels of offload support now. I think the general case is going to succeed: ethernet cards with acceleration, not iSCSI HBAs. > Machines with iSCSI-capable BIOS'es are an inbetween case. Allowing > such > machines to be standalone clients would require things like the > initiator > name, the initiator's IP address and netmask, the target's IP address, > and > the target's (volume) name to be hard-coded in the kernel. It would be > nice > to support this scenario, but IMO it's the one with the lowest > benefit/cost > ratio. Maybe, maybe not. Probably more people have iSCSI BIOSes in their servers now, than iSCSI dedicated HBAs. IBM introduced iSCSI boot code into many of their server BIOSes last year. I don't think it is that hard either. I don't think you will have to hard code into the kernel, but at least make sure the targets match what the BIOS has. It could just be a boot option, as the boot loader just uses BIOS calls, which would hit read from iSCSI. If you don't have an iSCSI BIOS in your server (which probably every Dell, IBM, and HP server will have standard in every server this year), and you don't have one of the very rare iSCSI dedicated HBAs, then PXE booting an iSCSI enabled kernel is probably the way to go. > Making it easy to integrate iSCSI into existing environments (diskless > or not) > is IMO the biggest hole in the current implementation (the missing rc > and > fstab bits I mentioned before). > > JN Tom