From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 14 09:53: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 337D916A412; Sun, 14 Jan 2007 09:53: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 DBC6E13C45D; Sun, 14 Jan 2007 09:53:39 +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 1H623V-0008yq-Dl; Sun, 14 Jan 2007 11:53:37 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Scott Long In-reply-to: <45A91A02.906@samsco.org> References: <20070112195549.GA77181@freebie.xs4all.nl> <45A7F6A4.4030707@samsco.org> <45A91A02.906@samsco.org> Comments: In-reply-to Scott Long message dated "Sat, 13 Jan 2007 10:42:26 -0700." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 14 Jan 2007 11:53:37 +0200 From: Danny Braniss Message-ID: Cc: Wilko Bulte , Pawel Jakub Dawidek , freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: iSCSI disconnects dilema 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, 14 Jan 2007 09:53:40 -0000 ... > > So you had a scenario where a program was doing I/O right up to system > (initiator) shutdown, and some of those I/O's got lost in the process? > I guess I don't understand why the OS didn't flush all outstanding I/O > buffers after terminating the program and before finishing the shutdown. > Maybe you are doing something illegal in your driver, or maybe you need > to implement a kernel shutdown hook that will allow you to block the > shutdown until everything is flushed. > the problem was solved! it just took me a while to find the cause :-) the driver picks the fd/socket from userland, via fgetsock(...), this increases the socket usage count, which I wrongly believed would save me from the userland exiting. a call to fget(...) now solves this, and so shutdown can now flush all iscsi buffers, and fsck'in is not necesary on reboot. danny > Scott From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 14 12:24: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 2480016A412 for ; Sun, 14 Jan 2007 12:24:24 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id B4DE513C467 for ; Sun, 14 Jan 2007 12:24:23 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1004637uge for ; Sun, 14 Jan 2007 04:24:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=DsD/7SfO8qOMl1OhJl4sRaWTQIpDM41Q3g2zNt1eSOKxC5PH8wIy7AR9E4wPmEB+WXBmuVUfdyF9f43eBEcrccrun3+H0xnRfLdG1jjdFlyd2JwBkGugEPxUXcsKmZsTl7jrZb6tC8u6fZDJNq2kKK3Lx0iDgPTx5a3JsnySU70= Received: by 10.67.97.7 with SMTP id z7mr3740132ugl.1168777462246; Sun, 14 Jan 2007 04:24:22 -0800 (PST) Received: by 10.67.23.8 with HTTP; Sun, 14 Jan 2007 04:24:21 -0800 (PST) Message-ID: Date: Sun, 14 Jan 2007 13:24:21 +0100 From: "Pietro Cerutti" 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: 6.2-PRERELEASE kernel panic 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, 14 Jan 2007 12:24:24 -0000 Hello, just some information for the brave to work on: > cat info.0 Dump header from device /dev/ad0s1b 2 Architecture: i386 3 Architecture Version: 2 4 Dump Length: 2138505216B (2039 MB) 5 Blocksize: 512 6 Dumptime: Sun Jan 14 12:59:53 2007 7 Hostname: gahrtop.localhost 8 Magic: FreeBSD Kernel Dump 9 Version String: FreeBSD 6.2-PRERELEASE #3: Thu Jan 11 12:51:35 CET 2007 10 root@gahrtop.localhost:/usr/obj/usr/src/sys/GAHRTOP 11 Panic String: page fault 12 Dump Parity: 554348404 13 Bounds: 0 14 Dump Status: good > kgdb -n 0 Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0xbfc20518 fault code = supervisor read, page not present instruction pointer = 0x20:0xc063daf9 stack pointer = 0x28:0xe8fa9c4c frame pointer = 0x28:0xe8fa9c58 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 2077 (as) trap number = 12 panic: page fault cpuid = 0 Uptime: 11m45s Dumping 2039 MB (2 chunks) chunk 0: 1MB (159 pages) ... ok chunk 1: 2039MB (521936 pages) 2023 2007 1991 1975 1959 1943 1927 1911 1895 1879 1863 1847 1831 1815 1799 1783 1767 1751 1735 1719 1703 1687 1671 1655 (CTRL-C to abort) 1639 1623 1607 1591 1575 1559 1543 1527 1511 1495 1479 1463 1447 1431 1415 1399 1383 1367 1351 1335 1319 1303 1287 1271 1255 1239 1223 1207 1191 1175 1159 1143 1127 1111 1095 1079 1063 1047 1031 1015 999 983 967 951 935 919 903 887 871 855 839 823 807 791 775 759 743 727 711 695 679 663 647 631 615 599 583 567 551 535 519 503 487 471 455 439 423 407 391 375 359 343 327 311 295 279 263 247 231 (CTRL-C to abort) (CTRL-C to abort) (CTRL-C to abort) 215 199 183 167 151 135 119 103 87 71 55 39 23 7 #0 doadump () at pcpu.h:165 165 pcpu.h: No such file or directory. in pcpu.h (kgdb) bt #0 doadump () at pcpu.h:165 #1 0xc04ecc46 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 #2 0xc04ecf6d in panic (fmt=0xc0659acb "%s") at /usr/src/sys/kern/kern_shutdown.c:565 #3 0xc0640a00 in trap_fatal (frame=0xe8fa9c0c, eva=3217163544) at /usr/src/sys/i386/i386/trap.c:837 #4 0xc064073f in trap_pfault (frame=0xe8fa9c0c, usermode=0, eva=3217163544) at /usr/src/sys/i386/i386/trap.c:745 #5 0xc0640399 in trap (frame= {tf_fs = 8, tf_es = -1037565912, tf_ds = -963444696, tf_edi = -1037189656, tf_esi = -1077803752, tf_ebp = -386229160, tf_isp = -386229192, tf_ebx = -1015945272, tf_edx = 135553024, tf_ecx = 0, tf_eax = 132376, tf_trapno = 12, tf_err = 0, tf_eip = -1067197703, tf_cs = 32, tf_eflags = 66054, tf_esp = 1, tf_ss = -961889688}) at /usr/src/sys/i386/i386/trap.c:435 #6 0xc062d49a in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #7 0xc063daf9 in pmap_remove_pages (pmap=0xc6aabb28, sva=0, eva=3217031168) at /usr/src/sys/i386/i386/pmap.c:2583 #8 0xc06012a3 in vmspace_exit (td=0xc683b180) at vm_map.h:251 #9 0xc04d352e in exit1 (td=0xc683b180, rv=0) at /usr/src/sys/kern/kern_exit.c:295 #10 0xc04d2fd4 in sys_exit (td=0xc683b180, uap=0x20518) at /usr/src/sys/kern/kern_exit.c:99 #11 0xc0640d47 in syscall (frame= {tf_fs = 59, tf_es = 59, tf_ds = 59, tf_edi = -1077941468, tf_esi = -1077941484, tf_ebp = -1077941640, tf_isp = -386228892, tf_ebx = 1, tf_edx = 10, tf_ecx = 31, tf_eax = 1, tf_trapno = 12, tf_err = 2, tf_eip = 134971571, tf_cs = 51, tf_eflags = 658, tf_esp = -1077941668, tf_ss = 59}) at /usr/src/sys/i386/i386/trap.c:983 #12 0xc062d4ef in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:200 #13 0x00000033 in ?? () Previous frame inner to this frame (corrupt stack? (kgdb) where #0 doadump () at pcpu.h:165 #1 0xc04ecc46 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 #2 0xc04ecf6d in panic (fmt=0xc0659acb "%s") at /usr/src/sys/kern/kern_shutdown.c:565 #3 0xc0640a00 in trap_fatal (frame=0xe8fa9c0c, eva=3217163544) at /usr/src/sys/i386/i386/trap.c:837 #4 0xc064073f in trap_pfault (frame=0xe8fa9c0c, usermode=0, eva=3217163544) at /usr/src/sys/i386/i386/trap.c:745 #5 0xc0640399 in trap (frame= {tf_fs = 8, tf_es = -1037565912, tf_ds = -963444696, tf_edi = -1037189656, tf_esi = -1077803752, tf_ebp = -386229160, tf_isp = -386229192, tf_ebx = -1015945272, tf_edx = 135553024, tf_ecx = 0, tf_eax = 132376, tf_trapno = 12, tf_err = 0, tf_eip = -1067197703, tf_cs = 32, tf_eflags = 66054, tf_esp = 1, tf_ss = -961889688}) at /usr/src/sys/i386/i386/trap.c:435 #6 0xc062d49a in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #7 0xc063daf9 in pmap_remove_pages (pmap=0xc6aabb28, sva=0, eva=3217031168) at /usr/src/sys/i386/i386/pmap.c:2583 #8 0xc06012a3 in vmspace_exit (td=0xc683b180) at vm_map.h:251 #9 0xc04d352e in exit1 (td=0xc683b180, rv=0) at /usr/src/sys/kern/kern_exit.c:295 #10 0xc04d2fd4 in sys_exit (td=0xc683b180, uap=0x20518) at /usr/src/sys/kern/kern_exit.c:99 #11 0xc0640d47 in syscall (frame= {tf_fs = 59, tf_es = 59, tf_ds = 59, tf_edi = -1077941468, tf_esi = -1077941484, tf_ebp = -1077941640, tf_isp = -386228892, tf_ebx = 1, tf_edx = 10, tf_ecx = 31, tf_eax = 1, tf_trapno = 12, tf_err = 2, tf_eip = 134971571, tf_cs = 51, tf_eflags = 658, tf_esp = -1077941668, tf_ss = 59}) at /usr/src/sys/i386/i386/trap.c:983 #12 0xc062d4ef in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:200 #13 0x00000033 in ?? () Please ask for more infos! Thanx -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 14 18:18: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 4EFFC16A40F for ; Sun, 14 Jan 2007 18:18:19 +0000 (UTC) (envelope-from bra@fsn.hu) Received: from people.fsn.hu (people.fsn.hu [195.228.252.137]) by mx1.freebsd.org (Postfix) with ESMTP id E0D8013C455 for ; Sun, 14 Jan 2007 18:18:18 +0000 (UTC) (envelope-from bra@fsn.hu) Received: from localhost (localhost [127.0.0.1]) by people.fsn.hu (Postfix) with ESMTP id C9D658441E; Sun, 14 Jan 2007 19:18:16 +0100 (CET) Received: from people.fsn.hu ([127.0.0.1]) by localhost (people.fsn.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 83131-03; Sun, 14 Jan 2007 19:18:12 +0100 (CET) Received: from [192.168.1.101] (catv-5062c5d8.catv.broadband.hu [80.98.197.216]) by people.fsn.hu (Postfix) with ESMTP id 9B4EE84425; Sun, 14 Jan 2007 19:18:11 +0100 (CET) Message-ID: <45AA73DC.6090808@fsn.hu> Date: Sun, 14 Jan 2007 19:18:04 +0100 From: Attila Nagy User-Agent: Thunderbird 2.0b1 (Windows/20061206) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <45A0229F.7070701@fsn.hu> <45a03a95.08FguubdCa9DFcxj%perryh@pluto.rain.com> <45A0DD27.4020704@fsn.hu> <20070111010149.GA2704@xor.obsecurity.org> <45A76480.6010108@fsn.hu> <20070112190655.GC90718@garage.freebsd.pl> In-Reply-To: <20070112190655.GC90718@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at fsn.hu Cc: freebsd-hackers@freebsd.org, perryh@pluto.rain.com, Kris Kennaway Subject: Re: ufs_rename: fvp == tvp (can't happen), but it did 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, 14 Jan 2007 18:18:19 -0000 On 2007.01.12. 20:06, Pawel Jakub Dawidek wrote: > Silent data corruptions happens, look for example at the "problem with > 4T volume under FreeBSD" thread on current@. > > I'd suggest configuring geli with data authentication on top of the FC > array. geli will detect silent data corruptions. > Data corruption was the first thing, which came into my mind, I am currently trying to reproduce this on another machine. geli's data authentication is a good thing, but ZFS's ability to actually correct the errors (in this case, at least) is even more better. :) Is there a newer patch for ZFS than this: http://people.freebsd.org/~pjd/patches/zfs_20061117.patch.bz2 ? I as far as I can see, you've put a tremendous amount of work into it in perforce... Thanks, From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 14 19:18: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 41DA016A407 for ; Sun, 14 Jan 2007 19:18:19 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id C6C9E13C442 for ; Sun, 14 Jan 2007 19:18:18 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id DF46C4880B; Sun, 14 Jan 2007 20:18:16 +0100 (CET) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 665CC487F0; Sun, 14 Jan 2007 20:18:11 +0100 (CET) Date: Sun, 14 Jan 2007 20:17:27 +0100 From: Pawel Jakub Dawidek To: Attila Nagy Message-ID: <20070114191727.GM90718@garage.freebsd.pl> References: <45A0229F.7070701@fsn.hu> <45a03a95.08FguubdCa9DFcxj%perryh@pluto.rain.com> <45A0DD27.4020704@fsn.hu> <20070111010149.GA2704@xor.obsecurity.org> <45A76480.6010108@fsn.hu> <20070112190655.GC90718@garage.freebsd.pl> <45AA73DC.6090808@fsn.hu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oiL9LJXJsdjS5rzq" Content-Disposition: inline In-Reply-To: <45AA73DC.6090808@fsn.hu> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-hackers@freebsd.org, perryh@pluto.rain.com, Kris Kennaway Subject: Re: ufs_rename: fvp == tvp (can't happen), but it did 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, 14 Jan 2007 19:18:19 -0000 --oiL9LJXJsdjS5rzq Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 14, 2007 at 07:18:04PM +0100, Attila Nagy wrote: > On 2007.01.12. 20:06, Pawel Jakub Dawidek wrote: > >Silent data corruptions happens, look for example at the "problem with > >4T volume under FreeBSD" thread on current@. > > > >I'd suggest configuring geli with data authentication on top of the FC > >array. geli will detect silent data corruptions. > > =20 > Data corruption was the first thing, which came into my mind, I am curren= tly trying to reproduce this on another machine. geli's data authentication= is a good thing, but=20 > ZFS's ability to actually correct the errors (in this case, at least) is = even more better. :) >=20 > Is there a newer patch for ZFS than this: http://people.freebsd.org/~pjd/= patches/zfs_20061117.patch.bz2 ? > I as far as I can see, you've put a tremendous amount of work into it in = perforce... There is no newer patch yet. It's quite time consuming to create such a patch, test it, etc. so I'm trying to avoid doing it:) --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --oiL9LJXJsdjS5rzq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFqoHHForvXbEpPzQRArGfAJ9oKiTmch6Cso1LS/ECK7QwiGHoPQCg95nq U9+JZbaBFrR2kRiGUCBAE+I= =RSSQ -----END PGP SIGNATURE----- --oiL9LJXJsdjS5rzq-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 12 18:38: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 D605016A407 for ; Fri, 12 Jan 2007 18:38:09 +0000 (UTC) (envelope-from patrick_dkt@yahoo.com.hk) Received: from web54310.mail.yahoo.com (web54310.mail.yahoo.com [206.190.49.120]) by mx1.freebsd.org (Postfix) with SMTP id 5F2DC13C441 for ; Fri, 12 Jan 2007 18:38:09 +0000 (UTC) (envelope-from patrick_dkt@yahoo.com.hk) Received: (qmail 8827 invoked by uid 60001); 12 Jan 2007 18:11:26 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.hk; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Uikhz88nM4uq4f6cRG2jUUt+HvdgUfA/9xqV3FJx/PYPuGK0ynxCMzMhWLZ83JyFBsvjk+VMf0yvzhkXT8Iev5bnyUtUAz2Qx+rEkPfQpqCEIU1itqB8wBlWGv6xYOMuJIk1XNRZNc/0MPugcD9WqNJJxaJpAi5lz2lUHKwaAHo=; X-YMail-OSG: _d1zrsoVM1lT9J8UZJ.LvKxOt4AItGm6IJouuez6shlXUICxZn3hAi5104YYkZ1HGU3ZpSGjpGN4wker0C8VxGwYfKJdF0VYC4kxi5WjEYyN.BEACo62_TuMPUxb9mE.QFRFqz05XSDT7rzUUYWkeEWwj0iwk2wZIIkK7fiN.TdJ8YEPhdQEIYPe Received: from [202.134.67.165] by web54310.mail.yahoo.com via HTTP; Fri, 12 Jan 2007 10:11:26 PST Date: Fri, 12 Jan 2007 10:11:26 -0800 (PST) From: Patrick Dung To: Nikos Vassiliadis , freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org In-Reply-To: <200701121721.51917.nvass@teledomenet.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <820695.8033.qm@web54310.mail.yahoo.com> X-Mailman-Approved-At: Mon, 15 Jan 2007 00:42:56 +0000 Cc: Patrick Dung Subject: Re: How to clear strage route in routing table? 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, 12 Jan 2007 18:38:09 -0000 Thanks Nikos for reply I have figure out how to remove that route It was consider 192.168.3.0 as host instead of net [root@fbsd2 ~]# route add 192.168.3.0 255.255.255.0 192.168.3.1 add net 192.168.3.0: gateway 255.255.255.0 [root@fbsd2 ~]# route delete -net 192.168.3.0 route: writing to routing socket: No such process delete net 192.168.3.0: not in table [root@fbsd2 ~]# route delete -host 192.168.3.0 delete host 192.168.3.0 --- Nikos Vassiliadis wrote: > On Thursday 11 January 2007 19:01, Patrick Dung wrote: > > Hi > > > > Suppose I have mistype a command: > > # route add 192.168.3.0 255.255.255.0 192.168.3.1 > > > > There is a strange routing table and I am unable to remove it > unless > > reboot: > > > > 192.168.0&0xc0a80301 255.255.255.0 UGS 0 86 > fxp0 > > > > Any ideas? > > Use "route flush". And add your static routes again > either by hand or with the help of "/etc/rc.d/routing start" > > Nikos > ____________________________________________________________________________________ TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.com/ From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 12 21:40:36 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 4BED016A40F; Fri, 12 Jan 2007 21:40:36 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id C8CA413C455; Fri, 12 Jan 2007 21:40:35 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.samsco.home (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id l0CKxJb0031877; Fri, 12 Jan 2007 13:59:24 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <45A7F6A4.4030707@samsco.org> Date: Fri, 12 Jan 2007 13:59:16 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.2pre) Gecko/20061227 SeaMonkey/1.1 MIME-Version: 1.0 To: Wilko Bulte References: <20070112195549.GA77181@freebie.xs4all.nl> In-Reply-To: <20070112195549.GA77181@freebie.xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (pooker.samsco.org [168.103.85.57]); Fri, 12 Jan 2007 13:59:24 -0700 (MST) X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org X-Mailman-Approved-At: Mon, 15 Jan 2007 00:46:11 +0000 Cc: freebsd-scsi@freebsd.org, Pawel Jakub Dawidek , freebsd-hackers@freebsd.org Subject: Re: iSCSI disconnects dilema 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, 12 Jan 2007 21:40:36 -0000 Wilko Bulte wrote: > On Fri, Jan 12, 2007 at 09:31:04PM +0200, Danny Braniss wrote.. >>> --s/l3CgOIzMHHjg/5 >>> Content-Type: text/plain; charset=iso-8859-2 >>> Content-Disposition: inline >>> Content-Transfer-Encoding: quoted-printable >>> >>> On Tue, Jan 09, 2007 at 09:06:46AM +0200, Danny Braniss wrote: >>>> Hi, >>>> While I think I have almost solved the problem of network disconnects, >>>> It downed on me a major problem: >>>> When a 'local' disk crashes, the kernel will probably hang/panic/crash. >>>> if i don't try to recover, then there is no change in the above scenario. >>>> if i try to recover, then the client does not know that it should >>>> umount/fsck/mount. >>>> While all this seems familiar, removing a floppy/disk-on-key while it's >>>> mounted, we could always say "you shouldn't have done that!", with >>>> a network connection, it can happen very often - rebooting the target, a >>>> network hickup, etc. >>>> =20 >>>> So, any ideas? >>> In my opinion it should be done this way: >>> >>> You have a queue of I/O requests. You send the to the other end and wait >>> for confirmation. Until confirmation is received, you keep the requests >>> queued. If the other end dies, you try to reconnect (until some timeout >>> expires, the processes which send those requests will just wait), if you >>> reconnect successfully, you resend not-confirmed requests, if you won't >>> be able to reconnect, you just pass the errors up. >>> >>> This is what I did in ggate and it seems to work. >> That is basically what i'm doing - unacked request get requed. >> the problem I fear (and maybe I'm paranoid :-): > > Paranoia is a Good Thing(TM) in data storage land :-) > >> assume the following scenario, the client(initiator) sends a write command, >> the target acks it, then it crashes, if the write was never completed, >> the initiator goes on as nothing ever happened. > > Yes, but what can the initiator do about that? I mean, it does not have any > visibility of what the target has (or has not) done with the data. ' > > This is roughly the same as a RAID box accepting a write into a writeback cache > and ACK-ing to the host. You can only assume that the RAID box' cache > will get flushed to the spindles properly. All the usual horror scenarios > with a broken battery backup of the cache and a powerfailure etc apply here. > > Wilko > I forget, does iSCSI have a concept of a flush_cache command, or the equivalent of what parallel SCSI does with ordered tags? If so, then that's how your app or OS knows that the transaction got committed to stable storage. It's been long assumed in the external storage world that you are at the mercy of the external storage cache, so the problem that Danny is referring to is nothing new. The real question is how to implement the equivalent mechanism that iSCSI provides in a way that the OS/app can make use of it. For example, CAM issues an ordered tag periodically to flush the disk cache to stable storage. Most storage drivers, including CAM, will issue some sort of a flush_cache command to the controller and media during system shutdown. Scott From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 13 17:42: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 993FD16A412; Sat, 13 Jan 2007 17:42:56 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id 200CC13C459; Sat, 13 Jan 2007 17:42:56 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.samsco.home (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id l0DHgSel038730; Sat, 13 Jan 2007 10:42:33 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <45A91A02.906@samsco.org> Date: Sat, 13 Jan 2007 10:42:26 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.2pre) Gecko/20061227 SeaMonkey/1.1 MIME-Version: 1.0 To: Danny Braniss References: <20070112195549.GA77181@freebie.xs4all.nl> <45A7F6A4.4030707@samsco.org> In-Reply-To: X-Enigmail-Version: 0.94.1.2 X-Enigmail-Version: 0.94.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (pooker.samsco.org [168.103.85.57]); Sat, 13 Jan 2007 10:42:33 -0700 (MST) X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org X-Mailman-Approved-At: Mon, 15 Jan 2007 00:52:57 +0000 Cc: Wilko Bulte , Pawel Jakub Dawidek , freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: iSCSI disconnects dilema 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, 13 Jan 2007 17:42:56 -0000 Danny Braniss wrote: >> I forget, does iSCSI have a concept of a flush_cache command, or the >> equivalent of what parallel SCSI does with ordered tags? > > not realy - or I can't find it. iSCSI is mainly and envelope for > scsi commands, so whatever the CAM does, it will pass it on. > There are some managemenet commands, so the target can tell the initiator > that it's going down for example (and what should the driver > do in such a case in freebsd?) > If the periph is open (i.e. mounted), I'd just ignore this and have the stack go through a normal retry timeout cycle to see if the device comes back. If it's closed, then I'd remove the periph. Knowing if it's opened or closed is likely hard to do from the iSCSI driver, which is one reason why iSCSI knowledge needs to eventually be moved upwards in CAM. >> If so, then >> that's how your app or OS knows that the transaction got committed to >> stable storage. It's been long assumed in the external storage world >> that you are at the mercy of the external storage cache, so the problem >> that Danny is referring to is nothing new. The real question is how >> to implement the equivalent mechanism that iSCSI provides in a way that >> the OS/app can make use of it. For example, CAM issues an ordered tag >> periodically to flush the disk cache to stable storage. > nice, (or wishful thinking :-), the scsi part of iSCSI is/can be > software/virtual. > If the target device returns a successful completion from a command, the initiator must assume that it's not lying. You could do a flush/sync cache command after every I/O, but then you'd have a completely unacceptable level of performance. But again, this is not a new problem specific to iSCSI. It's long been a design consideration of external storage, and is why external storage 1) carries a high price tag to accompany good engineering and testing, and 2) comes with some form of battery backup, to prevent data loss in case of power loss. >> Most storage >> drivers, including CAM, will issue some sort of a flush_cache command to >> the controller and media during system shutdown. > > this took me a long time to fix! the userland program got killed at shutdown, > the link was lost, and so there was no way to flush buffers, fixed by calling > fget(...) too. > > I guess I can summarize: (and use the 3 monkey law :-) > 1- assume the target is 'well behaved' and will flush cache. > 2- there is - currently - no way to tell the OS that not all > seems to be as expected. > 3- keep quiet and hope for the best. > danny > > So you had a scenario where a program was doing I/O right up to system (initiator) shutdown, and some of those I/O's got lost in the process? I guess I don't understand why the OS didn't flush all outstanding I/O buffers after terminating the program and before finishing the shutdown. Maybe you are doing something illegal in your driver, or maybe you need to implement a kernel shutdown hook that will allow you to block the shutdown until everything is flushed. Scott From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 14 08:00: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 43AFC16A47E for ; Sun, 14 Jan 2007 08:00:24 +0000 (UTC) (envelope-from sfourman@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 8130413C448 for ; Sun, 14 Jan 2007 08:00:23 +0000 (UTC) (envelope-from sfourman@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so1691431nfc for ; Sun, 14 Jan 2007 00:00:22 -0800 (PST) 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=i6DGmSeSQ8CijiCHyzR+Bact0FSol5bbqLDJIlCgTYPIIuR47ZQ5hhbd9arImq+ifXrELnaxNy3iotCwK13xGgpamTxyyD+Bwca7OaN0WzAcqDyEKPuZmc7Gw+IyvpzCByZKiTOjBYK75Vo0Ssv6V7Y8jt6lmq9gRHiq9Kts5UA= Received: by 10.78.204.20 with SMTP id b20mr1672911hug.1168759966013; Sat, 13 Jan 2007 23:32:46 -0800 (PST) Received: by 10.78.135.9 with HTTP; Sat, 13 Jan 2007 23:32:45 -0800 (PST) Message-ID: <11167f520701132332o58e2544ega565fafbccebeae9@mail.gmail.com> Date: Sun, 14 Jan 2007 01:32:45 -0600 From: "Sam Fourman Jr." To: "Joel Dahl" In-Reply-To: <1168187999.1124.4.camel@jesus.automatvapen.se> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <459E6477.2010508@clearchain.com> <200701051634.00293.max@love2party.net> <459E75A5.7000309@FreeBSD.org> <200701051732.27176.max@love2party.net> <45A0F739.3030202@clearchain.com> <1168187999.1124.4.camel@jesus.automatvapen.se> X-Mailman-Approved-At: Mon, 15 Jan 2007 00:54:32 +0000 Cc: Massimo Lusetti , Benjamin Close , gavin.atkinson@ury.york.ac.uk, Florent Thoumie , freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org, Attilio Rao , damien.bergamini@free.fr, sam@freebsd.org, gabor@freebsd.org, Max Laier Subject: Re: Updated Driver for 3945ABG Intel 3945ABG Wireless LAN controller 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, 14 Jan 2007 08:00:24 -0000 Hello everyone, I have a Lenovo N 100 0768 DKU notebook with a 3945 wireless card installed I just installed the FreeBSD 6.2 Realese on it, What instructions do I have to follow to compile and install the Driver so I may test it for everyone? Thank you for any help at all Sam Fourman Jr, On 1/7/07, Joel Dahl wrote: > M=E5n 2007-01-08 klockan 00:05 +1030 skrev Benjamin Close: > > Hi Folks, > > I did the port as my searching led me to believe that progress on a > > driver had stagnated. > > Port 1: was done by Damien himself > > (http://lists.freebsd.org/pipermail/freebsd-mobile/2006-July/008768.htm= l) > > Port 2: was an updated version by Daminen: > > http://osdir.com/ml/freebsd-hackers@freebsd.org/msg58154.html > > which seems to be duplicated here: > > http://people.freebsd.org/~flz/local/wpi/ > > (http://www.mail-archive.com/freebsd-net@freebsd.org/msg20710.html) > > With version 2 being minor bug fixes to version 1 to try and get it > > working. Since then the driver has come a long way in netbsd with the > > FreeBSD version just getting older. > > > > To others working on a wpi driver, please post something indicating wha= t > > you've done and even a sample of what your up to so we can one build on= e > > driver that just works. I also did the driver port as everything I foun= d > > failed to work on a 64bit kernel, most the time wouldn't even compile. > > Gavin Atkinson (CC'ed) is AFAIK also working on wpi(4) for FreeBSD, > according to his announcement on net@: > http://lists.freebsd.org/pipermail/freebsd-net/2006-December/012808.html > > -- > Joel > > _______________________________________________ > 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 Sun Jan 14 17:10: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 4716D16A407 for ; Sun, 14 Jan 2007 17:10:53 +0000 (UTC) (envelope-from fmail_girish@yahoo.com) Received: from web62001.mail.re1.yahoo.com (web62001.mail.re1.yahoo.com [69.147.74.224]) by mx1.freebsd.org (Postfix) with SMTP id DDDD013C441 for ; Sun, 14 Jan 2007 17:10:52 +0000 (UTC) (envelope-from fmail_girish@yahoo.com) Received: (qmail 43479 invoked by uid 60001); 14 Jan 2007 16:44:11 -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=2mJrsozuqqtnLE88gvD7iDTzPasevN2jlbRblGzrzsgrnx5tUyV0YlSKxmkuVZd/eDhX27u9xIol3+AouHS9yj77Vu2WOE6xfuCq+htFTqbDsHH1Sfu+9rA+70XVrW3kG2GqxAgqv/xL5LN+GCRwdQJ51OsJDlHgyazHaUkWi+c=; X-YMail-OSG: ruQhPwoVM1ng8hjtCadfjWlfwHiZo4CBAPZIP5vFJ8E.ek5ABjllW_XuI5FJhieI8wtZVBRCnoZClUrbsEu1fkF.SbC5dNCmvYw1R7NkUhfnp5_fCE9UGUbeKbLSI7A- Received: from [125.23.25.233] by web62001.mail.re1.yahoo.com via HTTP; Sun, 14 Jan 2007 08:44:11 PST Date: Sun, 14 Jan 2007 08:44:11 -0800 (PST) From: girish r To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <628825.38045.qm@web62001.mail.re1.yahoo.com> X-Mailman-Approved-At: Mon, 15 Jan 2007 00:58:37 +0000 Subject: semaphore.h does'nt include fcntl.h ? 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, 14 Jan 2007 17:10:53 -0000 Hello folks, I am trying to use sem_open(3) but gcc complains that O_CREAT and O_EXCL is undeclared. According to the man page only semaphore.h needs to be included. But including fcntl.h solves the problem. sem_t *lock = sem_open("example_lock", O_CREAT | O_EXCL, 0600, 1); Another thing, a program with the above function call compiles but when I execute it, it spits out "Bad system call (core dump)". Specifically, I am trying to run this program given here: "http://www.informit.com/articles/article.asp?p=679545&seqNum=3&rl=1". Thanks for your time. --girish ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 01:41: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 6CB0A16A416 for ; Mon, 15 Jan 2007 01:41:42 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 337B413C455 for ; Mon, 15 Jan 2007 01:41:42 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id l0F1ffMm065542; Sun, 14 Jan 2007 19:41:41 -0600 (CST) (envelope-from dan) Date: Sun, 14 Jan 2007 19:41:41 -0600 From: Dan Nelson To: girish r Message-ID: <20070115014141.GG46272@dan.emsphone.com> References: <628825.38045.qm@web62001.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <628825.38045.qm@web62001.mail.re1.yahoo.com> X-OS: FreeBSD 6.2-PRERELEASE User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-hackers@freebsd.org Subject: Re: semaphore.h does'nt include fcntl.h ? 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, 15 Jan 2007 01:41:42 -0000 In the last episode (Jan 14), girish r said: > I am trying to use sem_open(3) but gcc complains that O_CREAT and > O_EXCL is undeclared. According to the man page only semaphore.h > needs to be included. But including fcntl.h solves the problem. Looks like a semaphore.h needs to define O_CREAT and O_EXCL (just having it include fcntl.h looks to be okay according to http://www.opengroup.org/onlinepubs/009695399/basedefs/semaphore.h.html ) > sem_t *lock = sem_open("example_lock", O_CREAT | O_EXCL, 0600, 1); > Another thing, a program with the above function call compiles but > when I execute it, it spits out "Bad system call (core dump)". > Specifically, I am trying to run this program given here: > "http://www.informit.com/articles/article.asp?p=679545&seqNum=3&rl=1". You'll need to include "options P1003_1B_SEMAPHORES" in your kernel config, or load the "sem" kernel module. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 01:42:27 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 A26A616A49E for ; Mon, 15 Jan 2007 01:42:27 +0000 (UTC) (envelope-from kmacy@fsmware.com) Received: from demos.bsdclusters.com (demos.bsdclusters.com [69.55.225.36]) by mx1.freebsd.org (Postfix) with ESMTP id 83E6713C474 for ; Mon, 15 Jan 2007 01:42:27 +0000 (UTC) (envelope-from kmacy@fsmware.com) Received: from demos.bsdclusters.com (demos [69.55.225.36]) by demos.bsdclusters.com (8.12.8p1/8.12.8) with ESMTP id l0F14rL6042628; Sun, 14 Jan 2007 17:04:53 -0800 (PST) (envelope-from kmacy@fsmware.com) Received: from localhost (kmacy@localhost) by demos.bsdclusters.com (8.12.8p1/8.12.8/Submit) with ESMTP id l0F14ri9042625; Sun, 14 Jan 2007 17:04:53 -0800 (PST) X-Authentication-Warning: demos.bsdclusters.com: kmacy owned process doing -bs Date: Sun, 14 Jan 2007 17:04:53 -0800 (PST) From: Kip Macy X-X-Sender: kmacy@demos.bsdclusters.com To: girish r In-Reply-To: <628825.38045.qm@web62001.mail.re1.yahoo.com> Message-ID: <20070114170439.B29422@demos.bsdclusters.com> References: <628825.38045.qm@web62001.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Mailman-Approved-At: Mon, 15 Jan 2007 02:07:45 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: semaphore.h does'nt include fcntl.h ? 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, 15 Jan 2007 01:42:27 -0000 Do you have SysV IPC support in your kernel? -Kip On Sun, 14 Jan 2007, girish r wrote: > Hello folks, > > I am trying to use sem_open(3) but gcc complains that > O_CREAT and O_EXCL is undeclared. According to the man > page only semaphore.h needs to be included. But > including fcntl.h solves the problem. > > sem_t *lock = sem_open("example_lock", O_CREAT | > O_EXCL, 0600, 1); > Another thing, a program with the above function call > compiles but when I execute it, it spits out "Bad > system call (core dump)". Specifically, I am trying to > run this program given here: > "http://www.informit.com/articles/article.asp?p=679545&seqNum=3&rl=1". > > Thanks for your time. > > --girish > > > > ____________________________________________________________________________________ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail beta. > http://new.mail.yahoo.com > _______________________________________________ > 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 Mon Jan 15 11:22: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 BBE9D16A40F for ; Mon, 15 Jan 2007 11:22:42 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id 333F113C471 for ; Mon, 15 Jan 2007 11:22:41 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1194798uge for ; Mon, 15 Jan 2007 03:22:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=rMo57ywi5lsz9nG/LzWR6E+ExGcw78+pKCBbXKkteheNync0g+6m0x2XZiSGDBtltUlhYkSwNcj+IJYFPNchyCeUP6eye8IlQQTjGiqWtLWLzF7ctCGt0gEKfUisv+Cdw4djkgTYQC3YCNeamC313swMnDPuO9v0L8VHjGJ0JL8= Received: by 10.67.21.11 with SMTP id y11mr5250992ugi.1168860160233; Mon, 15 Jan 2007 03:22:40 -0800 (PST) Received: by 10.67.23.8 with HTTP; Mon, 15 Jan 2007 03:22:40 -0800 (PST) Message-ID: Date: Mon, 15 Jan 2007 12:22:40 +0100 From: "Pietro Cerutti" To: freebsd-stable@freebsd.org, 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 Cc: Subject: atacontrol kernel crash (atausb?) 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, 15 Jan 2007 11:22:42 -0000 Hello, this is a reproducible kernel page-fault crash on stable as of 1h ago: FreeBSD gahrtop.localhost 6.2-STABLE FreeBSD 6.2-STABLE #4: Mon Jan 15 11:24:56 CET 2007 root@gahrtop.localhost:/usr/obj/usr/src/sys/GAHRTOP i386 1) atacontrol list ATA channel 0: Master: ad0 Serial ATA v1.0 Slave: no device present ATA channel 1: Master: no device present Slave: acd0 ATA/ATAPI revision 5 2) -> plug in USB stick (microspot 256MB USB2.0) 3) atacontrol list ATA channel 0: Master: ad0 Serial ATA v1.0 Slave: no device present ATA channel 1: Master: no device present Slave: acd0 ATA/ATAPI revision 5 ATA channel 2: Master: no device present Slave: no device present 4) atacontrol attach ata2 Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x24 fault code = supervisor read, page not present instruction pointer = 0x20:0xc050d8fa stack pointer = 0x28:0xe8fd2bb8 frame pointer = 0x28:0xe8fd2bb8 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 900 (atacontrol) trap number = 12 panic: page fault cpuid = 0 Uptime = 5m46s Physical memory: 2031 MB Dumping 63 MB: at this point nothing more appens. I have set debug.minidump=1 so maybe this could be the cause for the RAM not to be dumped. Furthermore, I read " The atacontrol utility can cause severe system crashes and loss of data if used improperly. Please exercise caution when using this command! " from the atacontrol(8) manual page, so maybe it's just me doing something wrong. If it's the case, how can I scan for the just-plugged-in USB disk using the atausb driver? No device appears in /dev last one: why atausb doesn't have a manual page?? Thanx, -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 12:32: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 C983D16A40F for ; Mon, 15 Jan 2007 12:32:17 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 0DA7913C442 for ; Mon, 15 Jan 2007 12:32:16 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe02.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 386144402; Mon, 15 Jan 2007 13:32:11 +0100 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Mon, 15 Jan 2007 13:31:45 +0100 User-Agent: KMail/1.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701151331.47185.hselasky@c2i.net> Cc: freebsd-stable@freebsd.org, Pietro Cerutti Subject: Re: atacontrol kernel crash (atausb?) 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, 15 Jan 2007 12:32:17 -0000 On Monday 15 January 2007 12:22, Pietro Cerutti wrote: > Hello, > this is a reproducible kernel page-fault crash on stable as of 1h ago: > > FreeBSD gahrtop.localhost 6.2-STABLE FreeBSD 6.2-STABLE #4: Mon Jan 15 > 11:24:56 CET 2007 > root@gahrtop.localhost:/usr/obj/usr/src/sys/GAHRTOP i386 > > 1) atacontrol list > ATA channel 0: > Master: ad0 Serial ATA v1.0 > Slave: no device present > ATA channel 1: > Master: no device present > Slave: acd0 ATA/ATAPI revision 5 > > 2) -> plug in USB stick (microspot 256MB USB2.0) > > 3) atacontrol list > ATA channel 0: > Master: ad0 Serial ATA v1.0 > Slave: no device present > ATA channel 1: > Master: no device present > Slave: acd0 ATA/ATAPI revision 5 > ATA channel 2: > Master: no device present > Slave: no device present > > 4) atacontrol attach ata2 This is a known issue that SOS should fix. If you look into the code of "ata_attach()" you will see that it tries to do things that are not allowed by USB devices, like allocating an IRQ: int ata_attach(device_t dev) { struct ata_channel *ch = device_get_softc(dev); int error, rid; /* check that we have a virgin channel to attach */ if (ch->r_irq) return EEXIST; /* initialize the softc basics */ ch->dev = dev; ch->state = ATA_IDLE; bzero(&ch->state_mtx, sizeof(struct mtx)); mtx_init(&ch->state_mtx, "ATA state lock", NULL, MTX_DEF); bzero(&ch->queue_mtx, sizeof(struct mtx)); mtx_init(&ch->queue_mtx, "ATA queue lock", NULL, MTX_DEF); TAILQ_INIT(&ch->ata_queue); /* reset the controller HW, the channel and device(s) */ while (ATA_LOCKING(dev, ATA_LF_LOCK) != ch->unit) tsleep(&error, PRIBIO, "ataatch", 1); ATA_RESET(dev); ATA_LOCKING(dev, ATA_LF_UNLOCK); /* setup interrupt delivery */ rid = ATA_IRQ_RID; ch->r_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE); if (!ch->r_irq) { device_printf(dev, "unable to allocate interrupt\n"); return ENXIO; } if ((error = bus_setup_intr(dev, ch->r_irq, ATA_INTR_FLAGS, (driver_intr_t *)ata_interrupt, ch, &ch->ih))) { device_printf(dev, "unable to setup interrupt\n"); return error; } /* probe and attach devices on this channel unless we are in early boot */ if (!ata_delayed_attach) ata_identify(dev); return 0; } Same with "ata_detach()". > > last one: why atausb doesn't have a manual page?? Probably the device driver is too new. --HPS From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 11:33:04 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 E083916A492 for ; Mon, 15 Jan 2007 11:33:04 +0000 (UTC) (envelope-from fmail_girish@yahoo.com) Received: from web62008.mail.re1.yahoo.com (web62008.mail.re1.yahoo.com [69.147.74.231]) by mx1.freebsd.org (Postfix) with SMTP id 7D45C13C474 for ; Mon, 15 Jan 2007 11:33:04 +0000 (UTC) (envelope-from fmail_girish@yahoo.com) Received: (qmail 41216 invoked by uid 60001); 15 Jan 2007 11:33:03 -0000 Message-ID: <20070115113303.41214.qmail@web62008.mail.re1.yahoo.com> 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=I9d/2bJtQYvZYuUYzZsRsU8RMk9kAZRGgMXNFQxo6LNOxmx88JiTzNb6yF21yBznWcWukRT7Oz2Osjj4gSTXw/YcSs1QfI/IJSjTI8a3dQ9Lta0qemR/uhIA9lMASzaoctMc/aQ82EZjTJKulFbXOgA/JspmD0MVHdJyhD9ecuM=; X-YMail-OSG: uKRs77MVM1lnvk6AKxa_MVcw02uWLuWQqqgmvPTbwQj4Ldo.8tpp6Vf5V436rf7DQm7FWFmiAuZbs7khuz_SWaz_eju6HwziCr5FEywUBMKDM.pTnpdNYqajyuyqFw-- Received: from [125.23.25.233] by web62008.mail.re1.yahoo.com via HTTP; Mon, 15 Jan 2007 03:33:03 PST Date: Mon, 15 Jan 2007 03:33:03 -0800 (PST) From: girish r To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 15 Jan 2007 13:11:42 +0000 Subject: semaphore.h does'nt include fcntl.h ? 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, 15 Jan 2007 11:33:05 -0000 > Do you have SysV IPC support in your kernel? > -Kip > You'll need to include "options P1003_1B_SEMAPHORES" in your kernel > config, or load the "sem" kernel module. > --Dan Nelson Thanks, that was it! ____________________________________________________________________________________ Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 14:37: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 900C216A40F for ; Mon, 15 Jan 2007 14:37:50 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 271C313C4C8 for ; Mon, 15 Jan 2007 14:37:47 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1236621uge for ; Mon, 15 Jan 2007 06:37:47 -0800 (PST) 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=lifL3lzNI1qwgeBRKy2dYJDVDEaWUtb4z6Ai7uekEI2tJbXhB5xt+6G7roy8f5kmRt745cUTcr9xwUDh0k/GzH10xe8iv9lF5T3sfkfU562TGvv/zB19Ram4TkqQpPdnzGKK448yXHKIWvjMKhznngFeuKUYYOqOAVq58k0zvv4= Received: by 10.67.21.11 with SMTP id y11mr5483697ugi.1168871866151; Mon, 15 Jan 2007 06:37:46 -0800 (PST) Received: by 10.67.23.8 with HTTP; Mon, 15 Jan 2007 06:37:45 -0800 (PST) Message-ID: Date: Mon, 15 Jan 2007 15:37:45 +0100 From: "Pietro Cerutti" To: "Hans Petter Selasky" In-Reply-To: <200701151331.47185.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200701151331.47185.hselasky@c2i.net> Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Re: atacontrol kernel crash (atausb?) 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, 15 Jan 2007 14:37:50 -0000 On 1/15/07, Hans Petter Selasky wrote: > > last one: why atausb doesn't have a manual page?? > > Probably the device driver is too new. Maybe we should adopt the OpenBSD's "everything not documented is a bug" philosophy, don't you think? So, anyone knows how to use atausb? Thanx, > > --HPS > -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 14:55: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 9CEE616A407 for ; Mon, 15 Jan 2007 14:55:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.swip.net [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 0E85E13C465 for ; Mon, 15 Jan 2007 14:55:32 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe13.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 214883430; Mon, 15 Jan 2007 15:55:31 +0100 From: Hans Petter Selasky To: "Pietro Cerutti" Date: Mon, 15 Jan 2007 15:55:06 +0100 User-Agent: KMail/1.7 References: <200701151331.47185.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701151555.07155.hselasky@c2i.net> Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Re: atacontrol kernel crash (atausb?) 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, 15 Jan 2007 14:55:33 -0000 On Monday 15 January 2007 15:37, Pietro Cerutti wrote: > On 1/15/07, Hans Petter Selasky wrote: > > > last one: why atausb doesn't have a manual page?? > > > > Probably the device driver is too new. > > Maybe we should adopt the OpenBSD's "everything not documented is a > bug" philosophy, don't you think? > > So, anyone knows how to use atausb? It is just plug and play. If you don't get any new USB devices like /dev/adXX after that you plug the device, then maybe there is something wrong or the protocol used is not supported by atausb. PS: You maybe want to try out my new and rewritten USB stack + atausb: # # How to get the latest sources: (you need subversion installed) # svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b # # The following commands will # install the driver on FreeBSD: # cd i4b/trunk/i4b/FreeBSD.usb make S=../src package make install # # Then build a new kernel. # --HPS From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 15:54: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 2957C16A415 for ; Mon, 15 Jan 2007 15:54:55 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id B51E713C467 for ; Mon, 15 Jan 2007 15:54:54 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1255468uge for ; Mon, 15 Jan 2007 07:54:53 -0800 (PST) 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=mCyTk6fUr6MjQOWJVzJZXmBGM/mVobEu7hGyP4K0/EyWqsidzqwvS876nT87MQILEyIzo72Aeet9DNRUfIWaG+o/32lp4QAIslrfycO5tDa9Jl8048XVx1AaiySrr8ZynZXzrVa1OBN86Ic9Mspjvv8m+v33lgW9JGhKEQZRPfY= Received: by 10.67.21.11 with SMTP id y11mr5601325ugi.1168876493259; Mon, 15 Jan 2007 07:54:53 -0800 (PST) Received: by 10.67.23.8 with HTTP; Mon, 15 Jan 2007 07:54:52 -0800 (PST) Message-ID: Date: Mon, 15 Jan 2007 16:54:52 +0100 From: "Pietro Cerutti" To: "Hans Petter Selasky" In-Reply-To: <200701151555.07155.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200701151331.47185.hselasky@c2i.net> <200701151555.07155.hselasky@c2i.net> Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Re: atacontrol kernel crash (atausb?) 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, 15 Jan 2007 15:54:55 -0000 On 1/15/07, Hans Petter Selasky wrote: > It is just plug and play. If you don't get any new USB devices like /dev/adXX > after that you plug the device, then maybe there is something wrong or the > protocol used is not supported by atausb. This is the only thing showing on the console: atausb0: using SCSI over Bulk-Only ata2: on atausb0 Can you see anything wrong with it? > > PS: You maybe want to try out my new and rewritten USB stack + atausb: Tried, nothing changed... what functionality is your patch supposed to add? -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 16:16: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 1029216A587; Mon, 15 Jan 2007 16:16:50 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.swip.net [212.247.155.1]) by mx1.freebsd.org (Postfix) with ESMTP id D39DF13C468; Mon, 15 Jan 2007 16:16:46 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe09.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 214875279; Mon, 15 Jan 2007 17:16:44 +0100 From: Hans Petter Selasky To: "Pietro Cerutti" Date: Mon, 15 Jan 2007 17:16:18 +0100 User-Agent: KMail/1.7 References: <200701151555.07155.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701151716.20094.hselasky@c2i.net> Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Re: atacontrol kernel crash (atausb?) 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, 15 Jan 2007 16:16:50 -0000 On Monday 15 January 2007 16:54, Pietro Cerutti wrote: > On 1/15/07, Hans Petter Selasky wrote: > > It is just plug and play. If you don't get any new USB devices like > > /dev/adXX after that you plug the device, then maybe there is something > > wrong or the protocol used is not supported by atausb. > > This is the only thing showing on the console: > > atausb0: using SCSI over Bulk-Only > ata2: on atausb0 > > Can you see anything wrong with it? No. What happens when you use/load "umass" and unload "atausb" ? > > > PS: You maybe want to try out my new and rewritten USB stack + atausb: > > Tried, nothing changed... what functionality is your patch supposed to add? No new functionality with regard to atausb. --HPS From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 16:24: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 4937A16A40F for ; Mon, 15 Jan 2007 16:24:57 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id D2D4713C428 for ; Mon, 15 Jan 2007 16:24:56 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1263157uge for ; Mon, 15 Jan 2007 08:24:55 -0800 (PST) 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=XfHmowYtSNvAMUOswKwqm6D9Tt7vDx4GHEmJwUDyv5AuRF7PACkCly/bPzXtPEy7JXwMbWLSK61c8lQHuRFwg9YZ/VJvQQxEtk3VkoMbCT7QB2+0jOCAINm7mWYECry2cI59w+iFp//ck+rW13gfh7AEOyQbnL8sh4N9/79XoLY= Received: by 10.66.232.9 with SMTP id e9mr5644928ugh.1168878295164; Mon, 15 Jan 2007 08:24:55 -0800 (PST) Received: by 10.67.23.8 with HTTP; Mon, 15 Jan 2007 08:24:55 -0800 (PST) Message-ID: Date: Mon, 15 Jan 2007 17:24:55 +0100 From: "Pietro Cerutti" To: "Hans Petter Selasky" , freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org In-Reply-To: <200701151716.20094.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200701151555.07155.hselasky@c2i.net> <200701151716.20094.hselasky@c2i.net> Cc: Subject: Re: atacontrol kernel crash (atausb?) 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, 15 Jan 2007 16:24:57 -0000 On 1/15/07, Hans Petter Selasky wrote: > > No. What happens when you use/load "umass" and unload "atausb" ? Everything works nice with umass. It creates the da0 device node. It just shows up these errors, as it always did... GEOM: new disk da0 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB2.0 FlashDisk 1.1b> Removable Direct Access SCSI-0 device da0: Serial Number da0: 40.000MB/s transfers da0: 248MB (507904 512 byte sectors: 64H 32S/T 248C) (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 > --HPS > -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 18:50:23 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 3CBE416A492 for ; Mon, 15 Jan 2007 18:50:23 +0000 (UTC) (envelope-from fmail_girish@yahoo.com) Received: from web62010.mail.re1.yahoo.com (web62010.mail.re1.yahoo.com [69.147.74.233]) by mx1.freebsd.org (Postfix) with SMTP id 3DA8A13C467 for ; Mon, 15 Jan 2007 18:50:21 +0000 (UTC) (envelope-from fmail_girish@yahoo.com) Received: (qmail 34379 invoked by uid 60001); 15 Jan 2007 18:50:21 -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=JzdYTaWkDIK9Q9s9lju83/j9MwIpJSZ33KbJNqpzlvuz49N4HtzARM7drwtzJQ3KEpGT1QfHd0O6RJ/DIxKY2uJ3kEnxmjbTW2M1mQ4SD6TrvHJDLeb8lla/NzeYYnzHipQ6MOV00RbHmIuB3CH9HVQW42MyPFIcn9m3KOZThy8=; X-YMail-OSG: nrBFrbwVM1mmthWDc7iwpdgbbwhEC7rIjJAMm0hzcLRhCuQx40FO53lDWS3w02bFT_I4Cl48RqAPc6uL7_555TMK30sfexJRvyvximQ17PNoRSeEzwtt Received: from [125.23.55.195] by web62010.mail.re1.yahoo.com via HTTP; Mon, 15 Jan 2007 10:50:21 PST Date: Mon, 15 Jan 2007 10:50:21 -0800 (PST) From: girish r To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <539649.30215.qm@web62010.mail.re1.yahoo.com> Subject: semaphore.h does'nt include fcntl.h ? 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, 15 Jan 2007 18:50:23 -0000 > You'll need to include "options P1003_1B_SEMAPHORES" in your kernel > config, or load the "sem" kernel module. > --Dan Nelson I could'nt find "sem" so I tried sysvsem.ko but I get: kldload: can't load sysvsem: File exists Does it mean that sysvsem support is already present in the kernel? I am using fbsd 6.2. I still get a SIGSYS when I call sem_open(). Do I need to recompile the kernel with P1003_1B_SEMAPHORES option? ____________________________________________________________________________________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 19:51: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 3D5E316A416 for ; Mon, 15 Jan 2007 19:51:14 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 052B413C465 for ; Mon, 15 Jan 2007 19:51:13 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id l0FJp1XZ066726; Mon, 15 Jan 2007 13:51:01 -0600 (CST) (envelope-from dan) Date: Mon, 15 Jan 2007 13:51:01 -0600 From: Dan Nelson To: girish r Message-ID: <20070115195101.GJ46272@dan.emsphone.com> References: <539649.30215.qm@web62010.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <539649.30215.qm@web62010.mail.re1.yahoo.com> X-OS: FreeBSD 6.2-PRERELEASE User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-hackers@freebsd.org Subject: Re: semaphore.h does'nt include fcntl.h ? 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, 15 Jan 2007 19:51:14 -0000 In the last episode (Jan 15), girish r said: > > You'll need to include "options P1003_1B_SEMAPHORES" in your kernel > > config, or load the "sem" kernel module. > > --Dan Nelson > > I could'nt find "sem" so I tried sysvsem.ko but I get: > > kldload: can't load sysvsem: File exists > > Does it mean that sysvsem support is already present > in the kernel? I am using fbsd 6.2. sysv semaphores are different from POSIX semaphores, so loading sysvsem.ko won't help you here. It looks like the "sem" module is missing from /usr/src/sys/modules/Makefile, which explains why you don't have it :) You can build it manually though: cd /usr/src/sys/modules/sem make obj && make depend && make && make install kldload sem -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 20:43: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 28E7A16A47C; Mon, 15 Jan 2007 20:43:40 +0000 (UTC) (envelope-from matteo@freebsd.org) Received: from vsmtp3.tin.it (vsmtp3.tin.it [212.216.176.223]) by mx1.freebsd.org (Postfix) with ESMTP id D611813C4A6; Mon, 15 Jan 2007 20:43:39 +0000 (UTC) (envelope-from matteo@freebsd.org) Received: from kaiser.sig11.org (82.56.123.149) by vsmtp3.tin.it (7.2.072.1) id 45894780009A8C5D; Mon, 15 Jan 2007 21:21:55 +0100 Received: from kaiser.sig11.org (rionda@localhost [127.0.0.1]) by kaiser.sig11.org (8.13.8/8.13.8) with ESMTP id l0FKLsGP034861; Mon, 15 Jan 2007 21:21:54 +0100 (CET) (envelope-from matteo@freebsd.org) Received: (from rionda@localhost) by kaiser.sig11.org (8.13.8/8.13.8/Submit) id l0FKLsjb034860; Mon, 15 Jan 2007 21:21:54 +0100 (CET) (envelope-from matteo@freebsd.org) X-Authentication-Warning: kaiser.sig11.org: rionda set sender to matteo@freebsd.org using -f Date: Mon, 15 Jan 2007 21:21:54 +0100 From: Matteo Riondato To: freesbie@gufi.org Message-ID: <20070115202154.GB33239@kaiser.sig11.org> Mail-Followup-To: Matteo Riondato , freesbie@gufi.org, varie@gufi.org, freebsd-small@freebsd.org, freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WYTEVAkct0FjGQmd" Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org, varie@gufi.org, freebsd-small@freebsd.org, freebsd-stable@freebsd.org Subject: Announce: FreeSBIE-2.0-RELEASE available! 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, 15 Jan 2007 20:43:40 -0000 --WYTEVAkct0FjGQmd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable All, today is a good day, as we, the FreeSBIE team, reached our goal: it's the day we release FreeSBIE 2.0. Development cycle started on August 2006 and, after many months and a series of four ISO images, an official stable FreeSBIE image is now available. It went under many changes, many experiments, many bugfixes, many features' additions, but it was worth the work and the time we spent on it. We must express our thanks to everyone involved in the release process.=20 FreeSBIE 2.0-RELEASE (codename Clint Eastwood) is based on the fresh FreeBSD 6.2-RELEASE, both in terms of sources and of packages. It contains more than 450 pieces and 1,3 gigabytes of software, all in a single CD-ROM of 668 megabytes. The ISO image can be download from FreeSBIE official mirrors, a list of which is available at http://www.freesbie.org/mirrors.php MD5 checksum for the ISO image is: MD5 (FreeSBIE-2.0-RELEASE.iso) =3D bb98890aa8ce4fd9d35b5842baa34fdb For you BitTorrent lovers: http://torrent.freesbie.org/FreeSBIE-2.0-RELEASE.iso.torrent Screenshots are available at http://www.freesbie.org/screenshots.html Release Notes, Manual and FAQ can be found at http://www.freesbie.org/share/2.0/manual/ Feel free to send feedback and bug reports to staff@freesbie.org . Enjoy FreeSBIE and spread FreeBSD! Thank you all. Best Regards --=20 Matteo Riondato FreeBSD Committer (http://www.freebsd.org) G.U.F.I. Staff Member (http://www.gufi.org) FreeSBIE Developer (http://www.freesbie.org) --WYTEVAkct0FjGQmd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFq+Ji2Mp4pR7Fa+wRAh+vAKCp5gZJv29UeV3yCVLFjL6Ts5EYjACfeh+B zaKA05Ybiorahq+kmArxg5k= =NkyJ -----END PGP SIGNATURE----- --WYTEVAkct0FjGQmd-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 21:10: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 BB21416A4EE; Mon, 15 Jan 2007 21:10:52 +0000 (UTC) (envelope-from wb@freebie.xs4all.nl) Received: from smtp-vbr5.xs4all.nl (smtp-vbr5.xs4all.nl [194.109.24.25]) by mx1.freebsd.org (Postfix) with ESMTP id 531CE13C442; Mon, 15 Jan 2007 21:10:52 +0000 (UTC) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id l0FLAdjM046268; Mon, 15 Jan 2007 22:10:39 +0100 (CET) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.13.8/8.13.3) with ESMTP id l0FLAcIJ096387; Mon, 15 Jan 2007 22:10:38 +0100 (CET) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.8/8.13.6/Submit) id l0FLAco6096386; Mon, 15 Jan 2007 22:10:38 +0100 (CET) (envelope-from wb) Date: Mon, 15 Jan 2007 22:10:38 +0100 From: Wilko Bulte To: Matteo Riondato , freesbie@gufi.org, varie@gufi.org, freebsd-small@freebsd.org, freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Message-ID: <20070115211038.GB96356@freebie.xs4all.nl> References: <20070115202154.GB33239@kaiser.sig11.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070115202154.GB33239@kaiser.sig11.org> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by XS4ALL Virus Scanner Cc: Subject: Re: Announce: FreeSBIE-2.0-RELEASE available! 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, 15 Jan 2007 21:10:52 -0000 On Mon, Jan 15, 2007 at 09:21:54PM +0100, Matteo Riondato wrote.. > All, > > today is a good day, as we, the FreeSBIE team, reached our goal: > it's the day we release FreeSBIE 2.0. ... > Enjoy FreeSBIE and spread FreeBSD! Thanks Matteo! > Thank you all. > Best Regards > -- > Matteo Riondato > FreeBSD Committer (http://www.freebsd.org) > G.U.F.I. Staff Member (http://www.gufi.org) > FreeSBIE Developer (http://www.freesbie.org) --- end of quoted text --- -- Wilko Bulte wilko@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 22:58: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 795DA16A416; Mon, 15 Jan 2007 22:58:46 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id D070813C474; Mon, 15 Jan 2007 22:58:45 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (dialup215.ach.sch.gr [81.186.70.215]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l0FMkaJ0028822 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 16 Jan 2007 00:46:44 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.13.8/8.13.8) with ESMTP id l0FMkSAw002720; Tue, 16 Jan 2007 00:46:29 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.13.8/8.13.8/Submit) id l0FMkSxv002719; Tue, 16 Jan 2007 00:46:28 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 16 Jan 2007 00:46:28 +0200 From: Giorgos Keramidas To: Matteo Riondato , freesbie@gufi.org, varie@gufi.org, freebsd-small@freebsd.org, freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Message-ID: <20070115224627.GA2670@kobe.laptop> References: <20070115202154.GB33239@kaiser.sig11.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070115202154.GB33239@kaiser.sig11.org> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.74, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.46, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: Subject: Re: Announce: FreeSBIE-2.0-RELEASE available! 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, 15 Jan 2007 22:58:46 -0000 On 2007-01-15 21:21, Matteo Riondato wrote: > FreeSBIE 2.0-RELEASE (codename Clint Eastwood) is based on the fresh > FreeBSD 6.2-RELEASE, both in terms of sources and of packages. My goodness! You guys are fast :) > Enjoy FreeSBIE and spread FreeBSD! Go Matteo and FreeSBIE team, go... You have my sincerest thanks and gratitude. For one thing, I used FreeSBIE to test laptops in local computer shops, until I found one that I liked. Without FreeSBIE, I would have had to guess (wrongly, most of the time) or use an inferior OS for my tests. Thank you! From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 23:38:35 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 716B916A4D2 for ; Mon, 15 Jan 2007 23:38:35 +0000 (UTC) (envelope-from ramadas@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.238]) by mx1.freebsd.org (Postfix) with ESMTP id 3443113C465 for ; Mon, 15 Jan 2007 23:38:33 +0000 (UTC) (envelope-from ramadas@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1812337wxc for ; Mon, 15 Jan 2007 15:38:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=pOWs5Wr6SKkiYg5NDkf1YKeqPC7Nmcisza4HJLFoLYggYfkr/Fo5hWIPwZ4h+dtPq6HkCgEf/AIF/ZtJB6BHipv7TuJXpxLCOgR3KmJDsPzeMKI3LpGzVPlGap2f7NtI8vIDq/zslswr17bh1zq2KEX0wa+bLrwa0Uc49LRhCf8= Received: by 10.90.118.12 with SMTP id q12mr3562168agc.1168902568992; Mon, 15 Jan 2007 15:09:28 -0800 (PST) Received: by 10.90.51.16 with HTTP; Mon, 15 Jan 2007 15:09:28 -0800 (PST) Message-ID: Date: Mon, 15 Jan 2007 15:09:28 -0800 From: "Kailas Ramasamy" Sender: ramadas@gmail.com To: freebsd-hackers@freebsd.org MIME-Version: 1.0 X-Google-Sender-Auth: 7f5eb31111cc4d9f 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: Console and Shell 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, 15 Jan 2007 23:38:35 -0000 Hi, I would like to understand how the shell is tied to the console port. When an user connects a terminal to the system via console port, a shell is started and tied to the console port (/dev/console ?). Can some someone explain how this whole process works?. It would be great if you can point me the source code and/or the any documents. Thanks Kailas From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 01:54:10 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 B00F816A407 for ; Tue, 16 Jan 2007 01:54:10 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.freebsd.org (Postfix) with ESMTP id 8F51F13C441 for ; Tue, 16 Jan 2007 01:54:10 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0G1sADH007295 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 15 Jan 2007 17:54:10 -0800 X-Auth-Received: from [192.168.2.15] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0G1qjgj026540 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Mon, 15 Jan 2007 17:52:51 -0800 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: References: X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Garrett Cooper Date: Mon, 15 Jan 2007 17:52:43 -0800 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.752.2) X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.1.15.172932 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: Console and Shell 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, 16 Jan 2007 01:54:10 -0000 On Jan 15, 2007, at 3:09 PM, Kailas Ramasamy wrote: > Hi, > I would like to understand how the shell is tied to the console > port. When > an user connects a terminal > to the system via console port, a shell is started and tied to the > console > port (/dev/console ?). > Can some someone explain how this whole process works?. It would be > great if > you can point me > the source code and/or the any documents. > > Thanks > Kailas > Why not just go to the source folder for sh (should be under /usr/src/ bin/sh/*) and grep for fopen or /dev/tty? Seems like the kernel would open up and attach the executing shell to its relevant TTY though with getty. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 02:33: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 72E3916A5BF for ; Tue, 16 Jan 2007 02:33:40 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.225]) by mx1.freebsd.org (Postfix) with ESMTP id 183AF13C442 for ; Tue, 16 Jan 2007 02:33:39 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: by wr-out-0506.google.com with SMTP id i28so1115938wra for ; Mon, 15 Jan 2007 18:33:39 -0800 (PST) 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=QAYUiruopoeN+pr7vfqIYXpHW/+ZpxTVlxBz1rpe3B3sDUFFBOa7XVM2wW6UXN5BG73VaGs7EjGIDosu62RJKIrcSR9ZvTq2K1hmwNXwSwHul3kHe0BCesT1cwy1BoYLGkCqie0idVkRYEira0rAVeWI6NMWRwYVn1mf7D+7f3g= Received: by 10.35.121.2 with SMTP id y2mr8943045pym.1168913287828; Mon, 15 Jan 2007 18:08:07 -0800 (PST) Received: by 10.35.30.5 with HTTP; Mon, 15 Jan 2007 18:08:07 -0800 (PST) Message-ID: <84dead720701151808n7edcd580xe8a0011d8b03f0f9@mail.gmail.com> Date: Tue, 16 Jan 2007 07:38:07 +0530 From: "Joseph Koshy" To: "Kailas Ramasamy" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-hackers@freebsd.org Subject: Re: Console and Shell 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, 16 Jan 2007 02:33:40 -0000 kr> I would like to understand how the shell is tied to the kr> console port. Google for 'controlling terminal'. "Advanced Programming in the Unix Environment" by Richard Stevens is a good book for Unix basics. -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 06:39: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 8926816A40F for ; Tue, 16 Jan 2007 06:39:32 +0000 (UTC) (envelope-from pranav.sawargaonkar@gmail.com) Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.231]) by mx1.freebsd.org (Postfix) with ESMTP id 19A8C13C457 for ; Tue, 16 Jan 2007 06:39:31 +0000 (UTC) (envelope-from pranav.sawargaonkar@gmail.com) Received: by hu-out-0506.google.com with SMTP id 38so946537huc for ; Mon, 15 Jan 2007 22:39:30 -0800 (PST) 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=LRaoUNYIzIv2dd+YM/HkZYw/qvwiFeNo/4x9HE2xKTl9rnR7w98dGiCJtRpFYn8ky6ZVl2e/Zwfii7/oHSkv2kvnCs3Nx81+917BPn1RUOCNn2d/AG69JpsPApEAlWfPLiq33oVkckqU2MbuDgTd4tmEj7lHI3zokQiCQeeWaZw= Received: by 10.78.204.7 with SMTP id b7mr3179799hug.1168927992919; Mon, 15 Jan 2007 22:13:12 -0800 (PST) Received: by 10.78.122.5 with HTTP; Mon, 15 Jan 2007 22:13:12 -0800 (PST) Message-ID: <5007e1a40701152213l15f72b02sd6d15c8442958e91@mail.gmail.com> Date: Tue, 16 Jan 2007 11:43:12 +0530 From: "Pranav Sawargaonkar" 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: Source code for user utilities 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, 16 Jan 2007 06:39:32 -0000 Hi Can any one tell me from where i can get source code of user level utilities (eg. ls, top etc.) Does FreeBSD also uses coreutils for these user utilities like linux does ? TIA -Pranav From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 06: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 E3E0A16A415 for ; Tue, 16 Jan 2007 06:48:12 +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 734C113C45A for ; Tue, 16 Jan 2007 06:48:12 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 20774 invoked by uid 1001); 16 Jan 2007 06:48:46 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Tue, 16 Jan 2007 01:48:46 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17836.30029.962183.503109@bhuda.mired.org> Date: Tue, 16 Jan 2007 01:48:45 -0500 To: "Pranav Sawargaonkar" In-Reply-To: <5007e1a40701152213l15f72b02sd6d15c8442958e91@mail.gmail.com> References: <5007e1a40701152213l15f72b02sd6d15c8442958e91@mail.gmail.com> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" 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: Source code for user utilities 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, 16 Jan 2007 06:48:13 -0000 In <5007e1a40701152213l15f72b02sd6d15c8442958e91@mail.gmail.com>, Pranav Sawargaonkar typed: > Hi > Can any one tell me from where i can get source code of user level utilities > (eg. ls, top etc.) Look in /usr/src on a FreeBSD system: /usr/src/bin, /usr/src/usr.bin, etc. Or try "whereis ": bhuda% whereis ls ls: /bin/ls /usr/share/man/man1/ls.1.gz /usr/src/bin/ls > Does FreeBSD also uses coreutils for these user utilities like linux > does ? No. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 06:55: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 9181B16A415 for ; Tue, 16 Jan 2007 06:55:00 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 4DF1A13C44C for ; Tue, 16 Jan 2007 06:55:00 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id l0G6sxst042340; Tue, 16 Jan 2007 00:54:59 -0600 (CST) (envelope-from dan) Date: Tue, 16 Jan 2007 00:54:59 -0600 From: Dan Nelson To: Mike Meyer Message-ID: <20070116065458.GM46272@dan.emsphone.com> References: <5007e1a40701152213l15f72b02sd6d15c8442958e91@mail.gmail.com> <17836.30029.962183.503109@bhuda.mired.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17836.30029.962183.503109@bhuda.mired.org> X-OS: FreeBSD 6.2-PRERELEASE User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-hackers@freebsd.org, Pranav Sawargaonkar Subject: Re: Source code for user utilities 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, 16 Jan 2007 06:55:00 -0000 In the last episode (Jan 16), Mike Meyer said: > In <5007e1a40701152213l15f72b02sd6d15c8442958e91@mail.gmail.com>, Pranav Sawargaonkar typed: > > Can any one tell me from where i can get source code of user level > > utilities (eg. ls, top etc.) > > Look in /usr/src on a FreeBSD system: /usr/src/bin, /usr/src/usr.bin, > etc. and if you don't have source installed, you can download it: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html or browse the CVS repository online: http://www.freebsd.org/cgi/cvsweb.cgi/src/ -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 07:02:54 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 3074B16A407 for ; Tue, 16 Jan 2007 07:02:54 +0000 (UTC) (envelope-from kheuer2@gwdg.de) Received: from gwdu60.gwdg.de (gwdu60.gwdg.de [134.76.8.60]) by mx1.freebsd.org (Postfix) with ESMTP id A00FB13C45A for ; Tue, 16 Jan 2007 07:02:53 +0000 (UTC) (envelope-from kheuer2@gwdg.de) Received: from gwdu60.gwdg.de (localhost [127.0.0.1]) by gwdu60.gwdg.de (8.13.1/8.13.1) with ESMTP id l0G6lTio044450; Tue, 16 Jan 2007 07:47:29 +0100 (CET) (envelope-from kheuer2@gwdg.de) Received: from localhost (kheuer2@localhost) by gwdu60.gwdg.de (8.13.1/8.13.1/Submit) with ESMTP id l0G6lTqk044447; Tue, 16 Jan 2007 07:47:29 +0100 (CET) (envelope-from kheuer2@gwdg.de) X-Authentication-Warning: gwdu60.gwdg.de: kheuer2 owned process doing -bs Date: Tue, 16 Jan 2007 07:47:29 +0100 (CET) From: Konrad Heuer To: Pranav Sawargaonkar In-Reply-To: <5007e1a40701152213l15f72b02sd6d15c8442958e91@mail.gmail.com> Message-ID: <20070116074359.U23072@gwdu60.gwdg.de> References: <5007e1a40701152213l15f72b02sd6d15c8442958e91@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: Source code for user utilities 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, 16 Jan 2007 07:02:54 -0000 On Tue, 16 Jan 2007, Pranav Sawargaonkar wrote: > Can any one tell me from where i can get source code of user level utilities > (eg. ls, top etc.) > Does FreeBSD also uses coreutils for these user utilities like linux > does ? The source code is part of the FreeBSD distribution; you can find it (e.g.) in: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.2-RELEASE/src/ FreeBSD does not use coreutils. FreeBSD source code is based on the 4.4BSD-Lite2 source code developed at the university of California in Berkeley. Best regards Konrad Heuer GWDG, Am Fassberg, 37077 Goettingen, Germany, kheuer2@gwdg.de From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 07:05:28 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 AC17416A412 for ; Tue, 16 Jan 2007 07:05:28 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id 5E4A413C461 for ; Tue, 16 Jan 2007 07:05:28 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id A4941EB68C1; Tue, 16 Jan 2007 14:44:01 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id TC22m0KKB7JV; Tue, 16 Jan 2007 14:43:48 +0800 (CST) Received: from [10.217.12.122] (sina152-194.staff.sina.com.cn [61.135.152.194]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 3C8B3EB68BC; Tue, 16 Jan 2007 14:43:48 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:x-enigmail-version:content-type; b=ehJCNTDOnbcnYoxcOg8o41v8w3+2bNeSWwFz3xjalJxbyp3u2Ep/mO4rLfCn5R+Z9 tBnHckg9eDGlXv9NuYPWQ== Message-ID: <45AC73CB.6010103@delphij.net> Date: Tue, 16 Jan 2007 14:42:19 +0800 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: Pranav Sawargaonkar References: <5007e1a40701152213l15f72b02sd6d15c8442958e91@mail.gmail.com> In-Reply-To: <5007e1a40701152213l15f72b02sd6d15c8442958e91@mail.gmail.com> X-Enigmail-Version: 0.94.1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig2BF45B2A0DDA40A2EBC741CF" Cc: freebsd-hackers@freebsd.org Subject: Re: Source code for user utilities 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, 16 Jan 2007 07:05:28 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2BF45B2A0DDA40A2EBC741CF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Pranav Sawargaonkar wrote: > Hi > Can any one tell me from where i can get source code of user level > utilities > (eg. ls, top etc.) Use 'which foo' to get the directory. Typically you can rely on the following map: /bin -> /usr/src/bin /sbin -> /usr/src/sbin /usr/bin -> /usr/src/usr.bin /usr/sbin -> /usr/src/usr.sbin Sometimes if they are contributed software then the source code would be under /usr/src/contrib, /usr/src/crypto, etc. > Does FreeBSD also uses coreutils for these user utilities like li= nux > does ? Nope. Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enig2BF45B2A0DDA40A2EBC741CF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFrHPLOfuToMruuMARAyybAJsEhyaIVFs34AG2SkZBPiUn/eFiNwCffTKW 5iTvFlVa7q5ql5+Vr3KMjVY= =Hw67 -----END PGP SIGNATURE----- --------------enig2BF45B2A0DDA40A2EBC741CF-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 08:05:30 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 4C2AC16A407 for ; Tue, 16 Jan 2007 08:05:30 +0000 (UTC) (envelope-from fmail_girish@yahoo.com) Received: from web62002.mail.re1.yahoo.com (web62002.mail.re1.yahoo.com [69.147.74.225]) by mx1.freebsd.org (Postfix) with SMTP id E0BB813C459 for ; Tue, 16 Jan 2007 08:05:29 +0000 (UTC) (envelope-from fmail_girish@yahoo.com) Received: (qmail 36318 invoked by uid 60001); 16 Jan 2007 08:05:28 -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=Itb0gRPxndp3m+pykCUQY+K97MjpmLv4maYtqH2S6eF8fU09A4Dvm3tCbm240cGIzZX/4ZK8qBk+W5sHEhLb0YHsMOK3OIR2we5ltOZnhHd+SAtSy8BIRGi6ueTYnyZk77dNzSygxdW+Z+Sxo58WCUkC+yGu640FICEFWeEwhV8=; X-YMail-OSG: Gpm2ZfMVM1nofrulIyBu_KtU4JqvIXXjXZx5gGeirYTNz4VfJ.MoYHgTzpQ0DqZkn1VYHetTOHeLDaReiCHcydrZP.HD3nEs3qGIODAZQymuMjgiYN25 Received: from [125.23.59.99] by web62002.mail.re1.yahoo.com via HTTP; Tue, 16 Jan 2007 00:05:28 PST Date: Tue, 16 Jan 2007 00:05:28 -0800 (PST) From: girish r To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <860316.36312.qm@web62002.mail.re1.yahoo.com> Subject: semaphore.h does'nt include fcntl.h ? 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, 16 Jan 2007 08:05:30 -0000 >sysv semaphores are different from POSIX semaphores, >so loading >sysvsem.ko won't help you here. It looks like the >"sem" module is >missing from /usr/src/sys/modules/Makefile, which >explains why you >don't have it :) You can build it manually though: > >cd /usr/src/sys/modules/sem >make obj && make depend && make && make install >kldload sem >-- > Dan Nelson > dnelson@allantgroup.com Got it! Thanks Dan. ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 08:38: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 9410C16A40F for ; Tue, 16 Jan 2007 08:38:50 +0000 (UTC) (envelope-from pranav.sawargaonkar@gmail.com) Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.226]) by mx1.freebsd.org (Postfix) with ESMTP id 2476D13C43E for ; Tue, 16 Jan 2007 08:38:49 +0000 (UTC) (envelope-from pranav.sawargaonkar@gmail.com) Received: by hu-out-0506.google.com with SMTP id 38so964374huc for ; Tue, 16 Jan 2007 00:38:49 -0800 (PST) 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:references; b=lDxaL6jqYLPWBugJAOxh65lHpDPykvJtCs6hg/sVLPjXseQkf9yoFC6JSXTT/B9Wf6LBN/SwKT7Q2146OJiWqPxGwanKP0BjJE4aS7vDUOKJNJUm5TWrVOYD6LjBfABBUjJ6HsFqWS81AyMSpJrHnbK6m+7B7+fY0yyRS4jLhCU= Received: by 10.78.178.5 with SMTP id a5mr3271832huf.1168936727699; Tue, 16 Jan 2007 00:38:47 -0800 (PST) Received: by 10.78.122.5 with HTTP; Tue, 16 Jan 2007 00:38:47 -0800 (PST) Message-ID: <5007e1a40701160038v19d0c61dgcbd8c016be68c10a@mail.gmail.com> Date: Tue, 16 Jan 2007 14:08:47 +0530 From: "Pranav Sawargaonkar" To: "Dan Nelson" In-Reply-To: <20070116065458.GM46272@dan.emsphone.com> MIME-Version: 1.0 References: <5007e1a40701152213l15f72b02sd6d15c8442958e91@mail.gmail.com> <17836.30029.962183.503109@bhuda.mired.org> <20070116065458.GM46272@dan.emsphone.com> 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, Mike Meyer Subject: Re: Source code for user utilities 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, 16 Jan 2007 08:38:50 -0000 Thanks for the help. I got it in /usr/src/bin -Pranav On 1/16/07, Dan Nelson wrote: > > In the last episode (Jan 16), Mike Meyer said: > > In <5007e1a40701152213l15f72b02sd6d15c8442958e91@mail.gmail.com>, Pranav > Sawargaonkar typed: > > > Can any one tell me from where i can get source code of user level > > > utilities (eg. ls, top etc.) > > > > Look in /usr/src on a FreeBSD system: /usr/src/bin, /usr/src/usr.bin, > > etc. > > and if you don't have source installed, you can download it: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html > > or browse the CVS repository online: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/ > > -- > Dan Nelson > dnelson@allantgroup.com > From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 15:12: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 95DEA16A4F3 for ; Tue, 16 Jan 2007 15:12:32 +0000 (UTC) (envelope-from kmholla@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.freebsd.org (Postfix) with ESMTP id 57C5413C45B for ; Tue, 16 Jan 2007 15:12:32 +0000 (UTC) (envelope-from kmholla@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so2037232wxc for ; Tue, 16 Jan 2007 07:12:31 -0800 (PST) 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:references; b=hOLnaZEPCFasw0wmmnKyzBDV8KyrfnLN8nF1CUN7RqErC42dl/r8H5mipHBmeVtUWEWKlQCBKtQtSYIMha0WmSxFwmUwsNDHCIVkHh0Fhhe6CN1dxIx7u0nSLpOc0G5W7YjWrprJZ4H8rl8GXFXlQ2zzB0jOdFX06vTF1dRbeJM= Received: by 10.70.69.11 with SMTP id r11mr1065560wxa.1168958884575; Tue, 16 Jan 2007 06:48:04 -0800 (PST) Received: by 10.70.45.18 with HTTP; Tue, 16 Jan 2007 06:48:04 -0800 (PST) Message-ID: <347fc4490701160648l7bd880famd0b8acb21f0575f5@mail.gmail.com> Date: Tue, 16 Jan 2007 20:18:04 +0530 From: "krishnamurthy holla" To: freebsd-hackers@freebsd.org In-Reply-To: <347fc4490701152323wfcb2fdch19163c1d8d89a885@mail.gmail.com> MIME-Version: 1.0 References: <347fc4490701152323wfcb2fdch19163c1d8d89a885@mail.gmail.com> 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: lirc serial FreeBSD 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, 16 Jan 2007 15:12:32 -0000 Dear All, i have a serial IR receiver and i am looking for lirc support for serial ir device in freebsd is there solutions already made ? or any other alternatives? Thanks & Regards Krishna From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 21:16:02 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 5C53516A4D1 for ; Tue, 16 Jan 2007 21:16:02 +0000 (UTC) (envelope-from wb@freebie.xs4all.nl) Received: from smtp-vbr16.xs4all.nl (smtp-vbr16.xs4all.nl [194.109.24.36]) by mx1.freebsd.org (Postfix) with ESMTP id EA7B413C441 for ; Tue, 16 Jan 2007 21:16:01 +0000 (UTC) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtp-vbr16.xs4all.nl (8.13.8/8.13.8) with ESMTP id l0GKvdWf081053 for ; Tue, 16 Jan 2007 21:57:40 +0100 (CET) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.13.8/8.13.3) with ESMTP id l0GKvd6J004933 for ; Tue, 16 Jan 2007 21:57:39 +0100 (CET) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.8/8.13.6/Submit) id l0GKvdFU004928 for hackers@freebsd.org; Tue, 16 Jan 2007 21:57:39 +0100 (CET) (envelope-from wb) Date: Tue, 16 Jan 2007 21:57:39 +0100 From: Wilko Bulte To: hackers@freebsd.org Message-ID: <20070116205739.GA4853@freebie.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 X-Virus-Scanned: by XS4ALL Virus Scanner Cc: Subject: DVD-RAM on FreeBSD? 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, 16 Jan 2007 21:16:02 -0000 Today I by coincidence found myself with DVD-RAM disk. Given that my DVD drive ( NEC DVD_RW ND-4571A 1-01 ) should be able to work with DVD-RAM disks my curiosity got the best of me. Currently running FreeBSD freebie.xs4all.nl 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #6: Fri Dec 22 17:16:16 CET 2006 root@freebie.xs4all.nl:/usr/src/sys/i386/compile/FREEBIE i386 Following the handbook's suggestion at http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-dvds.html I tried: -su-2.05b# dd if=/dev/zero of=/dev/acd0 count=2 dd: /dev/acd0: Invalid argument 1+0 records in 0+0 records out 0 bytes transferred in 0.002064 secs (0 bytes/sec) I have tried different blocksizes with dd but that does not help. From: -su-2.05b# dvd+rw-mediainfo /dev/dvd INQUIRY: [_NEC ][DVD_RW ND-4571A ][1-01] GET [CURRENT] CONFIGURATION: Mounted Media: 12h, DVD-RAM Current Write Speed: 6.1x1385=8467KB/s Write Speed #0: 6.1x1385=8467KB/s Write Speed #1: 5.1x1385=7056KB/s Write Speed #2: 4.1x1385=5645KB/s Write Speed #3: 3.1x1385=4234KB/s Write Speed #4: 2.0x1385=2822KB/s Write Speed #5: 1.0x1385=1411KB/s GET [CURRENT] PERFORMANCE: Write Performance: 3.0x1385=4155KB/s@[0 -> 2236704] Speed Descriptor#0: 03/2236704 R@3.0x1385=4155KB/s W@3.0x1385=4155KB/s Speed Descriptor#1: 03/2236704 R@2.0x1385=2770KB/s W@2.0x1385=2770KB/s READ DVD STRUCTURE[#0h]: Media Book Type: 16h, DVD-RAM book [revision 6] Legacy lead-out at: 2314080*2KB=4739235840 READ DISC INFORMATION: Disc status: other Number of Sessions: 1 State of Last Session: complete "Next" Track: 1 Number of Tracks: 1 READ FORMAT CAPACITIES: unformatted: 2295072*2048=4700307456 00h(800): 2236704*2048=4580769792 00h(800): 2295072*2048=4700307456 -su-2.05b# it appears the disk is recognised OK. One can run dvd+rw-format on the disk without problems. I'm probably missing something (but so is the handbook IMO ;-) so suggestions are welcome. Especially from people running DVD-RAM successfully on RELENG_6 thanks, Wilko -- Wilko Bulte wilko@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 21:20: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 2177816A415; Tue, 16 Jan 2007 21:20:52 +0000 (UTC) (envelope-from j.unger@addict.de) Received: from crow.addict.de (raven.addict.de [80.86.187.141]) by mx1.freebsd.org (Postfix) with ESMTP id AF98413C448; Tue, 16 Jan 2007 21:20:51 +0000 (UTC) (envelope-from j.unger@addict.de) Received: from crow.addict.de (raven.addict.de [80.86.187.141]) by crow.addict.de (8.12.9/8.12.6) with ESMTP id l0GKrXpv038481; Tue, 16 Jan 2007 21:53:33 +0100 (CET) (envelope-from j.unger@addict.de) Received: (from unger@localhost) by crow.addict.de (8.12.9/8.12.6/Submit) id l0GKrTN9038480; Tue, 16 Jan 2007 21:53:29 +0100 (CET) X-Authentication-Warning: crow.addict.de: unger set sender to j.unger@addict.de using -f Date: Tue, 16 Jan 2007 21:53:29 +0100 From: Juergen Unger To: Ed Schouten Message-ID: <20070116205329.GA37990@crow.addict.de> References: <20070104201434.GS1072@hoeg.nl> <200701051427.46146.jhb@freebsd.org> <20070106000632.GA46094@hoeg.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070106000632.GA46094@hoeg.nl> User-Agent: Mutt/1.4i Cc: FreeBSD Hackers , philippe.lang@attiksystem.ch, bug-followup@freebsd.org Subject: Re: kern/89528: [jail] impossible to kill a jail 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, 16 Jan 2007 21:20:52 -0000 Hi ! I had this problem on my machines many times now. One additional thing I found: on my machines all jails have their own (virtual) disks mounted to the root-fs of the jail. In the case a zombie jail is left after stopping a jail the entry in the jls output is still visible _and_ it is not possible to umount the virtual disk of the jail anymore. This is very independant of the version, it occured from my first productive 5.x versions up to 6.2 RELEASE where i got the problem again today. Maybe it leads us further if we try to investigate this. bye, Juergen -- ENOSIG From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 22:52: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 90E1A16A415; Tue, 16 Jan 2007 22:52:46 +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 9A0ED13C4A5; Tue, 16 Jan 2007 22:52:44 +0000 (UTC) (envelope-from max@love2party.net) Received: from [88.64.178.194] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis), id 0ML25U-1H6xAW3SKI-00057L; Tue, 16 Jan 2007 23:52:43 +0100 From: Max Laier Organization: FreeBSD To: freebsd-hackers@freebsd.org Date: Tue, 16 Jan 2007 23:52:37 +0100 User-Agent: KMail/1.9.5 X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<%}*_BD U_or=\mOZf764&nYj=JYbR1PW0ud>|!~, , CPC.1-D$FG@0h3#'5"k{V]a~. X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 Cc: freebsd-current@freebsd.org Subject: FreeBSD Status Report Fourth Quarter 2006 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, 16 Jan 2007 22:52:46 -0000 --Boundary-00=_3cVrFyZxpZGOqso Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-00=_3cVrFyZxpZGOqso Content-Type: text/plain; charset="us-ascii"; name="report-oct-2006-dec-2006.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="report-oct-2006-dec-2006.txt" =46reeBSD Status Report Introduction Happy New Year. This Report covers the last quarter of a exciting year 2006 for FreeBSD development. FreeBSD 6.2 is finally out of the door and work towards FreeBSD 7.0 is gearing up. Some of the projects in this report will be part of that effort, others are already in the tree. Many projects need your help with testing and otherwise. Please see the "Open tasks" sections for more information. The BSD crowd will meet at AsiaBSDCon March 8-10th in Tokyo and a two day FreeBSD developer summit will be held at BSDCan May 16-19th in Ottawa. Finally, EuroBSDCon September 14-15th in Copenhagen is already looking for papers. Thanks to all the reporters for the excellent work! We hope you enjoy reading. _________________________________________________________________ Projects * FreeSBIE * iSCSI Initiator * Network Stack Virtualization * New USB Stack * Past and Future PR Closing Events * Porting ZFS to FreeBSD * TrustedBSD Audit * TrustedBSD MAC Framework * TrustedBSD priv(9) =46reeBSD Team Reports * FreeBSD Bugbusting Team * FreeBSD Security Officer and Security Team * Release Engineering * The FreeBSD Foundation Network Infrastructure * Automatic TCP Send and Receive Socket Buffer Sizing * FAST_IPSEC Upgrade * ipfw NAT and libalias * Multi-link PPP daemon (MPD) * Wireless Networking Kernel * Cryptographic Subsystem * GEOM Multipath * Interrupt Filtering * Sound Subsystem Improvements * Update of the Linux Compatibility Environment in the Kernel Hardware Drivers * Bt878 Audio Driver (aka FusionHDTV 5 Lite driver) * Intel 3945ABG Wireless LAN Driver: wpi * MPT LSI-Logic Host Adapters: mpt * QLogic SCSI and Fibre Channel: isp Documentation * Hungarian Translation of the Webpages * The FreeBSD Dutch Documentation Project Userland Programs * BSNMP - More Ongoing and Upcoming Work * BSNMP Bridge Module * BSNMP Client Tools * Libelf Architectures * ARM/XScale Port * FreeBSD/powerpc on Freescale MPC8555 Ports * FreeBSD GNOME Project * FreshPorts * Ports Collection * Updating X.org FreeBSD Ports to 7.2 Miscellaneous * BSDCan 2007 * EuroBSDCon 2007 _________________________________________________________________ ARM/XScale Port Contact: Olivier Houchard Contact: Sam Leffler FreeBSD is running multi-user on a variety of Gateworks Avila boards with most of the on-board devices supported. These include the compact flash/IDE slot, wired network interfaces, realtime clock, and environmental sensors. Several different minipci cards have been tested including those supported by the ath(4) and hifn(4) drivers. Remaining devices that need support are the onboard flash, optional 4-port network switch, and optional USB interface. Crypto acceleration for IXP425 parts is planned but will likely be done at a later time. The Network Processor Engine (NPE) support is done with an entirely new replacement for the Intel Access Layer (IAL). The most important hardware facilities are supported (e.g. the hardware Q manager) and the wired NIC driver was also done from scratch. The resulting code is approximately 1/10th the number of lines of the equivalent IAL code. Open tasks: 1. Bootstrap support needs work to enable booting from the compact flash device. _________________________________________________________________ Automatic TCP Send and Receive Socket Buffer Sizing URL: http://people.FreeBSD.org/~andre/tcp_auto_buf-20061212.diff URL: http://people.FreeBSD.org/~andre/tcp_auto_buf-20061212-RELENG_6.diff Contact: Andre Oppermann Normally the socket buffers are static (either derived from global defaults or set with setsockopt) and do not adapt to real network conditions. Two things happen: a) your socket buffers are too small and you can't reach the full potential of the network between both hosts; b) your socket buffers are too big and you waste a lot of kernel memory for data just sitting around. With automatic TCP send and receive socket buffers we can start with a small buffer and quickly grow it in parallel with the TCP congestion window to match real network conditions. FreeBSD has a default 32K send socket buffer. This supports a maximal transfer rate of only slightly more than 2Mbit/s on a 100ms RTT trans-continental link. Or at 200ms just above 1Mbit/s. With TCP send buffer auto scaling and the default values below it supports 20Mbit/s at 100ms and 10Mbit/s at 200ms. That's an improvement of factor 10, or 1000%. For the receive side it looks slightly better with a default of 64K buffer size. The automatic send buffer sizing patch is currently running on one half of the FTP.FreeBSD.ORG cluster w/o any problems so far. Against this machine with the automatic receive buffer sizing patch I can download at 5.7 MBytes per second. Without patch it maxed out at 1.6 MBytes per second as the delay bandwidth product became equal to the static socket buffer size without hitting the limits of the physical link between the machines. My test machine is about 35ms from that FTP.FreeBSD.ORG and connected through a moderately loaded 100Mbit Internet link. New sysctls are: * net.inet.tcp.sendbuf_auto=3D1 (enabled) * net.inet.tcp.sendbuf_inc=3D8192 (8K, step size) * net.inet.tcp.sendbuf_max=3D262144 (256K, growth limit) * net.inet.tcp.recvbuf_auto=3D1 (enabled) * net.inet.tcp.recvbuf_inc=3D16384 (16K, step size) * net.inet.tcp.recvbuf_max=3D262144 (256K, growth limit) _________________________________________________________________ BSDCan 2007 URL: http://www.bsdcan.org/2007/ Contact: Dan Langille Folks! It is that time of year. You may have missed the call for papers , but please put in your proposal right away. This is often a busy time of year, but please take the time to consider presenting at BSDCan. Please read the submission instructions and send in your proposal today! You may be interested in our sister conference: PGCon. If you have an interest in PostgreSQL , a leading relational database, which just happens to be open source, then we have the conference for you! PGCon 2007 will be held immediately after BSDCan 2007, at the same venue, and will follow a similar format. Open tasks: 1. Waiting for papers _________________________________________________________________ BSNMP - More Ongoing and Upcoming Work URL: http://wikitest.FreeBSD.org/BsnmpTODO Contact: Shteryana Shopova Contact: Harti Brandt Contact: Bjoern A. Zeeb In addition to other more detailed reports this is intended to give a summary about other ongoing or upcoming BSNMP related work. To collect some ideas from users and coordinate work a BSNMP TODO Wiki page was created. Feel free to add your ideas or let us know about them. * A contributor, Tsvetan Erenditsov, has volunteered to implement a VLAN module for BSNMP. Shteryana is helping him. * Sam Leffler has asked for a wireless networking monitoring module, which will most likely be the next module to be implemented. * Some major work is currently going on in the main BSNMP tree: + SNMP transports have been factored out into loadable modules. The old port tables are still there and will remain at least for the next release. Later they will be removed. The following modules and transports are already implemented as loadable modules: o snmp_trans_udp: SNMP over UDP over IPv4, IPv6 and scoped IPv6 o snmp_trans_tcp: SNMP over TCP over IPv4, IPv6 and scoped IPv6 o snmp_trans_ldgram: SNMP over local datagram sockets o snmp_trans_lstream: SNMP over local stream sockets + Some I/O functions have been moved from the daemon to libbsnmp. + libisa has been imported into the bsnmp tree. This library aims at easy implementation of command line tools for remote and local system administration with a special focus on administration via SNMP. The library contains command line parsing functions, a function for automatically handling help text. Actual administration modules are implemented as loadable modules. The atmconfig tool in the FreeBSD tree contains some old parts of this library. + lisa_snmp is a module which implements SNMP functionality for libisa. + lisa_snmpd is a module for remote administration of the bsnmpd. + The config file parser of bsnmpd has been rewritten so that each section of the file is handled as a transaction (in contrast to the previous behavior where the entire file was one transaction). _________________________________________________________________ BSNMP Bridge Module URL: http://wikitest.FreeBSD.org/SnmpBridgeModule Contact: Shteryana Shopova The BSNMP bridge module for FreeBSD's BSNMP daemon, which was implemented during SoC 2006, was committed to HEAD. In addition to RFC 4188 single bridge support it also supports monitoring multiple bridges via a private MIB. Since SoC 2006 Rapid Spanning Tree (RSTP) support (RSTP-MIB defined in RFC4318 and additions to the private MIB) was added to the module as well. A patch for RELENG_6 is available and will be merged to STABLE the next weeks. Open tasks: 1. MFC to RELENG_6. 2. More feedback from users is always welcome. _________________________________________________________________ BSNMP Client Tools URL: http://wikitest.FreeBSD.org/BsnmpTools URL: http://perforce.FreeBSD.org/depotTreeBrowser.cgi?FSPC=3D//depot/user/syr inx/ bsnmp/contrib/bsnmp/snmptools URL: http://perforce.FreeBSD.org/depotTreeBrowser.cgi?FSPC=3D//depot/user/bz/ bsnmp%5fsyrinx/usr.sbin/bsnmpd/tools Contact: Shteryana Shopova Contact: Bjoern A. Zeeb During SoC 2005 BSNMP client tools (bsnmptools) were implemented and have since then been available via Shteryana's P4 tree or port net-mgmt/bsnmptools. In order to finally get the code committed some cleanup was needed which ended in a partly rewrite to minimize duplicate code and to reduce the size of the binaries. This ongoing work is available via Bjoern's P4 tree and will be merged back to upstream trees before it will be committed to HEAD. Open tasks: 1. Update Wiki Page to reflect latest work. 2. Finish cleanup and have it reviewed. 3. User feedback is always welcome. _________________________________________________________________ Bt878 Audio Driver (aka FusionHDTV 5 Lite driver) URL: http://perforce.freebsd.org/fileSearch.cgi?FSPC=3D%2F%2Fdepot%2Fuser%2Fj mg%2Fbktrau%2F...&ignore=3DGO%21 Contact: John-Mark Gurney Basic audio capture is working. All of the parameters are set by userland, while the RISC program generation is by kernel. No real audio has been captured as there are no drivers for the NTSC tuner yet. Someone with a real Bt878 NTSC card that is supported by bktr(4) could use this to capture audio without using the sound card. Due to lack of documentation from DViCO and LG, I have copied magic values from the Linux driver and managed to get ATSC capturing working. There was a bug in the capture driver that was releasing buffers to userland early causing what appeared to be reception issues. Now that we use the RISC status bits as buffer completion bits, capture works cleanly. This does mean that even if you provide more than 4 buffers to the driver, the buffers will be divided into four segments, and returned in segments. A Python module is available, along with a sample capture application using it. The module is now known to work well with threads so that tuning (expensive due to i2c ioctls) can happen in another thread without causing program slow down. The module is working well with a custom PVR backend. Additional ioctls have been added to get sibling devices. This allows one to open a bktrau device, and get the correct bktr(4) device that is in the same slot. This is necessary so that when adjusting GPIO pins or sending i2c commands, they are to the correct device. Open tasks: 1. Provide support for NTSC and FM tuning. 2. Add support for other cards and tuners that use the Bt878 chip. _________________________________________________________________ Cryptographic Subsystem Contact: Sam Leffler Michael Richardson has been spearheading work to improve the crypto subsystem used by various parts of the kernel including Fast IPSec and geli. This work is sponsored by Hifn and has been happening outside the CVS repository. A main focus of this work is to add support for higher-level hardware operations that can significantly improve the performance of IPSec and SSL protocols. Results of this work are now being readied for CVS. These redesign the core/driver APIs to use the kobj facilities and recast software crypto drivers as pseudo devices. The changes greatly improve the system and permit new functionality such as specifying which crypto device to use when multiple are available. The redesign will also enable load balancing of crypto work across multiple devices and the addition of virtual crypto sessions by which small operations can be done in software when the overhead to set up a hardware device is too costly. In addition to the changes to the core crypto system several crypto drivers have been updated to improve their operation. Top of this list is the hifn(4) driver where many longstanding bugs have been fixed for 7955/756 parts. _________________________________________________________________ EuroBSDCon 2007 URL: http://2007.EuroBSDCon.org/ URL: http://www.EuroBSDCon.dk/ Contact: Sidsel Jensen The sixth EuroBSDCon will take place in Copenhagen, Denmark on Friday the 14th and Saturday 15th of September 2007 . The conference will be held at Symbion Science Park . Sunday the 16th there will be an optional tour to LEGOland. The call for papers was sent out right after EuroBSDCon 2006 in Milan in November and abstracts are due February 1st! So hurry up and send in all your fantastic and amazing papers to papers at eurobsdcon dot dk. _________________________________________________________________ =46AST_IPSEC Upgrade URL: http://www.FreeBSD.org/~gnn/fast_ipv6.patch URL: http://blogs.FreeBSDish.org/gnn/ Contact: George Neville-Neil Contact: Bjoern Zeeb Just this week I got routing working for the FAST_IPSEC and IPv6 code. Now there are memory smash problems, and then we need to remove the old GIANT lock. I hope to produce another patch with the routing code working in the next week. Open tasks: 1. Test the patch!!!! _________________________________________________________________ =46reeBSD Bugbusting Team URL: http://www.FreeBSD.org/doc/en/articles/pr-guidelines/ URL: http://www.FreeBSD.org/doc/en/articles/problem-reports/ Contact: Mark Linimon Contact: Ceri Davis Contact: Remko Lodder The FreeBSD Bugbusting team is a team of volunteers keeping track of various PR tickets in the GNATS application. Currently the Bugbusting team is investigating old PR tickets, checking whether they are still accurate, checking what needs to be done to fix the issues reported and make sure that the developers team can focus on the latest releases. The team is always in need of volunteers willing to give a hand to resolve the old tickets and get the best feedback that is needed for the open tickets. Please contact FreeBSD-bugbusters@FreeBSD.org if you want more information about the things that need to be done. Open tasks: 1. Checkout old PR tickets, getting the proper feedback and finally fix and/or resolve the tickets. _________________________________________________________________ =46reeBSD GNOME Project URL: http://www.FreeBSD.org/gnome/ Contact: FreeBSD GNOME Project Where have we been?! Not doing status reports, that's for sure. But the FreeBSD GNOME project has been very busy with regular GNOME releases, and other side projects. We are currently shipping GNOME 2.16.2 in the ports tree, and we are testing GNOME 2.17.5 in the MarcusCom tree. Most recently, work has completed on a cleanup of the FreeBSD backend to libgtop. This module has needed a lot of work, and should now be reporting correct system statistics. The cleaned up version is currently being tested in the MarcusCom tree, and will make it into the FreeBSD ports tree along with GNOME 2.18. The GStreamer framework has been taken out of direct gnome@ maintainership, and put under a new multimedia@ umbrella. This will give multimedia-savvy developers a chance to collaborate on this important piece of the GNOME Desktop along with other important audio and video components. The biggest accomplishment of 2006 for the FreeBSD GNOME team had to have been the port of HAL . This effort was started to give FreeBSD users a richer desktop experience. Since the initial FreeBSD release of HAL with GNOME 2.16, it has been incorporated into the FreeBSD release of KDE 3.5.5 as well as PC-BSD 1.3. The FreeBSD backend has also made it upstream into the HAL git repository so future releases of HAL will have FreeBSD support out-of-the-box. Finally, it is with sadness that we say good-bye to one of our team members. Adam Weinberger stepped down from the FreeBSD GNOME team to save lives instead (priorities, man!). His splash screens and grammar nit-picking will be missed. Open tasks: 1. Now that HAL has been ported to FreeBSD, there is a strong desire to see NetworkManager ported. The big parts will be porting NM to use our 80211 framework, and extending some of the base utilities such as ifconfig. Contact marcus@FreeBSD.org if you are interested in helping. 2. Our system-tools-backends module needs some attention. This module is responsible for system configuration tasks in GNOME such as user management, network shares administration, etc. A knowledge of Perl is highly recommended. Contact marcus@FreeBSD.org if you are interested in helping. 3. We need good documentation writers to help update our FAQ and other documentation. If you would like to take on the responsibility full-time, or just contribute some pieces, please notify gnome@FreeBSD.org . 4. We are always in need of GNOME development testers. See our development branch FAQ for ways on how you can help make the next release of GNOME the best release. _________________________________________________________________ =46reeBSD Security Officer and Security Team URL: http://www.FreeBSD.org/security/ URL: http://www.FreeBSD.org/doc/en_US.ISO8859-1/articles/contributors/staff -listing.html#STAFF-SECTEAM URL: http://vuxml.FreeBSD.org/ Contact: Security Officer Contact: Security Team In the time since the last status report, four security advisories have been issued concerning problems in the base system of FreeBSD (three in 2006 and one in 2007); of these, one problem was in "contributed" code, while the remaining three were in code maintained within FreeBSD. The Vulnerabilities and Exposures Markup Language (VuXML) document has continued to be updated by the Security Team and Ports Committers documenting new vulnerabilities in the FreeBSD Ports Collection; since the last status report, 55 new entries have been added, bringing the total up to 869. In order to streamline security team operations and ensure that incoming emails are promptly acknowledged, Remko Lodder has been appointed the security team secretary. The following FreeBSD releases are supported by the FreeBSD Security Team: FreeBSD 4.11, FreeBSD 5.5, FreeBSD 6.0, FreeBSD 6.1, and FreeBSD 6.2. The respective End of Life dates of supported releases are listed on the web site; of particular note, FreeBSD 4.11 and FreeBSD 6.0 will cease to be supported at the end of January 2007. _________________________________________________________________ =46reeBSD/powerpc on Freescale MPC8555 Contact: Rafal Jaworowski Contact: Marcel Moolenaar Platform summary: * PowerQuiccIII integrated controller * e500 CPU core * compliant with PowerPC BookE specification (significantly different from the 'traditional' PowerPC architecture the current FreeBSD/powerpc supports, particularly in the areas of MMU design, exceptions model, specific e500 machine instructions etc.) Currently the machine is booting FreeBSD 6.1-RELEASE-p10 and operating both single- and multi-user modes; below are highlights of available functionality: 1. Low-level support 2. + booting from U-Boot bootloader + locore machine initialization + e500 exceptions + VM: a new pmap module developed 3. On-chip peripherals 4. + introduced ocpbus hierarchy (nexus and descendants) + interrupt controller: using generic OpenPIC driver + serial console: using uart(4) driver + barebones serial support using the QUICC's SCC + host/PCI bridge: a new driver developed for the built-in bridge + networking: a new driver developed for TSEC (3-speed Ethernet) 5. Booting 6. + from ATA disk and USB memory stick (both through a secondary PCI VIA82C686B controller) + from network (NFS-mounted rootfs) 7. Basic TCP/IP protocols and apps work (DHCP, NFS, SSH, FTP, Telnet etc.) 8. Userland 9. + integrated SoftFloat emulation lib (required due to e500 not being equipped with the old-style PowerPC FPU) + almost all applications seem to work Open tasks: 1. Work out extensible layout for sys/powerpc architecture directory so we can easily add support for new core variations and platforms to come in the future. 2. Integrate with FreeBSD source tree. 3. Release and tinderbox related options and settings. _________________________________________________________________ =46reeSBIE URL: http://www.FreeSBIE.org URL: http://users.gufi.org/~rionda/20relnotes/ URL: http://users.gufi.org/~rionda/20screen/ Contact: Matteo Riondato Contact: FreeSBIE Staff Contact: FreeSBIE Mailing List FreeSBIE is approaching the 2.0-RELEASE. The first release candidate proved to be good enough but a second one will probably be released. An external developer is working on integrating BSDInstaller in FreeSBIE 2.0 and this may cause a little delay of the release date. Release Notes were written and need to be updated with the current list of packages. A script which allows to switch Tor+Privoxy on and off was added and its usage was documented. The 2.0-RELEASE is near, hopefully near the end of January but this will also depend on when FreeBSD 6.2-RELEASE will be released. _________________________________________________________________ =46reshPorts URL: http://www.freshports.org/ URL: http://news.freshports.org/ Contact: Dan Langille There have been a number of improvements to FreshPorts over the last quarter of 2006. The following are just a few of them. The links take you to the relevant article within the FreshPorts News website . * Better pagination of larger result sets * Listing of sanity test failures * Inclusion of latest vulnerabilities on the front page * Started working on adding tools to make FreshSource/FreshPorts more useful as a developer tool * The new dual opteron server has been deployed! My thanks to the many people who have contributed suggestions, ideas, and code over the years. Most of you are documented at the above URLs. Open tasks: 1. FreshPorts/FreshSource as a developer tool _________________________________________________________________ GEOM Multipath Contact: Matthew Jacob A toy implementation of GEOM based active/passive multipath is now done and in a perforce repository. Seems to work. _________________________________________________________________ Hungarian Translation of the Webpages URL: http://www.FreeBSD.org/hu/ Contact: G=E1bor K=F6vesd=E1n Contact: Giorgos Keramidas G=E1bor K=F6vesd=E1n (gabor@) has submitted the Hungarian translation of= the webpages and Giorgos Keramidas (keramida@) has reviewed and committed the pages. The initial rendering issues have also been fixed and the webpage is in a pretty good shape now. As usual, this translation does not contain every part of the English version, but the most important and useful parts are there. G=E1bor will maintain this translation and regularly sync the content with the English version and add new translations if such become available. Open tasks: 1. Fix typos and mistakes that will be revealed after a deeper review by the public 2. Get more people involved _________________________________________________________________ Intel 3945ABG Wireless LAN Driver: wpi URL: http://perforce.FreeBSD.org/depotTreeBrowser.cgi?FSPC=3D//depot/user/ben jsc/wpi URL: http://www.clearchain.com/wiki/wpi Contact: Benjamin Close An initial port of the NetBSD wpi driver has been done and development is happening fast to get this driver ready for the tree. At present basic functionality works. The driver can associate with a non encrypted peer and pass data in 11b and 11g modes. There is still lots to do and testing is welcome. Many thanks have to go to Sam, Max and Kip for helping the driver reach this point. Open tasks: 1. Solve bus dma alignment issues 2. Support WEP and WPA 3. Testing and more testing _________________________________________________________________ Interrupt Filtering URL: http://wikitest.FreeBSD.org/Interrupts Contact: Paolo Pisati Contact: John Baldwin Contact: Scott Long Interrupt filtering is a new method to handle interrupts in FreeBSD that retains backward compatibility with the previous models (FAST and ITHREAD), while improving over them in some aspects. With interrupt filtering, the interrupt handler is divided into 2 parts: the filter (that checks if the actual interrupt belongs to a device) and a private per-handler ithread (that is scheduled in case some blocking work has to be done). The main benefits of this work are: * Feedback from filters (the operating system finally knows what's the state of an event and can react consequently). * Lower latency/overhead for shared interrupt line. * Previous experiments with interrupt filtering showed an increase in performance against the plain ithread model in some cases. * General shrink of the machine dependent code - part of the interrupting handling code was turned into machine independent code. During the last quarter many improvements were made up to the point where 3 archs (i386, amd64 and arm) are reported to work, and the project can be considered feature complete. I definitely want to make it part of the 7.0 release. Open tasks: 1. Define a road map to commit the code into the tree. 2. Rethink the interrupt stray handling (?!?!). 3. Finish off support for powerpc, sparc64 and ia64 (sun4v support is known to be broken now). _________________________________________________________________ ipfw NAT and libalias Contact: Paolo Pisati Support for in-kernel NAT, redirect and LSNAT for ipfw was committed to HEAD, and i encourage people to test it so we can quickly discover/fix bugs. To add these features to ipfw, compile a new kernel adding "options IPFIREWALL_NAT" to your kernel config or, in case you use modules, add "CFLAGS +=3D -DIPFIREWALL_NAT" to your make.conf. Open tasks: 1. Teach libalias to handle mbufs (this will fix TSO-capable NICs). 2. Add support for hardware checksum offloading. _________________________________________________________________ iSCSI Initiator URL: ftp://ftp.cs.huji.ac.il/users/danny/freebsd/iscsi-2.0.1.tar.bz2 Contact: Daniel Braniss Though it is still a work in progress, it now supports more targets, has login CHAP authentication and header/data digest. It will also recover from a lost connection - most of the time. Open tasks: 1. instrumentation 2. task management support 3. improve the error recovery _________________________________________________________________ Libelf URL: http://wiki.FreeBSD.org/LibElf URL: http://wiki.FreeBSD.org/PmcTools URL: http://people.FreeBSD.org/~jkoshy/projects/perf-measurement/ Contact: Joseph Koshy Libelf is a BSD-licensed library for ELF parsing & manipulation implementing the SysV/SVR4 (g)ELF[3] API. Current status: The library is now in -CURRENT. Work continues on its test suite and tutorial, and on deploying it in PmcTools. _________________________________________________________________ MPT LSI-Logic Host Adapters: mpt Contact: Matthew Jacob The 'mpt' project is support for the MPT LSI-Logic Host Adapters (SCSI, Fibre Channel, SAS). The last quarter saw a lot of change supported by Yahoo! and LSI-Logic and many others as things settled out for better support for U320. Some initial Big Endian support was offered by John Birrel and Scott Long. Open tasks: 1. Finish SAS Integrated RAID support. 2. Try and get U320 RAID working better than it currently does. 3. Finish Big Endian support, including that for target mode. _________________________________________________________________ Multi-link PPP daemon (MPD) URL: http://sourceforge.net/projects/mpd/ URL: http://mpd.cvs.sourceforge.net/*checkout*/mpd/mpd/doc/changes.sgml Contact: Alexander Motin Contact: Archie Cobbs MPD is moving to the next major release - mpd4_0. At the end of October one more beta version (4_0b5) was released and first RC is planned soon. Since 3_18 and 4_0b4 numerous bugs and cases of incorrect internal handling have been fixed. Performance has been increased and system requirements reduced. Many new features have been implemented: * IPv6 support * NAT (using the ng_nat(4) node) * integrated web server * Deflate and Predictor-1 CCP compression Some historically broken features have been reimplemented: * TCP and UDP link types * CCP compression * ECP encryption To support compression, two new Netgraph nodes ng_deflate and ng_pred1 have been created and the ng_ppp node has been modified. Open tasks: 1. ng_ppp node refactoring. 2. Implement packet loss notification in related Netgraph nodes (ng_ppp, ng_pptp, ng_async, ng_deflate, ng_pred1, ng_vjc, ...) to reduce recovery time and probability of incorrect packet decompression. 3. MPD auth subsystem refactoring. _________________________________________________________________ Network Stack Virtualization URL: http://imunes.tel.fer.hr/virtnet/ Contact: Marko Zec The network stack virtualization project aims at extending the FreeBSD kernel to maintain multiple independent instances of networking state. This will allow for complete networking independence between jails on a system, including giving each jail its own firewall, virtual network interfaces, rate limiting, routing tables, and IPSEC configuration. The prototype currently virtualizes the basic INET and INET6 kernel structures and subsystems, including the TCP machinery and the IPFW firewall. The focus is currently being kept on resolving bugs and sporadic lockups, and defining the internal and management APIs. It is expected that within the next month the code will become sufficiently complete and stable for testing by early adopters. _________________________________________________________________ New USB Stack URL: http://perforce.freebsd.org/depotTreeBrowser.cgi?FSPC=3D//depot/projects /usb/src/sys/dev/usb URL: http://www.turbocat.net/~hselasky/usb4bsd Contact: Hans Petter Sirevaag Selasky During the last three months there has not been so much activity in the USB project. Some regression issues have been reported and fixed. Bernd Walter reports that he has got the new USB stack working on ARM processors with some minor tweaks. Markus Brueffer reports that he is working on the USB HID parser and support. A current issue with the new USB stack is that the EHCI driver does not work on the Sparc64 architecture. If someone has got a Sparc64 with FreeBSD 7-CURRENT on and can lend the USB project the root password, a serial console and a USB test device, for example a USB memory stick, that would be much appreciated. Another unresolved issue is that the ural(4) USB device driver does not always work. This is currently being worked on. If you want to test the new USB stack, check out the USB perforce tree or download the SVN version of the USB driver from my USB homepage. At the moment the tarballs are a little out of date. Ideas and comments with regard to the new USB API are welcome at freebsd-usb@FreeBSD.org . _________________________________________________________________ Past and Future PR Closing Events URL: http://wikitest.freebsd.org/Bugathons Contact: Florent Thoumie Following the example of our NetBSD friends, we organized a couple of Bugathons to help decreasing the open PR count. At first, it was decided to make it a monthly event focused on both src, ports and doc. Audience decreased with each Bugathon organized and less non-ports committers attended the events. So from now on, we will focus on ports (making it a Portathon) and organize a new event after the end of each ports freeze (that should be twice a year, at most). _________________________________________________________________ Porting ZFS to FreeBSD URL: http://perforce.FreeBSD.org/depotTreeBrowser.cgi?FSPC=3D//depot/user/pjd /zfs URL: http://www.opensolaris.org/os/community/zfs/porting/ URL: http://docs.FreeBSD.org/cgi/mid.cgi?20060822104516.GB16033 Contact: Pawel Jakub Dawidek The ZFS file system works quite well on FreeBSD now. The first patchset has already been published on the freebsd-fs@FreeBSD.org mailing list . All file system methods are already implemented (except ACL-related). Basically all stress tests I tried work, even under very high load. There is still a problem with memory allocation, which can get out of control, but from what I know the SUN guys also work on this. Recently I have been working on a file system regression test suite. From what I found, there are no such test suites for free. I've already more than 3000 tests and I'm testing correctness of most file system related syscalls (chflags, chmod, chown, link, mkdir, mkfifo, open, rename, rmdir, symlink, truncate, unlink). I'm also working to make it usable on other operating systems (like Solaris, where it already works and Linux). Few days ago I also (almost) finished NFS support. You can't use the 'zfs share' command yet, but you can export file systems via /etc/exports and you can also access snapshots. It was quite hard, because snapshots are separate file systems and after exporting the main file system, we need to also serve data from snapshots under it. The one big thing which is missing is ACL support. This is not an easy task, because we first have to make some decisions. Currently we use POSIX ACLs in our UFS, but the market is moving slowly to NTFS/NFSv4-type ACLs. In Solaris they use POSIX ACLs for UFS and NFSv4-type ACLs for ZFS and we probably also want to use NFSv4-type ACLs in our ZFS, which requires some work outside ZFS. _________________________________________________________________ Ports Collection URL: http://www.FreeBSD.org/ports/ URL: http://www.FreeBSD.org/doc/en_US.ISO8859-1/articles/contributing-ports / URL: http://people.FreeBSD.org/~fenner/portsurvey/ URL: http://portsmon.FreeBSD.org/index.html URL: http://www.FreeBSD.org/portmgr/index.html URL: http://tinderbox.marcuscom.com Contact: Mark Linimon The ports count has jumped to 16347. The PR count, despite a jump, has gone back down to around 700. Not much work has been committed on the ports infrastructure due to the long 6.2 release cycle. However, many test runs have been done for several upcoming features, such as making sure that ports will work with the new release of gcc (4.1), and do not have /usr/X11R6 hard-coded into them. The intention of the latter is to move all ports to $LOCALBASE, which can then be selected by the user. This should help consistency going forwards, albeit at the cost of a one-time conversion. GNOME was updated to 2.16 during the release cycle. In addition, we are in the process of moving the FORTRAN default from f77 to gfortran. See the ports mailing list for details. The new xorg ports are still being worked on as well; they are intended to all live in $LOCALBASE. Hopefully this can get done in the early 6.3 development cycle. See the wiki for more information. A new version of the ports Tinderbox code is available, which is mostly a bugfix release. We have also added Pav Lucistnik as a new portmgr member, who we hope will help us work on the portmgr PR backlog. Welcome! We have also added 8 new committers since the last report. linimon continues to work on resetting committers who are no longer interested in their ports; as well, several ports commit bits have been stored for safekeeping. This is part of an attempt to keep the best match between volunteers and work to be done. Open tasks: 1. Most of the remaining ports PRs are "existing port/PR assigned to committer". Although the maintainer-timeout policy is helping to keep the backlog down, we are going to need to do more to get the ports in the shape they really need to be in. 2. Although we have added many maintainers, we still have many unmaintained ports. As well, the packages on amd64 and sparc64 are lagging behind. _________________________________________________________________ QLogic SCSI and Fibre Channel: isp Contact: Matthew Jacob This project is for support for QLogic SCSI and Fibre Channel host adapters. The last quarter saw the addition of 4Gb Fibre Channel support and a complete rewrite of fabric management (which is still settling out). _________________________________________________________________ Release Engineering URL: http://www.FreeBSD.org/releng/ URL: http://www.FreeBSD.org/releases/6.2R/announce.html URL: http://www.FreeBSD.org/snapshots/ Contact: Release Engineering Team The recent activities of the Release Engineering team have centered around FreeBSD 6.2-RELEASE, which is now available for downloading. This is the latest release from the RELENG_6 branch, and includes many new performance and stability improvements, bug fixes, and new features. The release notes and errata notes for FreeBSD 6.2 contain more specific information about what's new in this version. We thank the FreeBSD developer and user community for their efforts towards making this release possible. The Release Engineering Team also produced snapshots of FreeBSD CURRENT in November 2006 and January 2007. These snapshots have not received extensive testing, and should not be used in production environments. However, they can be used for testing or experimentation, and show the kinds of functionality that can be expected in future FreeBSD releases. _________________________________________________________________ Sound Subsystem Improvements URL: http://people.FreeBSD.org/~ariff/ URL: http://www.FreeBSD.org/projects/ideas/ URL: http://wiki.FreeBSD.org/soundsystem Contact: Ariff Abdullah Contact: Alexander Leidinger Contact: Multimedia Mailinglist Since the last status report there were improvements to the emu10kx driver for High Definition Audio (HDA) compatible chips. Some more chips are supported now and already supported chips should provide a better zero-configuration experience. The generic sound code got some very nice low latency changes, and fixes which make it multichannel/endian/format safe. We do not support multichannel operation yet, but this work is a prerequisite to work on implementing multichannel operation. This work also fixed some bugs which people may experience as clicks, hickups, truncation or similar behavior in the sound-output. So far there is no merge to 5.x or 6.x planned for this code, especially because there are API/ABI changes, e.g., several sysctls changed. People who do not care about this can download binary sound modules from Ariff's download page for 6.x and 5.x. We thank all people who tested the changes / submitted patches and thus helped improving the sound system. Open tasks: 1. Have a look at the sound related entries on the ideas list. 2. Add multichannel support. 3. sndctl(1): tool to control non-mixer parts of the sound system (e.g. spdif switching, virtual-3D effects) by a user (instead of the sysctl approach in -CURRENT); pcmplay(1), pcmrec(1), pcmutil(1). 4. Plugable FEEDER infrastructure. For ease of debugging various feeder stuff and/or as userland library and test suite. 5. Extend the wiki page. _________________________________________________________________ The FreeBSD Dutch Documentation Project URL: http://www.FreeBSD.org/doc/nl/books/handbook URL: http://www.evilcoder.org/content/section/6/39/ URL: http://www.FreeBSD-nl.org/doc/nl/ URL: http://www.FreeBSD-nl.org/www/ Contact: Remko Lodder The FreeBSD Dutch Documentation Project is an ongoing project to translate the FreeBSD Handbook to the Dutch Language. Currently we almost translated the entire handbook, and we translated parts of the website, sadly the project went into a slush lately, so we seek out for fresh and new translators that are willing to join the team to continue the effort. Open tasks: 1. Translate the rest of the handbook 2. Make the documentation up to date 3. Translate the rest of the website _________________________________________________________________ The FreeBSD Foundation URL: http://www.FreeBSDFoundation.org Contact: Deb Goodkin The FreeBSD Foundation ended 2006 raising over $100,000. We received commitments for another $55,000 in donations for the Fall Fundraiser. We fell short of our goal of raising $200,000. But, we are working hard to fill this gap, early in 2007, so we can continue with the same level of support for the project and community. Please go to http://www.freebsdfoundation.org/donate/ to find out how to make a donation to the foundation. We added a donors page to our website to acknowledge our generous donors. We negotiated and are now actively managing a joint technology project with NLNet and the University of Zagreb to develop virtualized network stack support for FreeBSD. We sponsored AsiaBSDCon and are now accepting travel grant applications for this conference. We are working to upgrade the project's network testbed with 10Gigabit interconnects. Cisco has generously donated a 10Gigabit switch and we have received network adapters from Myricom, Neterion, Intel, and Chelsio. Adapters from other vendors are being solicited so that we can do interoperability testing. For more information on what we've been up to, check out our end-of-year newsletter at http://www.freebsdfoundation.org/press/2006Dec-newsletter.shtml . _________________________________________________________________ TrustedBSD Audit URL: http://www.TrustedBSD.org/audit.html URL: http://www.OpenBSM.org/ Contact: Robert Watson Contact: Christian Peron Contact: Wayne Salamon FreeBSD 6.2-RELEASE, the first release of FreeBSD with experimental audit support is now available. The plan is to make audit a full production feature as of FreeBSD 6.3-RELEASE, with "options AUDIT" compiled in by default. A TODO list has been posted to trustedbsd-audit. OpenBSM 1.0 alpha 13, which includes support for XML record printing, additional 64-bit token types, additional audit events, and more cross-platform build support, has been released. OpenBSM 1.0 alpha 14, which adds support for warnings clean building with gcc 4.1, will be released shortly. The new OpenBSM release will be merged to FreeBSD CVS in late January or early February. Open tasks: 1. Complete assignment of audit events to non-native and a few remaining native system calls. Add additional system call argument auditing. 2. Merge MAC Framework hooks allowing MAC modules to control access to kernel audit services. Refine and merge MAC labeling support in audit, including support for MAC annotations in the audit trail. 3. Complete pass through user space services adding audit support to system management tools (and ftpd). Work with third party software maintainers to add audit support for applications like xdm/kdm/gdm. 4. Merge latest OpenBSM, including XML output support. _________________________________________________________________ TrustedBSD MAC Framework URL: http://www.TrustedBSD.org/mac.html Contact: Robert Watson Contact: Most work on the MAC Framework during this period, other than as relates to the priv(9) project described in a separate status report, has been in refinement of the structure of the framework. * Add two new entry points allowing MAC Framework policy modules to grant or limit fine-grained system privileges. * A sample mac_priv(4) policy module has been created demonstrating how a MAC Framework policy module can grant specific system privileges to specific users. * Commenting throughout the MAC Framework significantly extended. * Correct a bug in which the original ifnet label was copied to user space via ioctl, rather than the thread-local copy. * mac_enforce_subsystem debugging sysctls removed, as some policies rely on access control checks being called even when non-enforcing (specifically, information flow related policies). * Break out mac.h include file into mac.h (user API, system calls) and mac_framework.h (in-kernel interface to the MAC Framework). Move non-user MAC include files from src/sys to src/sys/security/mac. Move and break out kern_mac.c into mac_framework.c and mac_syscalls.c. The MAC Framework is now entirely located in src/sys/security/mac. * Export the MAC Framework version via a read-only sysctl and provide a #define version usable by policies. * MAC Framework locking optimized to optimistically expect no write lock contention during read locking. Open tasks: 1. Now that the MAC Framework has been fully moved to src/sys/security/mac, embark on the 'mac2' interface cleanup, in which many MAC Framework entry points are renamed for consistency. This will require most MAC Framework policy modules to be modified between FreeBSD 6.x and FreeBSD 7.x, although in a way that can be largely done using sed. 2. Add accessor functions for policies retrieving per-policy label data from labels, so that policy modules do not compile in the binary layout of struct label. This will allow future optimization of the label layout. 3. Complete integration of audit and MAC support, allowing MAC policy modules to control access to audit interfaces, and allowing them to annotate audit records. _________________________________________________________________ TrustedBSD priv(9) URL: http://www.TrustedBSD.org/ Contact: Robert Watson TrustedBSD priv(9) replaces suser(9) as an in-kernel interface for checking privilege in FreeBSD 7.x. Each privilege check now takes a specific named privilege. This allows both centralization of jail logic relating to privilege, which is currently distributed around the kernel at the point of each call to suser(9), and allows instrumentation of the privilege logic by the MAC Framework. Two new MAC Framework entry points, one to grant and the other to limit privilege, are now available, providing fine-grained control of kernel privilege by policy modules. This lays the kernel infrastructure groundwork for further refinement and extension of the kernel privilege model. The priv(9) implementation has been committed to FreeBSD 7-CURRENT. This software was developed by Robert N. M. Watson for the TrustedBSD Project under contract to nCircle Network Security, Inc. Open tasks: 1. Complete review of kernel privilege checks, removal of suser(9) jail flag now that checks are centralized. 2. Explore possible changes to kernel privilege model along lines of POSIX.1e privileges, the Solaris privilege interface, etc. This has been explored previously as part of the TrustedBSD Capabilities project also. _________________________________________________________________ Update of the Linux Compatibility Environment in the Kernel URL: http://wiki.FreeBSD.org/linux-kernel Contact: Alexander Leidinger Contact: Roman Divacky Contact: Emulation Mailinglist Since the last status report we made good progress in improving the compatibility environment. We fixed more than 30 testcases on i386 (130 testcases =3D 16% still failing) and more than 60 testcases on amd64 (140 testcases =3D 17% still failing) in the Linux 2.4 compatibility. These numbers compare FreeBSD 6.2 with -CURRENT. Some of those fixes are edge cases in the error handling, and some of them fix real issues -- e.g. hangs -- and improve the stability and correctness of the emulation. Regarding the Linux 2.6 compatibility there are 140 testcases (17%) on i386 and 150 testcases (18%) on amd64 still failing in -CURRENT. After fixing some showstopper problems with real applications, we should be able to give the 2.6 emulation a more widespread exposure "soon" to find more bugs and to determine the importance of those Linux syscalls which we did not implement yet. The severity of the broken testcases varies, and some of them will never be fixed, e.g., we will never be able to load Linux kernel modules into a FreeBSD kernel, being able to add swap with a Linux command has very low priority, and fixing stuff which is used by applications like IPC type 17 has high priority. Some differences in the 2.6 compatibility are because not all i386 changes are merged into the amd64 code, and some testcases are already fixed in our perforce repository but need more review before they can be committed to -CURRENT. We need some more testers and bug reporters. So if you have a little bit of time and a favorite Linux application, please play around with it on -CURRENT. If there is a problem, have a look at the wiki if we already know about it and report on emulation@ . We are especially interested in reports about the 2.6 compatibility (sysctl compat.linux.osversion=3D2.6.16), but only with the most recent -CURRENT and maybe with some patches we have in the perforce repository (mandatory on amd64). We thank all people who tested the changes / submitted patches and thus helped improving the Linux compatibility environment. _________________________________________________________________ Updating X.org FreeBSD Ports to 7.2 URL: http://xorg.freedesktop.org/ URL: http://git.xbsd.org/?p=3Dfreebsd/ports.git;a=3Dshortlog;h=3Dxorg URL: http://blog.xbsd.org/ URL: http://lists.freebsd.org/pipermail/freebsd-x11/ Contact: Florent Thoumie Contact: Eric Anholt Contact: Dejan Lesjak X.org 7.2 release has been delayed more than a month, which gave us more time to fix build failures, to work on a few runtime issues and to determine the easiest way to upgrade from 6.9 to 7.2 (mostly with the help of people on the freebsd-x11@ mailing list ). Everything is in a rather good shape but there's still a little amount of work to do. The merge of new ports is most likely to happen before the end of January. Open tasks: 1. Do a global review of the diff between the original tree and the experimental one (git-diff origin xorg for git users) 2. Fix the remaining (9 I think, 3 being lang/jdk's) build errors 3. Continue testing 4. Do another experimental build on pointyhat _________________________________________________________________ Wireless Networking Contact: Sam Leffler Work on wireless support has continued to evolve in the public CVS tree while other work has been going on behind the scenes in the developer's perforce repository. Support was recently added to HEAD for half- and quarter-rate channels as found in the 4.9 GHz FCC Public Safety Band. This work was a prerequisite to adding similar support in the 900 MHz band as found in Ubiquiti's SR9 cards. Adding this functionality was straightforward due to the design of the net80211 layer, requiring only some additions to handle the unusual mapping between frequencies and IEEE channel numbers. The ath(4) driver currently supports hardware capable of operating on half- and quarter-rate channels. Kip Macy recently made significant advances preparing legacy drivers for the re-architected net80211 layer that has been languishing in perforce. With his efforts this code is nearly ready for public testing after which it can be merged into CVS. Our goal is to complete this merge in time for the 7.x branch (otherwise it will be forced to wait for 8.0 before it appears in a public release). This revised net80211 layer includes advanced station mode facilities such as background scanning and roaming and support for Atheros' SuperG extensions. Getting the revised scanning work into CVS will greatly simplify public distribution of the Virtual AP (VAP) code as a patch as well as enable addition of 802.11n support. Benjamin Close is working on support for the Intel 3945 parts commonly found in laptops. The work is going on in the perforce repository with public code drops for testing. Atheros PCI/Cardbus support was updated with a new HAL that fixes a few minor issues and corrects a problem that kept AR2424 parts from working. The new HAL also enables more efficient use of the hardware keycache for TKIP keys; on newer hardware you can now support up to 57 stations without faulting keys into the cache. Support for the latest 802.11n parts found in the new Lenovo and Apple laptops (among others) is in development; initial release will support only legacy operation. Support for Atheros USB devices is coming. Atheros has agreed to license their firmware with the same license applied to the HAL which means it can be committed to the tree and distributed as part of releases. The driver is still in development. wpa_supplicant and hostapd were updated to the latest stable build releases from Jouni Malinen. Shortly the in-tree code base will switch to the 0.5.x tree which will bring in much new functionality including dynamic VLAN tagging that will be especially useful once the multi-bss support is available. The support for injection of raw 802.11 frames was committed to HEAD. This work was done in collaboration with Andrea Bittau. At this point there are no plans to commit this to the STABLE branch as it requires API changes. _________________________________________________________________ Legal Notices | =A9 1995-2007 The FreeBSD Project. All rights reserved. --Boundary-00=_3cVrFyZxpZGOqso-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 23:03: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 58E5816A412 for ; Tue, 16 Jan 2007 23:03:57 +0000 (UTC) (envelope-from ramadas@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.236]) by mx1.freebsd.org (Postfix) with ESMTP id 1B50E13C46A for ; Tue, 16 Jan 2007 23:03:57 +0000 (UTC) (envelope-from ramadas@gmail.com) Received: by wr-out-0506.google.com with SMTP id 71so292625wri for ; Tue, 16 Jan 2007 15:03:56 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=Gw72HkQwwCNnbCbH/6PO825e5iAZYDgoEHIPmliJWhPo+EHRpUfKz1d1o/lghZ+5XCJMIrf5bIfW74wD4RuMjkEyOQeNZf/FnlvnnewNxX7XY2Sre0uSOXOdGReIg5b104rRhzPpHciOLgjFcJmV19Pvz0ErjzX7TIsEZQSMozQ= Received: by 10.90.115.9 with SMTP id n9mr5332488agc.1168988636139; Tue, 16 Jan 2007 15:03:56 -0800 (PST) Received: by 10.90.51.16 with HTTP; Tue, 16 Jan 2007 15:03:55 -0800 (PST) Message-ID: Date: Tue, 16 Jan 2007 15:03:55 -0800 From: "Kailas Ramasamy" Sender: ramadas@gmail.com To: freebsd-hackers@freebsd.org MIME-Version: 1.0 X-Google-Sender-Auth: 5e3e78b9521dad5b 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: Bridging console port to a telnet session 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, 16 Jan 2007 23:03:57 -0000 Hi, Within a FreeBSD system, I want to telnet to another system and bridge that session to the console port so that when an user connects to the system via console port, it is automatically redirected to other system for I have already established a telnet session. Your help is greatly appreciated. Regards Kailas From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 16 23:41:31 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 489CF16A47E for ; Tue, 16 Jan 2007 23:41:31 +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 CCC6D13C4A6 for ; Tue, 16 Jan 2007 23:41:30 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 33774 invoked by uid 1001); 16 Jan 2007 23:42:06 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Tue, 16 Jan 2007 18:42:05 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17837.25293.686122.147525@bhuda.mired.org> Date: Tue, 16 Jan 2007 18:42:05 -0500 To: "Kailas Ramasamy" In-Reply-To: References: X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" 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: Bridging console port to a telnet session 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, 16 Jan 2007 23:41:31 -0000 In , Kailas Ramasamy typed: > Hi, > Within a FreeBSD system, I want to telnet to another system and bridge that > session to the > console port so that when an user connects to the system via console port, > it is automatically > redirected to other system for I have already established a telnet session. What's wrong with simply leaving a telnet session running on the console, maybe with some support to relaunch it should it ever exit? http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 17 00:19: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 72DA916A412 for ; Wed, 17 Jan 2007 00:19:34 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id 1FE1B13C45E for ; Wed, 17 Jan 2007 00:19:34 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id 40DF11CC2C; Wed, 17 Jan 2007 13:01:34 +1300 (NZDT) Date: Wed, 17 Jan 2007 13:01:34 +1300 From: Andrew Thompson To: Kailas Ramasamy Message-ID: <20070117000134.GC12548@heff.fud.org.nz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-hackers@freebsd.org Subject: Re: Bridging console port to a telnet session 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, 17 Jan 2007 00:19:34 -0000 On Tue, Jan 16, 2007 at 03:03:55PM -0800, Kailas Ramasamy wrote: > Hi, > Within a FreeBSD system, I want to telnet to another system and bridge that > session to the > console port so that when an user connects to the system via console port, > it is automatically > redirected to other system for I have already established a telnet session. > > Your help is greatly appreciated. You should be able to do this with the comms/conserver port. Andrew From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 17 01:33: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 C9D0116A407 for ; Wed, 17 Jan 2007 01:33:00 +0000 (UTC) (envelope-from ramadas@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.226]) by mx1.freebsd.org (Postfix) with ESMTP id 86A9713C448 for ; Wed, 17 Jan 2007 01:33:00 +0000 (UTC) (envelope-from ramadas@gmail.com) Received: by wr-out-0506.google.com with SMTP id 71so331184wri for ; Tue, 16 Jan 2007 17:32:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=VIVYyxmfYzJ4xmHJAGJnKOUvROjbhSASTvpjHoFWACde5seN2WRPTCHUHzs0QID8lKz2OVuVb17JYwW3lkCM1dOflD33Oi+4Mm9XmNuRlI4exPTUENXHzv31AX64D6KMsn7D09RH2cPoVUb3KQ3HAFe4MonzKluV/2N0bl2raQU= Received: by 10.90.36.9 with SMTP id j9mr5417227agj.1168997576869; Tue, 16 Jan 2007 17:32:56 -0800 (PST) Received: by 10.90.51.16 with HTTP; Tue, 16 Jan 2007 17:32:56 -0800 (PST) Message-ID: Date: Tue, 16 Jan 2007 17:32:56 -0800 From: "Kailas Ramasamy" Sender: ramadas@gmail.com To: "Mike Meyer" In-Reply-To: <17837.25293.686122.147525@bhuda.mired.org> MIME-Version: 1.0 References: <17837.25293.686122.147525@bhuda.mired.org> X-Google-Sender-Auth: 574246138eddd1c8 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 Subject: Re: Bridging console port to a telnet session 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, 17 Jan 2007 01:33:00 -0000 Hi Mike, Yes, that what I am planing but I want to do this dynamically. Do you know how to launch a telnet session from a process?. How do I pass stdin and stdout to the telnet from a process?. Thanks Kailas On 1/16/07, Mike Meyer wrote: > > In , Kailas > Ramasamy typed: > > Hi, > > Within a FreeBSD system, I want to telnet to another system and bridge > that > > session to the > > console port so that when an user connects to the system via console > port, > > it is automatically > > redirected to other system for I have already established a telnet > session. > > What's wrong with simply leaving a telnet session running on the > console, maybe with some support to relaunch it should it ever exit? > > -- > Mike Meyer > http://www.mired.org/consulting.html > Independent Network/Unix/Perforce consultant, email for more information. > From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 17 02:47: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 B860D16A40F for ; Wed, 17 Jan 2007 02:47:48 +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 5C51413C44C for ; Wed, 17 Jan 2007 02:47:48 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 36895 invoked by uid 1001); 17 Jan 2007 02:48:23 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Tue, 16 Jan 2007 21:48:23 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17837.36471.343582.464631@bhuda.mired.org> Date: Tue, 16 Jan 2007 21:48:23 -0500 To: "Kailas Ramasamy" In-Reply-To: References: <17837.25293.686122.147525@bhuda.mired.org> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" 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: Bridging console port to a telnet session 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, 17 Jan 2007 02:47:48 -0000 In , Kailas Ramasamy typed: > Hi Mike, > Yes, that what I am planing but I want to do this dynamically. Do you know > how to launch a > telnet session from a process?. How do I pass stdin and stdout to the telnet > from a process?. See the fork() and exec() man pages. On 1/16/07, Mike Meyer wrote: > > > > In , Kailas > > Ramasamy typed: > > > Hi, > > > Within a FreeBSD system, I want to telnet to another system and bridge > > that > > > session to the > > > console port so that when an user connects to the system via console > > port, > > > it is automatically > > > redirected to other system for I have already established a telnet > > session. > > > > What's wrong with simply leaving a telnet session running on the > > console, maybe with some support to relaunch it should it ever exit? > > > > > -- > > Mike Meyer > > http://www.mired.org/consulting.html > > Independent Network/Unix/Perforce consultant, email for more information. > > > _______________________________________________ > 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" > -- Mike Meyer http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 17 18:24: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 0EE6516A407 for ; Wed, 17 Jan 2007 18:24:55 +0000 (UTC) (envelope-from ramadas@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.234]) by mx1.freebsd.org (Postfix) with ESMTP id 9EDDF13C474 for ; Wed, 17 Jan 2007 18:24:54 +0000 (UTC) (envelope-from ramadas@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so2420067wxc for ; Wed, 17 Jan 2007 10:24:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=k9nNbGqU+SjT3ykdJ5XCP0IkyZ3oHN9G/uAr9R0PyA3Eyf+XHuBqPznbxlXt0rx74EbZKDRNyGvlCODZatmzB5z2miJnldrx1/vEuHOnAe8RxB01qtyGVCQb1UlueMeAskx9zgkBGgDW2yCA8QEcfRBeF2kt1LIt1O3tcfBZh1g= Received: by 10.90.104.14 with SMTP id b14mr6530163agc.1169058290421; Wed, 17 Jan 2007 10:24:50 -0800 (PST) Received: by 10.90.51.16 with HTTP; Wed, 17 Jan 2007 10:24:50 -0800 (PST) Message-ID: Date: Wed, 17 Jan 2007 10:24:50 -0800 From: "Kailas Ramasamy" Sender: ramadas@gmail.com To: "Mike Meyer" In-Reply-To: <17837.36471.343582.464631@bhuda.mired.org> MIME-Version: 1.0 References: <17837.25293.686122.147525@bhuda.mired.org> <17837.36471.343582.464631@bhuda.mired.org> X-Google-Sender-Auth: e9bd1db82be8f365 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 Subject: Re: Bridging console port to a telnet session 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, 17 Jan 2007 18:24:55 -0000 Hi Mike, I read through fork() and exec() man pages but I couldn't find anything related to this. Basically, I want to launch a telnet session from a process and pass in /dev/console as stdin and stdout. Thanks Kailas On 1/16/07, Mike Meyer wrote: > > In , Kailas > Ramasamy typed: > > Hi Mike, > > Yes, that what I am planing but I want to do this dynamically. Do you > know > > how to launch a > > telnet session from a process?. How do I pass stdin and stdout to the > telnet > > from a process?. > > See the fork() and exec() man pages. > > > > > On 1/16/07, Mike Meyer wrote: > > > > > > In , > Kailas > > > Ramasamy typed: > > > > Hi, > > > > Within a FreeBSD system, I want to telnet to another system and > bridge > > > that > > > > session to the > > > > console port so that when an user connects to the system via console > > > port, > > > > it is automatically > > > > redirected to other system for I have already established a telnet > > > session. > > > > > > What's wrong with simply leaving a telnet session running on the > > > console, maybe with some support to relaunch it should it ever exit? > > > > > > > > -- > > > Mike Meyer > > > http://www.mired.org/consulting.html > > > Independent Network/Unix/Perforce consultant, email for more > information. > > > > > _______________________________________________ > > 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" > > > > -- > Mike Meyer > http://www.mired.org/consulting.html > Independent Network/Unix/Perforce consultant, email for more information. > From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 17 18:47: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 DA6AD16A47C for ; Wed, 17 Jan 2007 18:47:14 +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 6FBB013C465 for ; Wed, 17 Jan 2007 18:47:14 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 49366 invoked by uid 1001); 17 Jan 2007 18:47:50 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Wed, 17 Jan 2007 13:47:50 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17838.28502.527695.168624@bhuda.mired.org> Date: Wed, 17 Jan 2007 13:47:50 -0500 To: "Kailas Ramasamy" In-Reply-To: References: <17837.25293.686122.147525@bhuda.mired.org> <17837.36471.343582.464631@bhuda.mired.org> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" 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: Bridging console port to a telnet session 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, 17 Jan 2007 18:47:14 -0000 In , Kailas Ramasamy typed: > Hi Mike, > I read through fork() and exec() man pages but I couldn't find anything > related to > this. Basically, I want to launch a telnet session from a process and pass > in > /dev/console as stdin and stdout. Well, you don't really need fork(), though fork() follows exec() so often than some OS's combine them into a single call. And I just noticed that if you do "man exec", you get the shell's page - you want exec(3), to get the C calls. Anyway, the sequence is: Use open() to get an fd pointing at /dev/console. Use dup2() to copy that fd to stdin and stdout (and probably stderr). Use an exec() function to launch telnet. Thanks > Kailas > > On 1/16/07, Mike Meyer wrote: > > > > In , Kailas > > Ramasamy typed: > > > Hi Mike, > > > Yes, that what I am planing but I want to do this dynamically. Do you > > know > > > how to launch a > > > telnet session from a process?. How do I pass stdin and stdout to the > > telnet > > > from a process?. > > > > See the fork() and exec() man pages. > > > > > > > > > > On 1/16/07, Mike Meyer wrote: > > > > > > > > In , > > Kailas > > > > Ramasamy typed: > > > > > Hi, > > > > > Within a FreeBSD system, I want to telnet to another system and > > bridge > > > > that > > > > > session to the > > > > > console port so that when an user connects to the system via console > > > > port, > > > > > it is automatically > > > > > redirected to other system for I have already established a telnet > > > > session. > > > > > > > > What's wrong with simply leaving a telnet session running on the > > > > console, maybe with some support to relaunch it should it ever exit? > > > > > > > > > > > -- > > > > Mike Meyer > > > > http://www.mired.org/consulting.html > > > > Independent Network/Unix/Perforce consultant, email for more > > information. > > > > > > > _______________________________________________ > > > 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" > > > > > > > -- > > Mike Meyer > > http://www.mired.org/consulting.html > > Independent Network/Unix/Perforce consultant, email for more information. > > > Hi Mike,
I read through fork() and exec() man pages but I couldn't find anything related to
this. Basically, I want to launch a telnet session from a process and pass in
/dev/console as stdin and stdout.
>
Thanks
Kailas

