From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 3 08:03:49 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 380991065673; Sun, 3 Aug 2008 08:03:49 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206045140.chello.pl [87.206.45.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9D3928FC15; Sun, 3 Aug 2008 08:03:48 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 55DB845CA0; Sun, 3 Aug 2008 09:32:39 +0200 (CEST) Received: from localhost (abhw175.neoplus.adsl.tpnet.pl [83.7.112.175]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 13CAE45C98; Sun, 3 Aug 2008 09:32:34 +0200 (CEST) Date: Sun, 3 Aug 2008 09:32:40 +0200 From: Pawel Jakub Dawidek To: hackers@FreeBSD.org Message-ID: <20080803073240.GC2371@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TakKZr9L6Hm6aLOc" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: Subject: Linker deadlock. 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, 03 Aug 2008 08:03:49 -0000 --TakKZr9L6Hm6aLOc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi. Linker can easly deadlock when we try to load the same kernel module from two processes at the same time. This is because we drop kld_sx in linker_load_file() and reacquire it, which leads to LOR, because we already held vnode lock at this point. Interesing backtraces below. First process: db> tr 3066 Tracing pid 3066 tid 100090 td 0x8514b240 sched_switch(8514b240,0,104,177,bb6bbb2e,...) at sched_switch+0x40e mi_switch(104,0,80681605,1ca,0,...) at mi_switch+0x200 sleepq_switch(8514b240,0,80681605,237,80a281ec,...) at sleepq_switch+0x14d sleepq_wait(80a281ec,0,8067a18b,3,0,...) at sleepq_wait+0x63 _sx_xlock_hard(80a281ec,8514b240,0,8067a1cf,1a0,...) at _sx_xlock_hard+0x2c6 _sx_xlock(80a281ec,0,8067a1cf,1a0,0,...) at _sx_xlock+0x99 linker_load_module(853a1264,0,83ba8940,83ba893c,83ba8938,...) at linker_loa= d_module+0xa4a linker_load_dependencies(84fb8500,bb74,8539f000,2adc,156000,...) at linker_= load_dependencies+0x194 link_elf_load_file(806b74e0,8557e4c0,83ba8c24,17c,0,...) at link_elf_load_f= ile+0x4f0 linker_load_module(0,83ba8c4c,8067a1cf,3cd,280cb730,...) at linker_load_mod= ule+0x8db kern_kldload(8514b240,8592d400,83ba8c70,0,b395eb11,...) at kern_kldload+0xc8 [...] db> show lock 0x80a281ec class: sx name: kernel linker state: XLOCK: 0x8514bd80 (tid 100117, pid 3065, "zpool") waiters: exclusive Second process: db> tr 3065 Tracing pid 3065 tid 100117 td 0x8514bd80 sched_switch(8514bd80,0,104,177,bb7e358b,...) at sched_switch+0x40e mi_switch(104,0,80681605,1ca,50,...) at mi_switch+0x200 sleepq_switch(8514bd80,0,80681605,237,8523d9c0,...) at sleepq_switch+0x14d sleepq_wait(8523d9c0,50,806906bb,4,0,...) at sleepq_wait+0x63 __lockmgr_args(8523d9c0,80100,8523da28,0,0,...) at __lockmgr_args+0x9a5 vop_stdlock(83bd2660,8508aa80,2,80100,8523d968,...) at vop_stdlock+0x65 VOP_LOCK1_APV(806c3560,83bd2660,806d2ac0,8523d968,80100,...) at VOP_LOCK1_A= PV+0xa5 _vn_lock(8523d968,80100,8068815b,802,804c9cb4,...) at _vn_lock+0x5e vget(8523d968,80100,8514bd80,1b7,8065d00f,...) at vget+0xc9 cache_lookup(85090158,83bd2a00,83bd2a14,0,84f3b400,...) at cache_lookup+0x4= c2 nfs_lookup(83bd2838,80688e43,806d2720,80000,85090158,...) at nfs_lookup+0x1= 01 VOP_LOOKUP_APV(806c3560,83bd2838,8068783d,1bd,83bd2a00,...) at VOP_LOOKUP_A= PV+0xe5 lookup(83bd29e8,8068783d,e0,c0,8506e52c,...) at lookup+0x52e namei(83bd29e8,81159a38,80a352b4,4,8067be1f,...) at namei+0x48b vn_open_cred(83bd29e8,83bd2a4c,0,84f3b400,0,...) at vn_open_cred+0x2ba vn_open(83bd29e8,83bd2a4c,0,0,806b2a00,...) at vn_open+0x33 linker_lookup_file(3,0,3,8514bd80,0,...) at linker_lookup_file+0x163 linker_load_module(0,83bd2c4c,8067a1cf,3cd,280cb730,...) at linker_load_mod= ule+0x7bd kern_kldload(8514bd80,85a7e400,83bd2c70,0,b395eb11,...) at kern_kldload+0xc8 [...] db> show vnode 0x8523d968 vnode 0x8523d968: tag nfs, type VREG usecount 1, writecount 0, refcount 189 mountedhere 0 flags () v_object 0x852489b0 ref 0 pages 372 lock type nfs: EXCL by thread 0x8514b240 (pid 3066) with exclusive waiters pending #0 0x804c2e5d at __lockmgr_args+0xa6d #1 0x80546c85 at vop_stdlock+0x65 #2 0x8065dcd5 at VOP_LOCK1_APV+0xa5 #3 0x805627ee at _vn_lock+0x5e #4 0x80557419 at vget+0xc9 #5 0x805444b2 at cache_lookup+0x4c2 #6 0x805c3b51 at nfs_lookup+0x101 #7 0x8065ee65 at VOP_LOOKUP_APV+0xe5 #8 0x8054a9be at lookup+0x52e #9 0x8054b5eb at namei+0x48b #10 0x805621da at vn_open_cred+0x2ba #11 0x80562463 at vn_open+0x33 #12 0x804f45e8 at link_elf_load_file+0x68 #13 0x804c0f9b at linker_load_module+0x8db #14 0x804c1568 at kern_kldload+0xc8 #15 0x804c1624 at kldload+0x74 #16 0x80650513 at syscall+0x283 #17 0x80634e40 at Xint0x80_syscall+0x20 [...] --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --TakKZr9L6Hm6aLOc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFIlV8XForvXbEpPzQRAlmeAKD2QiHDRzEojyvdkCltBiqDEoUQaACfbSMq sMb31Fg3F11EYYaV0LJkyE0= =Ye8+ -----END PGP SIGNATURE----- --TakKZr9L6Hm6aLOc-- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 3 11:30:08 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B09D11065680 for ; Sun, 3 Aug 2008 11:30:08 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 0F1238FC13 for ; Sun, 3 Aug 2008 11:30:07 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m73B9QEF026027 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 3 Aug 2008 14:09:26 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m73B9Q45034180; Sun, 3 Aug 2008 14:09:26 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m73B9Qvk034179; Sun, 3 Aug 2008 14:09:26 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 3 Aug 2008 14:09:26 +0300 From: Kostik Belousov To: Pawel Jakub Dawidek Message-ID: <20080803110925.GR97161@deviant.kiev.zoral.com.ua> References: <20080803073240.GC2371@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="N/EvDld9rH7KvG42" Content-Disposition: inline In-Reply-To: <20080803073240.GC2371@garage.freebsd.pl> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: hackers@freebsd.org Subject: Re: Linker deadlock. 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, 03 Aug 2008 11:30:08 -0000 --N/EvDld9rH7KvG42 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 03, 2008 at 09:32:40AM +0200, Pawel Jakub Dawidek wrote: > Hi. >=20 > Linker can easly deadlock when we try to load the same kernel module > from two processes at the same time. This is because we drop kld_sx in > linker_load_file() and reacquire it, which leads to LOR, because we > already held vnode lock at this point. Interesing backtraces below. >=20 > First process: >=20 > db> tr 3066 > Tracing pid 3066 tid 100090 td 0x8514b240 > sched_switch(8514b240,0,104,177,bb6bbb2e,...) at sched_switch+0x40e > mi_switch(104,0,80681605,1ca,0,...) at mi_switch+0x200 > sleepq_switch(8514b240,0,80681605,237,80a281ec,...) at sleepq_switch+0x14d > sleepq_wait(80a281ec,0,8067a18b,3,0,...) at sleepq_wait+0x63 > _sx_xlock_hard(80a281ec,8514b240,0,8067a1cf,1a0,...) at _sx_xlock_hard+0x= 2c6 > _sx_xlock(80a281ec,0,8067a1cf,1a0,0,...) at _sx_xlock+0x99 > linker_load_module(853a1264,0,83ba8940,83ba893c,83ba8938,...) at linker_l= oad_module+0xa4a > linker_load_dependencies(84fb8500,bb74,8539f000,2adc,156000,...) at linke= r_load_dependencies+0x194 > link_elf_load_file(806b74e0,8557e4c0,83ba8c24,17c,0,...) at link_elf_load= _file+0x4f0 > linker_load_module(0,83ba8c4c,8067a1cf,3cd,280cb730,...) at linker_load_m= odule+0x8db > kern_kldload(8514b240,8592d400,83ba8c70,0,b395eb11,...) at kern_kldload+0= xc8 > [...] > db> show lock 0x80a281ec > class: sx > name: kernel linker > state: XLOCK: 0x8514bd80 (tid 100117, pid 3065, "zpool") > waiters: exclusive >=20 > Second process: >=20 > db> tr 3065 > Tracing pid 3065 tid 100117 td 0x8514bd80 > sched_switch(8514bd80,0,104,177,bb7e358b,...) at sched_switch+0x40e > mi_switch(104,0,80681605,1ca,50,...) at mi_switch+0x200 > sleepq_switch(8514bd80,0,80681605,237,8523d9c0,...) at sleepq_switch+0x14d > sleepq_wait(8523d9c0,50,806906bb,4,0,...) at sleepq_wait+0x63 > __lockmgr_args(8523d9c0,80100,8523da28,0,0,...) at __lockmgr_args+0x9a5 > vop_stdlock(83bd2660,8508aa80,2,80100,8523d968,...) at vop_stdlock+0x65 > VOP_LOCK1_APV(806c3560,83bd2660,806d2ac0,8523d968,80100,...) at VOP_LOCK1= _APV+0xa5 > _vn_lock(8523d968,80100,8068815b,802,804c9cb4,...) at _vn_lock+0x5e > vget(8523d968,80100,8514bd80,1b7,8065d00f,...) at vget+0xc9 > cache_lookup(85090158,83bd2a00,83bd2a14,0,84f3b400,...) at cache_lookup+0= x4c2 > nfs_lookup(83bd2838,80688e43,806d2720,80000,85090158,...) at nfs_lookup+0= x101 > VOP_LOOKUP_APV(806c3560,83bd2838,8068783d,1bd,83bd2a00,...) at VOP_LOOKUP= _APV+0xe5 > lookup(83bd29e8,8068783d,e0,c0,8506e52c,...) at lookup+0x52e > namei(83bd29e8,81159a38,80a352b4,4,8067be1f,...) at namei+0x48b > vn_open_cred(83bd29e8,83bd2a4c,0,84f3b400,0,...) at vn_open_cred+0x2ba > vn_open(83bd29e8,83bd2a4c,0,0,806b2a00,...) at vn_open+0x33 > linker_lookup_file(3,0,3,8514bd80,0,...) at linker_lookup_file+0x163 > linker_load_module(0,83bd2c4c,8067a1cf,3cd,280cb730,...) at linker_load_m= odule+0x7bd > kern_kldload(8514bd80,85a7e400,83bd2c70,0,b395eb11,...) at kern_kldload+0= xc8 > [...] > db> show vnode 0x8523d968 > vnode 0x8523d968: tag nfs, type VREG > usecount 1, writecount 0, refcount 189 mountedhere 0 > flags () > v_object 0x852489b0 ref 0 pages 372 > lock type nfs: EXCL by thread 0x8514b240 (pid 3066) > with exclusive waiters pending > #0 0x804c2e5d at __lockmgr_args+0xa6d > #1 0x80546c85 at vop_stdlock+0x65 > #2 0x8065dcd5 at VOP_LOCK1_APV+0xa5 > #3 0x805627ee at _vn_lock+0x5e > #4 0x80557419 at vget+0xc9 > #5 0x805444b2 at cache_lookup+0x4c2 > #6 0x805c3b51 at nfs_lookup+0x101 > #7 0x8065ee65 at VOP_LOOKUP_APV+0xe5 > #8 0x8054a9be at lookup+0x52e > #9 0x8054b5eb at namei+0x48b > #10 0x805621da at vn_open_cred+0x2ba > #11 0x80562463 at vn_open+0x33 > #12 0x804f45e8 at link_elf_load_file+0x68 > #13 0x804c0f9b at linker_load_module+0x8db > #14 0x804c1568 at kern_kldload+0xc8 > #15 0x804c1624 at kldload+0x74 > #16 0x80650513 at syscall+0x283 > #17 0x80634e40 at Xint0x80_syscall+0x20 > [...] Source line backtraces would be nicer, since gcc inliner forces me to make a guess. It seems that linker_load_module() calls linker_load_file() that drops and reaquires the linker lock. Then, it seems that dropping the module' vnode lock around the call to linker_load_dependencies() should help. diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c index 2664ba9..52b3f8f 100644 --- a/sys/kern/link_elf.c +++ b/sys/kern/link_elf.c @@ -802,7 +802,9 @@ link_elf_load_file(linker_class_t cls, const char* file= name, goto out; link_elf_reloc_local(lf); =20 + VOP_UNLOCK(nd.ni_vp, 0); error =3D linker_load_dependencies(lf); + vn_lock(nd.ni_vp, LK_EXCLUSIVE | LK_RETRY); if (error) goto out; #if 0 /* this will be more trouble than it's worth for now */ diff --git a/sys/kern/link_elf_obj.c b/sys/kern/link_elf_obj.c index d8e9219..657dd0e 100644 --- a/sys/kern/link_elf_obj.c +++ b/sys/kern/link_elf_obj.c @@ -798,7 +798,9 @@ link_elf_load_file(linker_class_t cls, const char *file= name, link_elf_reloc_local(lf); =20 /* Pull in dependencies */ + VOP_UNLOCK(nd.ni_vp); error =3D linker_load_dependencies(lf); + vn_lock(nd.ni_vp, LK_EXCLUSIVE | LK_RETRY); if (error) goto out; =20 --N/EvDld9rH7KvG42 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkiVkeUACgkQC3+MBN1Mb4j6UgCggfHE8UhSsYzQFeOR/8r32xJD bi0AmwdH1NeeWRwESVeP2If9JH/+eEAD =bCsJ -----END PGP SIGNATURE----- --N/EvDld9rH7KvG42-- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 3 11:35:59 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 661DE106566C for ; Sun, 3 Aug 2008 11:35:59 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206045140.chello.pl [87.206.45.140]) by mx1.freebsd.org (Postfix) with ESMTP id BB8838FC17 for ; Sun, 3 Aug 2008 11:35:57 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 4192845C8A; Sun, 3 Aug 2008 13:35:56 +0200 (CEST) Received: from localhost (abhw175.neoplus.adsl.tpnet.pl [83.7.112.175]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 21F7845684; Sun, 3 Aug 2008 13:35:49 +0200 (CEST) Date: Sun, 3 Aug 2008 13:35:56 +0200 From: Pawel Jakub Dawidek To: Kostik Belousov Message-ID: <20080803113555.GD2371@garage.freebsd.pl> References: <20080803073240.GC2371@garage.freebsd.pl> <20080803110925.GR97161@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="raC6veAxrt5nqIoY" Content-Disposition: inline In-Reply-To: <20080803110925.GR97161@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: hackers@freebsd.org Subject: Re: Linker deadlock. 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, 03 Aug 2008 11:35:59 -0000 --raC6veAxrt5nqIoY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 03, 2008 at 02:09:26PM +0300, Kostik Belousov wrote: > Source line backtraces would be nicer, since gcc inliner forces me to make > a guess. It seems that linker_load_module() calls linker_load_file() > that drops and reaquires the linker lock. >=20 > Then, it seems that dropping the module' vnode lock around the call to > linker_load_dependencies() should help. Yes, it doesn't deadlock now, thanks! > diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c > index 2664ba9..52b3f8f 100644 > --- a/sys/kern/link_elf.c > +++ b/sys/kern/link_elf.c > @@ -802,7 +802,9 @@ link_elf_load_file(linker_class_t cls, const char* fi= lename, > goto out; > link_elf_reloc_local(lf); > =20 > + VOP_UNLOCK(nd.ni_vp, 0); > error =3D linker_load_dependencies(lf); > + vn_lock(nd.ni_vp, LK_EXCLUSIVE | LK_RETRY); > if (error) > goto out; > #if 0 /* this will be more trouble than it's worth for now */ > diff --git a/sys/kern/link_elf_obj.c b/sys/kern/link_elf_obj.c > index d8e9219..657dd0e 100644 > --- a/sys/kern/link_elf_obj.c > +++ b/sys/kern/link_elf_obj.c > @@ -798,7 +798,9 @@ link_elf_load_file(linker_class_t cls, const char *fi= lename, > link_elf_reloc_local(lf); > =20 > /* Pull in dependencies */ > + VOP_UNLOCK(nd.ni_vp); > error =3D linker_load_dependencies(lf); > + vn_lock(nd.ni_vp, LK_EXCLUSIVE | LK_RETRY); > if (error) > goto out; --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --raC6veAxrt5nqIoY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFIlZgbForvXbEpPzQRAj1EAJ9k4hyfgNWIhFcD2MVgnpC5ugDjsACfSZKj DXo4yKsxYhtzEbukmnj4ZmU= =gGqn -----END PGP SIGNATURE----- --raC6veAxrt5nqIoY-- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 3 15:10:43 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A77CD1065677 for ; Sun, 3 Aug 2008 15:10:43 +0000 (UTC) (envelope-from gaijin.k@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.237]) by mx1.freebsd.org (Postfix) with ESMTP id 568D98FC12 for ; Sun, 3 Aug 2008 15:10:43 +0000 (UTC) (envelope-from gaijin.k@gmail.com) Received: by wx-out-0506.google.com with SMTP id h27so268144wxd.7 for ; Sun, 03 Aug 2008 08:10:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=OKYJFPIRmKq4hEqy/LVUsg8KnuXU+Erj0ZLcG7vTQco=; b=FaZpIG/bTGUgF+SXlJOabdasUFHBXe6A35i34iicqwG15RsR3o6JEM5TW1si2Hab5C FEq6TlT28kO2zWBNIyPRdeqai9sbqm/a4632YV0n8XrUPK3sVMbkzRao2LHFmL5qeDRF /yL2L+I+XRrBLX3rpv8dcTyqoABVX2mnffgLk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=KckrdJtdzji7883xgu4zeT4B+mk0nic9bGGChrXr4DWuu8ylmkNBSAJ/36iTAcQQ4S wdVGRUjKkbPD0TABrKQ1DCep4f0vxCiB+52JJp+n2qT80lOuFHTeurz79l/x8aSJq5kc Ub57gPxcFS5yaSR4vabiH7IWRnJnI2O8Go+VA= Received: by 10.70.19.7 with SMTP id 7mr13165764wxs.1.1217776242402; Sun, 03 Aug 2008 08:10:42 -0700 (PDT) Received: from ?10.0.3.231? ( [70.111.2.146]) by mx.google.com with ESMTPS id h12sm5554868wxd.35.2008.08.03.08.10.40 (version=SSLv3 cipher=RC4-MD5); Sun, 03 Aug 2008 08:10:41 -0700 (PDT) From: "Alexandre \"Sunny\" Kovalenko" To: "Carlos A. M. dos Santos" In-Reply-To: References: <1216910072.2251.8.camel@jill.exit.com> <86y73j341e.fsf@ds4.des.no> <86bq0ftjf6.fsf@ds4.des.no> <8C2BF4B9-14CD-40EA-B22E-DBB7060BFE46@bnc.net> Content-Type: text/plain; charset=utf-8 Date: Sun, 03 Aug 2008 11:10:29 -0400 Message-Id: <1217776229.953.11.camel@RabbitsDen> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Sun, 03 Aug 2008 16:22:17 +0000 Cc: Achim Patzner , freebsd-mobile@freebsd.org, freebsd-hackers , Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= Subject: Re: Laptop suggestions? 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, 03 Aug 2008 15:10:43 -0000 On Wed, 2008-07-30 at 21:45 -0300, Carlos A. M. dos Santos wrote: > On Wed, Jul 30, 2008 at 5:20 PM, Achim Patzner wrote: > > Am 30.07.2008 um 18:40 schrieb Dag-Erling Smørgrav: > >> > >> I don't understand what Macs have to do with this - we're talking about > >> iX Systems's made-for-BSD laptop. > > > > The thread started with someone asking for a mobile computer that > > would support FreeBSD sufficiently and nobody came up with something > > fitting the bill (and being available somewhere). Considering the > > picture you're seeing at any place where more than two hardcore Unix > > users assemble you're seeing a majority of Macs. There has to be an > > obvious reason for that... I tried to break that habit more than once > > but right now the only comfortable way of running FreeBSD on a laptop > > is VMware Fusion on a Mac. Reading this entire thread convinced me > > even more. > > Please define "comfortable". I've been running FreeBSD 7.0 pretty > comfortably on my HP nx6320 for several months now. I never attempted > to use neither Bluetooth nor the fingerprint reader, so I don't miss I am sure this is not intentional, but a lot of the responses in this thread mention not using Bluetooth. If only to make sure that people are not led to believe that Bluetooth support in FreeBSD is lacking, I would like to mention that I have been using it for a long while with Apple Keyboard (something Windows incarnation of the same laptop is not capable of), Logitech V570(?) mouse, Palms E2 and TX (former NAT'd out to the network through FreeBSD host) and the string of Motorola phones for moving pictures, sounds and Java applications back and forth using OBEX. And, just to throw out some other definition of the "comfortable" -- I find my ThinkPad X61 (12" diagonally, 4.5lbs) much more comfortable to carry around than my iBook G4 or the smallest of the MacBooks being sold today. I guess, "comfortable" is on the lap of the beholder ;) -- Alexandre "Sunny" Kovalenko (Олександр Коваленко) From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 3 16:27:08 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 242D41065728 for ; Sun, 3 Aug 2008 16:27:08 +0000 (UTC) (envelope-from rink@rink.nu) Received: from mx1.rink.nu (gloom.rink.nu [213.34.49.2]) by mx1.freebsd.org (Postfix) with ESMTP id DD3F68FC16 for ; Sun, 3 Aug 2008 16:27:07 +0000 (UTC) (envelope-from rink@rink.nu) Received: from localhost (localhost [127.0.0.1]) by mx1.rink.nu (Postfix) with ESMTP id 965FA6D450; Sun, 3 Aug 2008 18:11:01 +0200 (CEST) X-Virus-Scanned: amavisd-new at rink.nu Received: from mx1.rink.nu ([213.34.49.2]) by localhost (gloom.rink.nu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IuLP580gVzxi; Sun, 3 Aug 2008 18:10:57 +0200 (CEST) Received: by mx1.rink.nu (Postfix, from userid 1000) id 4AB986D453; Sun, 3 Aug 2008 18:10:57 +0200 (CEST) Date: Sun, 3 Aug 2008 18:10:57 +0200 From: Rink Springer To: alec@setfilepointer.com, brucem@mail.cruzio.com Message-ID: <20080803161057.GB35301@rink.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Cc: hackers@freebsd.org Subject: Patch for working AMD Geode CS5530 audio driver on HEAD 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, 03 Aug 2008 16:27:08 -0000 Hi, As outlined in http://lists.freebsd.org/pipermail/freebsd-hackers/2008-January/022986.html, Alec had some problems with the snd_geode driver. While I cannot test whether it works using Geode CS5536 hardware, I've managed to get the driver to work using CS5530 hardware on FreeBSD HEAD. The patch is available at http://people.freebsd.org/~rink/various/ns_geode.diff - using this, my Compaq Evo T30 flawlessly plays MP3's. The problem was that the busdma tag allocation specifies a maximum allocation size of 65536 bytes, yet it had to do so using 1 segment of at most 65535 bytes (note: 1 byte less). Since the channel code tries to allocate 65536 bytes, this didn't work [1]; yet, the return code check was messages up (sndbuf_alloc() returns 0 on success, not -1 on failure) which caused page faults later on. I am interested in integrating this work in HEAD; however, if Alec and/or Bruce could try, see and hack away to make it work on the CS5536 (or are willing to ship me a system ;-), that'd be great. [1] Thanks to Scott Long for pointing me towards the right direction. Regards, -- Rink P.W. Springer - http://rink.nu "Anyway boys, this is America. Just because you get more votes doesn't mean you win." - Fox Mulder From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 4 03:46:49 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 032B91065671; Mon, 4 Aug 2008 03:46:49 +0000 (UTC) (envelope-from brucem@mail.cruzio.com) Received: from cruzio.com (dsl-63-249-85-132.cruzio.com [63.249.85.132]) by mx1.freebsd.org (Postfix) with ESMTP id 64D6C8FC13; Mon, 4 Aug 2008 03:46:48 +0000 (UTC) (envelope-from brucem@mail.cruzio.com) Received: from mail.cruzio.com (localhost [127.0.0.1]) by cruzio.com (8.12.10/8.12.10) with ESMTP id m743R0bU000358; Sun, 3 Aug 2008 20:27:00 -0700 (PDT) (envelope-from brucem@mail.cruzio.com) Received: (from brucem@localhost) by mail.cruzio.com (8.12.10/8.12.10/Submit) id m743R03p000357; Sun, 3 Aug 2008 20:27:00 -0700 (PDT) (envelope-from brucem) Date: Sun, 3 Aug 2008 20:27:00 -0700 (PDT) From: "Bruce R. Montague" Message-Id: <200808040327.m743R03p000357@mail.cruzio.com> To: rink@freebsd.org Cc: ancelgray@yahoo.com, alec@setfilepointer.com, hackers@freebsd.org Subject: Re: Patch for working AMD Geode CS5530 audio driver on HEAD 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, 04 Aug 2008 03:46:49 -0000 Hi, Rink. re: > The patch is available at > http://people.freebsd.org/~rink/various/ns_geode.diff Sounds great! (ok awful pun.) > I am interested in integrating this work in HEAD ... My FreeBSD development environment has been down for a few years and, despite optimistic hopes, due to day job and real life, cough, I won't be able to do anything with this driver till mid-September (if then). So as far as I am concerned, anyone who wanted to take this driver and run with it, well, that would be great. (in particular as I seem to be suffering from infinitly receeding deadline syndrome.) I know Andrew Grey (ancelgray at yahoo.com) was starting to hack on the CS5536 stuff... -bruce From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 08:05:24 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5305D106564A for ; Tue, 5 Aug 2008 08:05:24 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id DEECE8FC0A for ; Tue, 5 Aug 2008 08:05:23 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([193.31.10.34]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Tue, 5 Aug 2008 10:05:21 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m7585KcO003504 for freebsd-hackers@freebsd.org; Tue, 5 Aug 2008 10:05:20 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Tue, 5 Aug 2008 10:05:20 +0200 From: Matthias Apitz To: freebsd-hackers@freebsd.org Message-ID: <20080805080520.GB3063@rebelion.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) X-OriginalArrivalTime: 05 Aug 2008 08:05:21.0859 (UTC) FILETIME=[02158930:01C8F6D2] Subject: Fwd: Q: case studies about scalable, enterprise-class firewall w/ IPFilter X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2008 08:05:24 -0000 Hello, I've posted the attached mail in the IP Filter mailing list; the only responses have been bad configured vacation replies :-( someone from freebsd-hackers has an idea? thanks in advance matthias ----- Forwarded message from Matthias Apitz ----- From: Matthias Apitz Date: Sun, 3 Aug 2008 08:24:15 +0200 To: IP Filter Subject: Q: case studies about scalable, enterprise-class firewall w/ IPFilter Hello, We're currently protecting our network (and as well some FreeBSD laptops standalone) with IPFilter... I'm wondering if there are any case studies about scalable, enterprise-class firewall solutions, redundancy with state-full failover, and application-level inspection, and all that a like, based on IPFilter and FreeBSD; thanks in advance for any pointers matthias -- Matthias Apitz w http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ----- End forwarded message ----- From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 09:19:10 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C48AE106566C for ; Tue, 5 Aug 2008 09:19:10 +0000 (UTC) (envelope-from ady@ady.ro) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.170]) by mx1.freebsd.org (Postfix) with ESMTP id A4BF18FC14 for ; Tue, 5 Aug 2008 09:19:10 +0000 (UTC) (envelope-from ady@ady.ro) Received: by wf-out-1314.google.com with SMTP id 24so2130465wfg.7 for ; Tue, 05 Aug 2008 02:19:10 -0700 (PDT) Received: by 10.142.231.7 with SMTP id d7mr3568355wfh.207.1217927950085; Tue, 05 Aug 2008 02:19:10 -0700 (PDT) Received: by 10.142.54.14 with HTTP; Tue, 5 Aug 2008 02:19:10 -0700 (PDT) Message-ID: <78cb3d3f0808050219k94105adxd114012634989b31@mail.gmail.com> Date: Tue, 5 Aug 2008 11:19:10 +0200 From: "Adrian Penisoara" Sender: ady@ady.ro To: "Matthias Apitz" In-Reply-To: <20080805080520.GB3063@rebelion.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080805080520.GB3063@rebelion.Sisis.de> X-Google-Sender-Auth: bf2bb50bcee7ccf9 Cc: freebsd-hackers@freebsd.org Subject: Re: Q: case studies about scalable, enterprise-class firewall w/ IPFilter 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, 05 Aug 2008 09:19:10 -0000 Hi, On Tue, Aug 5, 2008 at 10:05 AM, Matthias Apitz wrote: > > Hello, > > I've posted the attached mail in the IP Filter mailing list; the only > responses have been bad configured vacation replies :-( > > someone from freebsd-hackers has an idea? thanks in advance > > matthias > > ----- Forwarded message from Matthias Apitz ----- > > From: Matthias Apitz > Date: Sun, 3 Aug 2008 08:24:15 +0200 > To: IP Filter > Subject: Q: case studies about scalable, enterprise-class firewall w/ IPFilter > > > Hello, > > We're currently protecting our network (and as well some FreeBSD laptops > standalone) with IPFilter... I'm wondering if there are any case studies > about scalable, enterprise-class firewall solutions, redundancy with > state-full failover, and application-level inspection, and all that a > like, based on IPFilter and FreeBSD; Hmm, none that I know of, but I would be interested to (get) involved in such a project (on behalf of the emerging EntepriseBSD project and/or business consulting). I have been working with IPFilter in the past, even built a pretty complex setup for the university where I've been studying (might be still running) with statefull tables (kept across reboots) and the associated scaling problems. Besides sporadic issues (with lost sessions due to overflowing the session tables until I fine-tuned the IPF state timeouts) it was quite a success. Nowadays I believe the trend is to use pf(4) instead of ipf(4) as it offers quite the same functionality under a presumably better license (although I sometimes miss the hierarchical structuring available through group/head in IPFilter). Let me know if I can be of help. Regards, Adrian Penisoara EnterpriseBSD project / ROFUG Ady (@enterprisebsd.info, @bsdconsultants.com) From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 09:26:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 884C81065671 for ; Tue, 5 Aug 2008 09:26:41 +0000 (UTC) (envelope-from tim@clewlow.org) Received: from clewlow.org (clewlow.org [210.215.149.194]) by mx1.freebsd.org (Postfix) with ESMTP id C381D8FC1F for ; Tue, 5 Aug 2008 09:26:40 +0000 (UTC) (envelope-from tim@clewlow.org) Received: from 192.168.1.100 (localhost [127.0.0.1]) by clewlow.org (Postfix) with ESMTP id 1F12E1C081D; Tue, 5 Aug 2008 19:26:38 +1000 (EST) Received: from 192.168.1.10 (SquirrelMail authenticated user tim) by 192.168.1.100 with HTTP; Tue, 5 Aug 2008 19:26:38 +1000 (EST) Message-ID: <53720.192.168.1.10.1217928398.squirrel@192.168.1.100> In-Reply-To: <20080805080520.GB3063@rebelion.Sisis.de> References: <20080805080520.GB3063@rebelion.Sisis.de> Date: Tue, 5 Aug 2008 19:26:38 +1000 (EST) From: "Tim Clewlow" To: "Matthias Apitz" User-Agent: SquirrelMail/1.4.13 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-hackers@freebsd.org Subject: Re: Fwd: Q: case studies about scalable, enterprise-class firewall w/ IPFilter 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, 05 Aug 2008 09:26:41 -0000 > > Hello, > > I've posted the attached mail in the IP Filter mailing list; the > only > responses have been bad configured vacation replies :-( > > someone from freebsd-hackers has an idea? thanks in advance > > matthias > > ----- Forwarded message from Matthias Apitz ----- > > From: Matthias Apitz > Date: Sun, 3 Aug 2008 08:24:15 +0200 > To: IP Filter > Subject: Q: case studies about scalable, enterprise-class firewall > w/ IPFilter > > > Hello, > > We're currently protecting our network (and as well some FreeBSD > laptops > standalone) with IPFilter... I'm wondering if there are any case > studies > about scalable, enterprise-class firewall solutions, redundancy with > state-full failover, and application-level inspection, and all that > a > like, based on IPFilter and FreeBSD; > > thanks in advance for any pointers > > matthias > -- Hi there, I have never used ipfilter, but I do use pf, and it can do state-full failover, or firewall redundancy, with CARP (the Common Address Redundancy Protocol) and pfsync. If there is an equivalent syncing program, eg ipfiltersync then you could use that with CARP to allow an ipfilter firewall to fail-over with full state tables intact. Also, you can inspect all manner of status info and tables for a running firewall with pfctl, there must be an equivalent for ipfilter. If you are looking for general info about building a firewall, eg tcp and ip headers, plus icmp and voip and other protocols, then I would recommend the following tutorial, it has a huge amount of information - it is a lot more than just a tutorial on iptables. http://iptables-tutorial.frozentux.net/iptables-tutorial.html Lastly, the "OpenBSD PF Packet Filter Book" has been very useful for me, but I use pf where possible - I think it is the easiest, and paradoxically the most powerful of all packet filters, but that is my personal opinion, YMMV. Cheers, Tim. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 09:40:17 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF4141065679 for ; Tue, 5 Aug 2008 09:40:17 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 836978FC15 for ; Tue, 5 Aug 2008 09:40:17 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([193.31.10.34]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Tue, 5 Aug 2008 11:40:15 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m759eDrh006181 for freebsd-hackers@freebsd.org; Tue, 5 Aug 2008 11:40:13 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Tue, 5 Aug 2008 11:40:13 +0200 From: Matthias Apitz To: freebsd-hackers@freebsd.org Message-ID: <20080805094013.GA5654@rebelion.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) X-OriginalArrivalTime: 05 Aug 2008 09:40:15.0767 (UTC) FILETIME=[43EAF270:01C8F6DF] Subject: restore of file system into USB key terrible slow X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2008 09:40:18 -0000 Hello, I'm trying to restore a DUMP into an USB key; the DUMP was extracted from another USB key which I just want to colne this way; the USB key type is: Aug 5 10:53:34 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug 5 10:53:34 rebelion kernel: da0: < Cn Memory 1100> Removable Direct Access SCSI-0 device Aug 5 10:53:34 rebelion kernel: da0: 40.000MB/s transfers Aug 5 10:53:34 rebelion kernel: da0: 3871MB (7928832 512 byte sectors: 255H 63S/T 493C) and I've created a partition (only one covering the full ~4 GByte) and a file system as: # newfs -m 0 -o space /dev/da0s1a /dev/da0s1a: 3867.2MB (7919964 sectors) block size 16384, fragment size 2048 using 22 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. super-block backups (for fsck -b #) at: 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976, 3387328, 3763680, 4140032, 4516384, 4892736, 5269088, 5645440, 6021792, 6398144, 6774496, 7150848, 7527200, 7903552 # mount /dev/da0s1a /mnt # cd /mnt # restore -rv -f /home/guru/myThings/FreeBSD/tinyUsb.dmp Verify tape and initialize maps Tape block size is 32 Header with wrong dumpdate. Dump date: Tue Aug 5 09:50:36 2008 Dumped from: the epoch Level 0 dump of /mnt on rebelion.Sisis.de:/dev/da0s1a Label: none Begin level 0 restore Initialize symbol table. Extract directories from tape Calculate extraction list. warning: ./.snap: File exists Make node ./var Make node ./var/account Make node ./var/at Make node ./var/at/jobs Make node ./var/at/spool Make node ./var/audit the restore is *terrible* slow, aound 200 blocks per second: $ df -k /mnt ; sleep 60 ; df -k /mnt Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/da0s1a 3829660 454 3829206 0% /mnt Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/da0s1a 3829660 642 3829018 0% /mnt Am I doing something wrong? What means 'Header with wrong dumpdate'? matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 09:44:40 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6072D106566B for ; Tue, 5 Aug 2008 09:44:40 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1D9878FC2D for ; Tue, 5 Aug 2008 09:44:40 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from PortaPeg (frmr1-adsl.demon.co.uk [83.104.210.73]) (authenticated bits=0) by hercules.mthelicon.com (8.14.2/8.14.2) with ESMTP id m759ib8V012313 for ; Tue, 5 Aug 2008 09:44:39 GMT (envelope-from ken@mthelicon.com) From: "Pegasus Mc Cleaft" To: Date: Tue, 5 Aug 2008 10:44:32 +0100 Message-ID: <000301c8f6df$e1006ae0$a30140a0$@com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acj239yJ8PdREuQaSrq1S0c/gz96qQ== Content-Language: en-gb Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: IPv6 CVS 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, 05 Aug 2008 09:44:40 -0000 Hi all, Does anyone know if there are any IPv6 CVS servers for FreeBSD? (As in receiving the STABLE and ports branches) I currently use cvs.freebsd.org but it dosent have an AAAA record. Ta Peg From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 09:52:32 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40C1C106567C for ; Tue, 5 Aug 2008 09:52:32 +0000 (UTC) (envelope-from tim@clewlow.org) Received: from clewlow.org (clewlow.org [210.215.149.194]) by mx1.freebsd.org (Postfix) with ESMTP id D4EF18FC1D for ; Tue, 5 Aug 2008 09:52:31 +0000 (UTC) (envelope-from tim@clewlow.org) Received: from 192.168.1.100 (localhost [127.0.0.1]) by clewlow.org (Postfix) with ESMTP id 4A8371C081D; Tue, 5 Aug 2008 19:52:30 +1000 (EST) Received: from 192.168.1.10 (SquirrelMail authenticated user tim) by 192.168.1.100 with HTTP; Tue, 5 Aug 2008 19:52:30 +1000 (EST) Message-ID: <55592.192.168.1.10.1217929950.squirrel@192.168.1.100> In-Reply-To: <000301c8f6df$e1006ae0$a30140a0$@com> References: <000301c8f6df$e1006ae0$a30140a0$@com> Date: Tue, 5 Aug 2008 19:52:30 +1000 (EST) From: "Tim Clewlow" To: "Pegasus Mc Cleaft" User-Agent: SquirrelMail/1.4.13 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-hackers@freebsd.org Subject: Re: IPv6 CVS 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, 05 Aug 2008 09:52:32 -0000 > Hi all, > > Does anyone know if there are any IPv6 CVS servers for FreeBSD? (As > in > receiving the STABLE and ports branches) I currently use > cvs.freebsd.org but > it dosent have an AAAA record. > > Ta > > Peg > dig aaaa cvsup4.freebsd.org ; <<>> DiG 9.4.2 <<>> aaaa cvsup4.freebsd.org ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34684 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 6, ADDITIONAL: 0 ;; QUESTION SECTION: ;cvsup4.freebsd.org. IN AAAA ;; ANSWER SECTION: cvsup4.freebsd.org. 3600 IN CNAME freebsd.isc.org. freebsd.isc.org. 3600 IN AAAA 2001:4f8:0:2::e From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 10:06:13 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 608E71065672 for ; Tue, 5 Aug 2008 10:06:13 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.freebsd.org (Postfix) with ESMTP id E6B688FC44 for ; Tue, 5 Aug 2008 10:06:12 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-001-120.pools.arcor-ip.net [88.66.1.120]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1KQJQh2w42-0000ZN; Tue, 05 Aug 2008 12:06:11 +0200 Received: (qmail 78274 invoked from network); 5 Aug 2008 10:06:11 -0000 Received: from fbsd8.laiers.local (192.168.4.151) by laiers.local with SMTP; 5 Aug 2008 10:06:11 -0000 From: Max Laier Organization: FreeBSD To: freebsd-hackers@freebsd.org, Matthias Apitz Date: Tue, 5 Aug 2008 12:06:10 +0200 User-Agent: KMail/1.9.52 (FreeBSD/8.0-CURRENT; KDE/4.0.83; i386; ; ) References: <20080805080520.GB3063@rebelion.Sisis.de> In-Reply-To: <20080805080520.GB3063@rebelion.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808051206.10938.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1/DfsnnvOTiyDGwADJakroR54QsXHtCipxBS89 oHyPiJoD32+xegHPiAo6X4jTU0NnouyRNfk9dtCmTtdO9TysJI PxSf4EauSAqM6sueN2KIA== Cc: Subject: Re: Fwd: Q: case studies about scalable, enterprise-class firewall w/ IPFilter 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, 05 Aug 2008 10:06:13 -0000 Hello Matthias, On Tuesday 05 August 2008 10:05:20 Matthias Apitz wrote: > We're currently protecting our network (and as well some FreeBSD laptops > standalone) with IPFilter... I'm wondering if there are any case studies > about scalable, enterprise-class firewall solutions, redundancy with > state-full failover, and application-level inspection, and all that a > like, based on IPFilter and FreeBSD; > > thanks in advance for any pointers if IPFilter isn't the primary selection criteria, you might want to take a look at www.pfsense.org. Application-level inspection is just in the making, but all your other feature requests get a check mark. -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 10:43:36 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F9F4106566B for ; Tue, 5 Aug 2008 10:43:36 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.freebsd.org (Postfix) with ESMTP id 61FAF8FC1F for ; Tue, 5 Aug 2008 10:43:35 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.14.2/8.14.2) with ESMTP id m75AGZiZ050216; Tue, 5 Aug 2008 14:16:36 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Tue, 5 Aug 2008 14:16:35 +0400 (MSD) From: Maxim Konovalov To: Tim Clewlow In-Reply-To: <55592.192.168.1.10.1217929950.squirrel@192.168.1.100> Message-ID: <20080805141450.T60740@mp2.macomnet.net> References: <000301c8f6df$e1006ae0$a30140a0$@com> <55592.192.168.1.10.1217929950.squirrel@192.168.1.100> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-hackers@freebsd.org, Pegasus Mc Cleaft Subject: Re: IPv6 CVS 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, 05 Aug 2008 10:43:36 -0000 On Tue, 5 Aug 2008, 19:52+1000, Tim Clewlow wrote: > > > Hi all, > > > > Does anyone know if there are any IPv6 CVS servers for FreeBSD? (As > > in > > receiving the STABLE and ports branches) I currently use > > cvs.freebsd.org but > > it dosent have an AAAA record. > > > > Ta > > > > Peg > > > dig aaaa cvsup4.freebsd.org > cvs != cvsup. Speaking of cvsup -- cvsup4.ru.freebsd.org has an ipv6 address as well. -- Maxim Konovalov From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 10:51:08 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFD0B1065671 for ; Tue, 5 Aug 2008 10:51:08 +0000 (UTC) (envelope-from stsp@stsp.name) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by mx1.freebsd.org (Postfix) with ESMTP id 4C88F8FC1D for ; Tue, 5 Aug 2008 10:51:08 +0000 (UTC) (envelope-from stsp@stsp.name) X-Envelope-From: stsp@stsp.name Received: from stsp.name (ted.stsp.name [217.197.84.186]) (authenticated bits=128) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id m75AowhS031652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 5 Aug 2008 12:50:59 +0200 Received: from ted.stsp.name (localhost [127.0.0.1]) by stsp.name (8.14.2/8.14.2) with ESMTP id m75ApGAL008708; Tue, 5 Aug 2008 12:51:16 +0200 (CEST) (envelope-from stsp@ted.stsp.name) Received: (from stsp@localhost) by ted.stsp.name (8.14.2/8.14.2/Submit) id m75AovdE008697; Tue, 5 Aug 2008 12:50:57 +0200 (CEST) (envelope-from stsp) Date: Tue, 5 Aug 2008 12:50:57 +0200 From: Stefan Sperling To: Maxim Konovalov Message-ID: <20080805105057.GC1450@ted.stsp.name> References: <000301c8f6df$e1006ae0$a30140a0$@com> <55592.192.168.1.10.1217929950.squirrel@192.168.1.100> <20080805141450.T60740@mp2.macomnet.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080805141450.T60740@mp2.macomnet.net> User-Agent: Mutt/1.5.18 (2008-05-17) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Cc: freebsd-hackers@freebsd.org, Pegasus Mc Cleaft , Tim Clewlow Subject: Re: IPv6 CVS 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, 05 Aug 2008 10:51:08 -0000 On Tue, Aug 05, 2008 at 02:16:35PM +0400, Maxim Konovalov wrote: > On Tue, 5 Aug 2008, 19:52+1000, Tim Clewlow wrote: > > > > > > Hi all, > > > > > > Does anyone know if there are any IPv6 CVS servers for FreeBSD? (As > > > in > > > receiving the STABLE and ports branches) I currently use > > > cvs.freebsd.org but > > > it dosent have an AAAA record. > > > > > > Ta > > > > > > Peg > > > > > dig aaaa cvsup4.freebsd.org > > > cvs != cvsup. Speaking of cvsup -- cvsup4.ru.freebsd.org has an ipv6 > address as well. AFAIK the Modula3 runtime does not support IPv6. Stefan From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 11:04:49 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3302106566C for ; Tue, 5 Aug 2008 11:04:49 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6721C8FC19 for ; Tue, 5 Aug 2008 11:04:49 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from PortaPeg (frmr1-adsl.demon.co.uk [83.104.210.73]) (authenticated bits=0) by hercules.mthelicon.com (8.14.2/8.14.2) with ESMTP id m75B4dSn012765; Tue, 5 Aug 2008 11:04:42 GMT (envelope-from ken@mthelicon.com) From: "Pegasus Mc Cleaft" To: "'Stefan Sperling'" , "'Maxim Konovalov'" References: <000301c8f6df$e1006ae0$a30140a0$@com> <55592.192.168.1.10.1217929950.squirrel@192.168.1.100> <20080805141450.T60740@mp2.macomnet.net> <20080805105057.GC1450@ted.stsp.name> In-Reply-To: <20080805105057.GC1450@ted.stsp.name> Date: Tue, 5 Aug 2008 12:04:33 +0100 Message-ID: <000801c8f6eb$111622f0$334268d0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acj26UQTm/w6OEH7Sh+K8tTKthmGLgAAVwKA Content-Language: en-gb Cc: freebsd-hackers@freebsd.org, 'Tim Clewlow' Subject: RE: IPv6 CVS 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, 05 Aug 2008 11:04:49 -0000 > -----Original Message----- > From: owner-freebsd-hackers@freebsd.org [mailto:owner-freebsd- > hackers@freebsd.org] On Behalf Of Stefan Sperling > Sent: 05 August 2008 11:51 > To: Maxim Konovalov > Cc: freebsd-hackers@freebsd.org; Pegasus Mc Cleaft; Tim Clewlow > Subject: Re: IPv6 CVS > > On Tue, Aug 05, 2008 at 02:16:35PM +0400, Maxim Konovalov wrote: > > On Tue, 5 Aug 2008, 19:52+1000, Tim Clewlow wrote: > > > > > > > > > Hi all, > > > > > > > > Does anyone know if there are any IPv6 CVS servers for FreeBSD? > (As > > > > in > > > > receiving the STABLE and ports branches) I currently use > > > > cvs.freebsd.org but > > > > it dosent have an AAAA record. > > > > > > > > Ta > > > > > > > > Peg > > > > > > > dig aaaa cvsup4.freebsd.org > > > > > cvs != cvsup. Speaking of cvsup -- cvsup4.ru.freebsd.org has an ipv6 > > address as well. > > AFAIK the Modula3 runtime does not support IPv6. > > Stefan Thanks everyone, Looks like Tim is correct where I am able to ping cvsup4, but unfortunately the csup utility reports a fail (Connection Refused) as it tries to connect to the V6 address. It will quite happily connect to the same machine V4. Stefan's explanation may be the reason for this.. Dono.. Peg From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 11:11:36 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91C5B1065671 for ; Tue, 5 Aug 2008 11:11:36 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 09BB58FC1D for ; Tue, 5 Aug 2008 11:11:35 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m75BBMnQ065827; Tue, 5 Aug 2008 12:11:23 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.0 smtp.infracaninophile.co.uk m75BBMnQ065827 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1217934683; bh=cZutyAH9RrounZ wAY1R18cNjmnOQtOBU3sYPrUS8zaE=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<48983554.7060203@infracaninophile.co.uk>|Date:=20Tue,=2 005=20Aug=202008=2012:11:16=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.16=20(X11/20080726)|MIME-Version:=201 .0|To:=20Stefan=20Sperling=20|CC:=20Maxim=20Konoval ov=20,=20freebsd-hackers@freebsd.org,=20=0D=0A=2 0Pegasus=20Mc=20Cleaft=20,=0D=0A=20Tim=20Clewlow =20|Subject:=20Re:=20IPv6=20CVS|References:=20<000 301c8f6df$e1006ae0$a30140a0$@com>=09<55592.192.168.1.10.1217929950. squirrel@192.168.1.100>=09<20080805141450.T60740@mp2.macomnet.net>= 20<20080805105057.GC1450@ted.stsp.name>|In-Reply-To:=20<20080805105 057.GC1450@ted.stsp.name>|X-Enigmail-Version:=200.95.6|Content-Type :=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3 D"application/pgp-signature"=3B=0D=0A=20boundary=3D"------------eni gF994899E18114A6000BF0B09"; b=SKjYZDlu80s4D9EAIwMY+JUvtCQVGrfN+/4fO GuhVQIi067rMlDyBJiU0FK12gHz/fB0PH1SzybOn8aUVd7DzQvssIJ9zfrHZ8AnOODw ARJpWuDtU3UBdDiNEETDXOvgAh/WxBbrcCBDOsfEhhFusnVSoGB1ANNf8HSb54gU/ts = Message-ID: <48983554.7060203@infracaninophile.co.uk> Date: Tue, 05 Aug 2008 12:11:16 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.16 (X11/20080726) MIME-Version: 1.0 To: Stefan Sperling References: <000301c8f6df$e1006ae0$a30140a0$@com> <55592.192.168.1.10.1217929950.squirrel@192.168.1.100> <20080805141450.T60740@mp2.macomnet.net> <20080805105057.GC1450@ted.stsp.name> In-Reply-To: <20080805105057.GC1450@ted.stsp.name> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigF994899E18114A6000BF0B09" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Tue, 05 Aug 2008 12:11:23 +0100 (BST) X-Virus-Scanned: ClamAV 0.93.3/7941/Mon Aug 4 23:44:27 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-hackers@freebsd.org, Pegasus Mc Cleaft , Tim Clewlow Subject: Re: IPv6 CVS 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, 05 Aug 2008 11:11:36 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF994899E18114A6000BF0B09 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Stefan Sperling wrote: > On Tue, Aug 05, 2008 at 02:16:35PM +0400, Maxim Konovalov wrote: >> On Tue, 5 Aug 2008, 19:52+1000, Tim Clewlow wrote: >> >>>> Hi all, >>>> >>>> Does anyone know if there are any IPv6 CVS servers for FreeBSD? (As >>>> in >>>> receiving the STABLE and ports branches) I currently use >>>> cvs.freebsd.org but >>>> it dosent have an AAAA record. >>>> >>>> Ta >>>> >>>> Peg >>>> dig aaaa cvsup4.freebsd.org >> cvs !=3D cvsup. Speaking of cvsup -- cvsup4.ru.freebsd.org has an ipv= 6 >> address as well. >=20 > AFAIK the Modula3 runtime does not support IPv6. Yeah, you have to use an IPv6 to IPv4 proxy like stone. (ports:=20 net/stone, http://www.gcd.org/sengoku/stone/) Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigF994899E18114A6000BF0B09 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkiYNVoACgkQ8Mjk52CukIwJNgCeJdZq4uNI1cBpZLVRwS8fKZca MigAnA1xw9/PTyUOiXRfd/ppFs3KtGRP =dwc5 -----END PGP SIGNATURE----- --------------enigF994899E18114A6000BF0B09-- From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 12:28:17 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5F9C1065678 for ; Tue, 5 Aug 2008 12:28:17 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id D38B08FC0A for ; Tue, 5 Aug 2008 12:28:17 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id C8B5C1CC0B0; Tue, 5 Aug 2008 05:28:17 -0700 (PDT) Date: Tue, 5 Aug 2008 05:28:17 -0700 From: Jeremy Chadwick To: Pegasus Mc Cleaft Message-ID: <20080805122817.GA89022@eos.sc1.parodius.com> References: <000301c8f6df$e1006ae0$a30140a0$@com> <55592.192.168.1.10.1217929950.squirrel@192.168.1.100> <20080805141450.T60740@mp2.macomnet.net> <20080805105057.GC1450@ted.stsp.name> <000801c8f6eb$111622f0$334268d0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000801c8f6eb$111622f0$334268d0$@com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, 'Tim Clewlow' , 'Stefan Sperling' Subject: Re: IPv6 CVS 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, 05 Aug 2008 12:28:18 -0000 On Tue, Aug 05, 2008 at 12:04:33PM +0100, Pegasus Mc Cleaft wrote: > > -----Original Message----- > > From: owner-freebsd-hackers@freebsd.org [mailto:owner-freebsd- > > hackers@freebsd.org] On Behalf Of Stefan Sperling > > Sent: 05 August 2008 11:51 > > To: Maxim Konovalov > > Cc: freebsd-hackers@freebsd.org; Pegasus Mc Cleaft; Tim Clewlow > > Subject: Re: IPv6 CVS > > > > On Tue, Aug 05, 2008 at 02:16:35PM +0400, Maxim Konovalov wrote: > > > On Tue, 5 Aug 2008, 19:52+1000, Tim Clewlow wrote: > > > > > > > > > > > > Hi all, > > > > > > > > > > Does anyone know if there are any IPv6 CVS servers for FreeBSD? > > (As > > > > > in > > > > > receiving the STABLE and ports branches) I currently use > > > > > cvs.freebsd.org but > > > > > it dosent have an AAAA record. > > > > > > > > > > Ta > > > > > > > > > > Peg > > > > > > > > > dig aaaa cvsup4.freebsd.org > > > > > > > cvs != cvsup. Speaking of cvsup -- cvsup4.ru.freebsd.org has an ipv6 > > > address as well. > > > > AFAIK the Modula3 runtime does not support IPv6. > > > > Stefan > > Thanks everyone, > > Looks like Tim is correct where I am able to ping cvsup4, but > unfortunately the csup utility reports a fail (Connection Refused) as it > tries to connect to the V6 address. It will quite happily connect to the > same machine V4. csup is written in C; it does not use Modula3/ezm3. cvsup uses Modula3/ezm3. cvsup4, despite having a public IPv6 address, does not have the cvsup server bound to IPv6. Meaning: it's IPV4 only. Try a different server. Get a list (in sh/bash): for i in `jot 30 1`; do echo "==> cvsup$i" ; (host cvsup$i.freebsd.org) | grep -i ipv6; done -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 12:35:37 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02A78106567C for ; Tue, 5 Aug 2008 12:35:37 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 8D7DD8FC33 for ; Tue, 5 Aug 2008 12:35:36 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([193.31.10.34]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Tue, 5 Aug 2008 14:35:34 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m75CZXfJ003465; Tue, 5 Aug 2008 14:35:33 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Tue, 5 Aug 2008 14:35:33 +0200 From: Matthias Apitz To: freebsd-hackers@freebsd.org Message-ID: <20080805123533.GA3262@rebelion.Sisis.de> References: <20080805094013.GA5654@rebelion.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080805094013.GA5654@rebelion.Sisis.de> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) X-OriginalArrivalTime: 05 Aug 2008 12:35:34.0865 (UTC) FILETIME=[C1C9EC10:01C8F6F7] Subject: Re: restore of file system into USB key terrible slow X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2008 12:35:37 -0000 El da Tuesday, August 05, 2008 a las 11:40:13AM +0200, Matthias Apitz escribi: > > Hello, > > I'm trying to restore a DUMP into an USB key; the DUMP was extracted > from another USB key which I just want to colne this way; > > the USB key type is: > > Aug 5 10:53:34 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > Aug 5 10:53:34 rebelion kernel: da0: < Cn Memory 1100> Removable Direct Access SCSI-0 device > Aug 5 10:53:34 rebelion kernel: da0: 40.000MB/s transfers > Aug 5 10:53:34 rebelion kernel: da0: 3871MB (7928832 512 byte sectors: 255H 63S/T 493C) > ... > > the restore is *terrible* slow, aound 200 blocks per second: This must have been an issue of the USB key; I've plug'ed in another one: Aug 5 13:53:12 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug 5 13:53:12 rebelion kernel: da0: Removable Direct Access SCSI-2 device Aug 5 13:53:12 rebelion kernel: da0: 40.000MB/s transfers Aug 5 13:53:12 rebelion kernel: da0: 2037MB (4171776 512 byte sectors: 255H 63S/T 259C) and the restore of about 600 MByte was done in half hour; sorry for bother the list with this; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 12:40:27 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1829106567C; Tue, 5 Aug 2008 12:40:27 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id 759178FC15; Tue, 5 Aug 2008 12:40:27 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from PortaPeg (frmr1-adsl.demon.co.uk [83.104.210.73]) (authenticated bits=0) by hercules.mthelicon.com (8.14.2/8.14.2) with ESMTP id m75CeCmk013327; Tue, 5 Aug 2008 12:40:19 GMT (envelope-from ken@mthelicon.com) From: "Pegasus Mc Cleaft" To: "'Jeremy Chadwick'" References: <000301c8f6df$e1006ae0$a30140a0$@com> <55592.192.168.1.10.1217929950.squirrel@192.168.1.100> <20080805141450.T60740@mp2.macomnet.net> <20080805105057.GC1450@ted.stsp.name> <000801c8f6eb$111622f0$334268d0$@com> <20080805122817.GA89022@eos.sc1.parodius.com> In-Reply-To: <20080805122817.GA89022@eos.sc1.parodius.com> Date: Tue, 5 Aug 2008 13:40:02 +0100 Message-ID: <002501c8f6f8$6c1e5a70$445b0f50$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acj29r3+cETl+uElTkaEhVixJcdStgAAULSA Content-Language: en-gb Cc: freebsd-hackers@FreeBSD.org, 'Tim Clewlow' , 'Stefan Sperling' Subject: RE: IPv6 CVS 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, 05 Aug 2008 12:40:27 -0000 > -----Original Message----- > From: Jeremy Chadwick [mailto:koitsu@FreeBSD.org] > Sent: 05 August 2008 13:28 > To: Pegasus Mc Cleaft > Cc: 'Stefan Sperling'; 'Maxim Konovalov'; freebsd-hackers@FreeBSD.org; > 'Tim Clewlow' > Subject: Re: IPv6 CVS > > On Tue, Aug 05, 2008 at 12:04:33PM +0100, Pegasus Mc Cleaft wrote: > > > -----Original Message----- > > > From: owner-freebsd-hackers@freebsd.org [mailto:owner-freebsd- > > > hackers@freebsd.org] On Behalf Of Stefan Sperling > > > Sent: 05 August 2008 11:51 > > > To: Maxim Konovalov > > > Cc: freebsd-hackers@freebsd.org; Pegasus Mc Cleaft; Tim Clewlow > > > Subject: Re: IPv6 CVS > > > > > > On Tue, Aug 05, 2008 at 02:16:35PM +0400, Maxim Konovalov wrote: > > > > On Tue, 5 Aug 2008, 19:52+1000, Tim Clewlow wrote: > > > > > > > > > > > > > > > Hi all, > > > > > > > > > > > > Does anyone know if there are any IPv6 CVS servers for > FreeBSD? > > > (As > > > > > > in > > > > > > receiving the STABLE and ports branches) I currently use > > > > > > cvs.freebsd.org but > > > > > > it dosent have an AAAA record. > > > > > > > > > > > > Ta > > > > > > > > > > > > Peg > > > > > > > > > > > dig aaaa cvsup4.freebsd.org > > > > > > > > > cvs != cvsup. Speaking of cvsup -- cvsup4.ru.freebsd.org has an > ipv6 > > > > address as well. > > > > > > AFAIK the Modula3 runtime does not support IPv6. > > > > > > Stefan > > > > Thanks everyone, > > > > Looks like Tim is correct where I am able to ping cvsup4, but > > unfortunately the csup utility reports a fail (Connection Refused) as > it > > tries to connect to the V6 address. It will quite happily connect to > the > > same machine V4. > > csup is written in C; it does not use Modula3/ezm3. cvsup uses > Modula3/ezm3. > > cvsup4, despite having a public IPv6 address, does not have the cvsup > server bound to IPv6. Meaning: it's IPV4 only. > > Try a different server. Get a list (in sh/bash): > > for i in `jot 30 1`; do echo "==> cvsup$i" ; (host cvsup$i.freebsd.org) > | grep -i ipv6; done > Jeremy, AH HA! Ok.. Thanks for the bash script. I tried it and ran through all the servers... The only server that seems to have cvsup bound to the V6 stack is cvsup18.freebsd.org (raines.cse.buffalo.edu) That helps a lot. Thank you very much.. Peg From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 14:03:08 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 161B31065683 for ; Tue, 5 Aug 2008 14:03:08 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og108.obsmtp.com (exprod7og108.obsmtp.com [64.18.2.169]) by mx1.freebsd.org (Postfix) with ESMTP id D9BA68FC0C for ; Tue, 5 Aug 2008 14:03:07 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from source ([66.129.228.6]) by exprod7ob108.postini.com ([64.18.6.12]) with SMTP; Tue, 05 Aug 2008 07:03:07 PDT Received: from antipi.jnpr.net ([10.10.2.34]) by p-emsmtp03.jnpr.net with Microsoft SMTPSVC(6.0.3790.3959); Tue, 5 Aug 2008 05:57:25 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 5 Aug 2008 08:55:38 -0400 Message-ID: <0FCFCF6165E968449991746EB91D614D142FD4@antipi.jnpr.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Q: case studies about scalable, enterprise-class firewall w/ IPFilter Thread-Index: Acj20gsCN498ssyGS5Ga+5909e6oUQAKIQnB References: <20080805080520.GB3063@rebelion.Sisis.de> From: "Andrew Duane" To: X-OriginalArrivalTime: 05 Aug 2008 12:57:25.0945 (UTC) FILETIME=[CF40DA90:01C8F6FA] Subject: RE: Q: case studies about scalable, enterprise-class firewall w/ IPFilter 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, 05 Aug 2008 14:03:08 -0000 Well, there are always Juniper Networks boxes :-) -----Original Message----- From: owner-freebsd-hackers@freebsd.org on behalf of Matthias Apitz Sent: Tue 8/5/2008 4:05 AM To: freebsd-hackers@freebsd.org Subject: Fwd: Q: case studies about scalable,enterprise-class firewall = w/ IPFilter =20 Hello, I've posted the attached mail in the IP Filter mailing list; the only responses have been bad configured vacation replies :-( someone from freebsd-hackers has an idea? thanks in advance matthias ----- Forwarded message from Matthias Apitz ----- From: Matthias Apitz Date: Sun, 3 Aug 2008 08:24:15 +0200 To: IP Filter Subject: Q: case studies about scalable, enterprise-class firewall w/ = IPFilter Hello, We're currently protecting our network (and as well some FreeBSD laptops standalone) with IPFilter... I'm wondering if there are any case studies about scalable, enterprise-class firewall solutions, redundancy with state-full failover, and application-level inspection, and all that a like, based on IPFilter and FreeBSD; thanks in advance for any pointers matthias --=20 Matthias Apitz w http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and = Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ----- End forwarded message ----- _______________________________________________ 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 Tue Aug 5 14:36:00 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 425C4106564A for ; Tue, 5 Aug 2008 14:36:00 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id CB2CA8FC16 for ; Tue, 5 Aug 2008 14:35:59 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([193.31.10.34]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Tue, 5 Aug 2008 16:35:58 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m75EZuFj006781; Tue, 5 Aug 2008 16:35:56 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Tue, 5 Aug 2008 16:35:56 +0200 From: Matthias Apitz To: Andrew Duane Message-ID: <20080805143556.GB6526@rebelion.Sisis.de> References: <20080805080520.GB3063@rebelion.Sisis.de> <0FCFCF6165E968449991746EB91D614D142FD4@antipi.jnpr.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0FCFCF6165E968449991746EB91D614D142FD4@antipi.jnpr.net> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) X-OriginalArrivalTime: 05 Aug 2008 14:35:58.0254 (UTC) FILETIME=[93439CE0:01C8F708] Cc: freebsd-hackers@freebsd.org Subject: Re: Q: case studies about scalable, enterprise-class firewall w/ IPFilter X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2008 14:36:00 -0000 El da Tuesday, August 05, 2008 a las 08:55:38AM -0400, Andrew Duane escribi: > Well, there are always Juniper Networks boxes :-) Exactly this is what I'm not wanting to end up with :-) -- Matthias Apitz w http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 15:44:56 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87BB11065689 for ; Tue, 5 Aug 2008 15:44:56 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [212.17.241.230]) by mx1.freebsd.org (Postfix) with ESMTP id 331798FC52 for ; Tue, 5 Aug 2008 15:44:54 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m75F69MV039015; Tue, 5 Aug 2008 17:06:10 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m75F69d5039014; Tue, 5 Aug 2008 17:06:09 +0200 (CEST) (envelope-from olli) Date: Tue, 5 Aug 2008 17:06:09 +0200 (CEST) Message-Id: <200808051506.m75F69d5039014@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, Matthias Apitz In-Reply-To: <20080805123533.GA3262@rebelion.Sisis.de> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 05 Aug 2008 17:06:10 +0200 (CEST) Cc: Subject: Re: restore of file system into USB key terrible slow X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2008 15:44:56 -0000 Matthias Apitz wrote: > [...] > > I'm trying to restore a DUMP into an USB key; the DUMP was extracted > > from another USB key which I just want to colne this way; Note that dump/restore isn't a very fast method to clone a file system. Actually, a few years ago it was horribly slow, but it was improved somewhat. It's better now, but still not very fast. Personally I recommend to try cpdup (from ports/sysutils). You can simply type "cpdup /src /dst" and it will make an exact copy (except for sparse files). A nice feature of cpdup is that it doesn't copy files that already exist in the destination. Another way copy a directory tree is to use find+cpio: cd /src; find -d . | cpdio -dump /dst Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mn- chen, HRB 125758, Geschftsfhrer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I made up the term 'object-oriented', and I can tell you I didn't have C++ in mind." -- Alan Kay, OOPSLA '97 From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 19:03:22 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 284881065677 for ; Tue, 5 Aug 2008 19:03:22 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id A1EF48FC2C for ; Tue, 5 Aug 2008 19:03:21 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id m75J3IeX052063 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 5 Aug 2008 21:03:19 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by cicely5.cicely.de (8.14.2/8.14.2) with ESMTP id m75J3Cn8001383 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 5 Aug 2008 21:03:12 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id m75J3CxN098932; Tue, 5 Aug 2008 21:03:12 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id m75J3Bwn098931; Tue, 5 Aug 2008 21:03:11 +0200 (CEST) (envelope-from ticso) Date: Tue, 5 Aug 2008 21:03:11 +0200 From: Bernd Walter To: freebsd-hackers@freebsd.org, Matthias Apitz Message-ID: <20080805190307.GY94193@cicely7.cicely.de> References: <20080805123533.GA3262@rebelion.Sisis.de> <200808051506.m75F69d5039014@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200808051506.m75F69d5039014@lurza.secnetix.de> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.109, BAYES_00=-2.599 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spamd.cicely.de Cc: Subject: Re: restore of file system into USB key terrible slow X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2008 19:03:22 -0000 On Tue, Aug 05, 2008 at 05:06:09PM +0200, Oliver Fromme wrote: > Matthias Apitz wrote: > > [...] > > > I'm trying to restore a DUMP into an USB key; the DUMP was extracted > > > from another USB key which I just want to colne this way; > > Note that dump/restore isn't a very fast method to clone > a file system. Actually, a few years ago it was horribly > slow, but it was improved somewhat. It's better now, but > still not very fast. Additonally some flash devices are horribly slow when it comes to many small random writes, which writing many small files does. Internally they do read modify writes on physically larger blocks. It is often much faster to do the FS work on an image and then dd the image to the USB stick using 64k to 256k transfers. MLC flash devices are typical candidates for being extremly slow with small random writs. If speed is an issue you should take care and invest in the higher price to buy SLC devices. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 20:59:25 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D290F106566B for ; Tue, 5 Aug 2008 20:59:25 +0000 (UTC) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.freebsd.org (Postfix) with ESMTP id 8AFED8FC18 for ; Tue, 5 Aug 2008 20:59:25 +0000 (UTC) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.14.1/8.14.1) with ESMTP id m75KxJGP030760; Tue, 5 Aug 2008 13:59:19 -0700 (PDT) Received: (from dillon@localhost) by apollo.backplane.com (8.14.1/8.13.4/Submit) id m75KxJu8030759; Tue, 5 Aug 2008 13:59:19 -0700 (PDT) Date: Tue, 5 Aug 2008 13:59:19 -0700 (PDT) From: Matthew Dillon Message-Id: <200808052059.m75KxJu8030759@apollo.backplane.com> To: ticso@cicely.de References: <20080805123533.GA3262@rebelion.Sisis.de> <200808051506.m75F69d5039014@lurza.secnetix.de> <20080805190307.GY94193@cicely7.cicely.de> Cc: freebsd-hackers@freebsd.org, Matthias Apitz Subject: Re: restore of file system into USB key terrible slow 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, 05 Aug 2008 20:59:25 -0000 I've had good luck mounting UFS -o async on USB keys for the purposes of doing bulk operations. It still isn't the fastest thing in the world but it seems fast enough. Softupdates does a *lot* of tiny I/O's, try disabling it (I think mounting async disables softupdates automatically but I'm not sure). -Matt Matthew Dillon From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 21:34:20 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBEA0106566B; Tue, 5 Aug 2008 21:34:20 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2001:41c8:1:548a::2]) by mx1.freebsd.org (Postfix) with ESMTP id 4DF088FC16; Tue, 5 Aug 2008 21:34:20 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 7556E30114; Tue, 5 Aug 2008 22:34:16 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on muon.cran.org.uk X-Spam-Level: X-Spam-Status: No, score=-2.3 required=8.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.3 Received: from tau.draftnet (unknown [IPv6:2a01:348:10f:0:219:b9ff:fe54:f04a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTP; Tue, 5 Aug 2008 22:34:16 +0100 (BST) Date: Tue, 5 Aug 2008 22:34:09 +0100 From: Bruce Cran To: Jeremy Chadwick Message-ID: <20080805223409.620e5044@tau.draftnet> In-Reply-To: <20080805122817.GA89022@eos.sc1.parodius.com> References: <000301c8f6df$e1006ae0$a30140a0$@com> <55592.192.168.1.10.1217929950.squirrel@192.168.1.100> <20080805141450.T60740@mp2.macomnet.net> <20080805105057.GC1450@ted.stsp.name> <000801c8f6eb$111622f0$334268d0$@com> <20080805122817.GA89022@eos.sc1.parodius.com> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; amd64-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Pegasus Mc Cleaft , Clewlow' , 'Stefan Sperling' , 'Tim Subject: Re: IPv6 CVS 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, 05 Aug 2008 21:34:20 -0000 On Tue, 5 Aug 2008 05:28:17 -0700 Jeremy Chadwick wrote: > On Tue, Aug 05, 2008 at 12:04:33PM +0100, Pegasus Mc Cleaft wrote: > > > -----Original Message----- > > > From: owner-freebsd-hackers@freebsd.org [mailto:owner-freebsd- > > > hackers@freebsd.org] On Behalf Of Stefan Sperling > > > Sent: 05 August 2008 11:51 > > > To: Maxim Konovalov > > > Cc: freebsd-hackers@freebsd.org; Pegasus Mc Cleaft; Tim Clewlow > > > Subject: Re: IPv6 CVS > > > > > > On Tue, Aug 05, 2008 at 02:16:35PM +0400, Maxim Konovalov wrote: > > > > On Tue, 5 Aug 2008, 19:52+1000, Tim Clewlow wrote: > > > > > > > > > > > > > > > Hi all, > > > > > > > > > > > > Does anyone know if there are any IPv6 CVS servers for > > > > > > FreeBSD? > > > (As > > > > > > in > > > > > > receiving the STABLE and ports branches) I currently use > > > > > > cvs.freebsd.org but > > > > > > it dosent have an AAAA record. > > > > > > > > > > > > Ta > > > > > > > > > > > > Peg > > > > > > > > > > > dig aaaa cvsup4.freebsd.org > > > > > > > > > cvs != cvsup. Speaking of cvsup -- cvsup4.ru.freebsd.org has > > > > an ipv6 address as well. > > > > > > AFAIK the Modula3 runtime does not support IPv6. > > > > > > Stefan > > > > Thanks everyone, > > > > Looks like Tim is correct where I am able to ping cvsup4, > > but unfortunately the csup utility reports a fail (Connection > > Refused) as it tries to connect to the V6 address. It will quite > > happily connect to the same machine V4. > > csup is written in C; it does not use Modula3/ezm3. cvsup uses > Modula3/ezm3. The problem is cvsupd - since it's written in Modula3 and doesn't support IPv6 you have to use an inetd/netcat hack to accept IPv6 connections on the server. As mentioned in http://lists.freebsd.org/pipermail/freebsd-current/2008-July/086710.html cvsup18.freebsd.org and cvsup4.ru.freebsd.org both accept IPv6 connections. -- Bruce Cran From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 6 08:40:33 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1A1F1065675 for ; Wed, 6 Aug 2008 08:40:33 +0000 (UTC) (envelope-from jespasac@minibofh.org) Received: from smtp02.cdmon.com (smtp02.cdmon.com [212.36.74.229]) by mx1.freebsd.org (Postfix) with ESMTP id B47EB8FC16 for ; Wed, 6 Aug 2008 08:40:33 +0000 (UTC) (envelope-from jespasac@minibofh.org) Received: from jespasac.cdmon.com (62.Red-217-126-43.staticIP.rima-tde.net [217.126.43.62]) by smtp02.cdmon.com (Postfix) with ESMTP id 7299F45630; Wed, 6 Aug 2008 10:21:52 +0200 (CEST) Message-ID: <48995F1F.4010209@minibofh.org> Date: Wed, 06 Aug 2008 10:21:51 +0200 From: Jordi Espasa Clofent User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: Andrew Duane , freebsd-hackers@freebsd.org References: <20080805080520.GB3063@rebelion.Sisis.de> <0FCFCF6165E968449991746EB91D614D142FD4@antipi.jnpr.net> In-Reply-To: <0FCFCF6165E968449991746EB91D614D142FD4@antipi.jnpr.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Q: case studies about scalable, enterprise-class firewall w/ IPFilter 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, 06 Aug 2008 08:40:34 -0000 > Well, there are always Juniper Networks boxes :-) I do the same (even more in some points) as Juniper boxes with simple standard boxes with OpenBSD and PF. At present day my central FWs are simply standard 2 boxes (each one cost 1000 euros aprox); I remember the Juniper guy offering me a 'cheap' 7000/12000 euros solution...... :P Moreover, as far I know, the core of Juniper devices is BSD (FreeBSD especially) based. -- Thanks, Jordi Espasa Clofent From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 6 09:44:11 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF2E01065672 for ; Wed, 6 Aug 2008 09:44:11 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id ABFA88FC16 for ; Wed, 6 Aug 2008 09:44:11 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 8323D1CC0B1; Wed, 6 Aug 2008 02:44:11 -0700 (PDT) Date: Wed, 6 Aug 2008 02:44:11 -0700 From: Jeremy Chadwick To: Jordi Espasa Clofent Message-ID: <20080806094411.GA51807@eos.sc1.parodius.com> References: <20080805080520.GB3063@rebelion.Sisis.de> <0FCFCF6165E968449991746EB91D614D142FD4@antipi.jnpr.net> <48995F1F.4010209@minibofh.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48995F1F.4010209@minibofh.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: Q: case studies about scalable, enterprise-class firewall w/ IPFilter 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, 06 Aug 2008 09:44:11 -0000 On Wed, Aug 06, 2008 at 10:21:51AM +0200, Jordi Espasa Clofent wrote: >> Well, there are always Juniper Networks boxes :-) > > I do the same (even more in some points) as Juniper boxes with simple > standard boxes with OpenBSD and PF. > > At present day my central FWs are simply standard 2 boxes (each one cost > 1000 euros aprox); I remember the Juniper guy offering me a 'cheap' > 7000/12000 euros solution...... :P I'm amazed at the fact that people are actually comparing FreeBSD with pf to Juniper routers. I've a bit of experience with M20s and M40s, and I can assure you they're VERY different than a little x86 PC routing packets, and are significantly faster due to hardware routing. For example, you should be aware of a pf(4) bug that was only recently fixed. Our FreeBSD systems only use ACLs + state track, and have low network I/O (600kbit/sec) -- yet this sort of thing impacts production packets on a webserver: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/125261 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/contrib/pf/net/pf.c Max committed the fix to CURRENT, and it should be MFC'd on the 11th. I hope it gets backported to RELENG_6 as well, since it's pretty major (IMHO). My point isn't to insult or poke fun at pf or FreeBSD. I'm simply stating "if you really think an x86 box with pf is better than a Juniper, you're sadly mistaken". I'm not telling you to go out and buy a Juniper either, especially if it's out of your price range -- but you really need to be more aware of the differences before toting the "my FreeBSD box can do the job better!" attitude. I'm glad FreeBSD with pf works for you, though. > Moreover, as far I know, the core of Juniper devices is BSD (FreeBSD > especially) based. Correct, JunOS is FreeBSD 4.x-based. On the other hand, I find it amusing that Juniper's routers use ATA disks. A single disk failure results in the system becoming unusable administratively (requiring a reboot), while the routing engine still works fine (e.g. packets are still routed properly, ACLs applied, etc.). Config data is kept on CF, so that isn't lost. You just can't SSH into it, and all you'll see on serial console is repetitive ATA and SMART errors. I've seen this happen on three separate routers on three separate occasions at my workplace. For something that costs so much money, you'd have expected them to go with some form of disk redundancy, SCSI disks, or SSDs. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 6 10:49:03 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEEA71065687 for ; Wed, 6 Aug 2008 10:49:03 +0000 (UTC) (envelope-from jespasac@minibofh.org) Received: from smtp01.cdmon.com (smtp01.cdmon.com [212.36.75.232]) by mx1.freebsd.org (Postfix) with ESMTP id 70BF88FC18 for ; Wed, 6 Aug 2008 10:49:03 +0000 (UTC) (envelope-from jespasac@minibofh.org) Received: from jespasac.cdmon.com (62.Red-217-126-43.staticIP.rima-tde.net [217.126.43.62]) by smtp01.cdmon.com (Postfix) with ESMTP id 6E014F78E6 for ; Wed, 6 Aug 2008 12:49:01 +0200 (CEST) Message-ID: <4899819C.3090502@minibofh.org> Date: Wed, 06 Aug 2008 12:49:00 +0200 From: Jordi Espasa Clofent User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20080805080520.GB3063@rebelion.Sisis.de> <0FCFCF6165E968449991746EB91D614D142FD4@antipi.jnpr.net> <48995F1F.4010209@minibofh.org> <20080806094411.GA51807@eos.sc1.parodius.com> In-Reply-To: <20080806094411.GA51807@eos.sc1.parodius.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Q: case studies about scalable, enterprise-class firewall w/ IPFilter 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, 06 Aug 2008 10:49:03 -0000 > I'm amazed at the fact that people are actually comparing FreeBSD with > pf to Juniper routers. I've a bit of experience with M20s and M40s, and > I can assure you they're VERY different than a little x86 PC routing > packets, and are significantly faster due to hardware routing. > > For example, you should be aware of a pf(4) bug that was only recently > fixed. Our FreeBSD systems only use ACLs + state track, and have low > network I/O (600kbit/sec) -- yet this sort of thing impacts production > packets on a webserver: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/125261 > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/contrib/pf/net/pf.c > > Max committed the fix to CURRENT, and it should be MFC'd on the 11th. I > hope it gets backported to RELENG_6 as well, since it's pretty major > (IMHO). Yes. That's my main personal reason to work with OpenBSD instead of FreeBSD when I need PF dedicated device. > My point isn't to insult or poke fun at pf or FreeBSD. I'm simply > stating "if you really think an x86 box with pf is better than a > Juniper, you're sadly mistaken". I'm not telling you to go out and buy > a Juniper either, especially if it's out of your price range -- but you > really need to be more aware of the differences before toting the "my > FreeBSD box can do the job better!" attitude. I'm glad FreeBSD with pf > works for you, though. Good reasoning Jeremy. I don't say that x86 pf-based box is better than Juniper. I only comment that, in my case, I do all I need with two standard boxes instead of expensive Juniper device. Anyway it's clear if one day the best solution is Juniper device, I will purchase it. But at present moment, isn't (300Mpbs/500Mpbs) > On the other hand, I find it amusing that Juniper's routers use ATA > disks. A single disk failure results in the system becoming unusable > administratively (requiring a reboot), while the routing engine still > works fine (e.g. packets are still routed properly, ACLs applied, > etc.). Config data is kept on CF, so that isn't lost. You just can't > SSH into it, and all you'll see on serial console is repetitive ATA and > SMART errors. I've seen this happen on three separate routers on three > separate occasions at my workplace. Interesting. My OpenBSD+PF FWs runs at present with ATA disks also, but I'm designing a CF-based new implementation. ;) -- Thanks, Jordi Espasa Clofent From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 6 12:57:22 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49EA91065676 for ; Wed, 6 Aug 2008 12:57:22 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id D40AC8FC0A for ; Wed, 6 Aug 2008 12:57:21 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([193.31.10.34]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Wed, 6 Aug 2008 14:57:20 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m76CvJ4Z008230 for freebsd-hackers@freebsd.org; Wed, 6 Aug 2008 14:57:19 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Wed, 6 Aug 2008 14:57:19 +0200 From: Matthias Apitz To: freebsd-hackers@freebsd.org Message-ID: <20080806125719.GA8008@rebelion.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) X-OriginalArrivalTime: 06 Aug 2008 12:57:20.0277 (UTC) FILETIME=[F649BC50:01C8F7C3] Subject: USB key && kernel: da0: Attempt to query device size failed: UNIT ATTENTION, Medium not present X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Aug 2008 12:57:22 -0000 Hello, I've updated usb/80361, see http://www.freebsd.org/cgi/query-pr.cgi?pr=80361 because I have the same problem as well that an USB key attaches fine when plugged in at boot time, but not later: what makes me worry is that the problem was raised in 5.4-RC3 in 2005 and still exists in 7.0R in 2008, or have I overlooked some cool system parameter to fix this; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 6 13:46:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1A1A106566B for ; Wed, 6 Aug 2008 13:46:41 +0000 (UTC) (envelope-from cmarlatt@rxsec.com) Received: from core.rxsec.com (core.rxsec.com [64.132.46.102]) by mx1.freebsd.org (Postfix) with SMTP id 8E2568FC0C for ; Wed, 6 Aug 2008 13:46:41 +0000 (UTC) (envelope-from cmarlatt@rxsec.com) Received: (qmail 62890 invoked by uid 2009); 6 Aug 2008 13:09:26 -0000 Received: from 10.1.0.101 by core.rxsec.com (envelope-from , uid 2008) with qmail-scanner-1.25-st-qms (clamdscan: 0.86.2/1102. spamassassin: 3.0.4. perlscan: 1.25-st-qms. Clear:RC:0(10.1.0.101):SA:0(-3.0/5.0):. Processed in 1.818326 secs); 06 Aug 2008 13:09:26 -0000 X-Spam-Status: No, hits=-3.0 required=5.0 X-Antivirus-RXSEC-Mail-From: cmarlatt@rxsec.com via core.rxsec.com X-Antivirus-RXSEC: 1.25-st-qms (Clear:RC:0(10.1.0.101):SA:0(-3.0/5.0):. Processed in 1.818326 secs Process 62846) Received: from unknown (HELO ?10.1.0.101?) (cmarlatt@rxsec.com@10.1.0.101) by core.rxsec.com with SMTP; 6 Aug 2008 13:09:24 -0000 Message-ID: <4899A595.3040802@rxsec.com> Date: Wed, 06 Aug 2008 09:22:29 -0400 From: Chris Marlatt Organization: Receive Security User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: Jeremy Chadwick References: <20080805080520.GB3063@rebelion.Sisis.de> <0FCFCF6165E968449991746EB91D614D142FD4@antipi.jnpr.net> <48995F1F.4010209@minibofh.org> <20080806094411.GA51807@eos.sc1.parodius.com> In-Reply-To: <20080806094411.GA51807@eos.sc1.parodius.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 06 Aug 2008 14:02:44 +0000 Cc: Jordi Espasa Clofent , freebsd-hackers@freebsd.org Subject: Re: Q: case studies about scalable, enterprise-class firewall w/ IPFilter 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, 06 Aug 2008 13:46:42 -0000 Jeremy Chadwick wrote: > On Wed, Aug 06, 2008 at 10:21:51AM +0200, Jordi Espasa Clofent wrote: >>> Well, there are always Juniper Networks boxes :-) >> I do the same (even more in some points) as Juniper boxes with simple >> standard boxes with OpenBSD and PF. >> >> At present day my central FWs are simply standard 2 boxes (each one cost >> 1000 euros aprox); I remember the Juniper guy offering me a 'cheap' >> 7000/12000 euros solution...... :P > > I'm amazed at the fact that people are actually comparing FreeBSD with > pf to Juniper routers. I've a bit of experience with M20s and M40s, and > I can assure you they're VERY different than a little x86 PC routing > packets, and are significantly faster due to hardware routing. > The M series is hardware routed but IIRC the J series is routed in software. The performance numbers for this series are pretty close to what FreeBSD can do with the right hardware and network cards and for a lot less money. FreeBSD can also outperform many of the SSG's and NetScreen's - up to the 550/500 I think. That said, Juniper still offers numerous features that are worthwhile, even in the J, SSG and NetScreen series. You just have to need those features in order for it to make any sense. Regards, Chris From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 6 17:30:09 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D43A01065682 for ; Wed, 6 Aug 2008 17:30:09 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [212.17.241.230]) by mx1.freebsd.org (Postfix) with ESMTP id 334788FC13 for ; Wed, 6 Aug 2008 17:30:08 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m76HTfdA003286; Wed, 6 Aug 2008 19:29:52 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m76HTVVh003285; Wed, 6 Aug 2008 19:29:31 +0200 (CEST) (envelope-from olli) Date: Wed, 6 Aug 2008 19:29:31 +0200 (CEST) Message-Id: <200808061729.m76HTVVh003285@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, Matthias Apitz In-Reply-To: <20080806125719.GA8008@rebelion.Sisis.de> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 06 Aug 2008 19:29:54 +0200 (CEST) Cc: Subject: Re: USB key && kernel: da0: Attempt to query device size failed: UNIT ?ATTENTION, Medium not present X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Aug 2008 17:30:09 -0000 Matthias Apitz wrote: > I've updated usb/80361, see > http://www.freebsd.org/cgi/query-pr.cgi?pr=80361 > because I have the same problem as well that an USB key attaches fine > when plugged in at boot time, but not later: I'm just wondering what happens if you enforce a rescan on the (virtual) SCSI bus. That is, after you have plugged in the USB stick and the problem occured, type "camcontrol rescan 0". If that doesn't help, please try this patch: =============================================================================== --- src/sys/dev/usb/umass.c.orig 2008-05-21 16:22:03.000000000 +0200 +++ src/sys/dev/usb/umass.c 2008-08-06 19:23:01.000000000 +0200 @@ -2690,7 +2690,7 @@ * completed, when interrupts have been enabled. */ - callout_reset(&sc->cam_scsi_rescan_ch, MS_TO_TICKS(200), + callout_reset(&sc->cam_scsi_rescan_ch, MS_TO_TICKS(2000), umass_cam_rescan, sc); } =============================================================================== Note that this patch is not a solution. It's purpose is to find out if the cause of your problem is the same as the one in PR usb/80361. If it is, the patch from the PR should be committed (it introduces a quirk for cases like this), and your USB stick should be added to the quirks list. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mn- chen, HRB 125758, Geschftsfhrer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "The last good thing written in C was Franz Schubert's Symphony number 9." -- Erwin Dieterich From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 6 20:26:31 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A651A106566B for ; Wed, 6 Aug 2008 20:26:31 +0000 (UTC) (envelope-from jrytoung@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 51D8C8FC1A for ; Wed, 6 Aug 2008 20:26:31 +0000 (UTC) (envelope-from jrytoung@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so51157wra.27 for ; Wed, 06 Aug 2008 13:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=eq+GONZ1mB7JmFpdxSkAHCZer03DBMWfpnfjIN3ZVJc=; b=BJNZr4OvceKxUfZ/Xw9+AAcXsfpeDol7kzxCaW5YxFbebNlyJYU9FuCexhXmWx9A0I OGeHHQpKJcyPEC3iRx3wp2tpSI42MGxILmtENcdP4xbYJndFXWOZJObQG4wcqPnquJlI M6Spq87LioZPhBdfglLFkZ5az3MuUAMW1PaTk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=OFO7JnwGufnLFM3aNzPoKBqorrKDHahv2kjuMmwDqtQLpjk2Fcy+f0cCNd5AzQ/OBT rq/fx22k+yI1cJABMqI1eGoS6+jPtbqtdqrCxkxHimC5Oo5m56WPEdl5+sLEHMq61Kil U8SA3YajV/U2RQEkSA/kFTNhqD+kGemMcEYOs= Received: by 10.90.104.20 with SMTP id b20mr3684757agc.69.1218052808089; Wed, 06 Aug 2008 13:00:08 -0700 (PDT) Received: by 10.90.86.20 with HTTP; Wed, 6 Aug 2008 13:00:08 -0700 (PDT) Message-ID: <86068e730808061300t251019b1t4b42368980f7c930@mail.gmail.com> Date: Wed, 6 Aug 2008 13:00:08 -0700 From: "Jerry Toung" To: freebsd-hackers@freebsd.org, rwatson@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: options MAC vs. pkg_add 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, 06 Aug 2008 20:26:31 -0000 Hi List, I am running into a weird issue. On a 6.2 stable, 32bits built with options MAC, I can run pkg_add of anything. But a 6.2 stable, 64bits built with MAC won't let me do pkg_add. If anybody has an input, please advise. Below is the output on the 64 bits machine: net3# pkg_add test.tbz +CONTENTS: Can't update time for +CONTENTS: Operation not permitted pkg_add: tar extract of /wr/home/webmgr/test.tbz failed! pkg_add: unable to extract table of contents file from '/wr/home/webmgr/test.tbz' - not a package? net3# net3# tar xvf test.tbz x +CONTENTS: Can't update time for +CONTENTS: Operation not permitted x +COMMENT: Can't update time for +COMMENT: Operation not permitted x +DESC: Can't update time for +DESC: Operation not permitted x +DISPLAY: Can't update time for +DISPLAY: Operation not permitted x usr/local/bin/sudo: Can't update time for usr/local/bin/sudo: Operation not permitted x usr/local/man/man8/sudo.8: Can't update time for usr/local/man/man8/sudo.8: Operation not permitted x usr/local/man/man8/visudo.8: Can't update time for usr/local/man/man8/visudo.8: Operation not permitted x usr/local/man/man5/sudoers.5 x usr/local/sbin/visudo: Can't update time for usr/local/sbin/visudo: Operation not permitted x usr/local/libexec/sudo_noexec.so: Can't update time for usr/local/libexec/sudo_noexec.so: Operation not permitted x usr/local/libexec/sudo_noexec.la: Can't update time for usr/local/libexec/ sudo_noexec.la: Operation not permitted x etc/sudoers: Can't update time for etc/sudoers: Operation not permitted net3# uname -a FreeBSD net3 6.2-STABLE FreeBSD 6.2-STABLE #1: Tue Aug 5 15:10:45 PDT 2008 root@test:/usr/obj/usr/src/sys/MYBD amd64 thanks, Jerry From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 6 21:19:46 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1110B106566B for ; Wed, 6 Aug 2008 21:19:46 +0000 (UTC) (envelope-from gleb.kurtsou@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.184]) by mx1.freebsd.org (Postfix) with ESMTP id 8974F8FC13 for ; Wed, 6 Aug 2008 21:19:45 +0000 (UTC) (envelope-from gleb.kurtsou@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so111998fkk.11 for ; Wed, 06 Aug 2008 14:19:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=v42Bs46ClJwxAZf/NZOj7bi7TgolF/dERpI7TObQa+s=; b=UmQRDjVHgRJORcTceHhFlTgUa0ukxIZkCYSMopl7iqpOxBKe1iXgtPF5DCxENlCFJr /mtfLmRp8pPEfesOEpCmjZCONb1xcW5Y9hrqUaJs0XxQdyXTuhh+ARxcbJcgYlH4JT5J xKe3chyoiTJtJpkLGbnQMWjtQhFJb3nq9NpNI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=rCF8pvoj+gA4C6cJGdnhwMCbZ48VrTWxGFkq/N3el5dDPV9e9AC6AcZtcw6m3MRhXr nlsRt/DDS2FFM+k0q4k2z2RpOgl1DJbduB8Qi0Gxgdt39uZu4w0N33P5YHZAZ8gzccZy SxNlsJBm981FZAfhL/hzYpVS51xBU0OkHOYI4= Received: by 10.180.215.9 with SMTP id n9mr1283242bkg.59.1218055986088; Wed, 06 Aug 2008 13:53:06 -0700 (PDT) Received: from localhost ( [213.184.224.33]) by mx.google.com with ESMTPS id 35sm1050196fkt.12.2008.08.06.13.53.03 (version=SSLv3 cipher=RC4-MD5); Wed, 06 Aug 2008 13:53:05 -0700 (PDT) Date: Thu, 7 Aug 2008 00:01:27 +0300 From: Gleb Kurtsou To: Oliver Fromme Message-ID: <20080806210127.GA1367@h1.d> Mail-Followup-To: Oliver Fromme , freebsd-hackers@freebsd.org References: <20080806125719.GA8008@rebelion.Sisis.de> <200808061729.m76HTVVh003285@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <200808061729.m76HTVVh003285@lurza.secnetix.de> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-hackers@freebsd.org Subject: Re: USB key && kernel: da0: Attempt to query device size failed: UNIT ?ATTENTION, Medium not present 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, 06 Aug 2008 21:19:46 -0000 On (06/08/2008 19:29), Oliver Fromme wrote: > Matthias Apitz wrote: > > I've updated usb/80361, see > > http://www.freebsd.org/cgi/query-pr.cgi?pr=80361 > > because I have the same problem as well that an USB key attaches fine > > when plugged in at boot time, but not later: Situation here is somewhat opposite. Device doesn't attach at boot or attaches some times. And needs special patch to attach later. % usbdevs -v port 1 addr 2: high speed, power 300 mA, config 1, USB DRIVE(0x0111), 0(0x04e8), rev 2.00 > > I'm just wondering what happens if you enforce a rescan > on the (virtual) SCSI bus. That is, after you have > plugged in the USB stick and the problem occured, type > "camcontrol rescan 0". > > If that doesn't help, please try this patch: > > =============================================================================== > --- src/sys/dev/usb/umass.c.orig 2008-05-21 16:22:03.000000000 +0200 > +++ src/sys/dev/usb/umass.c 2008-08-06 19:23:01.000000000 +0200 > @@ -2690,7 +2690,7 @@ > * completed, when interrupts have been enabled. > */ > > - callout_reset(&sc->cam_scsi_rescan_ch, MS_TO_TICKS(200), > + callout_reset(&sc->cam_scsi_rescan_ch, MS_TO_TICKS(2000), > umass_cam_rescan, sc); > } With this patch it gives following error: Aug 6 23:33:44 h1 kernel: umass0: <0 USB DRIVE, class 0/0, rev 2.00/2.00, addr 2> on uhub2 Aug 6 23:33:46 h1 kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug 6 23:33:46 h1 kernel: da0: < USB DRIVE 2.00> Removable Direct Access SCSI-2 device Aug 6 23:33:46 h1 kernel: da0: 40.000MB/s transfers Aug 6 23:33:46 h1 kernel: da0: Attempt to query device size failed: UNIT ATTENTION, Not ready to ready change, I've tried to increase delay up to 4000, nothing changed. Without patch error message is different. Can reproduce it if somebody is interested in it. But what surprises is that with this patch device attaches during boot. > Note that this patch is not a solution. It's purpose is > to find out if the cause of your problem is the same as > the one in PR usb/80361. If it is, the patch from the PR > should be committed (it introduces a quirk for cases like > this), and your USB stick should be added to the quirks > list. I've been using another homemade patch for >2 years. Hope it can help to find a real solution. I have no idea what it does, I'm not sure a had one during writing it back then. Anyway key attaches and just works. diff -r 24788dc12d11 -r 519a067f2475 sys/dev/usb/umass.c --- a/sys/dev/usb/umass.c Sat Jun 03 13:05:16 2006 +0300 +++ b/sys/dev/usb/umass.c Sat Jun 03 13:08:35 2006 +0300 @@ -2514,7 +2514,7 @@ umass_cam_action(struct cam_sim *sim, un sense->extra_len = 10; ccb->csio.scsi_status = SCSI_STATUS_CHECK_COND; ccb->ccb_h.status = CAM_SCSI_STATUS_ERROR | - CAM_AUTOSNS_VALID; + /* CAM_AUTOSNS_VALID */ 0; xpt_done(ccb); return; } @@ -2805,7 +2805,7 @@ umass_cam_sense_cb(struct umass_softc *s */ ccb->ccb_h.status = CAM_SCSI_STATUS_ERROR - | CAM_AUTOSNS_VALID; + | /* CAM_AUTOSNS_VALID */ 0; csio->scsi_status = SCSI_STATUS_CHECK_COND; #if 0 @@ -2836,7 +2836,7 @@ umass_cam_sense_cb(struct umass_softc *s break; } else { ccb->ccb_h.status = CAM_SCSI_STATUS_ERROR - | CAM_AUTOSNS_VALID; + | /* CAM_AUTOSNS_VALID */ 0; csio->scsi_status = SCSI_STATUS_CHECK_COND; } xpt_done(ccb); @@ -2872,7 +2872,7 @@ umass_cam_quirk_cb(struct umass_softc *s ccb->ccb_h.status = CAM_REQ_CMP; #endif ccb->ccb_h.status = CAM_SCSI_STATUS_ERROR - | CAM_AUTOSNS_VALID; + | /* CAM_AUTOSNS_VALID */ 0; ccb->csio.scsi_status = SCSI_STATUS_CHECK_COND; xpt_done(ccb); } From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 6 23:48:02 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16D751065679 for ; Wed, 6 Aug 2008 23:48:02 +0000 (UTC) (envelope-from wbentley@futurecis.com) Received: from mail1.futurecis.com (static-72-66-21-14.washdc.fios.verizon.net [72.66.21.14]) by mx1.freebsd.org (Postfix) with ESMTP id B2F7C8FC16 for ; Wed, 6 Aug 2008 23:48:01 +0000 (UTC) (envelope-from wbentley@futurecis.com) Received: (qmail 89182 invoked from network); 6 Aug 2008 23:20:04 -0000 Received: from unknown (HELO secure.futurecis.com) ([10.0.0.10]) (envelope-sender ) by mail1.futurecis.com (qmail-ldap-1.03) with SMTP for ; 6 Aug 2008 23:20:04 -0000 Received: from 130.76.96.17 (SquirrelMail authenticated user wbentley) by secure.futurecis.com with HTTP; Wed, 6 Aug 2008 19:14:51 -0400 (EDT) Message-ID: Date: Wed, 6 Aug 2008 19:14:51 -0400 (EDT) From: wbentley@futurecis.com To: hackers@FreeBSD.org User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Mailman-Approved-At: Thu, 07 Aug 2008 01:56:06 +0000 Cc: Subject: Idea for 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: Wed, 06 Aug 2008 23:48:02 -0000 To who it may concern, I am A FreeBSD administrator as well as a Solaris Administrator. I use BSD at home but Solaris at work. I love both OS's but I would like to increase the administrative capability of FreeBSD. In Solaris 10 the Services Management Facility (SMF) was introduced. Basically what it does, is take all the rc.d scripts and puts them into a database to manage. Everything is converted to XML and two basic commands (svcs and svcadm) are used to manage everything. I would like to submit the idea of implementing a similar environment into FreeBSD. After looking through the developers links and googling I found no project for FreeBSD that implemented anything similar to this. I have included a link below to give a better understanding of SMF and its capabilities. Is it possible, if it does not exist already, to look at the possibility of implementing the concept of SMF into FreeBSD? I would gladly be an active supporter in this endeavor. Will Bentley Future CIS 410-782-5954 "Your resource for computer expertise!" From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 03:01:10 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93A99106567C for ; Thu, 7 Aug 2008 03:01:10 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.179]) by mx1.freebsd.org (Postfix) with ESMTP id 271E08FC1E for ; Thu, 7 Aug 2008 03:01:09 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: by ik-out-1112.google.com with SMTP id c30so322083ika.3 for ; Wed, 06 Aug 2008 20:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=6RTGCaRxJz9cLu0D1pVA1avC0Y60+dvWK6/eejUm9DM=; b=omLH6UBWaysM/TddFQsI/Aiz1akTyiwWTEW567u92vyy8PZ3yMNPkVcBhOubUPU/vg 0zDagOhGmZFQCca/CdTfwncgFjUcbIQRuxaqwDgXSFddiFlky6ABzEx5RsDBkATsAMGH utDPvf/iKlripcnOp14RI+cCfAcjVeMk11xuI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=iBsTvGQR9cNaaEizvUYWtbp4ZpxGCrIfeVzizaByJPUIg+KujCkwTVy6uCvsExxQfg CRSboOcP3/LYaWHE8RlsImCgr0NcGpeNqoUx6nSJsHmQPVwC5Ew7yNh6WsZ2Yb9q95// 2ZmrcckY8OWjwzAyP+yzMzs5tJByUyUyQyCMg= Received: by 10.210.70.14 with SMTP id s14mr3340350eba.161.1218076491418; Wed, 06 Aug 2008 19:34:51 -0700 (PDT) Received: by 10.210.109.15 with HTTP; Wed, 6 Aug 2008 19:34:51 -0700 (PDT) Message-ID: <78c6bd860808061934l133d8ca6nabbde8cd55cb1d27@mail.gmail.com> Date: Wed, 6 Aug 2008 22:34:51 -0400 From: "Michael B Allen" To: wbentley@futurecis.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: hackers@freebsd.org Subject: Re: Idea for 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: Thu, 07 Aug 2008 03:01:10 -0000 On Wed, Aug 6, 2008 at 7:14 PM, wrote: > To who it may concern, > > I am A FreeBSD administrator as well as a Solaris Administrator. I use > BSD at home but Solaris at work. I love both OS's but I would like to > increase the administrative capability of FreeBSD. > > In Solaris 10 the Services Management Facility (SMF) was introduced. > Basically what it does, is take all the rc.d scripts and puts them into > a database to manage. Everything is converted to XML XML is good at document processing and for portable self-describing databases. Otherwise, I would think significantly less of any OS (or application) that used XML for configuration data. At least nothing that anyone would *every* be forced to edit manually. But of course the format of data in a database is largely irrelevant. You could implement the same thing with dbm files or a more forgiving text format. As for getting rid of rc.d scripts, yes they're decrepit and I would love to see them go but they're simple and third party software may depend on them being the norm. Just my 2c, Mike PS: I'm not a FreeBSD "hacker" or even an admin. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 04:24:57 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5905D1065670 for ; Thu, 7 Aug 2008 04:24:57 +0000 (UTC) (envelope-from tim@clewlow.org) Received: from clewlow.org (clewlow.org [210.215.149.194]) by mx1.freebsd.org (Postfix) with ESMTP id E35658FC15 for ; Thu, 7 Aug 2008 04:24:56 +0000 (UTC) (envelope-from tim@clewlow.org) Received: from 192.168.1.100 (localhost [127.0.0.1]) by clewlow.org (Postfix) with ESMTP id F0F7D1C081D; Thu, 7 Aug 2008 14:06:38 +1000 (EST) Received: from 192.168.1.10 (SquirrelMail authenticated user tim) by 192.168.1.100 with HTTP; Thu, 7 Aug 2008 14:06:39 +1000 (EST) Message-ID: <52107.192.168.1.10.1218081999.squirrel@192.168.1.100> In-Reply-To: <78c6bd860808061934l133d8ca6nabbde8cd55cb1d27@mail.gmail.com> References: <78c6bd860808061934l133d8ca6nabbde8cd55cb1d27@mail.gmail.com> Date: Thu, 7 Aug 2008 14:06:39 +1000 (EST) From: "Tim Clewlow" To: "Michael B Allen" User-Agent: SquirrelMail/1.4.13 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: hackers@freebsd.org, wbentley@futurecis.com Subject: Re: Idea for 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: Thu, 07 Aug 2008 04:24:57 -0000 > On Wed, Aug 6, 2008 at 7:14 PM, wrote: >> To who it may concern, >> >> I am A FreeBSD administrator as well as a Solaris Administrator. >> I use >> BSD at home but Solaris at work. I love both OS's but I would like >> to >> increase the administrative capability of FreeBSD. >> >> In Solaris 10 the Services Management Facility (SMF) was >> introduced. >> Basically what it does, is take all the rc.d scripts and puts them >> into >> a database to manage. Everything is converted to XML > > XML is good at document processing and for portable self-describing > databases. Otherwise, I would think significantly less of any OS (or > application) that used XML for configuration data. At least nothing > that anyone would *every* be forced to edit manually. > > But of course the format of data in a database is largely > irrelevant. > You could implement the same thing with dbm files or a more > forgiving > text format. > > As for getting rid of rc.d scripts, yes they're decrepit and I would > love to see them go but they're simple and third party software may > depend on them being the norm. > > Just my 2c, > Mike > > PS: I'm not a FreeBSD "hacker" or even an admin. > _______________________________________________ I believe the puppet project has a lot of potential, or if not the project then at least the ideas behind it, in regard to automating administrative tasks. I particularly like the way it allows the automation of the same tasks across different operating systems. http://reductivelabs.com/trac/puppet/ Cheers, Tim. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 04:35:15 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B584106579E for ; Thu, 7 Aug 2008 04:35:15 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id ABF818FC16 for ; Thu, 7 Aug 2008 04:35:14 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so348578fgb.35 for ; Wed, 06 Aug 2008 21:35:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=xg3jjqq9Tf/Dxrqd8V+j9T/8l06sNAC+kTwjhYsgLQ8=; b=KzzPXnKEeJKOuRvdDHNG1X3SN0y0H8r88CNbnIxA/beUkHimkWVQlIW3CJ2CJ5p7IU fhlVWutmEaHjcJkX1yGp1p8w/H2h8mKrFwHxj9WDiwy1RGcg7tagCODJf1JGRhA8yZ4f a95IbO/ApUugJGG6SYuuE/byW/2iuV5uLCHJM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=J5kdwAffatIbKLjkmHwaFO69wlWTdb3/KwhzRQ0P6HhkjyGH8RmPqBTbOZDV16tCdB jS1uNKHnQZsVu4CEkCnUcIVNEngaoT7DMlsAnmbD0WQdbRGd2xa8BZmgyJQPWhDHqGLI IZu4wtZLZLymowQUZuhI4fB1eSfC4BeSNbHlI= Received: by 10.86.84.5 with SMTP id h5mr1354632fgb.58.1218083712152; Wed, 06 Aug 2008 21:35:12 -0700 (PDT) Received: from ?192.168.5.4? ( [78.107.233.167]) by mx.google.com with ESMTPS id 4sm4733056fge.5.2008.08.06.21.35.10 (version=SSLv3 cipher=RC4-MD5); Wed, 06 Aug 2008 21:35:11 -0700 (PDT) Message-ID: <489A7B64.4000306@gmail.com> Date: Thu, 07 Aug 2008 08:34:44 +0400 From: Vladimir Ermakov User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.13) Gecko/20080708 SeaMonkey/1.1.9 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: em0: The EEPROM Checksum Is Not Valid 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, 07 Aug 2008 04:35:15 -0000 Hello my trouble with nic part of `dmesg` output --------------------------------------------------------------------- em0: port 0xec00-0xec3f mem 0xfebc0000-0xfebdffff,0xfeb80000-0xfebbffff irq 19 at device 2.0 on pci2 em0: The EEPROM Checksum Is Not Valid device_attach: em0 attach returned 5 ---------------------------------------------------------------------- part of `pciconf -lv` output ---------------------------------------------------------------------- em0@pci0:2:2:0: class=0x020000 card=0x10018086 chip=0x10268086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82545GM Gigabit Ethernet Controller' class = network subclass = ethernet ---------------------------------------------------------------------- uname output ---------------------------------------------------------------------- FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #2: Wed Jul 16 20:36:12 UTC 2008 root@:/usr/obj/usr/src/sys/STONE i386 ---------------------------------------------------------------------- please, any solution? /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 04:35:54 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D34F10656C9 for ; Thu, 7 Aug 2008 04:35:54 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.freebsd.org (Postfix) with ESMTP id 78D748FC1E for ; Thu, 7 Aug 2008 04:35:52 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from ednmsw510.dsto.defence.gov.au (ednmsw510.dsto.defence.gov.au [131.185.68.11]) by digger1.defence.gov.au (DSTO/DSTO) with ESMTP id m774YlTm009768 for ; Thu, 7 Aug 2008 14:04:47 +0930 (CST) Received: from fmbex510.dsto.defence.gov.au (fmbex510.dsto.defence.gov.au) by ednmsw510.dsto.defence.gov.au (Clearswift SMTPRS 5.2.9) with ESMTP id for ; Thu, 7 Aug 2008 14:05:51 +0930 Received: from stlex510.dsto.defence.gov.au ([203.6.60.184]) by fmbex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Thu, 7 Aug 2008 14:35:51 +1000 Received: from obelix.dsto.defence.gov.au ([203.6.60.208]) by stlex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Thu, 7 Aug 2008 12:35:50 +0800 Received: from obelix.dsto.defence.gov.au (localhost [127.0.0.1]) by obelix.dsto.defence.gov.au (8.14.2/8.14.2) with ESMTP id m774XWAt043983 for ; Thu, 7 Aug 2008 12:33:32 +0800 (WST) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by obelix.dsto.defence.gov.au (8.14.2/8.14.2/Submit) id m774XWxg043982 for freebsd-hackers@freebsd.org; Thu, 7 Aug 2008 12:33:32 +0800 (WST) (envelope-from wilkinsa) Date: Thu, 7 Aug 2008 12:33:32 +0800 From: "Wilkinson, Alex" To: freebsd-hackers@freebsd.org Message-ID: <20080807043331.GA38794@stlux503.dsto.defence.gov.au> Mail-Followup-To: freebsd-hackers@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: Organisation: Defence Science Technology Organisation User-Agent: Mutt/1.5.18 (2008-05-17) X-OriginalArrivalTime: 07 Aug 2008 04:35:50.0541 (UTC) FILETIME=[11D223D0:01C8F847] Content-Transfer-Encoding: 7bit Subject: Re: Idea for 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: Thu, 07 Aug 2008 04:35:54 -0000 0n Wed, Aug 06, 2008 at 07:14:51PM -0400, wbentley@futurecis.com wrote: >I would like to submit the idea of implementing a similar environment >into FreeBSD. After looking through the developers links and googling I >found no project for FreeBSD that implemented anything similar to this. >I have included a link below to give a better understanding of SMF and >its capabilities. I believe there was a port of MacOS-X 'launchd' to FreeBSD: [http://wiki.freebsd.org/launchd] I think launchd may use XML. -aW IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 04:35:56 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BBA310656C1 for ; Thu, 7 Aug 2008 04:35:56 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id AB5B78FC08 for ; Thu, 7 Aug 2008 04:35:55 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so348950fgb.35 for ; Wed, 06 Aug 2008 21:35:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=xg3jjqq9Tf/Dxrqd8V+j9T/8l06sNAC+kTwjhYsgLQ8=; b=LPa2r4NQbHb1/f9FR6KqrAq41Bg4XQvyeNoZ6EfyTBPh3ppTy7AwLW80dMAikzSxOk rs2Wg8aZXooh+ubdHZXeIw//Vsn+opjaUNiSiXirwnx25P9+y+mrXeGOmfeiuAfIRVPt ///E8mie0zUhnMpe4ZK3/DYcw7J4g10mzw/Bw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=XicKO6tE7D/ot+XD64Ii3wD1ZNF4LGcI2uNa7CK5vGH5wdjDIWvJA7CcLGNAomNWll 1NFmXkMmwVyftlQ5W7j9RTpkk0+38DNc75dYVJGFGR8+MIfoibNtrq+6/NuBAAmNVPSf hE3closbtRNqOFkhpjosTnsbnvfibPmwiGWEc= Received: by 10.86.72.3 with SMTP id u3mr1354309fga.62.1218083754460; Wed, 06 Aug 2008 21:35:54 -0700 (PDT) Received: from ?192.168.5.4? ( [78.107.233.167]) by mx.google.com with ESMTPS id 4sm4699039fgg.4.2008.08.06.21.35.52 (version=SSLv3 cipher=RC4-MD5); Wed, 06 Aug 2008 21:35:53 -0700 (PDT) Message-ID: <489A7B8F.1080407@gmail.com> Date: Thu, 07 Aug 2008 08:35:27 +0400 From: Vladimir Ermakov User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.13) Gecko/20080708 SeaMonkey/1.1.9 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: em0: The EEPROM Checksum Is Not Valid 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, 07 Aug 2008 04:35:56 -0000 Hello my trouble with nic part of `dmesg` output --------------------------------------------------------------------- em0: port 0xec00-0xec3f mem 0xfebc0000-0xfebdffff,0xfeb80000-0xfebbffff irq 19 at device 2.0 on pci2 em0: The EEPROM Checksum Is Not Valid device_attach: em0 attach returned 5 ---------------------------------------------------------------------- part of `pciconf -lv` output ---------------------------------------------------------------------- em0@pci0:2:2:0: class=0x020000 card=0x10018086 chip=0x10268086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82545GM Gigabit Ethernet Controller' class = network subclass = ethernet ---------------------------------------------------------------------- uname output ---------------------------------------------------------------------- FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #2: Wed Jul 16 20:36:12 UTC 2008 root@:/usr/obj/usr/src/sys/STONE i386 ---------------------------------------------------------------------- please, any solution? /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 05:07:26 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E04E1065671 for ; Thu, 7 Aug 2008 05:07:26 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 1E0468FC0A for ; Thu, 7 Aug 2008 05:07:26 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 028331CC0B0; Wed, 6 Aug 2008 22:07:25 -0700 (PDT) Date: Wed, 6 Aug 2008 22:07:25 -0700 From: Jeremy Chadwick To: Vladimir Ermakov Message-ID: <20080807050725.GA8969@eos.sc1.parodius.com> References: <489A7B64.4000306@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <489A7B64.4000306@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: em0: The EEPROM Checksum Is Not Valid 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, 07 Aug 2008 05:07:26 -0000 On Thu, Aug 07, 2008 at 08:34:44AM +0400, Vladimir Ermakov wrote: > Hello > > my trouble with nic > > part of `dmesg` output > --------------------------------------------------------------------- > em0: port 0xec00-0xec3f mem > 0xfebc0000-0xfebdffff,0xfeb80000-0xfebbffff irq 19 at device 2.0 on pci2 > em0: The EEPROM Checksum Is Not Valid > device_attach: em0 attach returned 5 > ---------------------------------------------------------------------- > > part of `pciconf -lv` output > ---------------------------------------------------------------------- > em0@pci0:2:2:0: class=0x020000 card=0x10018086 chip=0x10268086 rev=0x01 > hdr=0x00 > vendor = 'Intel Corporation' > device = '82545GM Gigabit Ethernet Controller' > class = network > subclass = ethernet > ---------------------------------------------------------------------- > > uname output > ---------------------------------------------------------------------- > FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #2: Wed Jul 16 20:36:12 UTC 2008 > root@:/usr/obj/usr/src/sys/STONE i386 > ---------------------------------------------------------------------- > > please, any solution? Intel probably has a utility to reset the EEPROM settings on the NIC. Jack Vogel may know where to get such a utility. I do not believe this problem is FreeBSD-related. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 05:34:22 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1FDC106564A for ; Thu, 7 Aug 2008 05:34:22 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (five.mired.org [66.92.153.75]) by mx1.freebsd.org (Postfix) with ESMTP id 694C58FC1B for ; Thu, 7 Aug 2008 05:34:22 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 98582 invoked by uid 1001); 7 Aug 2008 01:06:41 -0400 Received: from bhuda.mired.org (bhuda [192.168.195.1]) by bhuda (tmda-ofmipd) with ESMTP; Thu, 07 Aug 2008 01:06:39 -0400 Date: Thu, 7 Aug 2008 01:06:38 -0400 To: "Michael B Allen" Message-ID: <20080807010638.267d7790@bhuda.mired.org> In-Reply-To: <78c6bd860808061934l133d8ca6nabbde8cd55cb1d27@mail.gmail.com> References: <78c6bd860808061934l133d8ca6nabbde8cd55cb1d27@mail.gmail.com> Organization: Meyer Consulting X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; amd64-portbld-freebsd7.0) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Mike Meyer Cc: hackers@freebsd.org, wbentley@futurecis.com Subject: Re: Idea for 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: Thu, 07 Aug 2008 05:34:22 -0000 On Wed, 6 Aug 2008 22:34:51 -0400 "Michael B Allen" wrote: > On Wed, Aug 6, 2008 at 7:14 PM, wrote: > > To who it may concern, > > > > I am A FreeBSD administrator as well as a Solaris Administrator. I use > > BSD at home but Solaris at work. I love both OS's but I would like to > > increase the administrative capability of FreeBSD. > > > > In Solaris 10 the Services Management Facility (SMF) was introduced. > > Basically what it does, is take all the rc.d scripts and puts them into > > a database to manage. Everything is converted to XML > > XML is good at document processing and for portable self-describing > databases. Otherwise, I would think significantly less of any OS (or > application) that used XML for configuration data. At least nothing > that anyone would *every* be forced to edit manually. Give the right tools, editing XML is actually reasonable. The right tools are a schema for the documents in question, a schema-aware editor, and applications software that bitches if the document doesn't match the schema. The problem is that you almost never get a schema, and having an application that cares is even rarer. Without those, you're best off using application tools to manipulate the documents, and never touching it except for emergencies. In which case: > But of course the format of data in a database is largely irrelevant. > You could implement the same thing with dbm files or a more forgiving > text format. Right. For that matter, you could leave the data in shell scripts, and build a layer of meta information and tools to manipulate these things - which is similar to what I see in Linux distros. The Solaris smf tools provide some nice facilities: one is single interface to start, stop, check and restart all the services on a system. We pretty much have that, as they all use the same basic arguments to their rc scripts. The only issue is figuring out which directory to find the rc script in. The other is a single interface to enable, disable and query the status of all the services. All we really have is the last one: you can run the script with the rcvar argument, and it'll list the appropriate variable if it's set, and the value it's set to. Maybe. Not all of them support this yet. > As for getting rid of rc.d scripts, yes they're decrepit and I would > love to see them go but they're simple and third party software may > depend on them being the norm. The only thing decrepit about the rc.d scripts is that they don't all support the latest facilities that you'd expect them to. But the way to fix that is to update the old ones, not to throw out all of them and start over. In particular, if you want to replace them with a better format, you need to start by showing that said format is better - and chanting buzzwords like "xml" isn't sufficient to do that. You could, for instance, get all of the facilities of svcs with a shell script that grokked the current rc.d formats. Searching wouldn't be quite as spiffy because we don't have the concept of an FMRI, and getting the output formatting facilities right would be a bit tricky, but the information is pretty much all there. svcadm is a bit harder, because you'd have to edit rc.conf in place, but again, most of the pieces are already in place. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 06:31:11 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DF481065676 for ; Thu, 7 Aug 2008 06:31:11 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.180]) by mx1.freebsd.org (Postfix) with ESMTP id C0E4A8FC0A for ; Thu, 7 Aug 2008 06:31:10 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: by ik-out-1112.google.com with SMTP id c30so434086ika.3 for ; Wed, 06 Aug 2008 23:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=x9LqGstcXgF8voOv5MCsckmdUJzCSbXrpeFRlZXATW0=; b=ujVDv4TweesU5jjBEPNtj/dQQWotg9bKMVFtHOb+GzaMlEbwxIKuz2I7cyKYlBsS4A dUxJ4+wsomSIWuR2udBktCs3HmTUxjvMmMZliKd5ZnEsNj38uVN3W/Q/GjNwQJJvmYLv PLrczkDLrzDTAh0lc6R/Z5AY9BIT3cS3psqDw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=EW6MQYQCshd5URkr0rXIHOlxlX+1kt/K+3n2IUHU0inREgwzBIFiYQHZwjcI3kOg23 kNrqDKPbicvvMAVSDjsCTssY/5beG34lwWvZbAMONe9BMAmJnyluzPVwTleiIANx0FoS QvdH2+b7VmAXEa0RLci35KCH+dfP0+hrZS6jg= Received: by 10.210.91.17 with SMTP id o17mr3514731ebb.172.1218090669288; Wed, 06 Aug 2008 23:31:09 -0700 (PDT) Received: by 10.210.109.15 with HTTP; Wed, 6 Aug 2008 23:31:09 -0700 (PDT) Message-ID: <78c6bd860808062331h674b951ei5f7ca95a930f1af4@mail.gmail.com> Date: Thu, 7 Aug 2008 02:31:09 -0400 From: "Michael B Allen" To: "Mike Meyer" In-Reply-To: <20080807010638.267d7790@bhuda.mired.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <78c6bd860808061934l133d8ca6nabbde8cd55cb1d27@mail.gmail.com> <20080807010638.267d7790@bhuda.mired.org> Cc: hackers@freebsd.org, wbentley@futurecis.com Subject: Re: Idea for 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: Thu, 07 Aug 2008 06:31:11 -0000 On Thu, Aug 7, 2008 at 1:06 AM, Mike Meyer wrote: > On Wed, 6 Aug 2008 22:34:51 -0400 > "Michael B Allen" wrote: >> As for getting rid of rc.d scripts, yes they're decrepit and I would >> love to see them go but they're simple and third party software may >> depend on them being the norm. > > The only thing decrepit about the rc.d scripts is that they don't all > support the latest facilities that you'd expect them to. But the way > to fix that is to update the old ones, not to throw out all of them > and start over. In particular, if you want to replace them with a > better format, you need to start by showing that said format is better > - and chanting buzzwords like "xml" isn't sufficient to do that. I did not mean to say that the scripts themselves were decrepit. I mean the whole Unix runlevel rc.d apparatus in general is decrepit. There should be a library to install, start, stop, restart, uninstall, disable, enable, change order of services and also change the runlevel. And then there should be a very small utility that calls the library to invoke the desired operations from the commandline and from init. If the library and corresponding utility are implemented correctly, the format of the file containing service state should be moot since no one will ever look at it (which is to say dbm or some other binary-blob format should be used since it makes programming the said library much cleaner). And for backwards compatibility you leave the rc.d tree so that a third party can drop in a script and it will continue to work but anyone using the said utility would completely bypass all the rc.d business. But I just made that up. Of course such things are never as simple as they sound the first time around. Mike From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 06:32:23 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6CA11065672 for ; Thu, 7 Aug 2008 06:32:23 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 4B5F48FC15 for ; Thu, 7 Aug 2008 06:32:23 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.129] (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id m776Fntv048272; Wed, 6 Aug 2008 23:15:51 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <489A9344.3060306@freebsd.org> Date: Wed, 06 Aug 2008 23:16:36 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Meyer References: <78c6bd860808061934l133d8ca6nabbde8cd55cb1d27@mail.gmail.com> <20080807010638.267d7790@bhuda.mired.org> In-Reply-To: <20080807010638.267d7790@bhuda.mired.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Michael B Allen , hackers@freebsd.org, wbentley@futurecis.com Subject: Re: Idea for 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: Thu, 07 Aug 2008 06:32:23 -0000 > The Solaris smf tools provide some nice facilities: one is single > interface to start, stop, check and restart all the services on a > system. We pretty much have that ... > > The other is a single interface to enable, disable and query the > status of all the services. All we really have is the last one... Sounds like the only missing pieces, then, are standard ways to enable, disable, and configure services. How about: sudo /etc/rc.d/ssh enable sudo /etc/rc.d/ssh disable sudo /etc/rc.d/ssh configure That shouldn't be much of a stretch to implement, either. The first two just append entries to /etc/rc.conf. The third opens an editor with a list of variables supported by this service and then appends the result to rc.conf. Tim From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 07:18:23 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F16A1065671 for ; Thu, 7 Aug 2008 07:18:23 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from istc.kiev.ua (wolf.istc.kiev.ua [193.108.236.1]) by mx1.freebsd.org (Postfix) with ESMTP id DB8438FC1C for ; Thu, 7 Aug 2008 07:18:22 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from [91.123.146.100] (helo=ravenloft.kiev.ua) by istc.kiev.ua with esmtp (Exim 4.52) id 1KQym7-0001n9-8l; Thu, 07 Aug 2008 09:15:05 +0300 Date: Thu, 7 Aug 2008 09:15:00 +0300 From: Alex Kozlov To: hackers@freebsd.org, Michael B Allen , Mike Meyer , spam@rm-rf.kiev.ua Message-ID: <20080807061500.GA23109@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: 0.0 (/) X-Spam-Report: Content analysis detailz: (0.0 points, 10.0 required) Cc: Subject: Re: Idea for 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: Thu, 07 Aug 2008 07:18:23 -0000 On Thu, Aug 07, 2008 at 01:06:38AM -0400, Mike Meyer wrote: >On Wed, 6 Aug 2008 22:34:51 "Michael B Allen" wrote: > > But of course the format of data in a database is largely irrelevant. > > You could implement the same thing with dbm files or a more forgiving > > text format. > > Right. For that matter, you could leave the data in shell scripts, and > build a layer of meta information and tools to manipulate these things > - which is similar to what I see in Linux distros. > > The Solaris smf tools provide some nice facilities: one is single > interface to start, stop, check and restart all the services on a > system. We pretty much have that, as they all use the same basic > arguments to their rc scripts. The only issue is figuring out which > directory to find the rc script in. I use for this simple script [1] plus some programmable completion. > > The other is a single interface to enable, disable and query the > status of all the services. All we really have is the last one: you > can run the script with the rcvar argument, and it'll list the > appropriate variable if it's set, and the value it's set > to. Maybe. Not all of them support this yet. > > As for getting rid of rc.d scripts, yes they're decrepit and I would > > love to see them go but they're simple and third party software may > > depend on them being the norm. Can You please be more elaborate? Yes, rc.d scripts have some problems, but I don't think We need to get rid of them. [1]: $cat /usr/local/bin/service #!/bin/sh name=$1 cmd=$2 . /etc/rc.subr if [ -z "${name}" -o -z "${cmd}" ] then echo ${0##*/} service_name command exit 3 fi if [ -r "/etc/rc.d/${name}" ] then run_rc_script "/etc/rc.d/${name}" ${cmd} exit 0 fi if [ -r "/usr/local/etc/rc.d/${name}" ] then run_rc_script "/usr/local/etc/rc.d/${name}" ${cmd} exit 0 fi if [ -r "/usr/local/etc/rc.d/${name}.sh" ] then run_rc_script "/usr/local/etc/rc.d/${name}.sh" ${cmd} exit 0 fi echo "service '${name}' not found" exit 2 -- Adios From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 07:54:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C76BD106566B for ; Thu, 7 Aug 2008 07:54:57 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 5BCB58FC16 for ; Thu, 7 Aug 2008 07:54:56 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([193.31.10.34]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Aug 2008 09:54:55 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m777srg2003332; Thu, 7 Aug 2008 09:54:53 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Thu, 7 Aug 2008 09:54:53 +0200 From: Matthias Apitz To: Oliver Fromme Message-ID: <20080807075453.GA3260@rebelion.Sisis.de> References: <20080806125719.GA8008@rebelion.Sisis.de> <200808061729.m76HTVVh003285@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200808061729.m76HTVVh003285@lurza.secnetix.de> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) X-OriginalArrivalTime: 07 Aug 2008 07:54:55.0360 (UTC) FILETIME=[E17CE000:01C8F862] Cc: freebsd-hackers@freebsd.org Subject: Re: USB key && kernel: da0: Attempt to query device size failed: UNIT ?ATTENTION, Medium not present X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2008 07:54:57 -0000 El da Wednesday, August 06, 2008 a las 07:29:31PM +0200, Oliver Fromme escribi: > Matthias Apitz wrote: > > I've updated usb/80361, see > > http://www.freebsd.org/cgi/query-pr.cgi?pr=80361 > > because I have the same problem as well that an USB key attaches fine > > when plugged in at boot time, but not later: > > I'm just wondering what happens if you enforce a rescan > on the (virtual) SCSI bus. That is, after you have > plugged in the USB stick and the problem occured, type > "camcontrol rescan 0". > this did not helped; I tried it a lot of times; also reading with dd(1) from /dev/da0 did not helped; > If that doesn't help, please try this patch: ... The problem is that this was a USB stick of a friend of me in which I have created a booting FreeBSD so he can make the installation of it in an eeePC; will try to get back this USB stick from him for further tests... matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 07:59:43 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00F46106566C for ; Thu, 7 Aug 2008 07:59:43 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id E55428FC1A for ; Thu, 7 Aug 2008 07:59:42 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id D4D911CC0AD; Thu, 7 Aug 2008 00:43:32 -0700 (PDT) Date: Thu, 7 Aug 2008 00:43:32 -0700 From: Jeremy Chadwick To: wbentley@futurecis.com Message-ID: <20080807074332.GA17830@eos.sc1.parodius.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: hackers@FreeBSD.org Subject: Re: Idea for 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: Thu, 07 Aug 2008 07:59:43 -0000 On Wed, Aug 06, 2008 at 07:14:51PM -0400, wbentley@futurecis.com wrote: > To who it may concern, > > I am A FreeBSD administrator as well as a Solaris Administrator. I use > BSD at home but Solaris at work. I love both OS's but I would like to > increase the administrative capability of FreeBSD. > > In Solaris 10 the Services Management Facility (SMF) was introduced. > Basically what it does, is take all the rc.d scripts and puts them into > a database to manage. Everything is converted to XML and two basic > commands (svcs and svcadm) are used to manage everything. I highly recommend you and anyone advocating the use of XML for such things read the following whitepaper/study, in full: http://www.cs.kent.ac.uk/pubs/2004/2102/content.pdf -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 08:00:46 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CFAB106564A for ; Thu, 7 Aug 2008 08:00:46 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 020C88FC1F for ; Thu, 7 Aug 2008 08:00:44 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so452843fgb.35 for ; Thu, 07 Aug 2008 01:00:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=j4DVhNcBUlOFuFOTf/Ps4aVQpXGlkUBRw5lQZyvqtWM=; b=ix6QDzs8tkXTJnVToS2sEGEv9HTLh1wip04uKytTnUFqR+1YkVG3bb4PqC5vl8g6IR e8WM1PNbRLOTPdBiO8qIGT6NeGPOZyO8iRuFaTLQPSBcSWuEXV5WBkR/qATEsKaP6PTE 95318zw8pWf+cUEbytKluYMwvsfVc5d/iCaSg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=k9fvnzGpAOPYnM7F93Qo/sfwcpAhAzoolPQE82s9BedMPhARDTXqQXRBURPMhbrnHQ OA/i0qhSnpeKvyn8B1nyvYPOrkF2Y8eMGC+6dc9rm8jwJAQFB1zOBTGqfjRLXWM2SiYa TbXaAkYaQmm89AvykTVzeDHdnf3bwbT6q0mMc= Received: by 10.86.4.14 with SMTP id 14mr1497040fgd.20.1218096043575; Thu, 07 Aug 2008 01:00:43 -0700 (PDT) Received: from ?192.168.1.107? ( [213.152.137.38]) by mx.google.com with ESMTPS id 4sm4999298fge.5.2008.08.07.01.00.41 (version=SSLv3 cipher=RC4-MD5); Thu, 07 Aug 2008 01:00:42 -0700 (PDT) Message-ID: <489AABA5.9070602@gmail.com> Date: Thu, 07 Aug 2008 12:00:37 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Kostik Belousov References: <489036A2.5060403@gmail.com> <48931AD1.1090609@gmail.com> <20080801143128.GJ97161@deviant.kiev.zoral.com.ua> In-Reply-To: <20080801143128.GJ97161@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: Nate Eldredge , freebsd-hackers@freebsd.org Subject: Re: consolekit on 7.0-STABLE i386 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, 07 Aug 2008 08:00:46 -0000 Kostik Belousov wrote: > On Fri, Aug 01, 2008 at 06:16:49PM +0400, sam wrote: > >> Nate Eldredge wrote: >> >>> On Wed, 30 Jul 2008, sam wrote: >>> >>> >>>> 0 19 0 1113M 29M 112 0 0 0 32 0 0 1 100 5549 >>>> 1682 11 1 88 >>>> 0 19 0 1113M 29M 297 0 0 0 136 0 0 2 122 78880 >>>> 1749 6 7 87 >>>> |-------------------------------------------------------------------- >>>> >>>> consolekit in |waitvt state, influencing on high volumes in procs-b >>>> >>> I don't understand what the problem is. It looks like consolekit is >>> sleeping and not using any CPU. "waitvt" just indicates where in the >>> kernel it's sleeping. I don't understand what you mean by "high >>> volumes in procs-b". >>> >>> >> How-To-Repeat: >> -------------------------------------------------------------- >> # (|cd /usr/ports/sysutils/consolekit/ && make install clean) >> >> # /usr/local/etc/rc.d/dbus forcestart >> >> # vmstat -w 1 >> procs memory page disk faults cpu >> r b w avm fre flt re pi po fr sr ad0 in sy cs us >> sy id >> 2 1 0 62252K 644M 88 0 0 0 80 0 0 2 83 279 1 >> 1 98 >> 0 1 0 62252K 644M 0 0 0 0 0 0 0 4 134 292 0 >> 3 97 >> 0 1 0 62252K 644M 0 0 0 0 0 0 0 4 123 299 0 >> 2 98 >> 1 1 0 62252K 644M 0 0 0 0 0 0 0 3 120 305 0 >> 3 97 >> ^C >> # /usr/local/sbin/console-kit-daemon && vmstat -w 1 >> procs memory page disk faults cpu >> r b w avm fre flt re pi po fr sr ad0 in sy cs us >> sy id >> 2 1 0 67572K 643M 88 0 0 0 80 0 0 2 83 279 1 >> 1 98 >> 0 16 0 68660K 643M 103 0 0 0 2 0 10 13 643 381 >> 2 4 94 >> 0 16 0 68660K 643M 0 0 0 0 0 0 0 3 120 281 >> 0 4 96 >> 0 16 0 68660K 643M 0 0 0 0 0 0 0 2 120 278 >> 0 3 97 >> 0 16 0 68660K 643M 0 0 0 0 12 0 28 34 120 385 >> 0 3 97 >> 0 16 0 68660K 643M 0 0 0 0 0 0 0 4 120 292 >> 0 3 97 >> ^C >> # >> |-------------------------------------------------------------- >> >> please, any solution ... >> > > Solution for what ? There is nothing wrong with the system. > > For the purely estetisk purpose, you may look up the line > tsleep(VTY_WCHAN(sc, i), PZERO | PCATCH, "waitvt", 0); > or similar in sys/dev/syscons/syscons.c, and remove the "PZERO |" substring > from it. > ok Why proc-b on the HEAD, have low values (with working consolekit)? /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 09:14:16 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71CED106567B for ; Thu, 7 Aug 2008 09:14:16 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [212.17.241.230]) by mx1.freebsd.org (Postfix) with ESMTP id C835F8FC08 for ; Thu, 7 Aug 2008 09:14:15 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m779DsZM041500; Thu, 7 Aug 2008 11:14:01 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m779DlBd041495; Thu, 7 Aug 2008 11:13:47 +0200 (CEST) (envelope-from olli) From: Oliver Fromme Message-Id: <200808070913.m779DlBd041495@lurza.secnetix.de> To: matthias.apitz@oclc.org Date: Thu, 7 Aug 2008 11:13:47 +0200 (CEST) In-Reply-To: <20080807075453.GA3260@rebelion.Sisis.de> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 07 Aug 2008 11:14:01 +0200 (CEST) Cc: freebsd-hackers@freebsd.org Subject: Re: USB key && kernel: da0: Attempt to query device size failed: UNIT ?ATTENTION, Medium not present 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, 07 Aug 2008 09:14:16 -0000 Matthias Apitz wrote: > Oliver Fromme wrote: > > Matthias Apitz wrote: > > > I've updated usb/80361, see > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=80361 > > > because I have the same problem as well that an USB key attaches fine > > > when plugged in at boot time, but not later: > > > > I'm just wondering what happens if you enforce a rescan > > on the (virtual) SCSI bus. That is, after you have > > plugged in the USB stick and the problem occured, type > > "camcontrol rescan 0". > > this did not helped; I tried it a lot of times; OK. > also reading with dd(1) from /dev/da0 did not helped; I think reading from it isn't expected to help. The device needs to be opened for _writing_ so the GEOM layer assumes that the partition or slice table was modified and re-reads it from the media. Something like this should be sufficient: dd if=/dev/null of=/dev/da0 count=0 It openes the device for writing (this is important), but doesn't actually write anything to it. > > If that doesn't help, please try this patch: > ... > > The problem is that this was a USB stick of a friend of me in which I > have created a booting FreeBSD so he can make the installation of it in > an eeePC; will try to get back this USB stick from him for further > tests... OK. A little bit of background information: If a USB memory stick is detected fine during boot, but not when plugged into the running system, it usually indicates that the USB stick needs a longer delay to be ready for the CAM SCSI layer. The default delay is 200 ms. This might be too short for some USB sticks. The patch increases it to 2000 ms. If that still doesn't help, then there must be a completely different problem with your USB stick. In that case someone with more intimate knowledge of the USB code needs to help. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mn- chen, HRB 125758, Geschftsfhrer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd cat man du : where Unix geeks go when they die From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 09:36:46 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A77A01065687 for ; Thu, 7 Aug 2008 09:36:46 +0000 (UTC) (envelope-from ap00@mail.ru) Received: from mx0.awanti.com (mx0.awanti.com [91.190.112.18]) by mx1.freebsd.org (Postfix) with ESMTP id 326078FC1B for ; Thu, 7 Aug 2008 09:36:46 +0000 (UTC) (envelope-from ap00@mail.ru) Received: from pstation (unknown [10.28.4.14]) by mx0.awanti.com (Postfix) with ESMTP id 172FD4C250 for ; Thu, 7 Aug 2008 13:14:30 +0400 (MSD) Date: Thu, 7 Aug 2008 13:18:24 +0400 From: Anthony Pankov X-Mailer: The Bat! (v1.51) Personal X-Priority: 3 (Normal) Message-ID: <14893571984.20080807131824@mail.ru> To: hackers@FreeBSD.org In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Re: Idea for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anthony Pankov List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2008 09:36:46 -0000 I wonder opinions on more general question: Does somebody believe in necessity of separate infrastructure for daemons(services)? As for me i very dislike unclean of "what where located". Some configuration lie in /etc, some in /usr/local/etc, some in /usr/local/program_name. In addition there is own inclusions in program conf's of some vital data/parameters located somewhere, not to mention program binary, libraries and startup scripts. What the shortest dump command that allow after fresh installation restore full functionality? So, i believe that clean rule of daemons(services) arrangement in system more important than startup design. May be rule that "all daemons should nest in /svc" can help. For example, /svc -mostly read /svc/daemon_name - daemon dir /svc/daemon_name/bin/ - program itself /svc/daemon_name/*.conf - configuration /svc/daemon_name/data/ - data itself (mostly read, rarely write) + symlinks to real data /svc/daemon_name/var2/*.conf - another configuration named var2 (for another instance) /svc/daemon_name/var2/data/ - data itself (mostly read, rarely write) + symlinks to real data another configuration named var2 /svc/daemon_name/cs/ - control scripts (startup/shutdown etc) So, by design there is ability: list all daemon (readdir /svc) start / stop daemons: svc daemon_name start = (do a "/svc/daemon_name/cs/start") use alternative configuration: svc daemon_name var2 start = (do a "/svc/daemon_name/cs/start -c var2") dump all functionallity dump /svc Thursday, August 07, 2008, 3:14:51 AM, you wrote: wfc> To who it may concern, wfc> I am A FreeBSD administrator as well as a Solaris Administrator. I use wfc> BSD at home but Solaris at work. I love both OS's but I would like to wfc> increase the administrative capability of FreeBSD. wfc> In Solaris 10 the Services Management Facility (SMF) was introduced. wfc> Basically what it does, is take all the rc.d scripts and puts them into wfc> a database to manage. Everything is converted to XML and two basic wfc> commands (svcs and svcadm) are used to manage everything. wfc> I would like to submit the idea of implementing a similar environment wfc> into FreeBSD. After looking through the developers links and googling I wfc> found no project for FreeBSD that implemented anything similar to this. wfc> I have included a link below to give a better understanding of SMF and wfc> its capabilities. wfc> Is it possible, if it does not exist already, to look at the wfc> possibility of implementing the concept of SMF into FreeBSD? I would wfc> gladly be an active supporter in this endeavor. wfc> Will Bentley wfc> Future CIS wfc> 410-782-5954 wfc> "Your resource for computer expertise!" wfc> _______________________________________________ wfc> freebsd-hackers@freebsd.org mailing list wfc> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers wfc> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" -- Best regards, Anthony mailto:ap00@mail.ru From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 09:45:15 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68CDE106570C for ; Thu, 7 Aug 2008 09:45:15 +0000 (UTC) (envelope-from ap@bnc.net) Received: from mailomat.net (mailomat.net [81.20.89.254]) by mx1.freebsd.org (Postfix) with ESMTP id E2E0B8FC1C for ; Thu, 7 Aug 2008 09:45:14 +0000 (UTC) (envelope-from ap@bnc.net) X-Mailomat-SpamCatcher-Score: 2 [X] X-Mailomat-Cloudmark-Score: 0.000000 [] Received: from [194.39.192.125] (account bnc-mail@mailrelay.mailomat.net HELO bnc.net) by mailomat.net (CommuniGate Pro SMTP 5.2.0) with ESMTPSA id 47463208; Thu, 07 Aug 2008 10:45:12 +0200 X-SpamCatcher-Score: 2 [X] Received: from [194.39.192.126] (account ap HELO wasabi.wlan.bnc.net) by bnc.net (CommuniGate Pro SMTP 5.2.5) with ESMTPSA id 3286459; Thu, 07 Aug 2008 10:45:11 +0200 Message-Id: <12893AA5-1667-4798-9030-89DC76621292@bnc.net> From: Achim Patzner To: "Michael B Allen" In-Reply-To: <78c6bd860808062331h674b951ei5f7ca95a930f1af4@mail.gmail.com> Content-Type: multipart/signed; boundary=Apple-Mail-40--726656953; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v928.1) Date: Thu, 7 Aug 2008 10:45:11 +0200 References: <78c6bd860808061934l133d8ca6nabbde8cd55cb1d27@mail.gmail.com> <20080807010638.267d7790@bhuda.mired.org> <78c6bd860808062331h674b951ei5f7ca95a930f1af4@mail.gmail.com> X-Mailer: Apple Mail (2.928.1) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: hackers@freebsd.org Subject: Re: Idea for 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: Thu, 07 Aug 2008 09:45:15 -0000 --Apple-Mail-40--726656953 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Am 07.08.2008 um 08:31 schrieb Michael B Allen: > mean the whole Unix runlevel rc.d apparatus in general is decrepit. Hi, Jordan! 8-) > There should be a library to install, start, stop, restart, uninstall, > disable, enable, change order of services and also change the > runlevel. And then there should be a very small utility that calls the > library to invoke the desired operations from the commandline and from > init. As I'm having my daily struggles with launchd on Mac OS Servers (subsystems like lpd being turned of by mechanisms unknown to me, orphaned processes being unceremoniously eaten by launchd without any good reasons) the dream of having one tool instead of init, cron, inetd and the rest of that gang has turned into more work. As I'm also have an allergy against AIX since I came into contact with SMIT for the first time: Be careful what you're asking for, you might really get it. > If the library and corresponding utility are implemented > correctly, the format of the file containing service state should be > moot since no one will ever look at it Besides in emergencies. That's also the time where the tools you would urgently need to repair something aren't working because the system isn't completely up and running. Believe me: Editing XML using ed isn't that exciting. > (which is to say dbm or some > other binary-blob format should be used since it makes programming the > said library much cleaner). Who cares for the programmer? 8-) > But I just made that up. Of course such things are never as simple as > they sound the first time around. It's worse. Things that are looking great on paper often turn out to be a nightmare when you have to deal with it. And things like "I still intend on writing a plist format (the non-XML one) parser to incorporate into the code base [...]" on http://wiki.freebsd.org/launchd are scaring me even more (the only thing that makes .plists in binary format bearable is the fact that they can be transformed into XML and dealt with reasonable tools). Achim --Apple-Mail-40--726656953-- From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 10:30:05 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 472B6106564A; Thu, 7 Aug 2008 10:30:05 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 969A98FC22; Thu, 7 Aug 2008 10:30:04 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m77ATtCS004862; Thu, 7 Aug 2008 11:29:57 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.0 smtp.infracaninophile.co.uk m77ATtCS004862 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1218104998; bh=m5DhtiWQj0h2yM xQL/vnHGS9xHUGb755gwTtaziuWbQ=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<489ACE9D.4000606@infracaninophile.co.uk>|Date:=20Thu,=2 007=20Aug=202008=2011:29:49=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.16=20(X11/20080726)|MIME-Version:=201 .0|To:=20Jeremy=20Chadwick=20|CC:=20wbentley@fu turecis.com,=20hackers@freebsd.org|Subject:=20Re:=20Idea=20for=20Fr eeBSD|References:=20=20<20080807074332.GA17830@eos.sc1.parodius.com>|I n-Reply-To:=20<20080807074332.GA17830@eos.sc1.parodius.com>|X-Enigm ail-Version:=200.95.6|Content-Type:=20multipart/signed=3B=20micalg= 3Dpgp-sha256=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0 D=0A=20boundary=3D"------------enig19E667A98419EB952FCF3162"; b=Ie4 vk/qMy6A34lyr/sYAdSnvevSWBQirWwPI27OxMSQCrt+AjdiQM33mCFQq2DGhuGvVto OhC/QkKwdGBpX7NKMzgaNJv4AmoArSBaLbIVVqsKmq5/SWH19hmb2/d1VusBCqPLyHT 5cSgwoNO2xonU6Jd0n903PLdzc+gWzOdow= Message-ID: <489ACE9D.4000606@infracaninophile.co.uk> Date: Thu, 07 Aug 2008 11:29:49 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.16 (X11/20080726) MIME-Version: 1.0 To: Jeremy Chadwick References: <20080807074332.GA17830@eos.sc1.parodius.com> In-Reply-To: <20080807074332.GA17830@eos.sc1.parodius.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig19E667A98419EB952FCF3162" X-Virus-Scanned: ClamAV 0.93.3/7968/Thu Aug 7 09:32:30 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: hackers@freebsd.org, wbentley@futurecis.com Subject: Re: Idea for 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: Thu, 07 Aug 2008 10:30:05 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig19E667A98419EB952FCF3162 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Jeremy Chadwick wrote: > On Wed, Aug 06, 2008 at 07:14:51PM -0400, wbentley@futurecis.com wrote:= >> To who it may concern, >> >> I am A FreeBSD administrator as well as a Solaris Administrator. I = use >> BSD at home but Solaris at work. I love both OS's but I would like to >> increase the administrative capability of FreeBSD. >> >> In Solaris 10 the Services Management Facility (SMF) was introduced= =2E >> Basically what it does, is take all the rc.d scripts and puts them int= o >> a database to manage. Everything is converted to XML and two basic >> commands (svcs and svcadm) are used to manage everything. >=20 > I highly recommend you and anyone advocating the use of XML for such > things read the following whitepaper/study, in full: >=20 > http://www.cs.kent.ac.uk/pubs/2004/2102/content.pdf >=20 Heh. Loved all the little asides to Nancy... Amazing it hasn't been fixed in 4 years. Anyhow, yes: ASN.1 is smaller, and hence faster than XML for networked=20 applications. Which is fine, but as far as I can see doesn't address the= =20 question at hand. =20 There are two connected questions here: * What technology should be used to implement the FreeBSD rc.subr system? * What functionality could or should be added to the FreeBSD rc.subr=20 system? Where the answer to the first question clearly constrains the results of the second. So what are the requirements for the rc system? Off the top of my head -- and I've probably missed some vital considerations here -- in order of priority: 1 reliability. The system has to boot up. 2 repeatability. The system has to boot up in a consistent state 3 fault tolerance. The system cannot fail to boot up unless the problems really are terminal. 4 configurability. The system has to boot up correctly for all conceivable combinations of hardware and software. 5 portability. Should run on anything from the smallest of embedded devices to the most enormous high power super computers to the most transient of virtualized hosts. 6 manageability. Must be comprehensible by ordinary mortals. 7 efficiency. Must bring the system up as fast as is practicable and without excessive use of system resources What does XML-based technology bring to this? As the OP states the prima= ry=20 benefit is in manageability. I would contend that the advantage claimed here is rather less significant than indicated. We already have a centra= l database of configuration information -- /etc/rc.conf -- and while we don= 't have one single application to control starting and stopping services we = have the next best thing: a consistent user interface for calling the=20 individual rc-scripts. Indeed, as other posters have shown elsewhere in = this thread, adding that sort of functionality is only a Small Matter of = Programming using the existing tools. What's wrong wwith using XML? XML adds significantly to the complexity o= f=20 an rc system -- it's suddenly necessary to have another shlib or two and = several compiled applications available early in the boot process. XML=20 itself is too general-purpose: it has too much baggage designed for its = primary function of facilitating interoperation between diverse systems i= n=20 different zones of control, none of which is particularly applicable to=20 system startup. =20 I can see the attraction of writing a nice pointy-clicky database-backed = GUI management interface to encourage the uninitiated administrator, but = that can only be an adjunct to the current setup, not a replacement. If = you can't fix a broken system via a text only serial console accessed=20 across whatever sort of low-bandwidth emergency connectivity you could=20 imagine, then I suspect quite strongly it's not going to receive=20 wholehearted community approval. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig19E667A98419EB952FCF3162 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkiazqMACgkQ8Mjk52CukIzrhgCeNiZUcXPmiXr5yrjJDGF3wQgw 1DcAnRW/wIGfZNIYgTNnePoVV743pU0P =Y15w -----END PGP SIGNATURE----- --------------enig19E667A98419EB952FCF3162-- From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 10:30:25 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1819106567B for ; Thu, 7 Aug 2008 10:30:25 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 2DD908FC13 for ; Thu, 7 Aug 2008 10:30:24 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m77AULba046561 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 7 Aug 2008 13:30:21 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m77AULXj016504; Thu, 7 Aug 2008 13:30:21 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m77AUKxP016503; Thu, 7 Aug 2008 13:30:20 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 7 Aug 2008 13:30:20 +0300 From: Kostik Belousov To: sam Message-ID: <20080807103020.GS97161@deviant.kiev.zoral.com.ua> References: <489036A2.5060403@gmail.com> <48931AD1.1090609@gmail.com> <20080801143128.GJ97161@deviant.kiev.zoral.com.ua> <489AABA5.9070602@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cLlE6j+44ygFdGhU" Content-Disposition: inline In-Reply-To: <489AABA5.9070602@gmail.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Nate Eldredge , freebsd-hackers@freebsd.org Subject: Re: consolekit on 7.0-STABLE i386 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, 07 Aug 2008 10:30:25 -0000 --cLlE6j+44ygFdGhU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 07, 2008 at 12:00:37PM +0400, sam wrote: > Kostik Belousov wrote: > >On Fri, Aug 01, 2008 at 06:16:49PM +0400, sam wrote: > > =20 > >>Nate Eldredge wrote: > >> =20 > >>>On Wed, 30 Jul 2008, sam wrote: > >>> > >>> =20 > >>>>0 19 0 1113M 29M 112 0 0 0 32 0 0 1 100 5549= =20 > >>>>1682 11 1 88 > >>>>0 19 0 1113M 29M 297 0 0 0 136 0 0 2 122 78880= =20 > >>>>1749 6 7 87 > >>>>|-------------------------------------------------------------------- > >>>> > >>>>consolekit in |waitvt state, influencing on high volumes in procs-b > >>>> =20 > >>>I don't understand what the problem is. It looks like consolekit is= =20 > >>>sleeping and not using any CPU. "waitvt" just indicates where in the= =20 > >>>kernel it's sleeping. I don't understand what you mean by "high=20 > >>>volumes in procs-b". > >>> > >>> =20 > >>How-To-Repeat: > >>-------------------------------------------------------------- > >># (|cd /usr/ports/sysutils/consolekit/ && make install clean) > >> > >># /usr/local/etc/rc.d/dbus forcestart > >> > >># vmstat -w 1 > >>procs memory page disk faults cpu > >>r b w avm fre flt re pi po fr sr ad0 in sy cs us= =20 > >>sy id > >>2 1 0 62252K 644M 88 0 0 0 80 0 0 2 83 279 1 = =20 > >>1 98 > >>0 1 0 62252K 644M 0 0 0 0 0 0 0 4 134 292 0 = =20 > >>3 97 > >>0 1 0 62252K 644M 0 0 0 0 0 0 0 4 123 299 0 = =20 > >>2 98 > >>1 1 0 62252K 644M 0 0 0 0 0 0 0 3 120 305 0 = =20 > >>3 97 > >>^C > >># /usr/local/sbin/console-kit-daemon && vmstat -w 1 > >>procs memory page disk faults cpu > >>r b w avm fre flt re pi po fr sr ad0 in sy cs us= =20 > >>sy id > >>2 1 0 67572K 643M 88 0 0 0 80 0 0 2 83 279 1 = =20 > >>1 98 > >>0 16 0 68660K 643M 103 0 0 0 2 0 10 13 643 381 = =20 > >>2 4 94 > >>0 16 0 68660K 643M 0 0 0 0 0 0 0 3 120 281 = =20 > >>0 4 96 > >>0 16 0 68660K 643M 0 0 0 0 0 0 0 2 120 278 = =20 > >>0 3 97 > >>0 16 0 68660K 643M 0 0 0 0 12 0 28 34 120 385 = =20 > >>0 3 97 > >>0 16 0 68660K 643M 0 0 0 0 0 0 0 4 120 292 = =20 > >>0 3 97 > >>^C > >># > >>|-------------------------------------------------------------- > >> > >>please, any solution ... > >> =20 > > > >Solution for what ? There is nothing wrong with the system. > > > >For the purely estetisk purpose, you may look up the line > > tsleep(VTY_WCHAN(sc, i), PZERO | PCATCH, "waitvt", 0); > >or similar in sys/dev/syscons/syscons.c, and remove the "PZERO |" substr= ing > >from it. > > =20 > ok >=20 > Why proc-b on the HEAD, have low values (with working consolekit)? On what revision of HEAD ? I committed the change that causes the thread to sleep on the PZERO+1 priority instead of PZERO as r181286. --cLlE6j+44ygFdGhU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkiazrkACgkQC3+MBN1Mb4iYkACfT8MWlUhFoErlMWJ5+0efqnGV AjMAnAgL64V+YMo5FQ8IcTsxXATpuiJF =e2uI -----END PGP SIGNATURE----- --cLlE6j+44ygFdGhU-- From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 10:54:38 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6055106564A for ; Thu, 7 Aug 2008 10:54:38 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 2E4758FC12 for ; Thu, 7 Aug 2008 10:54:37 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so542270fgb.35 for ; Thu, 07 Aug 2008 03:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=MPVAXy8y1faXbD7CCNduRN52a7dspasNv9+eBwSvdjk=; b=hyrYChnByANh1/XA4a43JBA/k+BAseFF4Aw/CKWo9ghNDKEyiVER2ISn4FyKm7epcg 40v8+naJB7Sr+NuCE0ATx6c7q0xY8DU983QYYCPbypBv+usErDgpD+Fm0kP6MgFqSHJK pZelNUjL4gGowMWaDp+dzDIXVH3lAdpwcu7n8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=OQLgeiWO0pjNqMEEN7ZiU21ZHw2e0nD3WpWhaCg1W2bwHW4LdlVma/Jw8CiH8P1ZKf P7pu1c5OlYjeVfnwWjJkTunLW8V8i2FDFYFCMjkv3j3IuzI+cLTvhHO00dxpk9Ma3f34 jONQJO7C31UgKXltsRdKmN3L8tb0T+HyWyI1k= Received: by 10.86.50.8 with SMTP id x8mr1604741fgx.30.1218106476761; Thu, 07 Aug 2008 03:54:36 -0700 (PDT) Received: from ?192.168.1.107? ( [213.152.137.38]) by mx.google.com with ESMTPS id 4sm214103fgg.4.2008.08.07.03.54.34 (version=SSLv3 cipher=RC4-MD5); Thu, 07 Aug 2008 03:54:35 -0700 (PDT) Message-ID: <489AD467.4090300@gmail.com> Date: Thu, 07 Aug 2008 14:54:31 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Kostik Belousov References: <489036A2.5060403@gmail.com> <48931AD1.1090609@gmail.com> <20080801143128.GJ97161@deviant.kiev.zoral.com.ua> <489AABA5.9070602@gmail.com> <20080807103020.GS97161@deviant.kiev.zoral.com.ua> In-Reply-To: <20080807103020.GS97161@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: Nate Eldredge , freebsd-hackers@freebsd.org Subject: Re: consolekit on 7.0-STABLE i386 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, 07 Aug 2008 10:54:38 -0000 Kostik Belousov wrote: > On Thu, Aug 07, 2008 at 12:00:37PM +0400, sam wrote: > >> Kostik Belousov wrote: >> >>> On Fri, Aug 01, 2008 at 06:16:49PM +0400, sam wrote: >>> >>> >>>> Nate Eldredge wrote: >>>> >>>> >>>> 0 3 97 >>>> 0 16 0 68660K 643M 0 0 0 0 12 0 28 34 120 385 >>>> 0 3 97 >>>> 0 16 0 68660K 643M 0 0 0 0 0 0 0 4 120 292 >>>> 0 3 97 >>>> ^C >>>> # >>>> |-------------------------------------------------------------- >>>> >>>> please, any solution ... >>>> >>>> >>> Solution for what ? There is nothing wrong with the system. >>> >>> For the purely estetisk purpose, you may look up the line >>> tsleep(VTY_WCHAN(sc, i), PZERO | PCATCH, "waitvt", 0); >>> or similar in sys/dev/syscons/syscons.c, and remove the "PZERO |" substring >>> >> >from it. >> >>> >>> >> ok >> >> Why proc-b on the HEAD, have low values (with working consolekit)? >> > > On what revision of HEAD ? I committed the change that causes the thread > to sleep on the PZERO+1 priority instead of PZERO as r181286. > ------------------------------------- # uname -a FreeBSD 8.0-CURRENT FreeBSD 8.0-CURRENT #3: Fri Jul 4 20:01:51 MSD 2008 root@:/usr/obj/usr/src/sys/DAMASK i386 ------------------------------------- /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 11:17:26 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71D711065670 for ; Thu, 7 Aug 2008 11:17:26 +0000 (UTC) (envelope-from andenore@freebsd.org) Received: from smtp.bluecom.no (smtp.bluecom.no [193.75.75.28]) by mx1.freebsd.org (Postfix) with ESMTP id 777858FC18 for ; Thu, 7 Aug 2008 11:17:25 +0000 (UTC) (envelope-from andenore@freebsd.org) Received: from duckjen.nextgentel.no (cFC4401C3.dhcp.bluecom.no [195.1.68.252]) by smtp.bluecom.no (Postfix) with ESMTP id 43CED16F68B for ; Thu, 7 Aug 2008 12:56:30 +0200 (CEST) Date: Thu, 07 Aug 2008 12:53:20 +0200 To: "freebsd-hackers@freebsd.org" From: "Anders Nore" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: User-Agent: Opera Mail/9.50 (FreeBSD) Subject: Suggestion for 'pkg_add -r' 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, 07 Aug 2008 11:17:26 -0000 Hi, In my pkg_improved GSoC project I've added a nice feature for 'pkg_add -r' which displays the size of the file being downloaded as well as progress status in % and bytes/kb/mb/... and download speed. If someone could test it and comment it would be perfect, below you can find the patches for RELENG_7 and -CURRENT. (As for now pkg_add does not have a -q/Q option (quiet), but this could perhaps be used to deprecate the output?). RELENG_7: http://home.no.net/andenore/patches/pkg_install_2008-08-06_RELENG_7.diff CURRENT: http://home.no.net/andenore/patches/pkg_install_2008-08-06_CURRENT.diff Thanks, Anders Nore From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 11:18:20 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20D3B106564A for ; Thu, 7 Aug 2008 11:18:20 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 0CE938FC2D for ; Thu, 7 Aug 2008 11:18:19 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id EA48C1CC0AD; Thu, 7 Aug 2008 04:18:19 -0700 (PDT) Date: Thu, 7 Aug 2008 04:18:19 -0700 From: Jeremy Chadwick To: Matthias Apitz Message-ID: <20080807111819.GA23786@eos.sc1.parodius.com> References: <20080806125719.GA8008@rebelion.Sisis.de> <200808061729.m76HTVVh003285@lurza.secnetix.de> <20080807075453.GA3260@rebelion.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080807075453.GA3260@rebelion.Sisis.de> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, Oliver Fromme Subject: Re: USB key && kernel: da0: Attempt to query device size failed: UNIT ?ATTENTION, Medium not present 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, 07 Aug 2008 11:18:20 -0000 On Thu, Aug 07, 2008 at 09:54:53AM +0200, Matthias Apitz wrote: > El da Wednesday, August 06, 2008 a las 07:29:31PM +0200, Oliver Fromme escribi: > > > Matthias Apitz wrote: > > > I've updated usb/80361, see > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=80361 > > > because I have the same problem as well that an USB key attaches fine > > > when plugged in at boot time, but not later: > > > > I'm just wondering what happens if you enforce a rescan > > on the (virtual) SCSI bus. That is, after you have > > plugged in the USB stick and the problem occured, type > > "camcontrol rescan 0". > > > > this did not helped; I tried it a lot of times; also reading with dd(1) > from /dev/da0 did not helped; > > > If that doesn't help, please try this patch: > ... > > The problem is that this was a USB stick of a friend of me in which I > have created a booting FreeBSD so he can make the installation of it in > an eeePC; will try to get back this USB stick from him for further > tests... Can we get the brand and model of USB stick, and any specific model/version numbers that are on the device? The dmesg you provided doesn't have very good vendor strings in it (that's not your fault). I can tell you that in the case of *some* SanDisk USB sticks (and despite this, I still buy/use their products -- I like them), there are versions with buggy USB code on them. I spent quite some time with Supermicro trying to find out why a SanDisk USB stick would not boot on some of their servers -- it turned out to be broken/buggy firmware code inside of the USB stick itself. Replacing it with a different version (same size/model though) fixed the issue. Just something to be aware of... -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 11:41:24 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23ACA106566B; Thu, 7 Aug 2008 11:41:24 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id A650F8FC08; Thu, 7 Aug 2008 11:41:23 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([193.31.10.34]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Aug 2008 13:41:21 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m77BfJWE002077; Thu, 7 Aug 2008 13:41:19 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Thu, 7 Aug 2008 13:41:19 +0200 From: Matthias Apitz To: Jeremy Chadwick Message-ID: <20080807114119.GA2000@rebelion.Sisis.de> References: <20080806125719.GA8008@rebelion.Sisis.de> <200808061729.m76HTVVh003285@lurza.secnetix.de> <20080807075453.GA3260@rebelion.Sisis.de> <20080807111819.GA23786@eos.sc1.parodius.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080807111819.GA23786@eos.sc1.parodius.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) X-OriginalArrivalTime: 07 Aug 2008 11:41:21.0922 (UTC) FILETIME=[83B5B620:01C8F882] Cc: freebsd-hackers@freebsd.org, Matthias Apitz , Oliver Fromme Subject: Re: USB key && kernel: da0: Attempt to query device size failed: UNIT ?ATTENTION, Medium not present X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2008 11:41:24 -0000 El da Thursday, August 07, 2008 a las 04:18:19AM -0700, Jeremy Chadwick escribi: > Can we get the brand and model of USB stick, and any specific > model/version numbers that are on the device? The dmesg you provided > doesn't have very good vendor strings in it (that's not your fault). ... here we go: Aug 6 10:06:12 rebelion kernel: umass0: on uhub4 Aug 6 10:06:12 rebelion root: Unknown USB device: vendor 0x08ec product 0x0020 bus uhub4 Aug 6 10:06:12 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug 6 10:06:12 rebelion kernel: da0: Removable Direct Access SCSI-0 device Aug 6 10:06:12 rebelion kernel: da0: 40.000MB/s transfers Aug 6 10:06:12 rebelion kernel: da0: Attempt to query device size failed: UNIT ATTENTION, Medium not present seems to be this one: http://luhdc.berlios.de/Pages/USB//ViewSingle/ID=143/ matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 12:22:20 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 539521065680 for ; Thu, 7 Aug 2008 12:22:20 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 11DA18FC23 for ; Thu, 7 Aug 2008 12:22:19 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id C5B882049; Thu, 7 Aug 2008 14:04:40 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id 9E6108448E; Thu, 7 Aug 2008 14:04:40 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Michael B Allen" References: <78c6bd860808061934l133d8ca6nabbde8cd55cb1d27@mail.gmail.com> <20080807010638.267d7790@bhuda.mired.org> <78c6bd860808062331h674b951ei5f7ca95a930f1af4@mail.gmail.com> Date: Thu, 07 Aug 2008 14:04:40 +0200 In-Reply-To: <78c6bd860808062331h674b951ei5f7ca95a930f1af4@mail.gmail.com> (Michael B. Allen's message of "Thu, 7 Aug 2008 02:31:09 -0400") Message-ID: <86vdydf2uf.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org, Mike Meyer , wbentley@futurecis.com Subject: Re: Idea for 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: Thu, 07 Aug 2008 12:22:20 -0000 "Michael B Allen" writes: > I did not mean to say that the scripts themselves were decrepit. I > mean the whole Unix runlevel rc.d apparatus in general is decrepit. FreeBSD doesn't have runlevels. Solaris does. You don't like runlevels, but you want FreeBSD to be more like Solaris. Make up your mind... DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 12:35:16 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D74E31065681 for ; Thu, 7 Aug 2008 12:35:16 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from fallbackmx07.syd.optusnet.com.au (fallbackmx07.syd.optusnet.com.au [211.29.132.9]) by mx1.freebsd.org (Postfix) with ESMTP id 157468FC12 for ; Thu, 7 Aug 2008 12:35:15 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail36.syd.optusnet.com.au (mail36.syd.optusnet.com.au [211.29.133.76]) by fallbackmx07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m7792ZnY016069 for ; Thu, 7 Aug 2008 19:02:35 +1000 Received: from server.vk2pj.dyndns.org (c122-106-215-175.belrs3.nsw.optusnet.com.au [122.106.215.175]) by mail36.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m7792Uav019146 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 7 Aug 2008 19:02:32 +1000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.2) with ESMTP id m7792UjF064338; Thu, 7 Aug 2008 19:02:30 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m7792UXp064337; Thu, 7 Aug 2008 19:02:30 +1000 (EST) (envelope-from peter) Date: Thu, 7 Aug 2008 19:02:30 +1000 From: Peter Jeremy To: wbentley@futurecis.com Message-ID: <20080807090230.GF1359@server.vk2pj.dyndns.org> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Swj79WlilW4BQYVz" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) Cc: hackers@freebsd.org Subject: Re: Idea for 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: Thu, 07 Aug 2008 12:35:16 -0000 --Swj79WlilW4BQYVz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-Aug-06 19:14:51 -0400, wbentley@futurecis.com wrote: > In Solaris 10 the Services Management Facility (SMF) was introduced. The main purpose of SMF appears to be to drum up business for Sun's training courses by radically changing Sol10 Administration for little benefit. >Basically what it does, is take all the rc.d scripts and puts them into >a database to manage. Everything is converted to XML and two basic >commands (svcs and svcadm) are used to manage everything. So you take each line from inetd.conf (literally) and wrap it in several KB of XML. This definitely adds to bloat and doesn't even obey the spirit of XML (since the content of each inetd.conf entry remains opaque). I haven't looked at what happens to /etc/inittab or the rc.d scripts but I expect that it's similar. It's not clear what benefit this brings. The svcs and svcadm commands are among the most arcane I have bumped into during my >20 years of administering Unix. I agree that some of the process management facilities of SMF are better than exists for most FreeBSD daemons but don't believe that all the other baggage is worth the improvement. With FreeBSD, I can configure virtually all the system via a single text file - which is easily found and kepy under configuration control. With Sol10, there are random bits of configuration spread all over the system and there is no obvious way to control configuration. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --Swj79WlilW4BQYVz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkiauiYACgkQ/opHv/APuIc6ywCgs/RJWDqmCNF17ufVW4dUUiw6 2zsAnjsYrHyYGRPgvYY2obRUECPBxLJM =3ZZU -----END PGP SIGNATURE----- --Swj79WlilW4BQYVz-- From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 12:01:27 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 505321065671 for ; Thu, 7 Aug 2008 12:01:27 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 42D8D8FC25 for ; Thu, 7 Aug 2008 12:01:25 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.14.3/jtpda-5.4) with ESMTP id m77C1Nr3042992 for ; Thu, 7 Aug 2008 14:01:24 +0200 (CEST) X-Ids: 168 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id A32D489DDA for ; Thu, 7 Aug 2008 14:01:22 +0200 (CEST) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id 96D8E193; Thu, 7 Aug 2008 14:01:22 +0200 (CEST) Date: Thu, 7 Aug 2008 14:01:22 +0200 To: freebsd-hackers@freebsd.org Message-ID: <20080807120122.GA15142@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i From: michel@lpthe.jussieu.fr (Michel Talon) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (shiva.jussieu.fr [134.157.0.168]); Thu, 07 Aug 2008 14:01:24 +0200 (CEST) X-Virus-Scanned: ClamAV 0.93.3/7969/Thu Aug 7 11:12:24 2008 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at jchkmail.jussieu.fr with ID 489AE413.004 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 489AE413.004/134.157.10.1/parthe.lpthe.jussieu.fr/parthe.lpthe.jussieu.fr/ X-j-chkmail-Score: MSGID : 489AE413.004 on jchkmail.jussieu.fr : j-chkmail score : . : R=. U=. O=. B=0.041 -> S=0.041 X-j-chkmail-Status: Ham X-Mailman-Approved-At: Thu, 07 Aug 2008 12:38:22 +0000 Subject: Re: USB key && kernel: da0: ... 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, 07 Aug 2008 12:01:27 -0000 > Matthias Apitz wrote: > Aug 6 10:06:12 rebelion kernel: umass0: on uhub4 > Aug 6 10:06:12 rebelion root: Unknown USB device: vendor 0x08ec product 0x0020 bus uhub4 > Aug 6 10:06:12 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug 6 10:06:12 > rebelion kernel: da0: Removable Direct Access SCSI-0 device > Aug 6 10:06:12 rebelion kernel: da0: 40.000MB/s transfers > Aug 6 10:06:12 rebelion kernel: da0: Attempt to query device size failed: UNIT ATTENTION, Medium not present > Here is another example: Aug 5 14:48:59 niobe kernel: umass0: on uhub3 Aug 5 14:48:59 niobe root: Unknown USB device: vendor 0x0951 product 0x1603 bus uhub3 Aug 5 14:48:59 niobe kernel: da1 at umass-sim0 bus 0 target 0 lun 0 Aug 5 14:48:59 niobe kernel: da1: Removable Direct Access SCSI-2 device Aug 5 14:48:59 niobe kernel: da1: 40.000MB/s transfers Aug 5 14:48:59 niobe kernel: da1: 1905MB (3902464 512 byte sectors: 255H 63S/T 242C) Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR Aug 5 14:55:57 niobe kernel: umass0: at uhub3 port 5 (addr 2) disconnected Aug 5 14:55:57 niobe kernel: (da1:umass-sim0:0:0:0): lost device Aug 5 14:55:57 niobe kernel: (da1:umass-sim0:0:0:0): removing device entry Aug 5 14:55:57 niobe kernel: umass0: detached Needless to say, this stick works perfectly OK under Windows and Linux. -- Michel TALON From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 12:43:46 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BE5F106564A for ; Thu, 7 Aug 2008 12:43:46 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id 304A78FC14 for ; Thu, 7 Aug 2008 12:43:46 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so238663ywe.13 for ; Thu, 07 Aug 2008 05:43:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer:sender; bh=4drlkFXoKT29D5zNc2vkY14VBEFzLgOI1UT6n9HXMLA=; b=Dyr8A0mEvwmjftVGMNSygILLnZnl0/qbiSm1dh7p0KreREt+XnKpSkrH8vxF8jIHiU s8/QTZVo1S2kVA4iv9OCwLPsPrrK+RxO0K32QenlOwQS2kBh7BEACkJ98rOTEtaieijk /ktTuXT4qf4sBCGm0EYX+yRZx1rMc3130GzGk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer:sender; b=sX0DFOSOsKyhTWmBwSCbv7tPuMKyu6cHa//vad/akuABLif/Ftl/HhotunfzZ6R/Fo YPJlYtQD2UvtSwBcHIeOBPjMn5EECEgq8S7yA+Z/KjZzVpLHGHTTPoBx8LUO8NRC60J4 fnrouWGloKHv5ZP3P2aWRPfUg6O8L45a9yYrM= Received: by 10.151.141.16 with SMTP id t16mr2458674ybn.65.1218113025407; Thu, 07 Aug 2008 05:43:45 -0700 (PDT) Received: from ?10.0.0.14? ( [83.144.140.228]) by mx.google.com with ESMTPS id z26sm395019ele.7.2008.08.07.05.43.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 07 Aug 2008 05:43:44 -0700 (PDT) Message-Id: <1234BBCE-6698-4EF9-8B48-4F291AD78547@freebsd.org> From: Rui Paulo To: Anders Nore In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Thu, 7 Aug 2008 13:43:36 +0100 References: X-Mailer: Apple Mail (2.926) Sender: Rui Paulo Cc: "freebsd-hackers@freebsd.org" Subject: Re: Suggestion for 'pkg_add -r' 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, 07 Aug 2008 12:43:46 -0000 On 7 Aug 2008, at 11:53, Anders Nore wrote: > Hi, > > In my pkg_improved GSoC project I've added a nice feature for > 'pkg_add -r' which displays the size of the file being downloaded as > well as progress status in % and bytes/kb/mb/... and download speed. > If someone could test it and comment it would be perfect, below you > can find the patches for RELENG_7 and -CURRENT. (As for now pkg_add > does not have a -q/Q option (quiet), but this could perhaps be used > to deprecate the output?). > > RELENG_7: > http://home.no.net/andenore/patches/pkg_install_2008-08-06_RELENG_7.diff > > CURRENT: > http://home.no.net/andenore/patches/ > pkg_install_2008-08-06_CURRENT.diff Some comments: * I think you have reversed the patch. :-) * Build errors: cc1: warnings being treated as errors file.c:433: warning: no previous prototype for 'power' file.c:452: warning: no previous prototype for 'human_readable' file.c:474: warning: no previous prototype for 'printHumanReadable' file.c: In function 'printHumanReadable': file.c:482: warning: comparison between signed and unsigned parallels# ./pkg_add -r joe Fetching 321.2 kB from ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-current/Latest/joe.tbz ... Downloading: 100% 321.2 kB at 214.8 kB/ s Done Fetching 2.4 MB from ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-current/All/gettext-0.17_1.tbz ... Done Fetching 2.2 MB from ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-current/All/aspell-0.60.6_2.tbz ... Downloading: 201% 4.5 MB at 149.5 kB/s Something's wrong :-) Also, may I suggest that you make your output similar to fetch(1) ? Keep up the good work, -- Rui Paulo From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 12:49:58 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C286C106564A for ; Thu, 7 Aug 2008 12:49:58 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 831CF8FC27 for ; Thu, 7 Aug 2008 12:49:58 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id BA9D8207F; Thu, 7 Aug 2008 14:49:57 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id 9A35D8448E; Thu, 7 Aug 2008 14:49:57 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Peter Jeremy References: <20080807090230.GF1359@server.vk2pj.dyndns.org> Date: Thu, 07 Aug 2008 14:49:57 +0200 In-Reply-To: <20080807090230.GF1359@server.vk2pj.dyndns.org> (Peter Jeremy's message of "Thu, 7 Aug 2008 19:02:30 +1000") Message-ID: <86r691f0qy.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org, wbentley@futurecis.com Subject: Re: Idea for 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: Thu, 07 Aug 2008 12:49:58 -0000 Peter Jeremy writes: > So you take each line from inetd.conf (literally) and wrap it in > several KB of XML. This definitely adds to bloat and doesn't even > obey the spirit of XML (since the content of each inetd.conf entry > remains opaque). s/inetd/rc/g I completely agree with you - but I also agree with whoever it was that suggested adding enable / disable commands to rc.subr. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 12:50:28 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51785106567F for ; Thu, 7 Aug 2008 12:50:28 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id DB46D8FC1F for ; Thu, 7 Aug 2008 12:50:27 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([193.31.10.34]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Aug 2008 14:50:25 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m77CoNRU003911; Thu, 7 Aug 2008 14:50:23 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Thu, 7 Aug 2008 14:50:23 +0200 From: Matthias Apitz To: Michel Talon Message-ID: <20080807125023.GA3605@rebelion.Sisis.de> References: <20080807120122.GA15142@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080807120122.GA15142@lpthe.jussieu.fr> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) X-OriginalArrivalTime: 07 Aug 2008 12:50:25.0844 (UTC) FILETIME=[29AE0740:01C8F88C] Cc: freebsd-hackers@freebsd.org Subject: Re: USB key && kernel: da0: ... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2008 12:50:28 -0000 El da Thursday, August 07, 2008 a las 02:01:22PM +0200, Michel Talon escribi: > > Matthias Apitz wrote: > > Aug 6 10:06:12 rebelion kernel: umass0: on uhub4 > > Aug 6 10:06:12 rebelion root: Unknown USB device: vendor 0x08ec product 0x0020 bus uhub4 > > Aug 6 10:06:12 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug 6 10:06:12 > > rebelion kernel: da0: Removable Direct Access SCSI-0 device > > Aug 6 10:06:12 rebelion kernel: da0: 40.000MB/s transfers > > Aug 6 10:06:12 rebelion kernel: da0: Attempt to query device size failed: UNIT ATTENTION, Medium not present > > > > Here is another example: > > Aug 5 14:48:59 niobe kernel: umass0: on uhub3 > Aug 5 14:48:59 niobe root: Unknown USB device: vendor 0x0951 product 0x1603 bus uhub3 > Aug 5 14:48:59 niobe kernel: da1 at umass-sim0 bus 0 target 0 lun 0 > Aug 5 14:48:59 niobe kernel: da1: Removable Direct Access SCSI-2 device > Aug 5 14:48:59 niobe kernel: da1: 40.000MB/s transfers > Aug 5 14:48:59 niobe kernel: da1: 1905MB (3902464 512 byte sectors: 255H 63S/T 242C) > Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR ... Have you plug'ed in or out while writing to da1 another device in the USB? I saw this as well with a USB key which worked normaly until I did a plug'in/out on the bus; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 12:50:46 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 150011065681 for ; Thu, 7 Aug 2008 12:50:46 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 0478C8FC1D for ; Thu, 7 Aug 2008 12:50:45 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id C66261CC0B3; Thu, 7 Aug 2008 05:50:45 -0700 (PDT) Date: Thu, 7 Aug 2008 05:50:45 -0700 From: Jeremy Chadwick To: Michel Talon Message-ID: <20080807125045.GA29669@eos.sc1.parodius.com> References: <20080807120122.GA15142@lpthe.jussieu.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080807120122.GA15142@lpthe.jussieu.fr> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: USB key && kernel: da0: ... 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, 07 Aug 2008 12:50:46 -0000 On Thu, Aug 07, 2008 at 02:01:22PM +0200, Michel Talon wrote: > > Matthias Apitz wrote: > > Aug 6 10:06:12 rebelion kernel: umass0: on uhub4 > > Aug 6 10:06:12 rebelion root: Unknown USB device: vendor 0x08ec product 0x0020 bus uhub4 > > Aug 6 10:06:12 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug 6 10:06:12 > > rebelion kernel: da0: Removable Direct Access SCSI-0 device > > Aug 6 10:06:12 rebelion kernel: da0: 40.000MB/s transfers > > Aug 6 10:06:12 rebelion kernel: da0: Attempt to query device size failed: UNIT ATTENTION, Medium not present > > Here is another example: > > Aug 5 14:48:59 niobe kernel: umass0: on uhub3 > Aug 5 14:48:59 niobe root: Unknown USB device: vendor 0x0951 product 0x1603 bus uhub3 > Aug 5 14:48:59 niobe kernel: da1 at umass-sim0 bus 0 target 0 lun 0 > Aug 5 14:48:59 niobe kernel: da1: Removable Direct Access SCSI-2 device > Aug 5 14:48:59 niobe kernel: da1: 40.000MB/s transfers > Aug 5 14:48:59 niobe kernel: da1: 1905MB (3902464 512 byte sectors: 255H 63S/T 242C) > Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR > Aug 5 14:55:57 niobe kernel: umass0: at uhub3 port 5 (addr 2) disconnected > Aug 5 14:55:57 niobe kernel: (da1:umass-sim0:0:0:0): lost device > Aug 5 14:55:57 niobe kernel: (da1:umass-sim0:0:0:0): removing device entry > Aug 5 14:55:57 niobe kernel: umass0: detached > > Needless to say, this stick works perfectly OK under Windows and Linux. I have the 4GB model of this USB stick/drive. I'll give it a try on my FreeBSD RELENG_7 box when I get home in about an hour. If I can reproduce the issue, I will be more than happy to send it to someone who wants to debug it (and they can keep it as my way of saying thanks). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 13:34:58 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC87B10656C0 for ; Thu, 7 Aug 2008 13:34:58 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 9595C8FC08 for ; Thu, 7 Aug 2008 13:34:57 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.14.3/jtpda-5.4) with ESMTP id m77DYtIw024691 for ; Thu, 7 Aug 2008 15:34:56 +0200 (CEST) X-Ids: 166 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id AD1738A26E for ; Thu, 7 Aug 2008 15:34:54 +0200 (CEST) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id A2CB2193; Thu, 7 Aug 2008 15:34:54 +0200 (CEST) Date: Thu, 7 Aug 2008 15:34:54 +0200 From: Michel Talon To: freebsd-hackers@freebsd.org Message-ID: <20080807133454.GA15519@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV 0.93.3/7971/Thu Aug 7 13:45:11 2008 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at jchkmail.jussieu.fr with ID 489AF9FF.00D by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 489AF9FF.00D/134.157.10.1/parthe.lpthe.jussieu.fr/parthe.lpthe.jussieu.fr/ X-j-chkmail-Score: MSGID : 489AF9FF.00D on jchkmail.jussieu.fr : j-chkmail score : . : R=. U=. O=. B=0.055 -> S=0.055 X-j-chkmail-Status: Ham X-Mailman-Approved-At: Thu, 07 Aug 2008 13:44:28 +0000 Subject: Re: USB key && kernel: da0: ... 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, 07 Aug 2008 13:34:58 -0000 Matthias Apitz wrote: > Have you plug'ed in or out while writing to da1 another device in the > USB? I saw this as well with a USB key which worked normaly until I did > a plug'in/out on the bus; No, i did not touch to the usb bus. I tried to use the stick on several FreeBSD machines, without any success. One of them paniced. I had to reboot to Windows to read the stick and then download it from here for FreeBSD :-( -- Michel TALON From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 13:50:36 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DED6F1065671 for ; Thu, 7 Aug 2008 13:50:36 +0000 (UTC) (envelope-from andenore@freebsd.org) Received: from smtp.bluecom.no (smtp.bluecom.no [193.75.75.28]) by mx1.freebsd.org (Postfix) with ESMTP id 95C958FC1F for ; Thu, 7 Aug 2008 13:50:36 +0000 (UTC) (envelope-from andenore@freebsd.org) Received: from duckjen.nextgentel.no (cFC4401C3.dhcp.bluecom.no [195.1.68.252]) by smtp.bluecom.no (Postfix) with ESMTP id 53C7710D70A5; Thu, 7 Aug 2008 15:48:16 +0200 (CEST) Date: Thu, 07 Aug 2008 15:47:24 +0200 To: "Rui Paulo" From: "Anders Nore" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <1234BBCE-6698-4EF9-8B48-4F291AD78547@freebsd.org> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <1234BBCE-6698-4EF9-8B48-4F291AD78547@freebsd.org> User-Agent: Opera Mail/9.50 (FreeBSD) Cc: "freebsd-hackers@freebsd.org" Subject: Re: Suggestion for 'pkg_add -r' 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, 07 Aug 2008 13:50:37 -0000 >> >> RELENG_7: >> http://home.no.net/andenore/patches/pkg_install_2008-08-06_RELENG_7.diff >> >> CURRENT: >> http://home.no.net/andenore/patches/pkg_install_2008-08-06_CURRENT.diff > > Some comments: > * I think you have reversed the patch. :-) > * Build errors: > cc1: warnings being treated as errors > file.c:433: warning: no previous prototype for 'power' > file.c:452: warning: no previous prototype for 'human_readable' > file.c:474: warning: no previous prototype for 'printHumanReadable' > file.c: In function 'printHumanReadable': > file.c:482: warning: comparison between signed and unsigned > > parallels# ./pkg_add -r joe > Fetching 321.2 kB from > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-current/Latest/joe.tbz > ... > Downloading: 100% 321.2 kB at > 214.8 kB/s > Done > Fetching 2.4 MB from > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-current/All/gettext-0.17_1.tbz > ... > Done > Fetching 2.2 MB from > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-current/All/aspell-0.60.6_2.tbz > ... > Downloading: 201% 4.5 MB at > 149.5 kB/s > > Something's wrong :-) > Heh, yes. It's my first patch(es), so it didn't go as well as I had hoped, I believe they are fixed now. The numbers for percentage should also be corrected :-) > Also, may I suggest that you make your output similar to fetch(1) ? Yes, I will work on making it similar Thanks, Anders Nore From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 14:15:18 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 045AB106566C for ; Thu, 7 Aug 2008 14:15:18 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id E69E58FC21 for ; Thu, 7 Aug 2008 14:15:17 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id D226B1CC0B3; Thu, 7 Aug 2008 07:15:17 -0700 (PDT) Date: Thu, 7 Aug 2008 07:15:17 -0700 From: Jeremy Chadwick To: Michel Talon Message-ID: <20080807141517.GA32272@eos.sc1.parodius.com> References: <20080807120122.GA15142@lpthe.jussieu.fr> <20080807125045.GA29669@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080807125045.GA29669@eos.sc1.parodius.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: USB key && kernel: da0: ... 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, 07 Aug 2008 14:15:18 -0000 On Thu, Aug 07, 2008 at 05:50:45AM -0700, Jeremy Chadwick wrote: > On Thu, Aug 07, 2008 at 02:01:22PM +0200, Michel Talon wrote: > > > Matthias Apitz wrote: > > > Aug 6 10:06:12 rebelion kernel: umass0: on uhub4 > > > Aug 6 10:06:12 rebelion root: Unknown USB device: vendor 0x08ec product 0x0020 bus uhub4 > > > Aug 6 10:06:12 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug 6 10:06:12 > > > rebelion kernel: da0: Removable Direct Access SCSI-0 device > > > Aug 6 10:06:12 rebelion kernel: da0: 40.000MB/s transfers > > > Aug 6 10:06:12 rebelion kernel: da0: Attempt to query device size failed: UNIT ATTENTION, Medium not present > > > > Here is another example: > > > > Aug 5 14:48:59 niobe kernel: umass0: on uhub3 > > Aug 5 14:48:59 niobe root: Unknown USB device: vendor 0x0951 product 0x1603 bus uhub3 > > Aug 5 14:48:59 niobe kernel: da1 at umass-sim0 bus 0 target 0 lun 0 > > Aug 5 14:48:59 niobe kernel: da1: Removable Direct Access SCSI-2 device > > Aug 5 14:48:59 niobe kernel: da1: 40.000MB/s transfers > > Aug 5 14:48:59 niobe kernel: da1: 1905MB (3902464 512 byte sectors: 255H 63S/T 242C) > > Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR > > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR > > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR > > Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR > > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR > > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR > > Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR > > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR > > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR > > Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR > > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR > > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR > > Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR > > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR > > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-out clear stall failed, IOERROR > > Aug 5 14:55:57 niobe kernel: umass0: at uhub3 port 5 (addr 2) disconnected > > Aug 5 14:55:57 niobe kernel: (da1:umass-sim0:0:0:0): lost device > > Aug 5 14:55:57 niobe kernel: (da1:umass-sim0:0:0:0): removing device entry > > Aug 5 14:55:57 niobe kernel: umass0: detached > > > > Needless to say, this stick works perfectly OK under Windows and Linux. > > I have the 4GB model of this USB stick/drive. I'll give it a try on my > FreeBSD RELENG_7 box when I get home in about an hour. > > If I can reproduce the issue, I will be more than happy to send it to > someone who wants to debug it (and they can keep it as my way of saying > thanks). As promised, when I got home I inserted the Kingston I have. I should note this disk was formatted as FAT32 on a Windows machine, and was also made bootable via a Windows utility made by Hewlett Packard. This is what I got upon inserting the device: umass0: on uhub4 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 3836MB (7856128 512 byte sectors: 255H 63S/T 489C) GEOM_LABEL: Label for provider da0s1 is msdosfs/KINGSTON. icarus# camcontrol devlist at scbus0 target 0 lun 0 (da0,pass0) icarus# camcontrol inquiry da0 pass0: Removable Direct Access SCSI-2 device pass0: Serial Number 40.000MB/s transfers icarus# mount_msdosfs /dev/da0s1 /mnt icarus# df -k /mnt Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/da0s1 3920364 12 3920352 0% /mnt This looks correct (there is no data on the FAT32 filesystem). icarus# umount /mnt icarus# I then removed the stick, and got this: umass0: at uhub4 port 6 (addr 2) disconnected (da0:umass-sim0:0:0:0): lost deviceGEOM_LABEL (da0:umass-sim0:0:: 0:Label 0): msdosfs/KINGSTON removeremoving device entryd. umass0: detached Kernel messages are being printed atop one another is a known bug (it really needs to get fixed already, since increasing PRINTF_BUFR_SIZE to 256 only makes the problem slightly better), but as you can see, it worked fine. I'm thinking this may boil down to a problem with udbp(4) getting in the way, since it's responsible for the bulk (BBB) stuff. I yank udbp(4) out of my kernel because I don't see the point in including support for something I'll never use. (And are "bulk pipes" even part of the USB standard? I don't remember reading about them as part of the USB 1.0 specification, but that was a long time ago.) Here's the relevant portion of my kernel configuration: # SCSI peripherals device scbus # SCSI bus (required for SCSI) device da # Direct Access (disks) device cd # CD device pass # Passthrough device (direct SCSI access) device ses # SCSI Environmental Services (and SAF-TE) # USB support device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device ehci # EHCI PCI->USB interface (USB 2.0) device usb # USB Bus (required) #device udbp # USB Double Bulk Pipe devices device ugen # Generic device uhid # "Human Interface Devices" device ukbd # Keyboard device umass # Disks/Mass storage - Requires scbus and da device ums # Mouse I can provide full dmesg output if need be. Chipset is an Intel ICH7. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 14:16:29 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A1531065674 for ; Thu, 7 Aug 2008 14:16:29 +0000 (UTC) (envelope-from Oleg.Ginzburg@billing.ru) Received: from gw.billing.ru (gw.billing.ru [81.3.172.222]) by mx1.freebsd.org (Postfix) with ESMTP id 001E78FC19 for ; Thu, 7 Aug 2008 14:16:28 +0000 (UTC) (envelope-from Oleg.Ginzburg@billing.ru) Received: from srv-exch01.billing.ru ([172.20.0.18]) by srv-exch01.billing.ru ([172.20.0.18]) with mapi; Thu, 7 Aug 2008 18:06:06 +0400 From: "Ginzburg, Oleg" To: "freebsd-hackers@freebsd.org" Date: Thu, 7 Aug 2008 18:06:05 +0400 Thread-Topic: Samba, Response too big for UDP, retry with TCP, Kerberos implementation on FreeBSD Thread-Index: Acj4lgw2xvS/SETHSZ27r3xpnRp9XAAAFgUQ Message-ID: <04DB0C1CEA12F2449D23EDB4D0A138A8C782794195@srv-exch01.billing.ru> Accept-Language: ru-RU, en-US Content-Language: ru-RU X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: ru-RU, en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Samba, Response too big for UDP, retry with TCP, Kerberos implementation 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: Thu, 07 Aug 2008 14:16:29 -0000 //sorry for spamming to another freebsd-ports maillist. This channel is mor= e suitable// Hello, I receive a similar problem in a current configuration (FreeBSD 7.0-Release= amd64, samba-3.0.31_1) like this: http://lists.samba.org/archive/samba/2007-July/133625.html and most likely I assume problems both in Samba and in realization Kerberos= on FreeBSD (IMHO Samba more:) The problem consists that during the generation phase (libads/kerberos.c:cr= eate_local_private_krb5_conf_for_domain) of temporary file /var/db/samba/sm= b_krb5/krb5.conf. is lost the instruction for transport protocol (if they present in /etc/krb5.c= onf) So, temporary workaround for this problem looks like: 1) After unsuccessful execution $ net ads join ... Edit a file /var/db/samba/smb_krb5/krb5.conf., having added before = server a "tcp/" (of course, only if tcp proto is necessary tcp also it should be present in/etc/krd5.conf): -- [realms] =3D { kdc =3D tcp/ ... } -- 2) Then set forbid modification on a file chflags schg /var/db/samba/smb_krb5/krb5.conf. 3) And trying "net join " again, with ignoring of rename error (create_local_private_krb5_conf_for_domain: rename of /var/db/samba/smb_tmp= _krb5.IQraHE to /var/db/samba/smb_krb5/krb5.conf. failed. Errno Ope= ration not permitted..) Operation must end with success execution. Question - Whether two (FreeBSD/Samba) problems are valid here? (Samba generate not corrected file)+(Heimdal Kerberos FreeBSD not trying fo= rce a tcp? PS: similar problem are not present in MIT Kerberos (/usr/ports/= security/krb5)) -- CJSC "PETER-SERVICE" =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D Direct: +7 812 3261290 ext. 0423 Tel: +7 812 3261299 Fax: +7 812 3261298 E-mail: Oleg.Ginzburg@billing.ru URL: http://www.billing.ru From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 14:17:18 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30E78106564A for ; Thu, 7 Aug 2008 14:17:18 +0000 (UTC) (envelope-from jan.grant@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id E1BEF8FC17 for ; Thu, 7 Aug 2008 14:17:17 +0000 (UTC) (envelope-from jan.grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dirj.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1KR62G-0001EU-9I; Thu, 07 Aug 2008 15:00:22 +0100 Received: from cse-jg.cse.bris.ac.uk ([137.222.12.37]:49639) by mail.ilrt.bris.ac.uk with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1KR622-0001vK-MV; Thu, 07 Aug 2008 14:59:58 +0100 Date: Thu, 7 Aug 2008 14:59:58 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@tribble.ilrt.bris.ac.uk To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= In-Reply-To: <86r691f0qy.fsf@ds4.des.no> Message-ID: <20080807145747.L3840@tribble.ilrt.bris.ac.uk> References: <20080807090230.GF1359@server.vk2pj.dyndns.org> <86r691f0qy.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="2441343664-1481745069-1218117598=:3840" X-ILRT-MailScanner: Found to be clean X-ILRT-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.999, required 5, ALL_TRUSTED -1.80, AWL 0.80, BAYES_00 -2.60, J_CHICKENPOX_24 0.60) X-ILRT-MailScanner-From: jan.grant@bristol.ac.uk X-Spam-Status: No X-Spam-Score: -0.8 X-Spam-Level: / Cc: hackers@freebsd.org, wbentley@futurecis.com Subject: Re: Idea for 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: Thu, 07 Aug 2008 14:17:18 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --2441343664-1481745069-1218117598=:3840 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 7 Aug 2008, Dag-Erling Sm=F8rgrav wrote: > Peter Jeremy writes: > > So you take each line from inetd.conf (literally) and wrap it in > > several KB of XML. This definitely adds to bloat and doesn't even > > obey the spirit of XML (since the content of each inetd.conf entry > > remains opaque). >=20 > s/inetd/rc/g >=20 > I completely agree with you - but I also agree with whoever it was that > suggested adding enable / disable commands to rc.subr. inetd.conf too(!); see inetconv(1M) Whilst solaris has some nice bits and pieces, the tendency to take=20 configuration (static and dynamic) and shove it into an opaque database=20 I personally find problematic: compare the ISC and solaris dhcp servers,=20 for instance. enable/disable sound interesting, however. jan --=20 jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ =2E..You're visualising the _duck_ taped over my _mouth_..? --2441343664-1481745069-1218117598=:3840-- From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 15:04:33 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8BE7106569D; Thu, 7 Aug 2008 15:04:33 +0000 (UTC) (envelope-from gabor@kovesdan.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id 82D6E8FC1F; Thu, 7 Aug 2008 15:04:33 +0000 (UTC) (envelope-from gabor@kovesdan.org) Received: from localhost (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 6314814D69C2; Thu, 7 Aug 2008 16:46:47 +0200 (CEST) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.mypc.hu ([127.0.0.1]) by localhost (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Yo63A7PAMqyW; Thu, 7 Aug 2008 16:46:45 +0200 (CEST) Received: from [192.168.1.146] (catv-50629c59.catv.broadband.hu [80.98.156.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 0149F14D69C0; Thu, 7 Aug 2008 16:46:44 +0200 (CEST) Message-ID: <489B0ACD.80008@kovesdan.org> Date: Thu, 07 Aug 2008 16:46:37 +0200 From: Gabor Kovesdan User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: hackers@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 07 Aug 2008 15:49:03 +0000 Cc: fjoe@FreeBSD.org Subject: strange issue reading /dev/null 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, 07 Aug 2008 15:04:33 -0000 Hello, I'm wondering why fgetc() returns 0xff if called with /dev/null: #include #include int main(void) { int c; FILE *f; f = fopen("/dev/null", "r"); if (c != EOF) printf("%c\n", fgetc(f)); } > gcc foo.c > ./a.out This causes a bug in BSD grep as /dev/null is not distinguished from ordinary files in the code, thus I was expecting it just returned EOF, but in reality this is not the case. How such cases should be handled? Thanks in advance, Gbor From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 15:25:42 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 903131065676 for ; Thu, 7 Aug 2008 15:25:42 +0000 (UTC) (envelope-from mwm@mired.org) Received: from mired.org (five.mired.org [66.92.153.75]) by mx1.freebsd.org (Postfix) with ESMTP id 27F068FC19 for ; Thu, 7 Aug 2008 15:25:41 +0000 (UTC) (envelope-from mwm@mired.org) Received: (qmail 12888 invoked from network); 7 Aug 2008 11:24:43 -0400 Received: from unknown (HELO mbook.local) (192.168.195.193) by 0 with SMTP; 7 Aug 2008 11:24:43 -0400 Date: Thu, 7 Aug 2008 11:25:39 -0400 From: Mike Meyer To: Alex Kozlov Message-ID: <20080807112539.65380404@mbook.local> In-Reply-To: <20080807061500.GA23109@ravenloft.kiev.ua> References: <20080807061500.GA23109@ravenloft.kiev.ua> Organization: Meyer Consulting X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i386-apple-darwin9.2.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 07 Aug 2008 15:49:14 +0000 Cc: Michael B Allen , hackers@freebsd.org, spam@rm-rf.kiev.ua, Mike Meyer Subject: Re: Idea for 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: Thu, 07 Aug 2008 15:25:42 -0000 On Thu, 7 Aug 2008 09:15:00 +0300 Alex Kozlov wrote: > [1]: > $cat /usr/local/bin/service Basically what I had in mind, but it can be made more portable across FreeBSD configurations. > #!/bin/sh > > name=$1 > cmd=$2 > > . /etc/rc.subr > if [ -z "${name}" -o -z "${cmd}" ] > then > echo ${0##*/} service_name command > exit 3 > fi > > > if [ -r "/etc/rc.d/${name}" ] > then > run_rc_script "/etc/rc.d/${name}" ${cmd} > exit 0 > fi And here's where you go wrong. What you want now is: for dir in $local_startup; do if [ -r "${dir}/${name}" ] then run_rc_script "${dir}/${name}" ${cmd} exit 0 fi if [ -r "${dir}/${name}.sh" ] then run_rc_script "${dir}/${name}.sh" ${cmd} exit 0 fi done > > echo "service '${name}' not found" > exit 2 Thanks, http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 15:44:47 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 365B8106564A for ; Thu, 7 Aug 2008 15:44:47 +0000 (UTC) (envelope-from mwm@mired.org) Received: from mired.org (five.mired.org [66.92.153.75]) by mx1.freebsd.org (Postfix) with ESMTP id BC9B08FC19 for ; Thu, 7 Aug 2008 15:44:46 +0000 (UTC) (envelope-from mwm@mired.org) Received: (qmail 13287 invoked from network); 7 Aug 2008 11:43:48 -0400 Received: from unknown (HELO mbook.local) (192.168.195.193) by 0 with SMTP; 7 Aug 2008 11:43:48 -0400 Date: Thu, 7 Aug 2008 11:44:44 -0400 From: Mike Meyer To: Tim Kientzle Message-ID: <20080807114444.234d1887@mbook.local> In-Reply-To: <489A9344.3060306@freebsd.org> References: <78c6bd860808061934l133d8ca6nabbde8cd55cb1d27@mail.gmail.com> <20080807010638.267d7790@bhuda.mired.org> <489A9344.3060306@freebsd.org> Organization: Meyer Consulting X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i386-apple-darwin9.2.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 07 Aug 2008 15:49:27 +0000 Cc: Allen , wbentley@futurecis.com, Mike Meyer , Michael, hackers@freebsd.org Subject: Re: Idea for 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: Thu, 07 Aug 2008 15:44:47 -0000 On Wed, 06 Aug 2008 23:16:36 -0700 Tim Kientzle wrote: > > The Solaris smf tools provide some nice facilities: one is single > > interface to start, stop, check and restart all the services on a > > system. We pretty much have that ... > > > > The other is a single interface to enable, disable and query the > > status of all the services. All we really have is the last one... > > Sounds like the only missing pieces, then, are standard > ways to enable, disable, and configure services. How about: > > sudo /etc/rc.d/ssh enable > sudo /etc/rc.d/ssh disable > sudo /etc/rc.d/ssh configure > > That shouldn't be much of a stretch to implement, either. > The first two just append entries to /etc/rc.conf. The > third opens an editor with a list of variables supported > by this service and then appends the result to rc.conf. Well, that might work, but could lead to unintended consequences if you start missing settings from two different configure runs by continually appending without deleting the old settings. load_rc_config already sources /etc/rc.conf.d/"$_name". Working with that file instead of /etc/rc.conf would seem to be a cleaner solution. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 16:16:08 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 065431065680; Thu, 7 Aug 2008 16:16:08 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id C15638FC0A; Thu, 7 Aug 2008 16:16:07 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (HPooka@thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.3/8.14.3) with ESMTP id m77G03mw056317; Thu, 7 Aug 2008 11:00:03 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Thu, 7 Aug 2008 11:00:03 -0500 (CDT) From: "Sean C. Farley" To: Gabor Kovesdan In-Reply-To: <489B0ACD.80008@kovesdan.org> Message-ID: References: <489B0ACD.80008@kovesdan.org> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="56599777-1628545831-1218124803=:1056" X-Spam-Status: No, score=-4.4 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farley.org Cc: fjoe@FreeBSD.org, hackers@FreeBSD.org Subject: Re: strange issue reading /dev/null 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, 07 Aug 2008 16:16:08 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --56599777-1628545831-1218124803=:1056 Content-Type: TEXT/PLAIN; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8BIT On Thu, 7 Aug 2008, Gabor Kovesdan wrote: > Hello, > > I'm wondering why fgetc() returns 0xff if called with /dev/null: > > #include > #include > > int > main(void) > { > int c; > FILE *f; > > f = fopen("/dev/null", "r"); > > if (c != EOF) > printf("%c\n", fgetc(f)); > } > >> gcc foo.c >> ./a.out > > > This causes a bug in BSD grep as /dev/null is not distinguished from > ordinary files in the code, thus I was expecting it just returned EOF, > but in reality this is not the case. How such cases should be handled? You are testing c which has not been set. It works OK if you set c then do the test: + c = fgetc(f); if (c != EOF) - printf("%c\n", fgetc(f)); + printf("%c\n", c); Sean -- scf@FreeBSD.org --56599777-1628545831-1218124803=:1056-- From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 16:21:11 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CBBA10656C8; Thu, 7 Aug 2008 16:21:11 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id DF4E78FC0C; Thu, 7 Aug 2008 16:21:10 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.3/8.14.3/NETPLEX) with ESMTP id m77Fwv8p019660; Thu, 7 Aug 2008 11:58:57 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.0 (mail.netplex.net [204.213.176.10]); Thu, 07 Aug 2008 11:58:58 -0400 (EDT) Date: Thu, 7 Aug 2008 11:58:57 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Gabor Kovesdan In-Reply-To: <489B0ACD.80008@kovesdan.org> Message-ID: References: <489B0ACD.80008@kovesdan.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: fjoe@freebsd.org, hackers@freebsd.org Subject: Re: strange issue reading /dev/null X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2008 16:21:11 -0000 On Thu, 7 Aug 2008, Gabor Kovesdan wrote: > Hello, > > I'm wondering why fgetc() returns 0xff if called with /dev/null: > > #include > #include > > int > main(void) > { > int c; > FILE *f; > > f = fopen("/dev/null", "r"); > > if (c != EOF) > printf("%c\n", fgetc(f)); > } Hmmm, are you *sure* your code should not be written as follows: #include #include int main(int argc, char **argv) { FILE *f; int c; f = fopen("/dev/null", "r"); if (f != NULL) { c = fgetc(f); if (c != EOF) printf("%c\n", c); else printf("EOF encountered\n"); } return (0); } -- DE From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 16:25:08 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A7A9106568C for ; Thu, 7 Aug 2008 16:25:08 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47E598FC0C for ; Thu, 7 Aug 2008 16:25:08 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 153D01CC0B0; Thu, 7 Aug 2008 09:25:08 -0700 (PDT) Date: Thu, 7 Aug 2008 09:25:08 -0700 From: Jeremy Chadwick To: Gabor Kovesdan Message-ID: <20080807162508.GA37318@eos.sc1.parodius.com> References: <489B0ACD.80008@kovesdan.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <489B0ACD.80008@kovesdan.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: fjoe@FreeBSD.org, hackers@FreeBSD.org Subject: Re: strange issue reading /dev/null 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, 07 Aug 2008 16:25:08 -0000 On Thu, Aug 07, 2008 at 04:46:37PM +0200, Gabor Kovesdan wrote: > Hello, > > I'm wondering why fgetc() returns 0xff if called with /dev/null: > > #include > #include > > int > main(void) > { > int c; > FILE *f; > > f = fopen("/dev/null", "r"); > > if (c != EOF) > printf("%c\n", fgetc(f)); > } > > > gcc foo.c > > ./a.out > > > This causes a bug in BSD grep as /dev/null is not distinguished from > ordinary files in the code, thus I was expecting it just returned EOF, > but in reality this is not the case. How such cases should be handled? Your code is wrong -- you're not calling feof(). Please read the RETURN VALUES section of fgetc(3) in full, and slowly. :-) And your if() statement serves no purpose there. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 16:54:12 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE891106567E; Thu, 7 Aug 2008 16:54:12 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id B7F128FC16; Thu, 7 Aug 2008 16:54:12 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (HPooka@thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.3/8.14.3) with ESMTP id m77GsAi2006008; Thu, 7 Aug 2008 11:54:10 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Thu, 7 Aug 2008 11:54:10 -0500 (CDT) From: "Sean C. Farley" To: Gabor Kovesdan In-Reply-To: <489B22BD.5050109@kovesdan.org> Message-ID: References: <489B0ACD.80008@kovesdan.org> <489B22BD.5050109@kovesdan.org> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-4.4 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farley.org Cc: fjoe@FreeBSD.org, hackers@FreeBSD.org Subject: Re: strange issue reading /dev/null 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, 07 Aug 2008 16:54:13 -0000 On Thu, 7 Aug 2008, Gabor Kovesdan wrote: > Sean C. Farley ha scritto: >> You are testing c which has not been set. It works OK if you set c >> then do the test: >> >> + c = fgetc(f); >> if (c != EOF) >> - printf("%c\n", fgetc(f)); >> + printf("%c\n", c); > Yes, you are right, this is what I meant, I'm just a bit > disorganised.... > Thanks! You are welcome. Actually, what I found odd was that the base gcc did not warn about using an uninitialized variable using -Wall. Obviously, test fopen() and fgetc() return codes correctly as others have noted. I just assume you were not in your test program. Sean -- scf@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 17:02:36 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 159DE1065679; Thu, 7 Aug 2008 17:02:36 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id F41FA8FC14; Thu, 7 Aug 2008 17:02:35 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id E06AF1CC0B3; Thu, 7 Aug 2008 10:02:35 -0700 (PDT) Date: Thu, 7 Aug 2008 10:02:35 -0700 From: Jeremy Chadwick To: "Sean C. Farley" Message-ID: <20080807170235.GA39461@eos.sc1.parodius.com> References: <489B0ACD.80008@kovesdan.org> <489B22BD.5050109@kovesdan.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Gabor Kovesdan , fjoe@FreeBSD.org, hackers@FreeBSD.org Subject: Re: strange issue reading /dev/null 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, 07 Aug 2008 17:02:36 -0000 On Thu, Aug 07, 2008 at 11:54:10AM -0500, Sean C. Farley wrote: > On Thu, 7 Aug 2008, Gabor Kovesdan wrote: > >> Sean C. Farley ha scritto: >>> You are testing c which has not been set. It works OK if you set c >>> then do the test: >>> >>> + c = fgetc(f); >>> if (c != EOF) >>> - printf("%c\n", fgetc(f)); >>> + printf("%c\n", c); >> Yes, you are right, this is what I meant, I'm just a bit >> disorganised.... >> Thanks! > > You are welcome. > > Actually, what I found odd was that the base gcc did not warn about > using an uninitialized variable using -Wall. Probably because you didn't use -O. -Wall includes -Wuninitialized, but -Wuninitialized only applies if you use optimisation. gcc won't bail if you use -Wall without -O, for obvious reasons. Case in point: $ gcc -Wall -o x x.c x.c: In function 'main': x.c:14: warning: control reaches end of non-void function $ gcc -Wuninitialized -o x x.c cc1: warning: -Wuninitialized is not supported without -O $ gcc -Wall -O -o x x.c x.c: In function 'main': x.c:14: warning: control reaches end of non-void function x.c:12: warning: 'c' is used uninitialized in this function gcc -- finding new ways every day to drive programmers crazy. :-) -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 16:28:58 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5188106566C; Thu, 7 Aug 2008 16:28:58 +0000 (UTC) (envelope-from gabor@kovesdan.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id 77CF88FC08; Thu, 7 Aug 2008 16:28:58 +0000 (UTC) (envelope-from gabor@kovesdan.org) Received: from localhost (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 5A91414D6850; Thu, 7 Aug 2008 18:28:57 +0200 (CEST) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.mypc.hu ([127.0.0.1]) by localhost (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1yO4FUJNrVcG; Thu, 7 Aug 2008 18:28:55 +0200 (CEST) Received: from [192.168.1.146] (catv-50629c59.catv.broadband.hu [80.98.156.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 9540514D684E; Thu, 7 Aug 2008 18:28:53 +0200 (CEST) Message-ID: <489B22BD.5050109@kovesdan.org> Date: Thu, 07 Aug 2008 18:28:45 +0200 From: Gabor Kovesdan User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: "Sean C. Farley" References: <489B0ACD.80008@kovesdan.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 07 Aug 2008 17:04:03 +0000 Cc: fjoe@FreeBSD.org, hackers@FreeBSD.org Subject: Re: strange issue reading /dev/null 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, 07 Aug 2008 16:28:58 -0000 Sean C. Farley ha scritto: > You are testing c which has not been set. It works OK if you set c then > do the test: > > + c = fgetc(f); > if (c != EOF) > - printf("%c\n", fgetc(f)); > + printf("%c\n", c); Yes, you are right, this is what I meant, I'm just a bit disorganised.... Thanks! Gbor From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 17:19:23 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3861A1065672; Thu, 7 Aug 2008 17:19:23 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id F16B98FC0A; Thu, 7 Aug 2008 17:19:22 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (HPooka@thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.3/8.14.3) with ESMTP id m77HJK9E008012; Thu, 7 Aug 2008 12:19:21 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Thu, 7 Aug 2008 12:19:20 -0500 (CDT) From: "Sean C. Farley" To: Jeremy Chadwick In-Reply-To: <20080807170235.GA39461@eos.sc1.parodius.com> Message-ID: References: <489B0ACD.80008@kovesdan.org> <489B22BD.5050109@kovesdan.org> <20080807170235.GA39461@eos.sc1.parodius.com> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-4.4 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farley.org Cc: hackers@FreeBSD.org Subject: Re: strange issue reading /dev/null 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, 07 Aug 2008 17:19:23 -0000 On Thu, 7 Aug 2008, Jeremy Chadwick wrote: > On Thu, Aug 07, 2008 at 11:54:10AM -0500, Sean C. Farley wrote: >> On Thu, 7 Aug 2008, Gabor Kovesdan wrote: >>> Sean C. Farley ha scritto: >>>> You are testing c which has not been set. It works OK if you set c >>>> then do the test: >>>> >>>> + c = fgetc(f); >>>> if (c != EOF) >>>> - printf("%c\n", fgetc(f)); >>>> + printf("%c\n", c); >>> Yes, you are right, this is what I meant, I'm just a bit >>> disorganised.... >>> Thanks! >> >> You are welcome. >> >> Actually, what I found odd was that the base gcc did not warn about >> using an uninitialized variable using -Wall. > > Probably because you didn't use -O. -Wall includes -Wuninitialized, > but -Wuninitialized only applies if you use optimisation. gcc won't > bail if you use -Wall without -O, for obvious reasons. Case in point: You are correct; I did not use -O. > $ gcc -Wall -o x x.c > x.c: In function 'main': > x.c:14: warning: control reaches end of non-void function > > $ gcc -Wuninitialized -o x x.c > cc1: warning: -Wuninitialized is not supported without -O Heh. > $ gcc -Wall -O -o x x.c > x.c: In function 'main': > x.c:14: warning: control reaches end of non-void function > x.c:12: warning: 'c' is used uninitialized in this function > > gcc -- finding new ways every day to drive programmers crazy. :-) Grr! Optimization should not be a requirement for checking for uninitialized variables. Yes, gcc adds "fun" to development. Sean -- scf@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 17:26:56 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C9521065670 for ; Thu, 7 Aug 2008 17:26:56 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from istc.kiev.ua (wolf.istc.kiev.ua [193.108.236.1]) by mx1.freebsd.org (Postfix) with ESMTP id 8271B8FC20 for ; Thu, 7 Aug 2008 17:26:55 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from [91.123.146.100] (helo=ravenloft.kiev.ua) by istc.kiev.ua with esmtp (Exim 4.52) id 1KR9GE-000565-Qr; Thu, 07 Aug 2008 20:26:53 +0300 Date: Thu, 7 Aug 2008 20:26:50 +0300 From: Alex Kozlov To: Matthew Seaman , hackers@freebsd.org, Jeremy Chadwick , spam@rm-rf.kiev.ua Message-ID: <20080807172650.GA56516@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: 1.0 (+) X-Spam-Report: Content analysis detailz: (1.0 points, 10.0 required) * 1.0 URI_NOVOWEL URI: URI hostname has long non-vowel sequence Cc: Subject: Re: Idea for 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: Thu, 07 Aug 2008 17:26:56 -0000 On Thu, Aug 07, 2008 at 11:29:49AM +0100, Matthew Seaman wrote: > Jeremy Chadwick wrote: > > On Wed, Aug 06, 2008 at 07:14:51PM -0400, wbentley@futurecis.com wrote: > >> To who it may concern, > >> > >> I am A FreeBSD administrator as well as a Solaris Administrator. I use > >> BSD at home but Solaris at work. I love both OS's but I would like to > >> increase the administrative capability of FreeBSD. > >> > >> In Solaris 10 the Services Management Facility (SMF) was introduced. > >> Basically what it does, is take all the rc.d scripts and puts them into > >> a database to manage. Everything is converted to XML and two basic > >> commands (svcs and svcadm) are used to manage everything. > > > > I highly recommend you and anyone advocating the use of XML for such > > things read the following whitepaper/study, in full: > > > > http://www.cs.kent.ac.uk/pubs/2004/2102/content.pdf > > > > Heh. Loved all the little asides to Nancy... Amazing it hasn't been > fixed in 4 years. > > Anyhow, yes: ASN.1 is smaller, and hence faster than XML for networked > applications. Which is fine, but as far as I can see doesn't address the > question at hand. > > There are two connected questions here: > > * What technology should be used to implement the FreeBSD rc.subr > system? > > * What functionality could or should be added to the FreeBSD rc.subr > system? > > Where the answer to the first question clearly constrains the results > of the second. So what are the requirements for the rc system? Off > the top of my head -- and I've probably missed some vital considerations > here -- in order of priority: > > 1 reliability. The system has to boot up. > > 2 repeatability. The system has to boot up in a consistent state > > 3 fault tolerance. The system cannot fail to boot up unless the > problems really are terminal. > > 4 configurability. The system has to boot up correctly for all > conceivable combinations of hardware and software. > > 5 portability. Should run on anything from the smallest of > embedded devices to the most enormous high power super computers > to the most transient of virtualized hosts. > > 6 manageability. Must be comprehensible by ordinary mortals. > > 7 efficiency. Must bring the system up as fast as is practicable and > without excessive use of system resources > > What does XML-based technology bring to this? As the OP states the primary > benefit is in manageability. I would contend that the advantage claimed > here is rather less significant than indicated. We already have a central > database of configuration information -- /etc/rc.conf -- and while we don't > have one single application to control starting and stopping services we > have the next best thing: a consistent user interface for calling the > individual rc-scripts. Indeed, as other posters have shown elsewhere in > this thread, adding that sort of functionality is only a Small Matter of > Programming using the existing tools. > > What's wrong wwith using XML? XML adds significantly to the complexity of > an rc system -- it's suddenly necessary to have another shlib or two and > several compiled applications available early in the boot process. XML > itself is too general-purpose: it has too much baggage designed for its > primary function of facilitating interoperation between diverse systems in > different zones of control, none of which is particularly applicable to > system startup. While in general I agree with You, I must note that We already have xml parser (expat 1.95) for geom. See /lib/libbsdxml.so* -- Adios From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 16:58:30 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C3471065682; Thu, 7 Aug 2008 16:58:30 +0000 (UTC) (envelope-from gabor@kovesdan.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id B51EB8FC14; Thu, 7 Aug 2008 16:58:29 +0000 (UTC) (envelope-from gabor@kovesdan.org) Received: from localhost (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 196B814D6BC4; Thu, 7 Aug 2008 18:58:29 +0200 (CEST) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.mypc.hu ([127.0.0.1]) by localhost (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uLKJRmClqa+5; Thu, 7 Aug 2008 18:58:27 +0200 (CEST) Received: from [192.168.1.146] (catv-50629c59.catv.broadband.hu [80.98.156.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 2AB4314D6BBC; Thu, 7 Aug 2008 18:58:25 +0200 (CEST) Message-ID: <489B29A9.1090609@kovesdan.org> Date: Thu, 07 Aug 2008 18:58:17 +0200 From: Gabor Kovesdan User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: "Sean C. Farley" References: <489B0ACD.80008@kovesdan.org> <489B22BD.5050109@kovesdan.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 07 Aug 2008 17:39:10 +0000 Cc: fjoe@FreeBSD.org, hackers@FreeBSD.org Subject: Re: strange issue reading /dev/null 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, 07 Aug 2008 16:58:30 -0000 Sean C. Farley ha scritto: > On Thu, 7 Aug 2008, Gabor Kovesdan wrote: > >> Sean C. Farley ha scritto: >>> You are testing c which has not been set. It works OK if you set c >>> then do the test: >>> >>> + c = fgetc(f); >>> if (c != EOF) >>> - printf("%c\n", fgetc(f)); >>> + printf("%c\n", c); >> Yes, you are right, this is what I meant, I'm just a bit >> disorganised.... >> Thanks! > > You are welcome. > > Actually, what I found odd was that the base gcc did not warn about > using an uninitialized variable using -Wall. > > Obviously, test fopen() and fgetc() return codes correctly as others > have noted. I just assume you were not in your test program. Actaually, I wanted to track down why BSD grep echoed the y with the diaresis when I executed grep . Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BF521065685 for ; Thu, 7 Aug 2008 18:43:36 +0000 (UTC) (envelope-from dwmalone@maths.tcd.ie) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [IPv6:2001:770:10:300::86e2:510b]) by mx1.freebsd.org (Postfix) with SMTP id 7E9BC8FC08 for ; Thu, 7 Aug 2008 18:43:35 +0000 (UTC) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie ([134.226.81.10] helo=walton.maths.tcd.ie) by salmon.maths.tcd.ie with SMTP id ; 7 Aug 2008 19:43:31 +0100 (BST) Date: Thu, 7 Aug 2008 19:43:29 +0100 From: David Malone To: Matthias Apitz Message-ID: <20080807184329.GA52790@walton.maths.tcd.ie> References: <20080805094013.GA5654@rebelion.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080805094013.GA5654@rebelion.Sisis.de> User-Agent: Mutt/1.5.6i Sender: dwmalone@maths.tcd.ie Cc: freebsd-hackers@freebsd.org Subject: Re: restore of file system into USB key terrible slow 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, 07 Aug 2008 18:43:36 -0000 On Tue, Aug 05, 2008 at 11:40:13AM +0200, Matthias Apitz wrote: > What means 'Header with wrong dumpdate'? It's a warning message that probably shouldn't be printed, but has no impact other than the printing of the warning. We've fixed bug that causes it to be printed recently. David. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 18:47:39 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 260EF106567E; Thu, 7 Aug 2008 18:47:39 +0000 (UTC) (envelope-from dwmalone@maths.tcd.ie) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [IPv6:2001:770:10:300::86e2:510b]) by mx1.freebsd.org (Postfix) with SMTP id 1D3788FC13; Thu, 7 Aug 2008 18:47:37 +0000 (UTC) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie ([134.226.81.10] helo=walton.maths.tcd.ie) by salmon.maths.tcd.ie with SMTP id ; 7 Aug 2008 19:47:33 +0100 (BST) Date: Thu, 7 Aug 2008 19:47:31 +0100 From: David Malone To: Bruce Cran Message-ID: <20080807184731.GB52790@walton.maths.tcd.ie> References: <000301c8f6df$e1006ae0$a30140a0$@com> <55592.192.168.1.10.1217929950.squirrel@192.168.1.100> <20080805141450.T60740@mp2.macomnet.net> <20080805105057.GC1450@ted.stsp.name> <000801c8f6eb$111622f0$334268d0$@com> <20080805122817.GA89022@eos.sc1.parodius.com> <20080805223409.620e5044@tau.draftnet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080805223409.620e5044@tau.draftnet> User-Agent: Mutt/1.5.6i Sender: dwmalone@maths.tcd.ie Cc: freebsd-hackers@FreeBSD.org, Jeremy Chadwick , Clewlow' , 'Stefan Sperling' , 'Tim@FreeBSD.org, Pegasus Mc Cleaft Subject: Re: IPv6 CVS 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, 07 Aug 2008 18:47:39 -0000 On Tue, Aug 05, 2008 at 10:34:09PM +0100, Bruce Cran wrote: > The problem is cvsupd - since it's written in Modula3 and doesn't > support IPv6 you have to use an inetd/netcat hack to accept IPv6 > connections on the server. As mentioned in > http://lists.freebsd.org/pipermail/freebsd-current/2008-July/086710.html > cvsup18.freebsd.org and cvsup4.ru.freebsd.org both accept IPv6 > connections. cvsup.ie.freebsd.org also offers cvsup over IPv6: http://lists.freebsd.org/pipermail/freebsd-stable/2003-July/001983.html Amazingly, it was announced exactly 5 years to the day before the message about cvsup18 above. David. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 19:07:06 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0E471065670 for ; Thu, 7 Aug 2008 19:07:06 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail35.syd.optusnet.com.au (mail35.syd.optusnet.com.au [211.29.133.51]) by mx1.freebsd.org (Postfix) with ESMTP id 6FE448FC21 for ; Thu, 7 Aug 2008 19:07:06 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-215-175.belrs3.nsw.optusnet.com.au [122.106.215.175]) by mail35.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m77J72xx025920 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Aug 2008 05:07:04 +1000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.2) with ESMTP id m77J72F7003209; Fri, 8 Aug 2008 05:07:02 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m77J7262003208; Fri, 8 Aug 2008 05:07:02 +1000 (EST) (envelope-from peter) Date: Fri, 8 Aug 2008 05:07:02 +1000 From: Peter Jeremy To: "Sean C. Farley" Message-ID: <20080807190701.GJ64458@server.vk2pj.dyndns.org> References: <489B0ACD.80008@kovesdan.org> <489B22BD.5050109@kovesdan.org> <20080807170235.GA39461@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="St7VIuEGZ6dlpu13" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) Cc: hackers@freebsd.org Subject: Re: strange issue reading /dev/null 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, 07 Aug 2008 19:07:07 -0000 --St7VIuEGZ6dlpu13 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-Aug-07 12:19:20 -0500, "Sean C. Farley" wrote: >Grr! Optimization should not be a requirement for checking for >uninitialized variables. Yes, gcc adds "fun" to development. This is documented: `-Wuninitialized' Warn if an automatic variable is used without first being initialized or if a variable may be clobbered by a `setjmp' call. These warnings are possible only in optimizing compilation, because they require data flow information that is computed only when optimizing. If you do not specify `-O', you will not get these warnings. Instead, GCC will issue a warning about `-Wuninitialized' requiring `-O'. That explanation makes sense. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --St7VIuEGZ6dlpu13 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkibR9UACgkQ/opHv/APuIckDgCgjJzNW7N5aZA8oIfQuA6/bjGi tzMAmgKpkJWOiA7R6l/MI9282trNZoFi =xZhr -----END PGP SIGNATURE----- --St7VIuEGZ6dlpu13-- From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 19:48:46 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A6421065676 for ; Thu, 7 Aug 2008 19:48:46 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id CF2E18FC1D for ; Thu, 7 Aug 2008 19:48:45 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from feathers.mthelicon.com (host86-147-14-141.range86-147.btcentralplus.com [86.147.14.141]) (authenticated bits=0) by hercules.mthelicon.com (8.14.2/8.14.2) with ESMTP id m77JmdZM011012 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Thu, 7 Aug 2008 19:48:41 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc cleaft Organization: Feathers To: freebsd-hackers@freebsd.org Date: Thu, 7 Aug 2008 20:48:39 +0100 User-Agent: KMail/1.9.7 References: <000301c8f6df$e1006ae0$a30140a0$@com> <20080805223409.620e5044@tau.draftnet> <20080807184731.GB52790@walton.maths.tcd.ie> In-Reply-To: <20080807184731.GB52790@walton.maths.tcd.ie> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808072048.39358.ken@mthelicon.com> Cc: Bruce Cran , Jeremy Chadwick , Clewlow' , 'Stefan Sperling' , David Malone , 'Tim@freebsd.org Subject: Re: IPv6 CVS 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, 07 Aug 2008 19:48:46 -0000 On Thursday 07 August 2008 19:47:31 David Malone wrote: > On Tue, Aug 05, 2008 at 10:34:09PM +0100, Bruce Cran wrote: > > The problem is cvsupd - since it's written in Modula3 and doesn't > > support IPv6 you have to use an inetd/netcat hack to accept IPv6 > > connections on the server. As mentioned in > > http://lists.freebsd.org/pipermail/freebsd-current/2008-July/086710.html > > cvsup18.freebsd.org and cvsup4.ru.freebsd.org both accept IPv6 > > connections. > > cvsup.ie.freebsd.org also offers cvsup over IPv6: > > http://lists.freebsd.org/pipermail/freebsd-stable/2003-July/001983.html Thanks David, I just tried cvsup.ie.freebsd.org and it worked a treat as well.. I appreciate the information. > Amazingly, it was announced exactly 5 years to the day before the > message about cvsup18 above. Synchronisities... Dont you just love them ;> I thought about setting up a v6 cvsup server, if the community thought that another mirror would be useful. Don't know how that may be received, however.. Useful or just redundant? Peg From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 20:18:20 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74E38106564A; Thu, 7 Aug 2008 20:18:20 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mail.0x20.net (mail.ipv6.0x20.net [IPv6:2001:aa8:fffb::3]) by mx1.freebsd.org (Postfix) with ESMTP id 082ED8FC0A; Thu, 7 Aug 2008 20:18:19 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: by mail.0x20.net (Postfix, from userid 1002) id 69D603A696; Thu, 7 Aug 2008 22:18:18 +0200 (CEST) Date: Thu, 7 Aug 2008 22:18:18 +0200 From: Lars Engels To: Tim Kientzle Message-ID: <20080807201818.GS56464@e.0x20.net> References: <78c6bd860808061934l133d8ca6nabbde8cd55cb1d27@mail.gmail.com> <20080807010638.267d7790@bhuda.mired.org> <489A9344.3060306@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1BKOZKwX7DAU5odC" Content-Disposition: inline In-Reply-To: <489A9344.3060306@freebsd.org> X-Editor: VIM - Vi IMproved 7.1 X-Operation-System: FreeBSD 5.5-RELEASE-p19 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Mailman-Approved-At: Thu, 07 Aug 2008 20:31:09 +0000 Cc: Michael B Allen , Mike Meyer , wbentley@futurecis.com, hackers@freebsd.org Subject: Re: Idea for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Lars Engels List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2008 20:18:20 -0000 --1BKOZKwX7DAU5odC Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 06, 2008 at 11:16:36PM -0700, Tim Kientzle wrote: > >The Solaris smf tools provide some nice facilities: one is single > >interface to start, stop, check and restart all the services on a > >system. We pretty much have that ... > >The other is a single interface to enable, disable and query the > >status of all the services. All we really have is the last one... >=20 > Sounds like the only missing pieces, then, are standard > ways to enable, disable, and configure services. How about: >=20 > sudo /etc/rc.d/ssh enable > sudo /etc/rc.d/ssh disable > sudo /etc/rc.d/ssh configure >=20 > That shouldn't be much of a stretch to implement, either. > The first two just append entries to /etc/rc.conf. The > third opens an editor with a list of variables supported > by this service and then appends the result to rc.conf. Pretty much the same came to my mind some weeks ago. I'd propose a "rcadm" command like Solaris' svcadm, so you do not need to care about if the rc script is in /etc/rc.d or in /usr/local/etc/rc.d. And it would be safer to check if the service is already listed in rc.conf, so it doesn't get appended every time you enable a service. --1BKOZKwX7DAU5odC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkibWIoACgkQKc512sD3afgyCACgosC0rwzA0195Ir9aU+8pWDqC fgkAoK93sY8oWmEu4yIf5pjdp1PF8OER =OyVn -----END PGP SIGNATURE----- --1BKOZKwX7DAU5odC-- From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 20:52:15 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E65110656C8 for ; Thu, 7 Aug 2008 20:52:15 +0000 (UTC) (envelope-from lidl@rox.fddx.com) Received: from rox.fddx.com (rox.fddx.com [71.241.230.59]) by mx1.freebsd.org (Postfix) with ESMTP id 0F0A88FC13 for ; Thu, 7 Aug 2008 20:52:14 +0000 (UTC) (envelope-from lidl@rox.fddx.com) Received: from rox.fddx.com (localhost.pix.net [127.0.0.1]) by rox.fddx.com (8.13.8+Sun/8.13.8) with ESMTP id m77KKl3X013380; Thu, 7 Aug 2008 16:20:47 -0400 (EDT) Received: (from lidl@localhost) by rox.fddx.com (8.13.8+Sun/8.13.8/Submit) id m77KKgrl013378; Thu, 7 Aug 2008 16:20:42 -0400 (EDT) Date: Thu, 7 Aug 2008 16:20:42 -0400 From: "Kurt J. Lidl" To: Peter Jeremy Message-ID: <20080807202041.GB9084@pix.net> References: <20080807090230.GF1359@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080807090230.GF1359@server.vk2pj.dyndns.org> User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on rox.fddx.com X-Virus-Status: Clean Cc: hackers@freebsd.org, wbentley@futurecis.com Subject: Re: Idea for 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: Thu, 07 Aug 2008 20:52:15 -0000 On Thu, Aug 07, 2008 at 07:02:30PM +1000, Peter Jeremy wrote: > On 2008-Aug-06 19:14:51 -0400, wbentley@futurecis.com wrote: > > In Solaris 10 the Services Management Facility (SMF) was introduced. > > The main purpose of SMF appears to be to drum up business for Sun's > training courses by radically changing Sol10 Administration for little > benefit. The main purpose of SMF was to make it possible to programmatically control the system and deal with the myriad of different types of faults from the gazillion different things that people want to run on machines. It's complex because it has to deal with the real world. > >Basically what it does, is take all the rc.d scripts and puts them into > >a database to manage. Everything is converted to XML and two basic > >commands (svcs and svcadm) are used to manage everything. Actually, the inputs to the database are in XML, and this is distilled down to a binary representation in a sqlite database that actually drives the system. While the "svccfg" and "svcadm" interfaces do give you a single manner of dealing with the database (svccfg) and then the state of a given service (svcadm). The other thing that the SMF system captures entirely is the dependencies between the different daemons and services. I'm not sure that the rcorder stuff in FreeBSD is quite as complete. It could be, I just don't know. Also, there is versioning for the changes of the sqlite database in Solaris, so you can punt back to a earlier configuration without much hassle. > With FreeBSD, I can configure virtually all the system via a single > text file - which is easily found and kepy under configuration control. > With Sol10, there are random bits of configuration spread all over the > system and there is no obvious way to control configuration. Well, realistically, the sum of the files in /etc/rc.d and /usr/local/etc/rc.d are also needed, and you need a snapshot of all of those at a given instant in time to provably know how the system is going to configure when booted. -Kurt From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 22:33:28 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6526F1065675 for ; Thu, 7 Aug 2008 22:33:28 +0000 (UTC) (envelope-from andenore@freebsd.org) Received: from smtp.bluecom.no (smtp.bluecom.no [193.75.75.28]) by mx1.freebsd.org (Postfix) with ESMTP id ECDD08FC12 for ; Thu, 7 Aug 2008 22:33:27 +0000 (UTC) (envelope-from andenore@freebsd.org) Received: from duckjen.nextgentel.no (cFC4401C3.dhcp.bluecom.no [195.1.68.252]) by smtp.bluecom.no (Postfix) with ESMTP id 34C7310D76AF; Fri, 8 Aug 2008 00:31:07 +0200 (CEST) Date: Fri, 08 Aug 2008 00:30:16 +0200 To: "Lars Engels" From: "Anders Nore" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <1234BBCE-6698-4EF9-8B48-4F291AD78547@freebsd.org> <20080807204035.GT56464@e.0x20.net> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <20080807204035.GT56464@e.0x20.net> User-Agent: Opera Mail/9.50 (FreeBSD) Cc: "freebsd-hackers@freebsd.org" Subject: Re: Suggestion for 'pkg_add -r' 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, 07 Aug 2008 22:33:28 -0000 On Thu, 07 Aug 2008 22:40:35 +0200, Lars Engels wrote: > On Thu, Aug 07, 2008 at 03:47:24PM +0200, Anders Nore wrote: >> >> >> >>RELENG_7: >> >>http://home.no.net/andenore/patches/pkg_install_2008-08-06_RELENG_7.diff >> >> >> >>CURRENT: >> >>http://home.no.net/andenore/patches/pkg_install_2008-08-06_CURRENT.diff >> > >> >Some comments: >> > * I think you have reversed the patch. :-) >> > * Build errors: >> >cc1: warnings being treated as errors >> >file.c:433: warning: no previous prototype for 'power' >> >file.c:452: warning: no previous prototype for 'human_readable' >> >file.c:474: warning: no previous prototype for 'printHumanReadable' >> >file.c: In function 'printHumanReadable': >> >file.c:482: warning: comparison between signed and unsigned >> > >> >parallels# ./pkg_add -r joe >> >Fetching 321.2 kB from >> >ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-current/Latest/joe.tbz... >> > Downloading: 100% 321.2 kB at >> 214.8 kB/s >> > Done >> >Fetching 2.4 MB from >> >ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-current/All/gettext-0.17_1.tbz... >> > >> Done >> >Fetching 2.2 MB from >> >ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-current/All/aspell-0.60.6_2.tbz... >> > Downloading: 201% 4.5 MB at >> 149.5 kB/s >> > >> >Something's wrong :-) >> > >> >> Heh, yes. It's my first patch(es), so it didn't go as well as I had >> hoped, I believe they are >> fixed now. > > I just downloaded the patch and still get the warning: > /usr/src/usr.sbin/pkg_install/lib/file.c: In function > 'printHumanReadable': > /usr/src/usr.sbin/pkg_install/lib/file.c:486: warning: comparison > between signed and unsigned > *** Error code 1 > > Stop in /usr/src/usr.sbin/pkg_install/lib. > Hey, it should be fixed now. I don't know why this causes a stop in the compiling though? Thanks, Anders Nore From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 01:11:59 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0ECE4106567B for ; Fri, 8 Aug 2008 01:11:59 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.10]) by mx1.freebsd.org (Postfix) with ESMTP id E16798FC2C for ; Fri, 8 Aug 2008 01:11:58 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 20235 invoked from network); 8 Aug 2008 01:11:58 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 8 Aug 2008 01:11:58 -0000 Message-ID: <489B9D4D.4010009@telenix.org> Date: Thu, 07 Aug 2008 21:11:41 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: FreeBSD-Hackers X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: read with timeout ?? 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, 08 Aug 2008 01:11:59 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have my head lost in a code problem. I just hit a point where I need to do a read from an fd, but I need to associate it with a timeout, on the order of 1 second, something like that. I had the feeling that there's a function in FreeBSD's libc that makes that simple, but I forget the function name. If anyone can remember something like what I'm talking about, I sure would appreciate a function name. I can figure out how it works, if I could only dredge up that name. I just wouldn't like to come up with 4 pounds of code where it ought to be done with a 1-liner. If you're curious, I'm still working on that tablet driver for FreeBSD. It's taken me this long to figure out that Xorg driver code. The Xorg folks have been helpful, but basically, there's almost no docs, nearly no comments, and testing a driver isn't the easiest thing in the world. Regardless, I'm getting really close on this, finally. Thanks -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkibnQoACgkQz62J6PPcoOlIaQCdG5R0p0X/hXVYh/qkX/zK63/E y+EAn3ahlXnPGPzqSdVdhbx1YsEjT4qr =bA6Z -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 01:14:34 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2A6A1065673 for ; Fri, 8 Aug 2008 01:14:34 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id B4C218FC0A for ; Fri, 8 Aug 2008 01:14:34 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m781EXB12232; Thu, 7 Aug 2008 18:14:33 -0700 (PDT) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m781EXk17375; Thu, 7 Aug 2008 18:14:33 -0700 (PDT) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Thu, 7 Aug 2008 18:14:33 -0700 (PDT) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: Chuck Robey In-Reply-To: <489B9D4D.4010009@telenix.org> Message-ID: References: <489B9D4D.4010009@telenix.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD-Hackers Subject: Re: read with timeout ?? 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, 08 Aug 2008 01:14:34 -0000 On Thu, 7 Aug 2008, Chuck Robey wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I have my head lost in a code problem. I just hit a point where I need to do a > read from an fd, but I need to associate it with a timeout, on the order of 1 > second, something like that. I had the feeling that there's a function in > FreeBSD's libc that makes that simple, but I forget the function name. If > anyone can remember something like what I'm talking about, I sure would > appreciate a function name. I can figure out how it works, if I could only > dredge up that name. man 2 select -- Nate Eldredge neldredge@math.ucsd.edu From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 23:53:39 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E185A106566C for ; Thu, 7 Aug 2008 23:53:39 +0000 (UTC) (envelope-from wbentley@futurecis.com) Received: from mail1.futurecis.com (static-72-66-21-14.washdc.fios.verizon.net [72.66.21.14]) by mx1.freebsd.org (Postfix) with ESMTP id 9E9E58FC0A for ; Thu, 7 Aug 2008 23:53:39 +0000 (UTC) (envelope-from wbentley@futurecis.com) Received: (qmail 13225 invoked from network); 7 Aug 2008 23:25:40 -0000 Received: from unknown (HELO secure.futurecis.com) ([10.0.0.10]) (envelope-sender ) by mail1.futurecis.com (qmail-ldap-1.03) with SMTP for ; 7 Aug 2008 23:25:40 -0000 Received: from 130.76.96.17 (SquirrelMail authenticated user wbentley) by secure.futurecis.com with HTTP; Thu, 7 Aug 2008 19:20:27 -0400 (EDT) Message-ID: <78086795e6ab9676870368dcebb57b37.squirrel@secure.futurecis.com> Date: Thu, 7 Aug 2008 19:20:27 -0400 (EDT) From: wbentley@futurecis.com To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Mailman-Approved-At: Fri, 08 Aug 2008 02:04:41 +0000 Subject: Re: Idea for 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: Thu, 07 Aug 2008 23:53:40 -0000 I am surprised by the overwhelming response that this thread has acquired. I have spent the majority of the day reading all the responses that everyone has put forward. I would like to clear a few things up, comment on others, and suggest some solutions to a lot of good points that everyone has made so far. First let me reiterate a few things. I started in FreeBSD and it will always be my first love. Second, keep in mind that Solaris is a commercial product and must be viewed as such. Now that that is out of the way. I want to make it clear to everyone that I was not suggesting the idea of copying or reproducing any part of how Sun manages or implements its services; only the CONCEPT of how they do it. It does not have to be XML, or in a database or anything else. Actually I am thinking more along the lines of a wrapper that can read/modify/execute from rc.d and the rc.conf. After all, we do not want to make drastic changes. No one wants to re-write rc's or move them to another location. Even solaris still relies on rc scripts to exist. And I am sure I speak for all of us when I say that we all love the concept of how rc.conf handles everything. As some people have already pointed out multiple times so far, the idea of an enable/disable is a great idea. Maybe we can start with that and see how it goes and develop further based on need/requirements/accomplishments. I think a drop-in command like "rcadm" (someone mentioned this as an idea, but cant remember who) would be a good start for managing the states of services. Mike Meyer also brought up many good points that I agree with. Please try not to get caught up in the XML stuff, that is not a requirement or suggestion, it is just an example of how Sun did it, now how FreeBSD has to;) Someone recommended Puppet, but this is an entire framework that would have to be added/implemented and configured to work with FreeBSD as well as learning a new markup language for it. launchd has a lot of good ideas, but I am not sure how mature it is yet; maybe it is a good place to start. If we start with the basics and break it down and program this from a modular standpoint it is not so bad. Begin with the basic (high-level) approach. A shell script (service) that is aware of where rc scripts are located and that can keep track of what the current state of the services (PID's) are. An enable/disable command is nothing more that throwing a start/stop command to these rc files. The rc.conf can assist with knowing what should be enabled/disabled and what flags to throw at it. For EXAMPLE!!!!, (you got that, example only) Solaris uses one master service that is started first, and the whole point of that first service is to monitor the other services and know what state they are in and starts dependent services upon boot. Consider it the service manager almost. I could go on plenty about different ways this concept could be implemented but lets not go in the weeds to deep. A systematic approach to this would be the basics. Lets start with the idea of a enable/disable and go from there. On a side not, I am impressed with many of the points that were made and ideas already generated and all within less than 24 hours. I am glad I joined this list. Thank you all. > To who it may concern, > > I am A FreeBSD administrator as well as a Solaris Administrator. I use > BSD at home but Solaris at work. I love both OS's but I would like to > increase the administrative capability of FreeBSD. > > In Solaris 10 the Services Management Facility (SMF) was introduced. > Basically what it does, is take all the rc.d scripts and puts them into > a database to manage. Everything is converted to XML and two basic > commands (svcs and svcadm) are used to manage everything. > > I would like to submit the idea of implementing a similar environment > into FreeBSD. After looking through the developers links and googling I > found no project for FreeBSD that implemented anything similar to this. > I have included a link below to give a better understanding of SMF and > its capabilities. > > Is it possible, if it does not exist already, to look at the > possibility of implementing the concept of SMF into FreeBSD? I would > gladly be an active supporter in this endeavor. > > > Will Bentley > Future CIS > 410-782-5954 > "Your resource for computer expertise!" > > _______________________________________________ > 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 Fri Aug 8 02:50:48 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84FDD1065670 for ; Fri, 8 Aug 2008 02:50:48 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.187]) by mx1.freebsd.org (Postfix) with ESMTP id 098678FC15 for ; Fri, 8 Aug 2008 02:50:47 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by mu-out-0910.google.com with SMTP id i2so637390mue.3 for ; Thu, 07 Aug 2008 19:50:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=+E5L0PgI/J7fCBG90OLkzp7EWonNQO1NzFNVyJ1jc30=; b=exSqv1k/8RERYBwi1m69aCMVTbQlIWtUnzXgqeLH0mN7KHHPXjFCofE+ZSNLBChXjn qHIdJbQO/32smUiCsGgWiTD7JlI2FiZ0T2rXChmEajcSVahRyWEsl4gJz3okri7On+OZ MZldGuLCrJPGWNvUgKtnLY3vdm7Cp1EHhFVu8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=iq+HuH8Xa3vUj5kyGba2+EfSSkCuh37iWAtIy6Q1K22bNFMNxbqYMch19nwGnoCOCC b9PhzzO+RfRvqG/Dsaf0YqTfOVNDXJmOWj/rSNaI2DAoB2pYYD0N1Nq7cvTp4tXFDZkk S+P8SaUJeLyTgeCrRhz9Q4OE2jKLOgLhosrdk= Received: by 10.103.238.4 with SMTP id p4mr2634400mur.66.1218163845283; Thu, 07 Aug 2008 19:50:45 -0700 (PDT) Received: by 10.103.169.13 with HTTP; Thu, 7 Aug 2008 19:50:45 -0700 (PDT) Message-ID: Date: Thu, 7 Aug 2008 23:50:45 -0300 From: "Carlos A. M. dos Santos" To: "Chuck Robey" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <489B9D4D.4010009@telenix.org> Cc: Nate Eldredge , FreeBSD-Hackers Subject: Re: read with timeout ?? 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, 08 Aug 2008 02:50:48 -0000 On Thu, Aug 7, 2008 at 10:14 PM, Nate Eldredge wrote: > On Thu, 7 Aug 2008, Chuck Robey wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> I have my head lost in a code problem. I just hit a point where I need to >> do a >> read from an fd, but I need to associate it with a timeout, on the order >> of 1 >> second, something like that. I had the feeling that there's a function in >> FreeBSD's libc that makes that simple, but I forget the function name. If >> anyone can remember something like what I'm talking about, I sure would >> appreciate a function name. I can figure out how it works, if I could >> only >> dredge up that name. > > man 2 select If the fd is a socket then you can also use setsockopt(2) to set SO_RCVTIMEO and check for EWOULDBLOCK (same as EAGAIN) upon read(2) or recv(2) errors. The net effect is the same of using select but the syntax is simpler, IMO. -- If you think things can't get worse it's probably only because you lack sufficient imagination. From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 03:33:22 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFB321065674 for ; Fri, 8 Aug 2008 03:33:22 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from istc.kiev.ua (wolf.istc.kiev.ua [193.108.236.1]) by mx1.freebsd.org (Postfix) with ESMTP id 9BC778FC0C for ; Fri, 8 Aug 2008 03:33:22 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from [91.123.146.100] (helo=ravenloft.kiev.ua) by istc.kiev.ua with esmtp (Exim 4.52) id 1KRIj8-0002iH-1g; Fri, 08 Aug 2008 06:33:20 +0300 Date: Fri, 8 Aug 2008 06:33:17 +0300 From: Alex Kozlov To: Mike Meyer , hackers@freebsd.org, spam@rm-rf.kiev.ua Message-ID: <20080808033317.GA96397@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: 0.0 (/) X-Spam-Report: Content analysis detailz: (0.0 points, 10.0 required) Cc: Subject: Re: Idea for 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: Fri, 08 Aug 2008 03:33:23 -0000 On Thu, Aug 07, 2008 at 11:25:39AM -0400, Mike Meyer wrote: > On Thu, 7 Aug 2008 09:15:00 +0300 Alex Kozlov wrote: > > [1]: > > $cat /usr/local/bin/service > > Basically what I had in mind, but it can be made more portable across > FreeBSD configurations. > [...] > > And here's where you go wrong. What you want now is: Yes. This is more correct: #!/bin/sh name=$1 cmd=$2 if [ -z "${name}" -o -z "${cmd}" ]; then echo ${0##*/} service_name command exit 3 fi . /etc/rc.subr load_rc_config ${name} for dir in /etc/rc.d ${local_startup}; do if [ -r "${dir}/${name}" ]; then run_rc_script "${dir}/${name}" ${cmd} exit 0 fi if [ -r "${dir}/${name}.sh" ]; then run_rc_script "${dir}/${name}.sh" ${cmd} exit 0 fi done echo "service '${name}' not found" exit 2 -- Adios From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 08:10:05 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 554281065682 for ; Fri, 8 Aug 2008 08:10:05 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id AB6288FC1D for ; Fri, 8 Aug 2008 08:10:04 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1047079fgb.35 for ; Fri, 08 Aug 2008 01:10:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=TYKHMJrFSGSeX8YTch1eDfXLOl9q5dS1XXeQBiKHvbo=; b=WX3eXQZgRX3unFOUUYwX1i6ZIDR4Fmy+fatn2gEkBiIEMe2KE8TPNWscTCVqN3xaGH JkXd5TXVA/+h01x7rKAEt9AbxlHAlmZqGFhj74Ixvyd8scumQJ861lRLdL1A9T7GOlUz WoeJfipC5H3SGWhO23bIESWGQ3uuPqYaZX5UY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=wiYwHSmuakb7K0I3LzXrshImY4U0d1IURakXLogOLy6yymvw6qk2dJ2QW96sQf1MpN b8ltmujVFjkSkzbrGfegZOKf0nZ5kWTXcFKQMZ2A6fic8iHZbzdbl9oVWUquQVO69lUM ZASSkFiny/cU0aEIKGEVIkYNTMGztc2khYq1g= Received: by 10.86.100.19 with SMTP id x19mr2325642fgb.15.1218183002846; Fri, 08 Aug 2008 01:10:02 -0700 (PDT) Received: from ?192.168.1.107? ( [213.152.137.38]) by mx.google.com with ESMTPS id d4sm1317599fga.8.2008.08.08.01.10.00 (version=SSLv3 cipher=RC4-MD5); Fri, 08 Aug 2008 01:10:01 -0700 (PDT) Message-ID: <489BFF53.7060101@gmail.com> Date: Fri, 08 Aug 2008 12:09:55 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Jeremy Chadwick References: <489A7B64.4000306@gmail.com> <20080807050725.GA8969@eos.sc1.parodius.com> In-Reply-To: <20080807050725.GA8969@eos.sc1.parodius.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: em0: The EEPROM Checksum Is Not Valid 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, 08 Aug 2008 08:10:05 -0000 Jeremy Chadwick wrote: > On Thu, Aug 07, 2008 at 08:34:44AM +0400, Vladimir Ermakov wrote: > >> Hello >> >> my trouble with nic >> >> part of `dmesg` output >> --------------------------------------------------------------------- >> em0: port 0xec00-0xec3f mem >> 0xfebc0000-0xfebdffff,0xfeb80000-0xfebbffff irq 19 at device 2.0 on pci2 >> em0: The EEPROM Checksum Is Not Valid >> device_attach: em0 attach returned 5 >> ---------------------------------------------------------------------- >> >> part of `pciconf -lv` output >> ---------------------------------------------------------------------- >> em0@pci0:2:2:0: class=0x020000 card=0x10018086 chip=0x10268086 rev=0x01 >> hdr=0x00 >> vendor = 'Intel Corporation' >> device = '82545GM Gigabit Ethernet Controller' >> class = network >> subclass = ethernet >> ---------------------------------------------------------------------- >> >> uname output >> ---------------------------------------------------------------------- >> FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #2: Wed Jul 16 20:36:12 UTC 2008 >> root@:/usr/obj/usr/src/sys/STONE i386 >> ---------------------------------------------------------------------- >> >> please, any solution? >> > > Intel probably has a utility to reset the EEPROM settings on the NIC. > Jack Vogel may know where to get such a utility. > > I do not believe this problem is FreeBSD-related. > > thx took IBAUTIL.EXE from Intel`s site, now my Intel_NIC works /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 08:10:17 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28CFB10656F3 for ; Fri, 8 Aug 2008 08:10:17 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from mx.utwente.nl (unknown [IPv6:2001:610:1908:1000:204:23ff:feb7:b8fe]) by mx1.freebsd.org (Postfix) with ESMTP id 27AA88FC19 for ; Fri, 8 Aug 2008 08:10:15 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from lux.student.utwente.nl (lux.student.utwente.nl [130.89.170.81]) by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id m7889uDf003188; Fri, 8 Aug 2008 10:09:57 +0200 From: Pieter de Goeje To: freebsd-hackers@freebsd.org Date: Fri, 8 Aug 2008 10:09:55 +0200 User-Agent: KMail/1.9.7 References: <489B9D4D.4010009@telenix.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808081009.56521.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact servicedesk@icts.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: "Carlos A. M. dos Santos" , Nate Eldredge , Chuck Robey Subject: Re: read with timeout ?? 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, 08 Aug 2008 08:10:17 -0000 On Friday 08 August 2008, Carlos A. M. dos Santos wrote: > On Thu, Aug 7, 2008 at 10:14 PM, Nate Eldredge wrote: > > On Thu, 7 Aug 2008, Chuck Robey wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- > >> Hash: SHA1 > >> > >> I have my head lost in a code problem. I just hit a point where I need > >> to do a > >> read from an fd, but I need to associate it with a timeout, on the order > >> of 1 > >> second, something like that. I had the feeling that there's a function > >> in FreeBSD's libc that makes that simple, but I forget the function > >> name. If anyone can remember something like what I'm talking about, I > >> sure would appreciate a function name. I can figure out how it works, > >> if I could only > >> dredge up that name. > > > > man 2 select > > If the fd is a socket then you can also use setsockopt(2) to set > SO_RCVTIMEO and check for EWOULDBLOCK (same as EAGAIN) upon read(2) or > recv(2) errors. The net effect is the same of using select but the > syntax is simpler, IMO. I think poll(2) is also simpler than select for this purpose. -- Pieter de Goeje From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 08:57:11 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E78331065672 for ; Fri, 8 Aug 2008 08:57:11 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 643AE8FC1B for ; Fri, 8 Aug 2008 08:57:11 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman-macbook.lon.namesco.net (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m788vJAs074085 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Aug 2008 09:57:21 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <489C0A63.8040600@unsane.co.uk> Date: Fri, 08 Aug 2008 09:57:07 +0100 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Alex Kozlov References: <20080808033317.GA96397@ravenloft.kiev.ua> In-Reply-To: <20080808033317.GA96397@ravenloft.kiev.ua> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org, Mike Meyer Subject: Re: Idea for 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: Fri, 08 Aug 2008 08:57:12 -0000 Alex Kozlov wrote: > On Thu, Aug 07, 2008 at 11:25:39AM -0400, Mike Meyer wrote: > >> On Thu, 7 Aug 2008 09:15:00 +0300 Alex Kozlov wrote: >> >>> [1]: >>> $cat /usr/local/bin/service >>> >> Basically what I had in mind, but it can be made more portable across >> FreeBSD configurations. >> >> > [...] > >> And here's where you go wrong. What you want now is: >> > Yes. This is more correct: > > Just to save reimplementing the wheel, have a look also at the sysutils/bsdadminscripts port. it has rcstart (and various hardlinks,) which are intended for pretty much what youre intending I think. Vince > #!/bin/sh > > name=$1 > cmd=$2 > > if [ -z "${name}" -o -z "${cmd}" ]; then > echo ${0##*/} service_name command > exit 3 > fi > > . /etc/rc.subr > > load_rc_config ${name} > > for dir in /etc/rc.d ${local_startup}; do > if [ -r "${dir}/${name}" ]; then > run_rc_script "${dir}/${name}" ${cmd} > exit 0 > fi > > if [ -r "${dir}/${name}.sh" ]; then > run_rc_script "${dir}/${name}.sh" ${cmd} > exit 0 > fi > done > > echo "service '${name}' not found" > exit 2 > > > -- > Adios > _______________________________________________ > 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 Fri Aug 8 10:19:55 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C699106567B for ; Fri, 8 Aug 2008 10:19:55 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 1667A8FC17 for ; Fri, 8 Aug 2008 10:19:55 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 56276207E; Fri, 8 Aug 2008 12:19:54 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id 4430D8449B; Fri, 8 Aug 2008 12:19:54 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Alex Kozlov References: <20080807172650.GA56516@ravenloft.kiev.ua> Date: Fri, 08 Aug 2008 12:19:54 +0200 In-Reply-To: <20080807172650.GA56516@ravenloft.kiev.ua> (Alex Kozlov's message of "Thu, 7 Aug 2008 20:26:50 +0300") Message-ID: <86iquberlh.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org, Jeremy Chadwick Subject: Re: Idea for 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: Fri, 08 Aug 2008 10:19:55 -0000 Alex Kozlov writes: > Matthew Seaman writes: > > [...] XML itself is too general-purpose: it has too much baggage > > designed for its primary function of facilitating interoperation > > between diverse systems in different zones of control, none of which > > is particularly applicable to system startup. > While in general I agree with You, I must note that We already have > xml parser (expat 1.95) for geom. See /lib/libbsdxml.so* Non sequitur. The fact that we have an XML parser in base does not make XML more (or less) suitable for the task. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 14:33:59 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7E60106564A for ; Fri, 8 Aug 2008 14:33:59 +0000 (UTC) (envelope-from unixmania@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 5759A8FC32 for ; Fri, 8 Aug 2008 14:33:58 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by ug-out-1314.google.com with SMTP id q2so40869uge.37 for ; Fri, 08 Aug 2008 07:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=3LbnMryAYb0UsCIFCHfVvnvI9/B5Jqb7VCQ8RRv+ARM=; b=pFE2ntbCdZXylmymOs6n7J7cBxLD2naVG3JekQ0pug87oyEMEilJE7kEvKNNb20A24 Ymikg0n9KtJgz33pkhoCcNPpe0BZJWV98d/5MhPfq4kRgeczuKPoRAluTbuxpbBlwktV z6GrFCI6Rb9aqJ/gChGbPBivpgG0nh8CNvumI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=TCucdjx05z64hQN4KHZoh13JcD+0bAGJdlG8VgnyxUwvxbBvXGBCYFaMkM+6oDM4e8 NtMceaB+FUgAkIh2xcXkUZSJOd7C9ohLONvt4j15LGPLmyibjdcAWIKMhnbH/TxKP925 QpQPN5eoGTT9xBFWNTlwTnPCCicea6dhDT4xg= Received: by 10.103.131.18 with SMTP id i18mr3185344mun.116.1218206037760; Fri, 08 Aug 2008 07:33:57 -0700 (PDT) Received: by 10.103.169.13 with HTTP; Fri, 8 Aug 2008 07:33:57 -0700 (PDT) Message-ID: Date: Fri, 8 Aug 2008 11:33:57 -0300 From: "Carlos A. M. dos Santos" To: "Pieter de Goeje" In-Reply-To: <200808081009.56521.pieter@degoeje.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <489B9D4D.4010009@telenix.org> <200808081009.56521.pieter@degoeje.nl> Cc: freebsd-hackers@freebsd.org, freebsd-standards@freebsd.org Subject: Re: read with timeout ?? 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, 08 Aug 2008 14:33:59 -0000 On Fri, Aug 8, 2008 at 5:09 AM, Pieter de Goeje wrote: > On Friday 08 August 2008, Carlos A. M. dos Santos wrote: >> On Thu, Aug 7, 2008 at 10:14 PM, Nate Eldredge > wrote: >> > On Thu, 7 Aug 2008, Chuck Robey wrote: >> >> -----BEGIN PGP SIGNED MESSAGE----- >> >> Hash: SHA1 >> >> >> >> I have my head lost in a code problem. I just hit a point where I need >> >> to do a >> >> read from an fd, but I need to associate it with a timeout, on the order >> >> of 1 >> >> second, something like that. I had the feeling that there's a function >> >> in FreeBSD's libc that makes that simple, but I forget the function >> >> name. If anyone can remember something like what I'm talking about, I >> >> sure would appreciate a function name. I can figure out how it works, >> >> if I could only >> >> dredge up that name. >> > >> > man 2 select >> >> If the fd is a socket then you can also use setsockopt(2) to set >> SO_RCVTIMEO and check for EWOULDBLOCK (same as EAGAIN) upon read(2) or >> recv(2) errors. The net effect is the same of using select but the >> syntax is simpler, IMO. > > I think poll(2) is also simpler than select for this purpose. BTW, the setsockopt(2) manual page stands that a send or receive timeout returns with the error EWOULDBLOCK but read(2) recv(2) send(2) and write(2) only list EAGAIN in their ERRORS section. This is harmless on BSD and Linux because EAGAIN and EWOULDBLOCK are the same, but may sound confusing for people porting from/to System V. On HP-UX, for instance, recv(2) lists both EAGAIN and EWOULDBLOCK. The setsockopt man page should be improved in order to explain standards conformance and porting issues. I volunteer to do it but the changes must be reviewed by a native English speaker. -- If you think things can't get worse it's probably only because you lack sufficient imagination. From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 18:43:01 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74D68106566C for ; Fri, 8 Aug 2008 18:43:01 +0000 (UTC) (envelope-from pingmai@yahoo.com) Received: from web52908.mail.re2.yahoo.com (web52908.mail.re2.yahoo.com [206.190.49.18]) by mx1.freebsd.org (Postfix) with SMTP id 12EF18FC13 for ; Fri, 8 Aug 2008 18:43:00 +0000 (UTC) (envelope-from pingmai@yahoo.com) Received: (qmail 99136 invoked by uid 60001); 8 Aug 2008 18:16:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=t/v5Gp7Z+8QshEsnD/uCcmafXdpJlXaGfZcw/TEq73Hh5/zxcvGEKUt4oTIl54Oepu0CtulPWbiH+yKxHAP3GG5V729ngmhGFS2oXb/GZrQYbKilsFVV5n+tsSS7lYYg057yC+FT0DnI1ltLte5yTkC96Sumk71fj3rO+Jaa5P4=; Received: from [68.183.200.11] by web52908.mail.re2.yahoo.com via HTTP; Fri, 08 Aug 2008 11:16:20 PDT X-Mailer: YahooMailWebService/0.7.218 Date: Fri, 8 Aug 2008 11:16:20 -0700 (PDT) From: ping To: freebsd-drivers@freebsd.org, freebsd-acpi@freebsd.org, freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <374442.98765.qm@web52908.mail.re2.yahoo.com> Cc: Subject: missing interrupts? 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, 08 Aug 2008 18:43:01 -0000 this is an interrupt handler that's attached to irq 31 on ioapic1 on a 6.1R kernel, type INTR_TYPE_NET|INTR_MPSAFE. seems that it's missing interrupts. watching the KTR trace, it was running along fine, then it just stopped. intr handler stopped getting run. but the interrupt register on chip was high. is this a case of lost interrupts? or hardware problem? TIA, ping From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 19:08:01 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 162831065683 for ; Fri, 8 Aug 2008 19:08:01 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from istc.kiev.ua (wolf.istc.kiev.ua [193.108.236.1]) by mx1.freebsd.org (Postfix) with ESMTP id C03578FC17 for ; Fri, 8 Aug 2008 19:08:00 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from [91.123.146.100] (helo=ravenloft.kiev.ua) by istc.kiev.ua with esmtp (Exim 4.52) id 1KRXJb-000321-9J; Fri, 08 Aug 2008 22:07:57 +0300 Date: Fri, 8 Aug 2008 22:07:54 +0300 From: Alex Kozlov To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= , hackers@freebsd.org, spam@rm-rf.kiev.ua Message-ID: <20080808190754.GA6827@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Score: 1.0 (+) X-Spam-Report: Content analysis detailz: (1.0 points, 10.0 required) * 1.0 URI_NOVOWEL URI: URI hostname has long non-vowel sequence Cc: Subject: Re: Idea for 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: Fri, 08 Aug 2008 19:08:01 -0000 On Fri, Aug 08, 2008 at 12:19:54PM +0200, Dag-Erling Smrgrav wrote: > Alex Kozlov writes: > > Matthew Seaman writes: > > > [...] XML itself is too general-purpose: it has too much baggage > > > designed for its primary function of facilitating interoperation > > > between diverse systems in different zones of control, none of which > > > is particularly applicable to system startup. > > While in general I agree with You, I must note that We already have > > xml parser (expat 1.95) for geom. See /lib/libbsdxml.so* > Non sequitur. The fact that we have an XML parser in base does not make > XML more (or less) suitable for the task. I never said anything like this. Only that argument about 'to have another shlib or two... available early in the boot process' is invalid. -- Adios From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 19:13:54 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D74471065675 for ; Fri, 8 Aug 2008 19:13:54 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id AE3438FC14 for ; Fri, 8 Aug 2008 19:13:54 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so872518wfg.7 for ; Fri, 08 Aug 2008 12:13:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=9U736dGHLaPNjrwMKugXnsLvvED3RcbVzJb8znf4zJk=; b=xAwbh6m/vNEL9h8n6ZGmygIPV76h8E6ZrXmTxLVSbtjULn0Wnf1wPm7dJXApz2yk++ ZA/KnjciTl2RXcCrUbDC9eU6Rkpa866oA7q0WlP5vuhRPqRUMHz3qUi01Z42CJFngeRT G3TXETef/GXjtmLoswjTvnAZJCLwxxp2sRYaY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=LG2hT9PLNtPBnjgl7l5+E/oiJQt1RtsGwx5GuZc+ljHpaY0RDsnsXOXSs53TeTqmsl L10cuL81Xdmb7CDsvElZGF5KzmuDjDR5vqHNPq+DoIhf+xQ5whzXANc02z+Ext8RfBnf rkunubKQIUF1GtUTNQ/GR1mfe2hbqt/5Ye6/8= Received: by 10.142.163.1 with SMTP id l1mr1059134wfe.122.1218221235888; Fri, 08 Aug 2008 11:47:15 -0700 (PDT) Received: by 10.142.142.6 with HTTP; Fri, 8 Aug 2008 11:47:15 -0700 (PDT) Message-ID: Date: Fri, 8 Aug 2008 11:47:15 -0700 From: "Navdeep Parhar" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: mercurial working copy of FreeBSD src 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, 08 Aug 2008 19:13:54 -0000 Hello everyone, I'm looking for the fastest way to get a full mercurial repository of HEAD. I tried using hgsvn and the tree at http://svn.freebsd.org/base/head but it looks like the first hgpullsvn operation will take days (literally): $ hgimportsvn http://svn.freebsd.org/base/head $ cd head $ hgpullsvn <=== This will take a long long time Does anyone know of a faster way to do this? Is there a mercurial repository out there somewhere from where I can simply "hg clone" my copy? Regards, Navdeep From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 19:29:44 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 589C2106568A for ; Fri, 8 Aug 2008 19:29:44 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from istc.kiev.ua (wolf.istc.kiev.ua [193.108.236.1]) by mx1.freebsd.org (Postfix) with ESMTP id 15E628FC18 for ; Fri, 8 Aug 2008 19:29:43 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from [91.123.146.100] (helo=ravenloft.kiev.ua) by istc.kiev.ua with esmtp (Exim 4.52) id 1KRXee-0003Wi-0p; Fri, 08 Aug 2008 22:29:42 +0300 Date: Fri, 8 Aug 2008 22:29:38 +0300 From: Alex Kozlov To: Vincent Hoffman , hackers@freebsd.org, spam@rm-rf.kiev.ua Message-ID: <20080808192938.GA8126@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: 0.0 (/) X-Spam-Report: Content analysis detailz: (0.0 points, 10.0 required) Cc: Subject: Re: Idea for 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: Fri, 08 Aug 2008 19:29:44 -0000 On Fri, Aug 08, 2008 at 09:57:07AM +0100, Vincent Hoffman wrote: > > On Thu, Aug 07, 2008 at 11:25:39AM -0400, Mike Meyer wrote: > >> On Thu, 7 Aug 2008 09:15:00 +0300 Alex Kozlov wrote: > >>> [1]: > >>> $cat /usr/local/bin/service > >> Basically what I had in mind, but it can be made more portable across > >> FreeBSD configurations. > > [...] > >> And here's where you go wrong. What you want now is: > > Yes. This is more correct: > > > Just to save reimplementing the wheel, have a look also at the > sysutils/bsdadminscripts port. it has rcstart (and various hardlinks,) > which are intended for pretty much what youre intending I think. Too late, I think. This wheel was reimplemented, and quite some time ago ;-) Anyway, thanks for the pointer. I'll check on the weekends if pkg_libchk from bsdadminscripts is a suitable replacement for sysutils/libchk. -- Adios From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 20:27:42 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D5371065670 for ; Fri, 8 Aug 2008 20:27:42 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.freebsd.org (Postfix) with ESMTP id DBF348FC0A for ; Fri, 8 Aug 2008 20:27:41 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 21861 invoked from network); 8 Aug 2008 20:27:41 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 8 Aug 2008 20:27:41 -0000 Message-ID: <489CAC2F.1070907@telenix.org> Date: Fri, 08 Aug 2008 16:27:27 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: Pieter de Goeje References: <489B9D4D.4010009@telenix.org> <200808081009.56521.pieter@degoeje.nl> In-Reply-To: <200808081009.56521.pieter@degoeje.nl> X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "Carlos A. M. dos Santos" , freebsd-hackers@freebsd.org, Nate Eldredge Subject: Re: read with timeout ?? 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, 08 Aug 2008 20:27:42 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pieter de Goeje wrote: > On Friday 08 August 2008, Carlos A. M. dos Santos wrote: >> On Thu, Aug 7, 2008 at 10:14 PM, Nate Eldredge > wrote: >>> On Thu, 7 Aug 2008, Chuck Robey wrote: >>>> -----BEGIN PGP SIGNED MESSAGE----- >>>> Hash: SHA1 >>>> >>>> I have my head lost in a code problem. I just hit a point where I need >>>> to do a >>>> read from an fd, but I need to associate it with a timeout, on the order >>>> of 1 >>>> second, something like that. I had the feeling that there's a function >>>> in FreeBSD's libc that makes that simple, but I forget the function >>>> name. If anyone can remember something like what I'm talking about, I >>>> sure would appreciate a function name. I can figure out how it works, >>>> if I could only >>>> dredge up that name. >>> man 2 select >> If the fd is a socket then you can also use setsockopt(2) to set >> SO_RCVTIMEO and check for EWOULDBLOCK (same as EAGAIN) upon read(2) or >> recv(2) errors. The net effect is the same of using select but the >> syntax is simpler, IMO. > > I think poll(2) is also simpler than select for this purpose. > It does look like that, I need to check the implementation a bit, because the name of this thing makes me really suspicious about how often it checks for an fd for being ready for a read. I know select comes right back, I was under the impression that poll didn't use signals to do this. Anyhow, I sure do appreciate the hint, that's just exactly what I was asking for. Spending the time figuring it all out, that'll actually be fun for me. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkicrC8ACgkQz62J6PPcoOmYjACfWP/IGjSvak1hLYSJwWBKkTjb 8qUAoJfSYOZcPJKMqqUb3Y1mltG51sgI =USHT -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 20:31:04 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 188BF1065673 for ; Fri, 8 Aug 2008 20:31:04 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by mx1.freebsd.org (Postfix) with ESMTP id E58168FC08 for ; Fri, 8 Aug 2008 20:31:03 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 775 invoked from network); 8 Aug 2008 20:31:03 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 8 Aug 2008 20:31:03 -0000 Message-ID: <489CACF9.3030309@telenix.org> Date: Fri, 08 Aug 2008 16:30:49 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: "Carlos A. M. dos Santos" References: <489B9D4D.4010009@telenix.org> <200808081009.56521.pieter@degoeje.nl> In-Reply-To: X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Pieter de Goeje , freebsd-standards@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: read with timeout ?? 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, 08 Aug 2008 20:31:04 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Carlos A. M. dos Santos wrote: > On Fri, Aug 8, 2008 at 5:09 AM, Pieter de Goeje wrote: >> On Friday 08 August 2008, Carlos A. M. dos Santos wrote: >>> On Thu, Aug 7, 2008 at 10:14 PM, Nate Eldredge >> wrote: >>>> On Thu, 7 Aug 2008, Chuck Robey wrote: >>>>> -----BEGIN PGP SIGNED MESSAGE----- >>>>> Hash: SHA1 >>>>> >>>>> I have my head lost in a code problem. I just hit a point where I need >>>>> to do a >>>>> read from an fd, but I need to associate it with a timeout, on the order >>>>> of 1 >>>>> second, something like that. I had the feeling that there's a function >>>>> in FreeBSD's libc that makes that simple, but I forget the function >>>>> name. If anyone can remember something like what I'm talking about, I >>>>> sure would appreciate a function name. I can figure out how it works, >>>>> if I could only >>>>> dredge up that name. >>>> man 2 select >>> If the fd is a socket then you can also use setsockopt(2) to set >>> SO_RCVTIMEO and check for EWOULDBLOCK (same as EAGAIN) upon read(2) or >>> recv(2) errors. The net effect is the same of using select but the >>> syntax is simpler, IMO. >> I think poll(2) is also simpler than select for this purpose. > > BTW, the setsockopt(2) manual page stands that a send or receive > timeout returns with the error EWOULDBLOCK but read(2) recv(2) send(2) > and write(2) only list EAGAIN in their ERRORS section. This is > harmless on BSD and Linux because EAGAIN and EWOULDBLOCK are the same, > but may sound confusing for people porting from/to System V. On HP-UX, > for instance, recv(2) lists both EAGAIN and EWOULDBLOCK. > > The setsockopt man page should be improved in order to explain > standards conformance and porting issues. I volunteer to do it but the > changes must be reviewed by a native English speaker. > Carlos, lets not go off on the socket trip for me... while I personally enjoy such a email, I have to admit my own needs fall more into a plain-jame serial line, nothing a socket-oriented thing could help me with. However, if you want to discuss this just fo the fun of it, oh please, by all means do carry on! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkicrPkACgkQz62J6PPcoOmJowCfWPt1jHY4Gx0kOAQedVATHYDd BGYAoJe6JYuskZZe85AA63sgRBG1VGF0 =dNTn -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 20:53:21 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31FB01065674; Fri, 8 Aug 2008 20:53:21 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id C7AF98FC0C; Fri, 8 Aug 2008 20:53:20 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m78KrEBS031996; Fri, 8 Aug 2008 16:53:14 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-acpi@freebsd.org Date: Fri, 8 Aug 2008 16:10:03 -0400 User-Agent: KMail/1.9.7 References: <374442.98765.qm@web52908.mail.re2.yahoo.com> In-Reply-To: <374442.98765.qm@web52908.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808081610.03720.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Fri, 08 Aug 2008 16:53:14 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/7984/Fri Aug 8 14:51:24 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org, ping Subject: Re: missing interrupts? 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, 08 Aug 2008 20:53:21 -0000 On Friday 08 August 2008 02:16:20 pm ping wrote: > this is an interrupt handler that's attached to irq 31 on ioapic1 on a 6.1R kernel, type INTR_TYPE_NET|INTR_MPSAFE. seems that it's missing interrupts. watching the KTR trace, it was running along fine, then it just stopped. intr handler stopped getting run. but the interrupt register on chip was high. is this a case of lost interrupts? or hardware problem? There is one possible race in the I/O APIC code someone pointed me at recently. You can try expanding the scope of the icu_lock to cover all of ioapic_program_intpin() to see if it fixes your issue (sys///io_apic.c) -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 21:19:32 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82D20106566B for ; Fri, 8 Aug 2008 21:19:32 +0000 (UTC) (envelope-from v.haisman@sh.cvut.cz) Received: from service2.sh.cvut.cz (service2.sh.cvut.cz [IPv6:2001:718:2:0:217:a4ff:fe3f:b3d4]) by mx1.freebsd.org (Postfix) with ESMTP id D39D68FC0A for ; Fri, 8 Aug 2008 21:19:31 +0000 (UTC) (envelope-from v.haisman@sh.cvut.cz) Received: from localhost (localhost [127.0.0.1]) by service2.sh.cvut.cz (Postfix) with ESMTP id CF2CC13791F; Fri, 8 Aug 2008 23:19:30 +0200 (CEST) Received: from service2.sh.cvut.cz ([127.0.0.1]) by localhost (service2.sh.cvut.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25094-02; Fri, 8 Aug 2008 23:19:23 +0200 (CEST) Received: from [192.168.1.2] (r4v24.net.upc.cz [84.42.149.24]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by service2.sh.cvut.cz (Postfix) with ESMTP id 3EB3B13776C; Fri, 8 Aug 2008 23:19:23 +0200 (CEST) Message-ID: <489CB856.5060506@sh.cvut.cz> Date: Fri, 08 Aug 2008 23:19:18 +0200 From: =?UTF-8?B?VsOhY2xhdiBIYWlzbWFu?= User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Navdeep Parhar References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig6639CA6D36B4DBF1BF140AB6" X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at service2.sh.cvut.cz X-Spam-Status: No, hits=0.1 tagged_above=-255.0 required=5.0 tests=AWL, CRM114_HAM_00, JR_RCVD_TOO_FEW_HOPS X-Spam-Level: Cc: freebsd-hackers@freebsd.org Subject: Re: mercurial working copy of FreeBSD src 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, 08 Aug 2008 21:19:32 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6639CA6D36B4DBF1BF140AB6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Navdeep Parhar wrote, On 8.8.2008 20:47: > Hello everyone, >=20 > I'm looking for the fastest way to get a full mercurial repository of > HEAD. >=20 > I tried using hgsvn and the tree at http://svn.freebsd.org/base/head > but it looks like the first hgpullsvn operation will take days (literal= ly): >=20 > $ hgimportsvn http://svn.freebsd.org/base/head > $ cd head > $ hgpullsvn <=3D=3D=3D This will take a long long time >=20 > Does anyone know of a faster way to do this? Is there a mercurial > repository out there somewhere from where I can simply "hg clone" my > copy? Try this one: . >=20 > Regards, > Navdeep -- VH --------------enig6639CA6D36B4DBF1BF140AB6 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.9 (MingW32) iFYEAREIAAYFAkicuF0ACgkQhQBMvHf/WHlqIADfYh7tDgiUmkeC46OWnlyYH89V nXHDz8AC2YZ90QDfZVsRnSNiFNd6hwqT/0HZXQ/wimmqEVw3Hh6qGg== =4Iw/ -----END PGP SIGNATURE----- --------------enig6639CA6D36B4DBF1BF140AB6-- From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 21:26:16 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80AA9106566C for ; Fri, 8 Aug 2008 21:26:16 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (unknown [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 27BB68FC19 for ; Fri, 8 Aug 2008 21:26:16 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id B9FC128448 for ; Sat, 9 Aug 2008 05:26:14 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id A60E5EDA79B; Sat, 9 Aug 2008 05:26:13 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id XWOFQs0IE2MP; Sat, 9 Aug 2008 05:26:06 +0800 (CST) Received: from charlie.delphij.net (71.5.7.139.ptr.us.xo.net [71.5.7.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 96D8AEDA58C; Sat, 9 Aug 2008 05:26:05 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=kwaPokypDBolFSsNow+umtLP7pywJWOriL9Mq9zgE5ZJGCyF2Kz8PRhjI54m7jOcP 0YmW+6N+PzgvGF7GU96fQ== Message-ID: <489CB9E9.5010706@delphij.net> Date: Fri, 08 Aug 2008 14:26:01 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.16 (X11/20080725) MIME-Version: 1.0 To: Navdeep Parhar References: In-Reply-To: X-Enigmail-Version: 0.95.6 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: mercurial working copy of FreeBSD src X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2008 21:26:16 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Navdeep Parhar wrote: | Hello everyone, | | I'm looking for the fastest way to get a full mercurial repository of | HEAD. | | I tried using hgsvn and the tree at http://svn.freebsd.org/base/head | but it looks like the first hgpullsvn operation will take days (literally): | | $ hgimportsvn http://svn.freebsd.org/base/head | $ cd head | $ hgpullsvn <=== This will take a long long time | | Does anyone know of a faster way to do this? Is there a mercurial | repository out there somewhere from where I can simply "hg clone" my | copy? Perhaps someone should share a tarball of the hgpullsvn output, otherwise it would be a nightmare for svn.freebsd.org... Another thought would be the hg mirror provided by .fr people, which is http://hg.fr.freebsd.org/. Note that this seems to be a CVS sourced one. - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkicuekACgkQi+vbBBjt66AjNgCgqsUqGXUnIqrPgplIvt7X5Sz8 FowAoJRkW/ITN0I2UxalzK+ykYt8RLcY =fOap -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 21:31:20 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48A0B106567D for ; Fri, 8 Aug 2008 21:31:20 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.235]) by mx1.freebsd.org (Postfix) with ESMTP id 18AC88FC1C for ; Fri, 8 Aug 2008 21:31:19 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1747531rvf.43 for ; Fri, 08 Aug 2008 14:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=tC55BARW4dMT51IQJDMzj8EHjghPctRmW/dXMdjHrLw=; b=icdMWNvKl0/g13pQTBoiZpr9rCrisU32kgutc0pNAkPX6jNzPZKb3LqaASiowav1wz tzYyazFvKCgX5Zz8jgJMFJxUzJshj+eKOgrWXl5QjyaRbJsXrn69vvQhif3kVyhXH53f IPUyYScVBipMpqCu2FhYA/jOQdRFgAObqQDyg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=Li0hHYky7dFPAzv0ps2U6yfudnZnTwiO0i5iSep8xkQtp+cY8RWHIzLe9dNXcyZ8AO GW3SpCv2tJ1yB8DhhPz1e6K7YRDcmeDsZAAOcraWp7kUPJuXoB+df3x9pecgAS5EQzSQ RKAAfQv+1CbXt1Id0jWV+NI2jOp1wFGuhm8zU= Received: by 10.140.157.1 with SMTP id f1mr1698936rve.220.1218231079383; Fri, 08 Aug 2008 14:31:19 -0700 (PDT) Received: from insightsol.com ( [67.100.74.36]) by mx.google.com with ESMTPS id c20sm2870636rvf.1.2008.08.08.14.31.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 08 Aug 2008 14:31:18 -0700 (PDT) Date: Fri, 8 Aug 2008 14:31:12 -0700 From: Navdeep Parhar To: freebsd-hackers@freebsd.org Message-ID: <20080808212907.GA12267@insightsol.com> Mail-Followup-To: freebsd-hackers@freebsd.org References: <489CB856.5060506@sh.cvut.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <489CB856.5060506@sh.cvut.cz> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Subject: Re: mercurial working copy of FreeBSD src 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, 08 Aug 2008 21:31:20 -0000 >> Hello everyone, >> >> I'm looking for the fastest way to get a full mercurial repository of >> HEAD. >> >> I tried using hgsvn and the tree at http://svn.freebsd.org/base/head >> but it looks like the first hgpullsvn operation will take days (literally): >> >> $ hgimportsvn http://svn.freebsd.org/base/head >> $ cd head >> $ hgpullsvn <=== This will take a long long time >> >> Does anyone know of a faster way to do this? Is there a mercurial >> repository out there somewhere from where I can simply "hg clone" my >> copy? > Try this one: . > Thanks, this is exactly what I was looking for. Can you also tell me how and how often it is sync'ed with the main SVN repository? Regards, Navdeep > > > -- > VH > From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 22:51:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D09C21065676 for ; Fri, 8 Aug 2008 22:51:23 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id AD7948FC0C for ; Fri, 8 Aug 2008 22:51:23 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m78MpLB16030; Fri, 8 Aug 2008 15:51:21 -0700 (PDT) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m78MpLa15294; Fri, 8 Aug 2008 15:51:21 -0700 (PDT) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Fri, 8 Aug 2008 15:51:21 -0700 (PDT) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: Chuck Robey In-Reply-To: <489CAC2F.1070907@telenix.org> Message-ID: References: <489B9D4D.4010009@telenix.org> <200808081009.56521.pieter@degoeje.nl> <489CAC2F.1070907@telenix.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: "Carlos A. M. dos Santos" , Pieter de Goeje , Nate Eldredge , freebsd-hackers@freebsd.org Subject: Re: read with timeout ?? 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, 08 Aug 2008 22:51:23 -0000 On Fri, 8 Aug 2008, Chuck Robey wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Pieter de Goeje wrote: >> >> I think poll(2) is also simpler than select for this purpose. >> > > It does look like that, I need to check the implementation a bit, because the > name of this thing makes me really suspicious about how often it checks for an > fd for being ready for a read. I know select comes right back, I was under the > impression that poll didn't use signals to do this. AFAIK the effects are identical, just the arguments are set up in a different way. Both of them will block until the fd is ready and then return "immediately" (subject to other processes running of course). The name "poll" is a misnomer because it doesn't actually work by polling, but you can pretend that it does (and does so "infinitely often"). Neither one uses signals per se, though if the underlying hardware device is interrupt-driven, that will be what (indirectly) triggers the wake-up. poll does seem to be more convenient than messing about with fd_set's. select is older and so it comes to my mind first, that's all. -- Nate Eldredge neldredge@math.ucsd.edu From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 8 23:27:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 52E4C106567B for ; Fri, 8 Aug 2008 23:27:57 +0000 (UTC) (envelope-from pingmai@yahoo.com) Received: from web52907.mail.re2.yahoo.com (web52907.mail.re2.yahoo.com [206.190.49.17]) by mx1.freebsd.org (Postfix) with SMTP id DC5948FC1A for ; Fri, 8 Aug 2008 23:27:56 +0000 (UTC) (envelope-from pingmai@yahoo.com) Received: (qmail 17646 invoked by uid 60001); 8 Aug 2008 23:27:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=6HfrwK9DzTDHPv43tpxqEOiGCkrq6T+9AnVPMfioGgd6xNku9EjssaKBhuAj0HXKJVOLAUJvmUZfs9OxSspc7x89LejQ8YaGZIn1lqlIbu8ARIAuyDG02YBPLJ96+T/fvdABuqzFzgXWVVF2sxg/MM4hH7MemqsUXvzp/4OOEjk=; Received: from [68.183.200.11] by web52907.mail.re2.yahoo.com via HTTP; Fri, 08 Aug 2008 16:27:55 PDT X-Mailer: YahooMailWebService/0.7.218 Date: Fri, 8 Aug 2008 16:27:55 -0700 (PDT) From: Ping Mai To: freebsd-acpi@freebsd.org, John Baldwin In-Reply-To: <200808081610.03720.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <755343.17576.qm@web52907.mail.re2.yahoo.com> Cc: freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: missing interrupts? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pingmai@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2008 23:27:57 -0000 Thanks John. tried it but didn't help. --- On Fri, 8/8/08, John Baldwin wrote: > From: John Baldwin > Subject: Re: missing interrupts? > To: freebsd-acpi@freebsd.org > Cc: "ping" , freebsd-drivers@freebsd.org, freebsd-hackers@freebsd.org > Date: Friday, August 8, 2008, 1:10 PM > On Friday 08 August 2008 02:16:20 pm ping wrote: > > this is an interrupt handler that's attached to > irq 31 on ioapic1 on a 6.1R > kernel, type INTR_TYPE_NET|INTR_MPSAFE. seems that > it's missing interrupts. > watching the KTR trace, it was running along fine, then it > just stopped. > intr handler stopped getting run. but the interrupt > register on chip was > high. is this a case of lost interrupts? or hardware > problem? > > There is one possible race in the I/O APIC code someone > pointed me at > recently. You can try expanding the scope of the icu_lock > to cover all of > ioapic_program_intpin() to see if it fixes your issue > (sys///io_apic.c) > > -- > John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 9 00:45:24 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86E82106567C for ; Sat, 9 Aug 2008 00:45:24 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail17.syd.optusnet.com.au (mail17.syd.optusnet.com.au [211.29.132.198]) by mx1.freebsd.org (Postfix) with ESMTP id 168068FC0A for ; Sat, 9 Aug 2008 00:45:23 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-215-175.belrs3.nsw.optusnet.com.au [122.106.215.175]) by mail17.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m790jJxu016983 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Aug 2008 10:45:21 +1000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.2) with ESMTP id m790jINF057506; Sat, 9 Aug 2008 10:45:18 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m790jIca057505; Sat, 9 Aug 2008 10:45:18 +1000 (EST) (envelope-from peter) Date: Sat, 9 Aug 2008 10:45:18 +1000 From: Peter Jeremy To: Chuck Robey Message-ID: <20080809004518.GM64458@server.vk2pj.dyndns.org> References: <489B9D4D.4010009@telenix.org> <200808081009.56521.pieter@degoeje.nl> <489CACF9.3030309@telenix.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="e5bfZ/T2xnjpUIbw" Content-Disposition: inline In-Reply-To: <489CACF9.3030309@telenix.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: read with timeout ?? 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, 09 Aug 2008 00:45:24 -0000 --e5bfZ/T2xnjpUIbw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-Aug-08 16:30:49 -0400, Chuck Robey wrote: >such a email, I have to admit my own needs fall more into a plain-jame ser= ial >line, nothing a socket-oriented thing could help me with. If this is a normal serial port then termios(4) might help: Use non-canonical processing with VMIN =3D 0 and VTIME =3D 10 (see the section "Noncanonical Mode Input Processing"). --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --e5bfZ/T2xnjpUIbw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkic6J4ACgkQ/opHv/APuIcUvgCfWgg4IHil+Yb6AVk2NIWv4MtM P0UAoJ/2Uqii0/1HnK+gazKd4+rLokMi =McmX -----END PGP SIGNATURE----- --e5bfZ/T2xnjpUIbw-- From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 9 06:45:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CA331065674 for ; Sat, 9 Aug 2008 06:45:41 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 828AD8FC0C for ; Sat, 9 Aug 2008 06:45:40 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (adsl19-159.kln.forthnet.gr [77.49.146.159]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id m796RXnX002366 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 9 Aug 2008 09:27:39 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m796RXiR085518; Sat, 9 Aug 2008 09:27:33 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m796RWsb085517; Sat, 9 Aug 2008 09:27:32 +0300 (EEST) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas To: "Navdeep Parhar" References: Date: Sat, 09 Aug 2008 09:27:24 +0300 In-Reply-To: (Navdeep Parhar's message of "Fri, 8 Aug 2008 11:47:15 -0700") Message-ID: <87tzdu1z5f.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-MailScanner-ID: m796RXnX002366 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.273, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.13, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: freebsd-hackers@freebsd.org Subject: Re: mercurial working copy of FreeBSD src 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, 09 Aug 2008 06:45:41 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Fri, 8 Aug 2008 11:47:15 -0700, "Navdeep Parhar" wro= te: > Hello everyone, > > I'm looking for the fastest way to get a full mercurial repository of > HEAD. Do you really want the *FULL* history of head? It's probably going to be in the order of a couple of hundred of MB, or even more. If you can live with an Hg repository that only includes the 2008 history of 'HEAD', then please keep reading, you may like the rest of this post :) > I tried using hgsvn and the tree at http://svn.freebsd.org/base/head > but it looks like the first hgpullsvn operation will take days (literally= ): hgpullsvn is slow. Really really *REALLY* slow... It's probably a better idea to get a recent version of the mercurial/crew branch. This includes support for the svn-1.5.X bindings, and you can convert parts of the history of the /base/head branch. I have a local hg tree with the history of the 'head' branch since 2008-01-01 on my laptop, which I periodically resync from svn with: keramida@kobe:/home/keramida$ cd /hg/bsd keramida@kobe:/hg/bsd$ ./pull-head.sh scanning source... sorting... converting... [lots of output snipped] keramida@kobe:/hg/bsd/head$ hg shortlog --limit 2 4201:99f1acdec12f | 2008-08-09 04:08 +0000 | imp: Rather than waiting a= fixed amount of time, which might not be enough 4200:d5553c08bf90 | 2008-08-09 03:54 +0000 | imp: Change -1 to 0xffffff= fful since the interface returns uint32_t. (1) A bit of background =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I didn't really want to convert the full history of the 'head' branch From=20Subversion, because I have a local Subversion repository for that. Being able to rebase my local in-progress patches on an Hg clone _did_ seem useful at the time, so that's why I converted only the history of 'head' from the start of 2008. The initial pull was done by pulling a clean copy of the first commit of 2008 and then importing changesets on top of that with: % cd /hg/bsd % \time hg convert --config convert.svn.startrev=3D175026 \ --config convert.svn.trunk=3D'head' \ --config convert.svn.branches=3D'' \ --config convert.svn.tags=3D'' file:///home/svn/base/ head The initial pull took a bit of time, but far less than hgimportsvn. Subsequent pull-head.sh runs take literally seconds to pull from a local Subversion repository mirror. The speed is much much better than hgpullsvn, because the Hg convert extension doesn't parse the output of shell commands, but it links `natively' (through SWIG) with the subversion libraries. The conversion process is interruptible, and if you keep the 'SHA map' of the initial conversion you can keep pulling changesets into the conversion clone as many times as necessary with something like: % cd /hg/bsd % cat -n pull-head.sh 1 #!/bin/sh 2 3 hg convert \ 4 --config convert.svn.trunk=3D'head' \ 5 --config convert.svn.branches=3D'' \ 6 --config convert.svn.tags=3D'' \ 7 file:///home/svn/base/ head % You don't need the `convert.svn.startrev=3D175026' option in the second and subsequent runs, because the conversion clone already has a file called `.hg/shamap' and the conversion picks up from the place it stopped the previous time. (2) Bootstrapping your own clone =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Everything above is of `encyclopedical' nature, because now that I've done the conversion once, you can just use a bundle file and a matching copy of my `.hg/shamap' file to bootstrap a conversion clone of your own. You can fetch an Hg bundle and a matching shamap with the history of 'head' in 2008 from: http://people.freebsd.org/~keramida/mercurial/head.hg http://people.freebsd.org/~keramida/mercurial/head.shamap The checksums of these files should be: MD5 (head.hg) =3D 4978723c560bc48c390be1634c7d36a4 MD5 (head.shamap) =3D 8e5957657fb499ed3a3575fc921e3029 SHA256 (head.hg) =3D ab073135925fdb54a2820077a5a4d75f4306d44a217b7c30d6= b8719a9a5008d4 SHA256 (head.shamap) =3D 04c6648bd108d3550ffb126c321b8faf2f5dda9f891787= bb57ae178efa271893 The head.hg bundle is around 92 MB and you can pull it directly into an empty Hg workspace: % hg init head % cd head ; hg pull /var/tmp/head.hg Then copy the `head.shamap' file in `.hg/shamap' and you are ready to go. You can start cloning this tree, and you can also run "hg convert" to incrementally pull the history of the svn/head branch, as many times as necessary. The `pull-head.sh' script I included above will make subsequent pulls less tedious by saving you the typing of all the =2D-config options to get the svn->hg branch names right. (3) Important disclaimer =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Note that this is *NOT* an official branch of the FreeBSD source tree, so if you plan to use the head.hg bundle, this email is _not_ really a promise to keep uploading `bootstrap bundles'. You are also the sole person responsible for comparing the source tree checked out from the Hg clone with a subversion or cvs checkout and making sure that it matches. So have fun if you like it, but please don't sue me or something. HTH, Giorgos --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkidONQACgkQ1g+UGjGGA7airwCdH/amlNwn4VT4I1YTMv6qviO7 mzQAnROJvk5ubBgPjJK/8uaTye6CVC2+ =pQjl -----END PGP SIGNATURE----- --=-=-=-- From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 9 17:36:27 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25A741065670 for ; Sat, 9 Aug 2008 17:36:27 +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 C9D408FC1F for ; Sat, 9 Aug 2008 17:36:26 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KRsMb-0000mB-Hu for freebsd-hackers@freebsd.org; Sat, 09 Aug 2008 17:36:25 +0000 Received: from 89-172-33-199.adsl.net.t-com.hr ([89.172.33.199]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Aug 2008 17:36:25 +0000 Received: from ivoras by 89-172-33-199.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Aug 2008 17:36:25 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Sat, 09 Aug 2008 19:36:07 +0200 Lines: 38 Message-ID: References: <20080803161057.GB35301@rink.nu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB25BDE0EC86DF71DCEFE90A8" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 89-172-33-199.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <20080803161057.GB35301@rink.nu> X-Enigmail-Version: 0.95.6 Sender: news Subject: Re: Patch for working AMD Geode CS5530 audio driver on HEAD 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, 09 Aug 2008 17:36:27 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB25BDE0EC86DF71DCEFE90A8 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Rink Springer wrote: > Hi, >=20 > As outlined in > http://lists.freebsd.org/pipermail/freebsd-hackers/2008-January/022986.= html, > Alec had some problems with the snd_geode driver. While I cannot test > whether it works using Geode CS5536 hardware, I've managed to get the > driver to work using CS5530 hardware on FreeBSD HEAD. >=20 > The patch is available at > http://people.freebsd.org/~rink/various/ns_geode.diff - using this, my Hi, This patch looks like it needs something. Can you post or link to the=20 entire driver please? --------------enigB25BDE0EC86DF71DCEFE90A8 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.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIndWMldnAQVacBcgRAn+lAKCFBKNMT2u/nk/z4Sh5xZKJ9IH3qgCfZPT3 6y2nLxHRvT6vu1hr5KL1eus= =8rtQ -----END PGP SIGNATURE----- --------------enigB25BDE0EC86DF71DCEFE90A8-- From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 9 19:31:32 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3357A1065675 for ; Sat, 9 Aug 2008 19:31:32 +0000 (UTC) (envelope-from rink@rink.nu) Received: from mx1.rink.nu (gloom.rink.nu [213.34.49.2]) by mx1.freebsd.org (Postfix) with ESMTP id E3F348FC1E for ; Sat, 9 Aug 2008 19:31:31 +0000 (UTC) (envelope-from rink@rink.nu) Received: from localhost (localhost [127.0.0.1]) by mx1.rink.nu (Postfix) with ESMTP id B07AA6D453; Sat, 9 Aug 2008 21:32:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at rink.nu Received: from mx1.rink.nu ([213.34.49.2]) by localhost (gloom.rink.nu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p91GEY3r-6u3; Sat, 9 Aug 2008 21:32:33 +0200 (CEST) Received: by mx1.rink.nu (Postfix, from userid 1000) id EE2506D450; Sat, 9 Aug 2008 21:32:33 +0200 (CEST) Date: Sat, 9 Aug 2008 21:32:33 +0200 From: Rink Springer To: Ivan Voras Message-ID: <20080809193233.GC19885@rink.nu> References: <20080803161057.GB35301@rink.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: Patch for working AMD Geode CS5530 audio driver on HEAD 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, 09 Aug 2008 19:31:32 -0000 Hi Ivan, On Sat, Aug 09, 2008 at 07:36:07PM +0200, Ivan Voras wrote: > This patch looks like it needs something. Can you post or link to the > entire driver please? Sure - this was already outlined in the original thread, but have a look at http://63.249.85.132/gx_audio/index.html - the driver there works. You need minor tweaks to the Makefile, these can be found in http://setfilepointer.com/pub/geode/ns_geode.diff. Regards, -- Rink P.W. Springer - http://rink.nu "Anyway boys, this is America. Just because you get more votes doesn't mean you win." - Fox Mulder