On 1/16/07, Mike Meyer <mwm@mired.org> wrote:
> In <ecd0bee40701161732v26112f24o2d8323c2777d2f7@mail.gmail.com>, Kailas Ramasamy <kailasr@gmail.com > > typed:
> Hi Mike,
> Yes, that what I am planing but I want to do this dynamically. Do you know
> how to launch a
> telnet session from a process?. How do I pass stdin and stdout to the telnet >
> from a process?.

See the fork() and exec() man pages.

        <mike


> On 1/16/07, Mike Meyer <mwm@mired.org> wrote:
> >
> > In < > ecd0bee40701161503k385819ddgba5562e137630617@mail.gmail.com>, Kailas
> > Ramasamy <kailasr@gmail.com > > typed:
> > > Hi,
> > > Within a FreeBSD system, I want to telnet to another system and bridge
> > that
> > > session to the
> > > console port so that when an user connects to the system via console >
> > port,
> > > it is automatically
> > > redirected to other system for I have already established a telnet
> > session.
> >
> > What's wrong with simply leaving a telnet session running on the >
> > console, maybe with some support to relaunch it should it ever exit?
> >
> >         <mike
> > --
> > Mike Meyer <mwm@mired.org> >
> > http://www.mired.org/consulting.html
> > Independent Network/Unix/Perforce consultant, email for more information.
> >
> _______________________________________________ >
> 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"
>

--
Mike Meyer < > mwm@mired.org>              http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
>
-- Mike Meyer http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 17 19:00: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 1586116A407 for ; Wed, 17 Jan 2007 19:00:45 +0000 (UTC) (envelope-from ramadas@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.238]) by mx1.freebsd.org (Postfix) with ESMTP id C03F013C455 for ; Wed, 17 Jan 2007 19:00:44 +0000 (UTC) (envelope-from ramadas@gmail.com) Received: by wr-out-0506.google.com with SMTP id 36so1794853wra for ; Wed, 17 Jan 2007 11:00:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=oC5hXm6FyhjkbE/j+oC4H6ZO6rwq8uaQCLjM5N1lEeqfupsHmSY8PUdzcsucWnss1iLXo+X3eu8Qb0jjN34tcQvwk9x25ilzpf8nojYQ4LwDqmQ5Z/+1fVd+vxjV4bEktN/ig4Dp4w7lgksFLb+qzQF5CwLQl+LQgUqXhAUu20A= Received: by 10.90.79.6 with SMTP id c6mr6583893agb.1169060444027; Wed, 17 Jan 2007 11:00:44 -0800 (PST) Received: by 10.90.51.16 with HTTP; Wed, 17 Jan 2007 11:00:43 -0800 (PST) Message-ID: Date: Wed, 17 Jan 2007 11:00:43 -0800 From: "Kailas Ramasamy" Sender: ramadas@gmail.com To: "Mike Meyer" In-Reply-To: <17838.28502.527695.168624@bhuda.mired.org> MIME-Version: 1.0 References: <17837.25293.686122.147525@bhuda.mired.org> <17837.36471.343582.464631@bhuda.mired.org> <17838.28502.527695.168624@bhuda.mired.org> X-Google-Sender-Auth: 341e3c020e811eab 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 Subject: Re: Bridging console port to a telnet session 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, 17 Jan 2007 19:00:45 -0000 Hi Mike, Thanks a lot. This is what I was looking for. -Kailas On 1/17/07, Mike Meyer wrote: > > In , Kailas > Ramasamy typed: > > Hi Mike, > > I read through fork() and exec() man pages but I couldn't find anything > > related to > > this. Basically, I want to launch a telnet session from a process and > pass > > in > > /dev/console as stdin and stdout. > > Well, you don't really need fork(), though fork() follows exec() so > often than some OS's combine them into a single call. And I just > noticed that if you do "man exec", you get the shell's page - you want > exec(3), to get the C calls. > > Anyway, the sequence is: > > Use open() to get an fd pointing at /dev/console. > Use dup2() to copy that fd to stdin and stdout (and probably stderr). > Use an exec() function to launch telnet. > > > > > Thanks > > Kailas > > > > On 1/16/07, Mike Meyer wrote: > > > > > > In , > Kailas > > > Ramasamy typed: > > > > Hi Mike, > > > > Yes, that what I am planing but I want to do this dynamically. Do > you > > > know > > > > how to launch a > > > > telnet session from a process?. How do I pass stdin and stdout to > the > > > telnet > > > > from a process?. > > > > > > See the fork() and exec() man pages. > > > > > > > > > > > > > > > On 1/16/07, Mike Meyer wrote: > > > > > > > > > > In , > > > Kailas > > > > > Ramasamy typed: > > > > > > Hi, > > > > > > Within a FreeBSD system, I want to telnet to another system and > > > bridge > > > > > that > > > > > > session to the > > > > > > console port so that when an user connects to the system via > console > > > > > port, > > > > > > it is automatically > > > > > > redirected to other system for I have already established a > telnet > > > > > session. > > > > > > > > > > What's wrong with simply leaving a telnet session running on the > > > > > console, maybe with some support to relaunch it should it ever > exit? > > > > > > > > > > > > > > -- > > > > > Mike Meyer > > > > > http://www.mired.org/consulting.html > > > > > Independent Network/Unix/Perforce consultant, email for more > > > information. > > > > > > > > > _______________________________________________ > > > > 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" > > > > > > > > > > -- > > > Mike Meyer > > > http://www.mired.org/consulting.html > > > Independent Network/Unix/Perforce consultant, email for more > information. > > > > > Hi Mike,
I read through fork() and exec() man pages but I > couldn't find anything related to
this. Basically, I want to launch a > telnet session from a process and pass in
/dev/console as stdin and > stdout.
> >
Thanks
Kailas

On 1/16/07, > Mike Meyer <mwm@mired.org> wrote:
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); > margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> > > In < > ecd0bee40701161732v26112f24o2d8323c2777d2f7@mail.gmail.com>, Kailas > Ramasamy <kailasr@gmail.com > > > typed:
> Hi Mike,
> Yes, that what I am planing but > I want to do this dynamically. Do you know
> how to launch a
> > telnet session from a process?. How do I pass stdin and stdout to the telnet > >
> from a process?.

See the fork() and exec() man > pages.

        <mike


> > On 1/16/07, Mike Meyer <mwm@mired.org> > wrote:
> >
> > In < > > > ecd0bee40701161503k385819ddgba5562e137630617@mail.gmail.com>, > Kailas
> > Ramasamy < > kailasr@gmail.com > > > typed:
> > > Hi,
> > > Within a FreeBSD > system, I want to telnet to another system and bridge
> > > that
> > > session to the
> > > console port so that > when an user connects to the system via console > >
> > port,
> > > it is automatically
> > > > redirected to other system for I have already established a > telnet
> > session.
> >
> > What's wrong with > simply leaving a telnet session running on the > >
> > console, maybe with some support to relaunch it should it > ever exit?
> >
> > >         <mike
> > > --
> > Mike Meyer < > mwm@mired.org> > >
> > > http://www.mired.org/consulting.html
> > Independent > Network/Unix/Perforce consultant, email for more information.
> > >
> _______________________________________________ > >
> > 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"
>

--
Mike > Meyer < > > mwm@mired.org>               href="http://www.mired.org/consulting.html"> > http://www.mired.org/consulting.html
Independent > Network/Unix/Perforce consultant, email for more > information.
> >
> > -- > Mike Meyer > http://www.mired.org/consulting.html > Independent Network/Unix/Perforce consultant, email for more information. > From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 17 19:50: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 C176916A415 for ; Wed, 17 Jan 2007 19:50:56 +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 9A5EA13C428 for ; Wed, 17 Jan 2007 19:50:56 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0HJotlH001735 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 17 Jan 2007 11:50:56 -0800 X-Auth-Received: from [128.208.7.63] (pinocchio.dyn.cs.washington.edu [128.208.7.63]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0HJnvVB004219 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Wed, 17 Jan 2007 11:50:55 -0800 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: References: <17837.25293.686122.147525@bhuda.mired.org> <17837.36471.343582.464631@bhuda.mired.org> <17838.28502.527695.168624@bhuda.mired.org> X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <0C04473A-5713-44FD-90ED-CBA4F7CD20FC@u.washington.edu> Content-Transfer-Encoding: 7bit From: Garrett Cooper Date: Wed, 17 Jan 2007 11:50:56 -0800 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.752.2) X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.1.17.113932 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: Bridging console port to a telnet session 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, 17 Jan 2007 19:50:56 -0000 On Jan 17, 2007, at 11:00 AM, Kailas Ramasamy wrote: > Hi Mike, > > Thanks a lot. This is what I was looking for. > > -Kailas > > On 1/17/07, Mike Meyer wrote: >> >> In , >> Kailas >> Ramasamy typed: >> > Hi Mike, >> > I read through fork() and exec() man pages but I couldn't find >> anything >> > related to >> > this. Basically, I want to launch a telnet session from a >> process and >> pass >> > in >> > /dev/console as stdin and stdout. >> >> Well, you don't really need fork(), though fork() follows exec() so >> often than some OS's combine them into a single call. And I just >> noticed that if you do "man exec", you get the shell's page - you >> want >> exec(3), to get the C calls. >> >> Anyway, the sequence is: >> >> Use open() to get an fd pointing at /dev/console. >> Use dup2() to copy that fd to stdin and stdout (and probably stderr). >> Use an exec() function to launch telnet. >> >> > >> >> > Thanks >> > Kailas >> > >> > On 1/16/07, Mike Meyer wrote: >> > > >> > > In , >> Kailas >> > > Ramasamy typed: >> > > > Hi Mike, >> > > > Yes, that what I am planing but I want to do this >> dynamically. Do >> you >> > > know >> > > > how to launch a >> > > > telnet session from a process?. How do I pass stdin and >> stdout to >> the >> > > telnet >> > > > from a process?. >> > > >> > > See the fork() and exec() man pages. >> > > >> > > > > > >> > > >> > > > On 1/16/07, Mike Meyer wrote: >> > > > > >> > > > > In >> , >> > > Kailas >> > > > > Ramasamy typed: >> > > > > > Hi, >> > > > > > Within a FreeBSD system, I want to telnet to another >> system and >> > > bridge >> > > > > that >> > > > > > session to the >> > > > > > console port so that when an user connects to the system >> via >> console >> > > > > port, >> > > > > > it is automatically >> > > > > > redirected to other system for I have already established a >> telnet >> > > > > session. >> > > > > >> > > > > What's wrong with simply leaving a telnet session running >> on the >> > > > > console, maybe with some support to relaunch it should it >> ever >> exit? >> > > > > >> > > > > > > > > > -- >> > > > > Mike Meyer >> > > > > http://www.mired.org/consulting.html >> > > > > Independent Network/Unix/Perforce consultant, email for more >> > > information. >> > > > > >> > > > _______________________________________________ >> > > > 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" >> > > > >> > > >> > > -- >> > > Mike Meyer >> > > http://www.mired.org/consulting.html >> > > Independent Network/Unix/Perforce consultant, email for more >> information. >> > > >> > Hi Mike,
I read through fork() and exec() man pages but I >> couldn't find anything related to
this. Basically, I want >> to launch a >> telnet session from a process and pass in
/dev/console as >> stdin and >> stdout.
>> >
Thanks
Kailas

On >> 1/16/07, >> Mike Meyer <mwm@mired.org> wrote:
> class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); >> margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> >> > In < >> ecd0bee40701161732v26112f24o2d8323c2777d2f7@mail.gmail.com> a>>, Kailas >> Ramasamy <kailasr@gmail.com >> > > typed:
> Hi Mike,
> Yes, that what I am >> planing but >> I want to do this dynamically. Do you know
> how to launch >> a
> >> telnet session from a process?. How do I pass stdin and stdout to >> the telnet >> >
> from a process?.

See the fork() and exec() man >> pages.

        <mik >> e


> >> On 1/16/07, Mike Meyer <> href="mailto:mwm@mired.org">mwm@mired.org> >> wrote:
> >
> > In < >> > >> ecd0bee40701161503k385819ddgba5562e137630617@mail.gmail.com>, >> Kailas
> > Ramasamy < >> kailasr@gmail.com >> > > typed:
> > > Hi,
> > > Within a >> FreeBSD >> system, I want to telnet to another system and bridge
> > >> that
> > > session to the
> > > console >> port so that >> when an user connects to the system via console >> >
> > port,
> > > it is >> automatically
> > >> > redirected to other system for I have already established a >> telnet
> > session.
> >
> > What's >> wrong with >> simply leaving a telnet session running on the >> >
> > console, maybe with some support to relaunch it >> should it >> ever exit?
> >
> >> >         >> <mike
> > >> --
> > Mike Meyer < >> mwm@mired.org> >> >
> > >> http://www.mired.org/consulting.html
> > Independent >> Network/Unix/Perforce consultant, email for more information.
> >> >
> Kailas cross posted this to the questions@ list too. I gave a possible answer there. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 18 01:56: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 4BFBC16A40F for ; Thu, 18 Jan 2007 01:56:39 +0000 (UTC) (envelope-from adrian.chadd@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 CAC6C13C442 for ; Thu, 18 Jan 2007 01:56:38 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so48646wxc for ; Wed, 17 Jan 2007 17:56:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=iOXEAbETNS3pMwb6AqE56Rr6SelDyhY18m6+ZEcvHQXAzwyHCOa/B9mqwwSFEn5iwUZMJKZh7Pemy5XyFxuXVxtBEP9abINedsieS4X4AwbuSSybJwsRYMJmpQ6yG3MBz+m5qLtKnK+dIo/e0g394UarDMmJORE1cQmVPWlnuCA= Received: by 10.90.52.2 with SMTP id z2mr375149agz.1169083665552; Wed, 17 Jan 2007 17:27:45 -0800 (PST) Received: by 10.90.31.7 with HTTP; Wed, 17 Jan 2007 17:27:45 -0800 (PST) Message-ID: Date: Thu, 18 Jan 2007 10:27:45 +0900 From: "Adrian Chadd" Sender: adrian.chadd@gmail.com 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-Google-Sender-Auth: 216737fc506f8b74 Subject: "out of mbufs" message? 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, 18 Jan 2007 01:56:39 -0000 Hi, I'm looking to add back in the "allocation failed; please consider increasing NMBCLUSTERS" message which seemed to have disappeared. I know its bitten me more than once and I've seen it pop up on the FreeBSD lists from time to time. The symptom isn't very obvious - all networking just stops and you wonder whether your network card is to blame. Would m_getm() be an appropriate place to notice failure and log a message? Adrian From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 18 05:28:16 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 EBE5616A415 for ; Thu, 18 Jan 2007 05:28:16 +0000 (UTC) (envelope-from erik.udo@gmail.com) Received: from satakieli.dnainternet.net (satakieli.dnainternet.net [212.149.75.40]) by mx1.freebsd.org (Postfix) with ESMTP id B0FE613C461 for ; Thu, 18 Jan 2007 05:28:16 +0000 (UTC) (envelope-from erik.udo@gmail.com) Received: from [192.168.1.11] (host-212-149-186-30.kpylaajakaista.net [212.149.186.30]) by satakieli.dnainternet.net (Postfix) with ESMTP id 3F224CB2E for ; Thu, 18 Jan 2007 07:28:13 +0200 (EET) Message-ID: <45AF056C.2060405@gmail.com> Date: Thu, 18 Jan 2007 07:28:12 +0200 From: Erik Udo User-Agent: Thunderbird 1.5.0.9 (X11/20061226) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: unionfs 'locking against myself' X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2007 05:28:17 -0000 Hi, I just updated my livecd to 6.2-RELEASE. The kernel source is clean, i haven't patched it in any way. The thing is i'm getting kernel panics when mounting unionfs over a read-only media and running a system chrooted to this unionfsed directory. The kernel panics at the same point everytime, and i can reproduce this easily, but debugging is an another thing. To help the developers i was thinking of running a trace and see where it happens and why. I believe this panic is pretty common? I'm running this kernel inside qemu and i'm using -s so i can connect to it with gdb, but everytime i run a trace it seems to be corrupt. I'm loading the kernel.debug image inside gdb and the connecting to port 1234 where qemu is listening. And i'm sure the kernel.debug image and the kernel are in sync. The unionfs patches to 6.1-R was working perfectly for me, but for some reason the space taken by generating files on the memory disk that was the lower layer of an unionfs mount was not freed up after deleting the same file. I tested this on 6.2-R (to which the patches wont apply becouse of code changes) and the space was freed up after deleting the file. I sent some mail to the patches maintainer if he could reproduce it. Anykind of help on how to get this working is appreciated. I'll be glad to provide any extra info if you just ask. Cheers, Erik #0 sccnupdate (scp=0xc09cc140) at /usr/src/sys/dev/syscons/syscons.c:1663 #1 0xc083abfe in scgetc (sc=0xc09d0f80, flags=3) at /usr/src/sys/dev/syscons/syscons.c:3169 #2 0xc08387f6 in sccngetch (flags=2) at /usr/src/sys/dev/syscons/syscons.c:1627 #3 0xc0838686 in sccncheckc (cd=0xc097aa60) at /usr/src/sys/dev/syscons/syscons.c:1550 #4 0xc06aae4a in cncheckc () at /usr/src/sys/kern/tty_cons.c:600 #5 0xc06aae05 in cngetc () at /usr/src/sys/kern/tty_cons.c:581 #6 0xc046bab6 in db_readline (lstart=0xc0983780 "bt\n", lsize=120) at /usr/src/sys/ddb/db_input.c:324 #7 0xc046bbb7 in db_read_line () at /usr/src/sys/ddb/db_lex.c:55 #8 0xc046a6db in db_command_loop () at /usr/src/sys/ddb/db_command.c:456 #9 0xc046c309 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:222 #10 0xc0690257 in kdb_trap (type=3, code=0, tf=0xc881197c) at /usr/src/sys/kern/subr_kdb.c:473 #11 0xc08563fc in trap (frame= {tf_fs = 8, tf_es = 40, tf_ds = 40, tf_edi = 1, tf_esi = -1064560194, tf_e bp = -931063364, tf_isp = -931063384, tf_ebx = -931063320, tf_edx = 0, tf_ecx = -1056878592, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1066860581, tf_cs = 32, tf_eflags = 524930, tf_esp = -931063332, tf_ss = -1066962013}) at /usr/src/sys/i386/i386/trap.c:594 #12 0xc084403a in calltrap () at /usr/src/sys/i386/i386/exception.s:139 ---Type to continue, or q to quit--- #13 0x00000008 in ?? () #14 0x00000028 in ?? () #15 0x00000028 in ?? () #16 0x00000001 in ?? () #17 0xc08c19be in ?? () #18 0xc88119bc in ?? () #19 0xc88119a8 in ?? () #20 0xc88119e8 in ?? () #21 0x00000000 in ?? () #22 0xc1015000 in ?? () #23 0x00000012 in ?? () #24 0x00000003 in ?? () #25 0x00000000 in ?? () #26 0xc068ffdb in kdb_enter (msg=0xc09d0f80 "") at cpufunc.h:60 #27 0xc06773a3 in panic (fmt=0xc08c19be "lockmgr: locking against myself") at /usr/src/sys/kern/kern_shutdown.c:549 #28 0xc066af0a in lockmgr (lkp=0xc1b649e8, flags=8194, interlkp=0x80, td=0xc1ba0300) at /usr/src/sys/kern/kern_lock.c:326 #29 0xc06c5e8a in vop_stdlock (ap=0x0) at /usr/src/sys/kern/vfs_default.c:257 #30 0xc086843b in VOP_LOCK_APV (vop=0xc09406a0, a=0xc8811a4c) at vnode_if.c:1642 #31 0xc06dcce4 in vn_lock (vp=0xc1b64990, flags=2, td=0xc1ba0300) at vnode_if.h:844 #32 0xc1b2f277 in ?? () #33 0xc1b64990 in ?? () #34 0x00000002 in ?? () #35 0xc1ba0300 in ?? () #36 0x00000000 in ?? () #37 0x00000016 in ?? () #38 0xc1ba0300 in ?? () #39 0xc8811afc in ?? () #40 0xc1a56c00 in ?? () #41 0xc8811aa8 in ?? () #42 0xc06c5eae in vop_stdunlock (ap=0x0) at /usr/src/sys/kern/vfs_default.c:271 #43 0xc1b31b8b in ?? () #44 0xc8811c94 in ?? () #45 0xc1a46530 in ?? () #46 0xc1a59cc0 in ?? () #47 0xc1a49110 in ?? () #48 0xc8811ca8 in ?? () #49 0xc1b64aa0 in ?? () #50 0xc1b64bb0 in ?? () #51 0x00000001 in ?? () #52 0xc8811adc in ?? () #53 0x00000000 in ?? () #54 0x00000000 in ?? () #55 0xc19aa320 in ?? () #56 0xc1ba0300 in ?? () #57 0xc1a59cc0 in ?? () #58 0x00000000 in ?? () #59 0x00000000 in ?? () #60 0x00000000 in ?? () #61 0xc1b64bb0 in ?? () #62 0xc1a49110 in ?? () #63 0xc1b64aa0 in ?? () #64 0xc0981ac0 in vop_unlock_vp_offsets () #65 0xc1a49110 in ?? () #66 0x00000000 in ?? () #67 0xc1ba0300 in ?? () #68 0x00000080 in ?? () #69 0xc1ba0300 in ?? () #70 0xc8811b3c in ?? () #71 0xc066af81 in lockmgr (lkp=0xc8811bf8, flags=3249941248, interlkp=0x0, td=0xc1b64bb0) at /usr/src/sys/kern/kern_lock.c:351 #72 0xc086785f in VOP_LOOKUP_APV (vop=0xc1b34280, a=0xc8811bf8) at vnode_if.c:99 #73 0xc06c82ad in lookup (ndp=0xc8811c80) at vnode_if.h:56 #74 0xc06c7b4e in namei (ndp=0xc8811c80) at /usr/src/sys/kern/vfs_lookup.c:211 #75 0xc06d6569 in eaccess (td=0xc1ba0300, uap=0xc8811d04) at /usr/src/sys/kern/vfs_syscalls.c:1957 #76 0xc0856c73 in syscall (frame= {tf_fs = 59, tf_es = 59, tf_ds = 59, tf_edi = 134611326, tf_esi = 134729064, tf_ebp = -1077943192, tf_isp = -931062428, tf_ebx = 3, tf_edx = 134729104, tf_ecx = 0, tf_eax = 376, tf_trapno = 0, tf_err = 2, tf_eip = 672303875, tf_cs = 51, tf_eflags = 524946, tf_esp = -1077943316, tf_ss = 59}) at /usr/src/sys/i386/i386/trap.c:983 #77 0xc084408f in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:200 #78 0x0000003b in ?? () #79 0x0000003b in ?? () #80 0x0000003b in ?? () #81 0x0806017e in ?? () #82 0x0807cd68 in ?? () #83 0xbfbfe468 in ?? () #84 0xc8811d64 in ?? () #85 0x00000003 in ?? () #86 0x0807cd90 in ?? () #87 0x00000000 in ?? () #88 0x00000178 in ?? () #89 0x00000000 in ?? () #90 0x00000002 in ?? () #91 0x28128b03 in ?? () #92 0x00000033 in ?? () #93 0x00080292 in ?? () #94 0xbfbfe3ec in ?? () #95 0x0000003b in ?? () #96 0x00000000 in ?? () #97 0x00000a3a in ?? () #98 0x0000025a in ?? () #99 0x00000933 in ?? () #100 0x07ca9000 in ?? () #101 0xc1b9e648 in ?? () #102 0xc1ba0300 in ?? () #103 0xc8811884 in ?? () #104 0xc881186c in ?? () #105 0xc18d6780 in ?? () #106 0xc068899b in sched_switch (td=0x807cd68, newtd=0x3, flags=-1077943016) at /usr/src/sys/kern/sched_4bsd.c:973 Previous frame inner to this frame (corrupt stack?) From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 18 19:02: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 075C116A417 for ; Thu, 18 Jan 2007 19:02:21 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id E861A13C459 for ; Thu, 18 Jan 2007 19:02:20 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id CDCD51A3C19 for ; Thu, 18 Jan 2007 11:02:20 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id A0F8451482; Thu, 18 Jan 2007 14:02:17 -0500 (EST) Date: Thu, 18 Jan 2007 14:02:17 -0500 From: Kris Kennaway To: freebsd-hackers@freebsd.org Message-ID: <20070118190217.GA77254@xor.obsecurity.org> References: <45AF056C.2060405@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: <45AF056C.2060405@gmail.com> User-Agent: Mutt/1.4.2.2i Subject: Re: unionfs 'locking against myself' 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, 18 Jan 2007 19:02:21 -0000 --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 18, 2007 at 07:28:12AM +0200, Erik Udo wrote: > Hi, >=20 > I just updated my livecd to 6.2-RELEASE. The kernel source is clean, i=20 > haven't patched it in any way. Then you're using the ancient useless unionfs and this panic isn't interesting, sorry. You already seem to know about the replacmenet unionfs effort - this is now committed to 7.0 so I don't know if they are still producing updated patches for 6.x. Kris --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFr8Q5Wry0BWjoQKURAsfuAJ0cZ6LTLTyoas/NpKDHJfDjTwFaWQCfVPmC y8WPJ1EZiUvvoLEK/2Y1wYM= =yw7P -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi-- From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 18 22:28: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 4845516A4B3 for ; Thu, 18 Jan 2007 22:28:12 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 05E5D13C441 for ; Thu, 18 Jan 2007 22:28:11 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1H7fi1-0006fT-HW for freebsd-hackers@freebsd.org; Thu, 18 Jan 2007 23:26:14 +0100 Received: from 83-131-162-17.adsl.net.t-com.hr ([83.131.162.17]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Jan 2007 23:26:13 +0100 Received: from ivoras by 83-131-162-17.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Jan 2007 23:26:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Thu, 18 Jan 2007 23:22:01 +0100 Lines: 29 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig141DD0BF8C47E51030DBE612" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 83-131-162-17.adsl.net.t-com.hr User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) X-Enigmail-Version: 0.94.1.2 Sender: news Subject: "Streaming" data from kernel to userland 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, 18 Jan 2007 22:28:12 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig141DD0BF8C47E51030DBE612 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm thinking of doing something which would require streaming large amounts of pretty much real-time data from kernel to a userland application (for further processing). The first thing that comes to my mind while thinking of this is sockets, so is there a sockets-like interface which could be used to transfer large amounts of constantly generated data from kernel to a userland application? Any advice on its usage and/or examples? --------------enig141DD0BF8C47E51030DBE612 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFr/MQldnAQVacBcgRAhnlAJ4o3+Va0uOMZ1gCvorUL7z6kWav+gCgi/D7 Q1OIwNRMYGqIC47xeVNxTAc= =b2f3 -----END PGP SIGNATURE----- --------------enig141DD0BF8C47E51030DBE612-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 19 01:19: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 5F41916A40F for ; Fri, 19 Jan 2007 01:19:14 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 24B5F13C474 for ; Fri, 19 Jan 2007 01:19:11 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp151-198.lns2.adl2.internode.on.net [121.44.151.198]) (authenticated bits=0) by cain.gsoft.com.au (8.13.5/8.13.4) with ESMTP id l0J1IUZr045196 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Jan 2007 11:48:35 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 19 Jan 2007 11:48:05 +1030 User-Agent: KMail/1.9.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2336169.rxOWq7VnaU"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200701191148.14198.doconnor@gsoft.com.au> X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.57 on 203.31.81.10 Cc: Ivan Voras Subject: Re: "Streaming" data from kernel to userland 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, 19 Jan 2007 01:19:14 -0000 --nextPart2336169.rxOWq7VnaU Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 19 January 2007 08:52, Ivan Voras wrote: > I'm thinking of doing something which would require streaming large > amounts of pretty much real-time data from kernel to a userland > application (for further processing). The first thing that comes to my > mind while thinking of this is sockets, so is there a sockets-like > interface which could be used to transfer large amounts of constantly > generated data from kernel to a userland application? Any advice on its > usage and/or examples? What's wrong with read()? =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2336169.rxOWq7VnaU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFsBxW5ZPcIHs/zowRAsZeAJ4jG4alv5Gc37yJEtHXBA7kd8t9sQCglfVO YzWVLLFdgrMrWaWrmJTmHxc= =Jo6W -----END PGP SIGNATURE----- --nextPart2336169.rxOWq7VnaU-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 19 02:08: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 39A6F16A407 for ; Fri, 19 Jan 2007 02:08:26 +0000 (UTC) (envelope-from newroswell@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id C6EEA13C43E for ; Fri, 19 Jan 2007 02:08:25 +0000 (UTC) (envelope-from newroswell@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so311711uge for ; Thu, 18 Jan 2007 18:08:24 -0800 (PST) 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:references; b=Qv6gB+zyqP8I24vG/aPT9EdDwq86y8TW3EtujiDSCIDjtJfA6kpYKoOvon+YXOVwtTx8cAsfWczdkB5Nqj/Z5v+rn7AIwZT82L8lzkYLP8jF0E68FRKAwObcMelAuzxppOb6CaveFB4sP2l6w7kAK1sHedtSFJeSHsFcPEf86JM= Received: by 10.66.255.7 with SMTP id c7mr2302111ugi.1169170837525; Thu, 18 Jan 2007 17:40:37 -0800 (PST) Received: by 10.67.92.10 with HTTP; Thu, 18 Jan 2007 17:40:37 -0800 (PST) Message-ID: <375baf50701181740y6434e763q9c5487fef81dfa87@mail.gmail.com> Date: Thu, 18 Jan 2007 17:40:37 -0800 From: "Kevin Sanders" To: "Ivan Voras" , "Daniel O'Connor" In-Reply-To: <200701191148.14198.doconnor@gsoft.com.au> MIME-Version: 1.0 References: <200701191148.14198.doconnor@gsoft.com.au> 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 Subject: Re: "Streaming" data from kernel to userland 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, 19 Jan 2007 02:08:26 -0000 On 1/18/07, Daniel O'Connor wrote: > > On Friday 19 January 2007 08:52, Ivan Voras wrote: > > I'm thinking of doing something which would require streaming large > > amounts of pretty much real-time data from kernel to a userland > > application (for further processing). The first thing that comes to my > > mind while thinking of this is sockets, so is there a sockets-like > > interface which could be used to transfer large amounts of constantly > > generated data from kernel to a userland application? Any advice on its > > usage and/or examples? > > What's wrong with read()? Ivan, I'm basically doing something similar, and I have found that adding kqueue support to your kernel module and making ioctl/read/write's is very efficient. I'm a long time windows developer that has used I/O Completion Ports, and I'm real impressed with kqueue api. It was a little daunting figuring out the kernel module side though. Kevin From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 19 06:15:15 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 98DEB16A40F for ; Fri, 19 Jan 2007 06:15:15 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id C553E13C44C for ; Fri, 19 Jan 2007 06:15:14 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (spm4j01tvzmu488b@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id l0J5vevY010187; Thu, 18 Jan 2007 21:57:40 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id l0J5vaul010186; Thu, 18 Jan 2007 21:57:37 -0800 (PST) (envelope-from jmg) Date: Thu, 18 Jan 2007 21:57:36 -0800 From: John-Mark Gurney To: Kevin Sanders Message-ID: <20070119055736.GC92003@funkthat.com> Mail-Followup-To: Kevin Sanders , Ivan Voras , Daniel O'Connor , freebsd-hackers@freebsd.org References: <200701191148.14198.doconnor@gsoft.com.au> <375baf50701181740y6434e763q9c5487fef81dfa87@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <375baf50701181740y6434e763q9c5487fef81dfa87@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: Ivan Voras , freebsd-hackers@freebsd.org Subject: Re: "Streaming" data from kernel to userland X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2007 06:15:15 -0000 Kevin Sanders wrote this message on Thu, Jan 18, 2007 at 17:40 -0800: > On 1/18/07, Daniel O'Connor wrote: > > > >On Friday 19 January 2007 08:52, Ivan Voras wrote: > >> I'm thinking of doing something which would require streaming large > >> amounts of pretty much real-time data from kernel to a userland > >> application (for further processing). The first thing that comes to my > >> mind while thinking of this is sockets, so is there a sockets-like > >> interface which could be used to transfer large amounts of constantly > >> generated data from kernel to a userland application? Any advice on its > >> usage and/or examples? > > > >What's wrong with read()? > > > Ivan, I'm basically doing something similar, and I have found that adding > kqueue support to your kernel module and making ioctl/read/write's is very > efficient. I'm a long time windows developer that has used I/O Completion > Ports, and I'm real impressed with kqueue api. It was a little daunting > figuring out the kernel module side though. If you feeling like extending kqueue(9) to be more helpful, I'm more than willing to review and commit patches for it. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 19 08:56:18 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 4933116A40F for ; Fri, 19 Jan 2007 08:56:18 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 08C1F13C428 for ; Fri, 19 Jan 2007 08:56:17 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1H7pXe-0003oA-Ua for freebsd-hackers@freebsd.org; Fri, 19 Jan 2007 09:56:10 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Jan 2007 09:56:10 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Jan 2007 09:56:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Fri, 19 Jan 2007 09:55:56 +0100 Lines: 12 Message-ID: References: <200701191148.14198.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.4 (X11/20060625) In-Reply-To: <200701191148.14198.doconnor@gsoft.com.au> Sender: news Subject: Re: "Streaming" data from kernel to userland 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, 19 Jan 2007 08:56:18 -0000 Daniel O'Connor wrote: > On Friday 19 January 2007 08:52, Ivan Voras wrote: >> mind while thinking of this is sockets, so is there a sockets-like >> interface which could be used to transfer large amounts of constantly >> generated data from kernel to a userland application? Any advice on its >> usage and/or examples? > > What's wrong with read()? On a /dev/something? Nothing, I guess. I thought maybe there's something more abstract (not visible in /dev), but it's not an issue. From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 19 09:08: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 0099316A494 for ; Fri, 19 Jan 2007 09:08:55 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 8460E13C43E for ; Fri, 19 Jan 2007 09:08:54 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id l0J98nIO001409; Fri, 19 Jan 2007 20:08:49 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id l0J98nnM001408; Fri, 19 Jan 2007 20:08:49 +1100 (EST) (envelope-from peter) Date: Fri, 19 Jan 2007 20:08:49 +1100 From: Peter Jeremy To: Ivan Voras Message-ID: <20070119090849.GA860@turion.vk2pj.dyndns.org> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-hackers@freebsd.org Subject: Re: "Streaming" data from kernel to userland 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, 19 Jan 2007 09:08:55 -0000 --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 2007-Jan-18 23:22:01 +0100, Ivan Voras wrote: >I'm thinking of doing something which would require streaming large >amounts of pretty much real-time data from kernel to a userland >application (for further processing). The simplest interface is read(). The downside is that (in the default case), you need to do a copyout() of the data. My suggestion is mmap(): Userland mmap()'s a large buffer and your kernel app treats it as a ring buffer and generated data directly into it. The trick here is informing userland when data is available and how much there is. The approach I've used is to store the kernel write pointer (and optionally, the userland read pointer) in mmap()'d memory as well. Userland can block (to wait for the kernel to provide more data) in various ways: - If there's no data to process, sleep for a convenient period and check again. This needs no support from your kernel driver. - Use kqueue(), signal() or read() a token to indicate when some amount of data is available. --=20 Peter Jeremy --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFsIqh/opHv/APuIcRAmcfAJ0QVqWutkvgaRmDlNTKBB8LNAyDeQCfX7iL Ujj6NfVKcmuCxgnAeOl2huU= =j5Eg -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 19 09:57:11 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 3513816A416 for ; Fri, 19 Jan 2007 09:57:11 +0000 (UTC) (envelope-from a.revolutionist@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.freebsd.org (Postfix) with ESMTP id E4D1A13C471 for ; Fri, 19 Jan 2007 09:57:10 +0000 (UTC) (envelope-from a.revolutionist@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so443186wxc for ; Fri, 19 Jan 2007 01:57:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=hTQr5WZmqVvuRfDTzh1mfG6sXaRD7ozTR2VxcqjaRPP8fNWV3M5tXUlhccrzYiMQjhfbNsd0hJvJPXqlUjtS6XaMooy8jscuAkigKwEbAligUDQFAF91jbgR3GPEmUCXUUml7r0MGEmQHI4KLzzgq0GdSnNj6l/n8zEVpZFFZLU= Received: by 10.70.38.9 with SMTP id l9mr1876269wxl.1169198953831; Fri, 19 Jan 2007 01:29:13 -0800 (PST) Received: from c-67-189-227-94.hsd1.ma.comcast.net ( [67.189.227.94]) by mx.google.com with ESMTP id 3sm3250515wrh.2007.01.19.01.29.12; Fri, 19 Jan 2007 01:29:12 -0800 (PST) From: aRevolutionist To: freebsd-hackers@freebsd.org Content-Type: text/plain Date: Fri, 19 Jan 2007 04:28:14 -0500 Message-Id: <1169198894.6838.6.camel@aRevolutionist> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-27.rhel4.6.XOS.1) Content-Transfer-Encoding: 7bit Subject: Advice for Stripping the Kernel 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, 19 Jan 2007 09:57:11 -0000 I am about to almost completely strip FreeBSD's kernel. The kernel shall be stripped of sockets, drivers, memory management, and alot more. Basically, what I shall be left with is a kernel with a few system calls, only paging for memory management, support for only one file system and a few other things. What advice does anyone have to give me before I begin? Also, what section of the kernel is recommended to begin the stripping? From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 19 11:13: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 E9C1116A40F for ; Fri, 19 Jan 2007 11:13:22 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 84A6F13C461 for ; Fri, 19 Jan 2007 11:13:22 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp43-169.lns4.adl2.internode.on.net [121.44.43.169]) (authenticated bits=0) by cain.gsoft.com.au (8.13.5/8.13.4) with ESMTP id l0JBD5lu062354 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Jan 2007 21:43:07 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 19 Jan 2007 21:42:39 +1030 User-Agent: KMail/1.9.5 References: <200701191148.14198.doconnor@gsoft.com.au> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart14617562.mZyDHpG1AV"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200701192142.50548.doconnor@gsoft.com.au> X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.57 on 203.31.81.10 Cc: Ivan Voras Subject: Re: "Streaming" data from kernel to userland 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, 19 Jan 2007 11:13:23 -0000 --nextPart14617562.mZyDHpG1AV Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 19 January 2007 19:25, Ivan Voras wrote: > Daniel O'Connor wrote: > > On Friday 19 January 2007 08:52, Ivan Voras wrote: > >> mind while thinking of this is sockets, so is there a sockets-like > >> interface which could be used to transfer large amounts of constantly > >> generated data from kernel to a userland application? Any advice on its > >> usage and/or examples? > > > > What's wrong with read()? > > On a /dev/something? Nothing, I guess. I thought maybe there's something > more abstract (not visible in /dev), but it's not an issue. An entry in /dev is pretty traditional for this sort of thing :) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart14617562.mZyDHpG1AV Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFsKey5ZPcIHs/zowRAgG5AJ95X5evnPEX5LWPviEjDxcpKoXxlACdHdJ0 QvhHGgXLuo5XquKA9eAK3+c= =uAos -----END PGP SIGNATURE----- --nextPart14617562.mZyDHpG1AV-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 19 12:12:30 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 14D2916A417 for ; Fri, 19 Jan 2007 12:12:30 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id A181513C45A for ; Fri, 19 Jan 2007 12:12:29 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so407899uge for ; Fri, 19 Jan 2007 04:12:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=Gr3YlUSMCRdr1Ki3j/+CfchnrOFrjrOsshj4btfxBjst8h9QOrbRiFSy/2eGY9+WUNJqftwlEVSm+l0X9FPGKWmR7Zr0vld7I1GPsUFoqpJUZt05y8ni3mMMSIqCPu+aAdVjRvztw4N3Js5eiIFdZnH8mxjiooAgWVDekRzFbCI= Received: by 10.78.171.13 with SMTP id t13mr163005hue.1169203853968; Fri, 19 Jan 2007 02:50:53 -0800 (PST) Received: by 10.78.164.20 with HTTP; Fri, 19 Jan 2007 02:50:52 -0800 (PST) Message-ID: Date: Fri, 19 Jan 2007 13:50:52 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: aRevolutionist In-Reply-To: <1169198894.6838.6.camel@aRevolutionist> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1169198894.6838.6.camel@aRevolutionist> X-Google-Sender-Auth: 4d5f414848b40c9e Cc: freebsd-hackers@freebsd.org Subject: Re: Advice for Stripping the Kernel 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, 19 Jan 2007 12:12:30 -0000 On 1/19/07, aRevolutionist wrote: > I am about to almost completely strip FreeBSD's kernel. The kernel shall > be stripped of sockets, drivers, memory management, and alot more. > Basically, what I shall be left with is a kernel with a few system > calls, only paging for memory management, support for only one file > system and a few other things. What advice does anyone have to give me > before I begin? Also, what section of the kernel is recommended to begin > the stripping? You're not the first to venture on this path. Please google for nanobsd, minibsd, picobsd, freesbie, monowall, and other more creative strings such as "freebsd on a floppy" or "freebsd kernel stripped down to 1kb" ;-) Good luck! From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 19 13:03: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 7107416A404 for ; Fri, 19 Jan 2007 13:03:48 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3123713C44B for ; Fri, 19 Jan 2007 13:03:47 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1H7tP5-0005oS-QT for freebsd-hackers@freebsd.org; Fri, 19 Jan 2007 14:03:35 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Jan 2007 14:03:35 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Jan 2007 14:03:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Fri, 19 Jan 2007 14:03:22 +0100 Lines: 12 Message-ID: References: <1169198894.6838.6.camel@aRevolutionist> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.4 (X11/20060625) In-Reply-To: Sender: news Subject: Re: Advice for Stripping the Kernel 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, 19 Jan 2007 13:03:48 -0000 Andrew Pantyukhin wrote: > You're not the first to venture on this path. Please > google for nanobsd, minibsd, picobsd, freesbie, > monowall, and other more creative strings such as > "freebsd on a floppy" or "freebsd kernel stripped > down to 1kb" ;-) Damn, my Google seems to be broken - I can't seem to find anything for "freebsd kernel stripped down to 1kb" :) That would have been "interesting" to see :) From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 19 15:13: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 6FE4C16A405 for ; Fri, 19 Jan 2007 15:13:50 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from shell.asta.uni-rostock.de (gateway.stura.uni-rostock.de [139.30.252.67]) by mx1.freebsd.org (Postfix) with ESMTP id 3272B13C46A for ; Fri, 19 Jan 2007 15:13:49 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (unknown [192.168.16.3]) by shell.asta.uni-rostock.de (Postfix) with ESMTP id 70738187A for ; Fri, 19 Jan 2007 14:54:54 +0000 (GMT) Received: by britannica.bec.de (Postfix, from userid 1000) id 43BC54621; Fri, 19 Jan 2007 14:58:26 +0100 (CET) Date: Fri, 19 Jan 2007 14:58:25 +0100 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20070119135825.GA1397@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <1169198894.6838.6.camel@aRevolutionist> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Subject: Re: Advice for Stripping the Kernel 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, 19 Jan 2007 15:13:50 -0000 On Fri, Jan 19, 2007 at 02:03:22PM +0100, Ivan Voras wrote: > Damn, my Google seems to be broken - I can't seem to find anything for > "freebsd kernel stripped down to 1kb" :) Just wait a few days and try again. Joerg From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 19 17:54: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 7618816A401 for ; Fri, 19 Jan 2007 17:54:42 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 2FED213C45A for ; Fri, 19 Jan 2007 17:54:42 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id l0JHrxbn015845; Fri, 19 Jan 2007 10:53:59 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 19 Jan 2007 10:54:20 -0700 (MST) Message-Id: <20070119.105420.387231288.imp@bsdimp.com> To: a.revolutionist@gmail.com From: "M. Warner Losh" In-Reply-To: <1169198894.6838.6.camel@aRevolutionist> References: <1169198894.6838.6.camel@aRevolutionist> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 19 Jan 2007 10:53:59 -0700 (MST) Cc: freebsd-hackers@freebsd.org Subject: Re: Advice for Stripping the Kernel 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, 19 Jan 2007 17:54:42 -0000 In message: <1169198894.6838.6.camel@aRevolutionist> aRevolutionist writes: : I am about to almost completely strip FreeBSD's kernel. The kernel shall : be stripped of sockets, drivers, memory management, and alot more. : Basically, what I shall be left with is a kernel with a few system : calls, only paging for memory management, support for only one file : system and a few other things. What advice does anyone have to give me : before I begin? Also, what section of the kernel is recommended to begin : the stripping? Many of the items that you think you need to strip can be omitted with options. One file system, for example, is easy: just compile with only UFS support. Drivers are easy too. TCP/IP can be removed as well. However, the ability to have multiple mount points is hard to strip out, and wouldn't get you much. I don't think that you can remove sockets entirely without modifications to the kernel. Stripping down the vm system would also be a challange. What are you space contraints? Warner From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 19 21:19: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 66F2316A402 for ; Fri, 19 Jan 2007 21:19:46 +0000 (UTC) (envelope-from xride@x12.dk) Received: from swip.net (mailfe12.tele2.dk [212.247.155.99]) by mx1.freebsd.org (Postfix) with ESMTP id F33C113C44C for ; Fri, 19 Jan 2007 21:19:45 +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 mailfe12.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 217906254 for freebsd-hackers@freebsd.org; Fri, 19 Jan 2007 21:19:36 +0100 Received: by x12.dk (Postfix, from userid 666) id 000CB5083D; Fri, 19 Jan 2007 21:19:35 +0100 (CET) Date: Fri, 19 Jan 2007 21:19:35 +0100 From: Soeren Straarup To: freebsd-hackers@freebsd.org Message-ID: <20070119201935.GA60202@x12.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Subject: Where to start? 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, 19 Jan 2007 21:19:46 -0000 Hi I'm looking for a project. Something that would actually be used. Preferely something with kernel and geom. I have looked over the project page, but not sure where to start. /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 Fri Jan 19 21:48:10 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 ED3D816A409 for ; Fri, 19 Jan 2007 21:48:10 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id C186713C45A for ; Fri, 19 Jan 2007 21:48:10 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l0JLOZEL020706; Fri, 19 Jan 2007 15:24:35 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <45B13716.40602@centtech.com> Date: Fri, 19 Jan 2007 15:24:38 -0600 From: Eric Anderson User-Agent: Thunderbird 1.5.0.9 (X11/20061223) MIME-Version: 1.0 To: Soeren Straarup References: <20070119201935.GA60202@x12.dk> In-Reply-To: <20070119201935.GA60202@x12.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/2466/Thu Jan 18 17:49:11 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=8.0 tests=AWL,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@freebsd.org Subject: Re: Where to start? 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, 19 Jan 2007 21:48:11 -0000 On 01/19/07 14:19, Soeren Straarup wrote: > Hi > > I'm looking for a project. > Something that would actually be used. > > Preferely something with kernel and geom. > > I have looked over the project page, but not sure where to start. > > /Soeren > You can try the freebsd-geom@ list - there's always people there with ideas. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology An undefined problem has an infinite number of solutions. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 20 05:18: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 D7C8116A400 for ; Sat, 20 Jan 2007 05:18:12 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.232]) by mx1.freebsd.org (Postfix) with ESMTP id 7CC2913C442 for ; Sat, 20 Jan 2007 05:18:12 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so668636wxc for ; Fri, 19 Jan 2007 21:18:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=szQ0jjsrXbvosGzJvzruc5atWXYVV9RQqfGUWfTXamNo8lPzwWlha97PjR9WzcHRwE76tmEE+YmcOVijL+ab3apC4WnAG6XQzvBZpEAe2YOGChe78YSjVtYRO/vasEfewG0tO2ucnpE0UjZv9c9sodMPshapJ+zfsHnHt5kb9qo= Received: by 10.90.120.13 with SMTP id s13mr3921943agc.1169270291884; Fri, 19 Jan 2007 21:18:11 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTP id 7sm4983011wrl.2007.01.19.21.18.09; Fri, 19 Jan 2007 21:18:11 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id l0K5IgnK022742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Jan 2007 14:18:42 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id l0K5IfdR022741; Sat, 20 Jan 2007 14:18:41 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Sat, 20 Jan 2007 14:18:41 +0900 From: Pyun YongHyeon To: Pietro Cerutti Message-ID: <20070120051841.GD17584@cdnetworks.co.kr> References: <20070111121904.GD33964@cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="QKdGvSO+nmPlgiQ/" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org, FreeBSD Questions Subject: Re: [SOLVED] re(4) incorrect checksum X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 05:18:13 -0000 --QKdGvSO+nmPlgiQ/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 11, 2007 at 05:34:19PM +0100, Pietro Cerutti wrote: > On 1/11/07, Pyun YongHyeon wrote: > >In if_re.c, rev 1.46.2.18 wpaul@ fixed a long standing checksum > >offload issue by padding. Does re(4) work when you disable only Tx > >checksum offload?(i.e. ifconfig re0 -txcsum) > > yes, because -txcsum also disables Rx checksum on my NIC. > > # ifconfig re0 > .... > options=1b > .... > # ifconfig re0 -txcsum > .... > options=18 > .... > How about attached one? Please make sure to test 'ping -s 1473 ipaddr_of_gateway'. -- Regards, Pyun YongHyeon --QKdGvSO+nmPlgiQ/ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="if_re.csum.patch" Index: if_rlreg.h =================================================================== RCS file: /home/ncvs/src/sys/pci/if_rlreg.h,v retrieving revision 1.64 diff -u -r1.64 if_rlreg.h --- if_rlreg.h 16 Jan 2007 20:35:23 -0000 1.64 +++ if_rlreg.h 20 Jan 2007 05:05:21 -0000 @@ -443,7 +443,12 @@ #define RL_RX_BUF_SZ RL_RXBUF_64 #define RL_RXBUFLEN (1 << ((RL_RX_BUF_SZ >> 11) + 13)) #define RL_TX_LIST_CNT 4 -#define RL_MIN_FRAMELEN 60 +/* + * re(4) hardware IPv4 Tx checksum offload could be mangled with 28 bytes + * or less IP packets. + */ +#define RL_TXCSUM_MINLEN 28 +#define RL_MIN_FRAMELEN (ETHER_HDR_LEN + RL_TXCSUM_MINLEN) #define RL_TXTHRESH(x) ((x) << 11) #define RL_TX_THRESH_INIT 96 #define RL_RX_FIFOTHRESH RL_RXFIFO_NOTHRESH --QKdGvSO+nmPlgiQ/-- From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 20 09:15:10 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 D0EAF16A400 for ; Sat, 20 Jan 2007 09:15:10 +0000 (UTC) (envelope-from silby@silby.com) Received: from relay03.pair.com (relay03.pair.com [209.68.5.17]) by mx1.freebsd.org (Postfix) with SMTP id 571D213C457 for ; Sat, 20 Jan 2007 09:15:10 +0000 (UTC) (envelope-from silby@silby.com) Received: (qmail 96310 invoked from network); 20 Jan 2007 08:48:28 -0000 Received: from unknown (HELO localhost) (unknown) by unknown with SMTP; 20 Jan 2007 08:48:28 -0000 X-pair-Authenticated: 209.68.2.70 Date: Sat, 20 Jan 2007 02:48:14 -0600 (CST) From: Mike Silbersack To: Soeren Straarup In-Reply-To: <20070119201935.GA60202@x12.dk> Message-ID: <20070120024614.E99400@odysseus.silby.com> References: <20070119201935.GA60202@x12.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: Where to start? 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, 20 Jan 2007 09:15:10 -0000 On Fri, 19 Jan 2007, Soeren Straarup wrote: > Hi > > I'm looking for a project. > Something that would actually be used. > > Preferely something with kernel and geom. > > I have looked over the project page, but not sure where to start. > > /Soeren I'd like to see the ability to run gjournal without reformatting. If you could create a dummy file inside the filesystem, then use that area for the journal, it might be possible. I'm sure that would let a lot more people see if journalling is right for them. Mike "Silby" Silbersack From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 20 09:18:49 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 B696E16A402 for ; Sat, 20 Jan 2007 09:18:49 +0000 (UTC) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (wattres.watt.com [66.93.133.130]) by mx1.freebsd.org (Postfix) with ESMTP id 7E9D013C468 for ; Sat, 20 Jan 2007 09:18:49 +0000 (UTC) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (localhost.watt.com [127.0.0.1]) by wattres.watt.com (8.13.8/8.13.8) with ESMTP id l0K9Ig21002428; Sat, 20 Jan 2007 01:18:47 -0800 (PST) (envelope-from steve@wattres.watt.com) Received: (from steve@localhost) by wattres.watt.com (8.13.8/8.13.8/Submit) id l0K9Igbn002427; Sat, 20 Jan 2007 01:18:42 -0800 (PST) (envelope-from steve) Message-Id: <200701200918.l0K9Igbn002427@wattres.watt.com> X-Newsgroups: local.freebsd-hackers In-Reply-To: <459AD141.5010502@elischer.org> From: steve@Watt.COM (Steve Watt) References: <200701020825.l028PMBK034571@wattres.watt.com> Organization: Watt Consultants, San Jose, CA, USA Date: Sat, 20 Jan 2007 01:18:42 -0800 X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: julian@elischer.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (wattres.watt.com [127.0.0.1]); Sat, 20 Jan 2007 01:18:47 -0800 (PST) X-Archived: 1169284727.187879739@wattres.Watt.COM Cc: hackers@freebsd.org, andre@freebsd.org Subject: Re: Interesting TCP issue 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, 20 Jan 2007 09:18:49 -0000 In <459AD141.5010502@elischer.org>, Julian Elischer wrote: [ Snip discussion of symptoms of window scaling broken when talking to at least the skype mail servers. ] >we have seen this since 4.x >I think a fix may be in 7.0 but I'm not sure.. >I thin kthere is a problem when the far end sets the window down to 1 >but scales it by a factor of 2^{big number}. > >Andre, can you check out this problem and MFC the correct fix >if it is indeed the same problem in 6.2? It is the same problem; I took the (one-line) fix as indicated by >http://cvs.ironport.com/cgi-bin/viewcvs.cgi/freebsd/src/sys/netinet/tcp_syncache.c.diff?r1=1.84&r2=1.85 (well, not cvs.ironport.com, which doesn't seem to exist at the moment), and applied the diff from 1.84 to 1.85 and to a 6.2-PRERELEASE box updated around 25 Dec 06. It works like a charm. I would vote to MFC 1.85 now that 6.2 is out. The diff, for those who are following along at home, is: =================================================================== RCS file: /usr/local/www/cvsroot/FreeBSD/src/sys/netinet/tcp_syncache.c,v retrieving revision 1.84 retrieving revision 1.85 diff -u -p -r1.84 -r1.85 --- src/sys/netinet/tcp_syncache.c 2006/02/09 21:29:02 1.84 +++ src/sys/netinet/tcp_syncache.c 2006/02/28 23:05:59 1.85 @@ -682,7 +682,7 @@ syncache_socket(sc, lso, m) tp->t_flags |= TF_NOOPT; if (sc->sc_flags & SCF_WINSCALE) { tp->t_flags |= TF_REQ_SCALE|TF_RCVD_SCALE; - tp->requested_s_scale = sc->sc_requested_s_scale; + tp->snd_scale = sc->sc_requested_s_scale; tp->request_r_scale = sc->sc_request_r_scale; } if (sc->sc_flags & SCF_TIMESTAMP) { -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3" Internet: steve @ Watt.COM Whois: SW32-ARIN Free time? There's no such thing. It just comes in varying prices... From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 20 17:15: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 14A3716A404 for ; Sat, 20 Jan 2007 17:15:09 +0000 (UTC) (envelope-from xride@x12.dk) Received: from swip.net (mailfe03.tele2.dk [212.247.154.67]) by mx1.freebsd.org (Postfix) with ESMTP id 32AA713C44C for ; Sat, 20 Jan 2007 17:15:07 +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 mailfe03.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 396367936; Sat, 20 Jan 2007 18:15:05 +0100 Received: by x12.dk (Postfix, from userid 666) id EDE2850839; Sat, 20 Jan 2007 18:15:04 +0100 (CET) Date: Sat, 20 Jan 2007 18:15:04 +0100 From: Soeren Straarup To: Alexander Leidinger Message-ID: <20070120171504.GD60202@x12.dk> References: <20070119201935.GA60202@x12.dk> <20070120132444.50c688b7@Magellan.Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070120132444.50c688b7@Magellan.Leidinger.net> User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org, jkh@FreeBSD.org Subject: About sade (was Re: Where to start?) 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, 20 Jan 2007 17:15:09 -0000 On Sat, Jan 20, 2007 at 01:24:44PM +0100, Alexander Leidinger wrote: > Quoting Soeren Straarup (Fri, 19 Jan 2007 21:19:35 +0100): > > > Hi > > > > I'm looking for a project. > > Something that would actually be used. > > > > Preferely something with kernel and geom. > > > > I have looked over the project page, but not sure where to start. > > How hard is your requirement that it has to be in the kernel? If it is > not very strong: you could extend sade(8) to handle GEOM stuff. How should the g* stuff be included? like extracting code from the individual g* control programs and placed in sade? I could look at doing that. /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 Jan 20 18:32: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 427A716A411 for ; Sat, 20 Jan 2007 18:32:05 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id 6FA3913C4F2 for ; Sat, 20 Jan 2007 18:31:59 +0000 (UTC) (envelope-from anderson@centtech.com) 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 l0KIVvS0039925; Sat, 20 Jan 2007 12:31:58 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <45B26021.8020101@centtech.com> Date: Sat, 20 Jan 2007 12:32:01 -0600 From: Eric Anderson User-Agent: Thunderbird 1.5.0.9 (X11/20061223) MIME-Version: 1.0 To: Mike Silbersack References: <20070119201935.GA60202@x12.dk> <20070120024614.E99400@odysseus.silby.com> In-Reply-To: <20070120024614.E99400@odysseus.silby.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/2469/Sat Jan 20 11:50:33 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=8.0 tests=AWL,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@freebsd.org, Soeren Straarup Subject: Re: Where to start? 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, 20 Jan 2007 18:32:05 -0000 On 01/20/07 02:48, Mike Silbersack wrote: > On Fri, 19 Jan 2007, Soeren Straarup wrote: > >> Hi >> >> I'm looking for a project. >> Something that would actually be used. >> >> Preferely something with kernel and geom. >> >> I have looked over the project page, but not sure where to start. >> >> /Soeren > > I'd like to see the ability to run gjournal without reformatting. If you > could create a dummy file inside the filesystem, then use that area for > the journal, it might be possible. I'm sure that would let a lot more > people see if journalling is right for them. I don't think you need to reformat. Just turning off softupdates and adding the journal on another device should work. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology An undefined problem has an infinite number of solutions. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 20 18:39: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 52A6E16A401 for ; Sat, 20 Jan 2007 18:39:07 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id 09F1613C442 for ; Sat, 20 Jan 2007 18:39:07 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 36F21EB70FC; Sun, 21 Jan 2007 02:39:06 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id Bhu0MRXP3dNY; Sun, 21 Jan 2007 02:39:03 +0800 (CST) Received: from [192.168.1.32] (unknown [221.216.129.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 5FDEEEB3A2A; Sun, 21 Jan 2007 02:39:03 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:x-enigmail-version:content-type; b=wqWk+W591oBPkgqGVYQhVGtFfXHbK1vDhykaKBntaJV9l/SJxXGhiv7LAQqdGwSxO t1Xg/hHg7l+nrOISEA0fQ== Message-ID: <45B26169.9060306@delphij.net> Date: Sun, 21 Jan 2007 02:37:29 +0800 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: Eric Anderson References: <20070119201935.GA60202@x12.dk> <20070120024614.E99400@odysseus.silby.com> <45B26021.8020101@centtech.com> In-Reply-To: <45B26021.8020101@centtech.com> X-Enigmail-Version: 0.94.1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enigF5E9A43EC56B36A2A100EEB1" Cc: freebsd-hackers@freebsd.org, Soeren Straarup Subject: Re: Where to start? 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, 20 Jan 2007 18:39:07 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF5E9A43EC56B36A2A100EEB1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Eric Anderson wrote: > On 01/20/07 02:48, Mike Silbersack wrote: >> On Fri, 19 Jan 2007, Soeren Straarup wrote: >> >>> Hi >>> >>> I'm looking for a project. >>> Something that would actually be used. >>> >>> Preferely something with kernel and geom. >>> >>> I have looked over the project page, but not sure where to start. >>> >>> /Soeren >> >> I'd like to see the ability to run gjournal without reformatting. If >> you could create a dummy file inside the filesystem, then use that >> area for the journal, it might be possible. I'm sure that would let a= >> lot more people see if journalling is right for them. >=20 >=20 > I don't think you need to reformat. Just turning off softupdates and > adding the journal on another device should work. I think what Mike means is that eliminating the need of another device and just use space in the current file system, perhaps a dummy file with VV_SYSTEM. Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enigF5E9A43EC56B36A2A100EEB1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD4DBQFFsmFpOfuToMruuMARAw0xAJsET9MEp7fAa0sl5YqDq7rBXn+pbwCY3iI/ faUOK/7I39du8tmzhawHQQ== =rY77 -----END PGP SIGNATURE----- --------------enigF5E9A43EC56B36A2A100EEB1-- From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 20 18:48: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 BE13E16A402 for ; Sat, 20 Jan 2007 18:48:37 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id 9233113C44C for ; Sat, 20 Jan 2007 18:48:37 +0000 (UTC) (envelope-from anderson@centtech.com) 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 l0KImIwk042820; Sat, 20 Jan 2007 12:48:18 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <45B263F5.2050808@centtech.com> Date: Sat, 20 Jan 2007 12:48:21 -0600 From: Eric Anderson User-Agent: Thunderbird 1.5.0.9 (X11/20061223) MIME-Version: 1.0 To: LI Xin References: <20070119201935.GA60202@x12.dk> <20070120024614.E99400@odysseus.silby.com> <45B26021.8020101@centtech.com> <45B26169.9060306@delphij.net> In-Reply-To: <45B26169.9060306@delphij.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/2469/Sat Jan 20 11:50:33 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=8.0 tests=AWL,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@freebsd.org, Soeren Straarup Subject: Re: Where to start? 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, 20 Jan 2007 18:48:37 -0000 On 01/20/07 12:37, LI Xin wrote: > Eric Anderson wrote: >> On 01/20/07 02:48, Mike Silbersack wrote: >>> On Fri, 19 Jan 2007, Soeren Straarup wrote: >>> >>>> Hi >>>> >>>> I'm looking for a project. >>>> Something that would actually be used. >>>> >>>> Preferely something with kernel and geom. >>>> >>>> I have looked over the project page, but not sure where to start. >>>> >>>> /Soeren >>> I'd like to see the ability to run gjournal without reformatting. If >>> you could create a dummy file inside the filesystem, then use that >>> area for the journal, it might be possible. I'm sure that would let a >>> lot more people see if journalling is right for them. >> >> I don't think you need to reformat. Just turning off softupdates and >> adding the journal on another device should work. > > I think what Mike means is that eliminating the need of another device > and just use space in the current file system, perhaps a dummy file with > VV_SYSTEM. > > Cheers, Yea, that would be interesting, indeed. If we only had shrinkfs for UFS2. :) Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology An undefined problem has an infinite number of solutions. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 20 20:39: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 9884116A406 for ; Sat, 20 Jan 2007 20:39:42 +0000 (UTC) (envelope-from steve@localhost.lu) Received: from linion.ion.lu (linion.ion.lu [80.90.47.168]) by mx1.freebsd.org (Postfix) with ESMTP id E5C5213C442 for ; Sat, 20 Jan 2007 20:39:41 +0000 (UTC) (envelope-from steve@localhost.lu) Received: (qmail 7575 invoked by uid 89); 20 Jan 2007 21:40:33 +0100 Received: from localhost (HELO ?192.168.1.65?) (steve@localhost.lu@127.0.0.1) by linion.ion.lu with SMTP; 20 Jan 2007 21:40:33 +0100 Message-ID: <45B27E0A.6080006@localhost.lu> Date: Sat, 20 Jan 2007 21:39:38 +0100 From: Steve Clement User-Agent: Thunderbird 1.5.0.9 (X11/20061222) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: ssh-add core dump out of the blue... 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, 20 Jan 2007 20:39:42 -0000 Hi List, all of a sudden my ssh-add dumps. As always :) I haven't changed anything. In the beginning I thought my encrypted disk key was borked but I re-created a new key and I have the same phenomenon. http://steve.localhost.lu/ssh-add.core http://steve.localhost.lu/ktrace.out steve@laptop-steve ~ $ uname -a FreeBSD laptop-steve.localhost.lu 6.2-RC2 FreeBSD 6.2-RC2 #1: Sun Dec 24 19:31:12 CET 2006 root@laptop-steve.localhost.lu:/usr/obj/usr/src/sys/LAPTOP-STEVE i386 obviously the dump is my NON-FUNCTIONAL NO PASSPHRASE KEY!!! Do I need to provide any more info? cheers, Steve Clement -- __o | Steve Clement - Unix System Administrator _ \<,_ | Current Location: Luxembourgr/Europe (_)/ (_) | "Work to Eat, Eat to Live, Live to Bike, Bike to Work"