From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 27 15:25:43 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E197816A4CE for ; Sun, 27 Jun 2004 15:25:43 +0000 (GMT) Received: from cannabis.dataforce.net (cannabis.dataforce.net [195.42.160.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id E425743D39 for ; Sun, 27 Jun 2004 15:25:42 +0000 (GMT) (envelope-from ky@df.ru) Received: from proxy.rostelekom.ru (proxy.rostelekom.ru [195.42.179.169]) by cannabis.dataforce.net (8.11.6p2-DF5/8.8.8) with ESMTP id i5RFPec01433 for ; Sun, 27 Jun 2004 19:25:40 +0400 From: "Kentucky Mandeloid Mo." To: freebsd-hackers@freebsd.org Date: Sun, 27 Jun 2004 19:25:40 +0400 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200406271925.40073.ky@df.ru> Subject: kern___getcwd() returns ENOTDIR X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ky@df.ru List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2004 15:25:44 -0000 I'm writng a smal kernel module that catches file access syscalls. At every syscall I need a full name of file is being passed to a syscall. I'm getting it with a path passed to syscall and if path is not starting with / I get current working directory of process using kern___getcwd(). In every syscall all works just fine except rmdir & unlink. Sometimes in unlink and everytime in rmdir it returns "not a directory" error. I know already that kern___getcwd() works through vnode cache and this method is not a reliable way to get file names. So is there any other way get cwd of a proccess? From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 27 18:12:19 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B99CD16A4CE for ; Sun, 27 Jun 2004 18:12:19 +0000 (GMT) Received: from VARK.homeunix.com (adsl-69-107-104-105.dsl.pltn13.pacbell.net [69.107.104.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C59143D41 for ; Sun, 27 Jun 2004 18:12:19 +0000 (GMT) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.11/8.12.10) with ESMTP id i5RICKRI011096; Sun, 27 Jun 2004 11:12:20 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.11/8.12.10/Submit) id i5RICKK4011095; Sun, 27 Jun 2004 11:12:20 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Sun, 27 Jun 2004 11:12:20 -0700 From: David Schultz To: "Kentucky Mandeloid Mo." Message-ID: <20040627181220.GA10962@VARK.homeunix.com> Mail-Followup-To: "Kentucky Mandeloid Mo." , freebsd-hackers@FreeBSD.ORG References: <200406271925.40073.ky@df.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200406271925.40073.ky@df.ru> cc: freebsd-hackers@FreeBSD.ORG Subject: Re: kern___getcwd() returns ENOTDIR X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2004 18:12:19 -0000 On Sun, Jun 27, 2004, Kentucky Mandeloid Mo. wrote: > I'm writng a smal kernel module that catches file access syscalls. > At every syscall I need a full name of file is being passed to a syscall. > I'm getting it with a path passed to syscall and if path is not starting > with / I get current working directory of process using kern___getcwd(). > In every syscall all works just fine except rmdir & unlink. > Sometimes in unlink and everytime in rmdir it returns "not a directory" error. > I know already that kern___getcwd() works through vnode cache and this method > is not a reliable way to get file names. > So is there any other way get cwd of a proccess? linux_getcwd() works in more cases than kern___getcwd(), but it has other problems. From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 27 16:44:11 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4286616A4CE for ; Sun, 27 Jun 2004 16:44:11 +0000 (GMT) Received: from core.staszic.eu.org (dialup03.1lo.lublin.pl [212.182.71.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78A5543D39 for ; Sun, 27 Jun 2004 16:44:08 +0000 (GMT) (envelope-from marek@staszic.eu.org) Received: by core.staszic.eu.org (Postfix, from userid 1001) id 23672A6D0D; Sun, 27 Jun 2004 18:46:02 +0000 (GMT) Date: Sun, 27 Jun 2004 18:46:02 +0000 From: Marek Denis To: hackers@freebsd.org Message-ID: <20040627184602.GA95768@core.staszic.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Mon, 28 Jun 2004 11:28:35 +0000 Subject: old messages in periodic X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2004 16:44:11 -0000 Hi all, I've got strange problem. Well, every day I get an email as a result of periodic ran every night from cron. I also set up a few weeks ago postfix with mysql. First I tested postfix so I got a lot of errors from postfix, but after that I set up it properly and now it works great. But the problem is that, in my mails from periodic I get some errors like: kernel log messages: > postfix/trivial-rewrite[22192]: fatal: > mysql:/usr/local/etc/postfix/mysql/transport.cf(0,100): +table lookup problem I've looked at my messages files and found nothing ...some time ago I also had been getting cut fragments from dmesg, although my uptime was for example 20 days... what can it be? regards From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 07:32:04 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 960CF16A4CE; Mon, 28 Jun 2004 07:32:04 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44E1A43D1D; Mon, 28 Jun 2004 07:32:04 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 256B7ACAFB; Mon, 28 Jun 2004 09:32:02 +0200 (CEST) Date: Mon, 28 Jun 2004 09:32:02 +0200 From: Pawel Jakub Dawidek To: freebsd-hackers@FreeBSD.ORG Message-ID: <20040628073202.GR12007@darkness.comp.waw.pl> References: <200406271925.40073.ky@df.ru> <20040627181220.GA10962@VARK.homeunix.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lXBubL3wS507qnlw" Content-Disposition: inline In-Reply-To: <20040627181220.GA10962@VARK.homeunix.com> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 Subject: Re: kern___getcwd() returns ENOTDIR X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 07:32:04 -0000 --lXBubL3wS507qnlw Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 27, 2004 at 11:12:20AM -0700, David Schultz wrote: +> On Sun, Jun 27, 2004, Kentucky Mandeloid Mo. wrote: +> > I'm writng a smal kernel module that catches file access syscalls. +> > At every syscall I need a full name of file is being passed to a sysca= ll. +> > I'm getting it with a path passed to syscall and if path is not starti= ng=20 +> > with / I get current working directory of process using kern___getcwd(= ). +> > In every syscall all works just fine except rmdir & unlink. +> > Sometimes in unlink and everytime in rmdir it returns "not a directory= " error. +> > I know already that kern___getcwd() works through vnode cache and this= method=20 +> > is not a reliable way to get file names. +> > So is there any other way get cwd of a proccess?=20 +>=20 +> linux_getcwd() works in more cases than kern___getcwd(), but it +> has other problems. What problems does it have? Could you provide more details? Was it discusses when patch for changing kern___getcwd() with linux_getcwd() was introduced? --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --lXBubL3wS507qnlw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA38lyForvXbEpPzQRAhi1AJ4zLWEB0VxUlLElmauSUgF8mnZdVQCbBKt3 v6lTqWnNYVO2k2816PfhU9s= =l2yJ -----END PGP SIGNATURE----- --lXBubL3wS507qnlw-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 08:28:04 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0417816A4CE; Mon, 28 Jun 2004 08:28:04 +0000 (GMT) Received: from VARK.homeunix.com (adsl-69-107-104-105.dsl.pltn13.pacbell.net [69.107.104.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8AA343D2F; Mon, 28 Jun 2004 08:28:03 +0000 (GMT) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.11/8.12.10) with ESMTP id i5S8QuML016075; Mon, 28 Jun 2004 01:26:56 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.11/8.12.10/Submit) id i5S8QubF016074; Mon, 28 Jun 2004 01:26:56 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Mon, 28 Jun 2004 01:26:56 -0700 From: David Schultz To: Pawel Jakub Dawidek Message-ID: <20040628082656.GA15867@VARK.homeunix.com> Mail-Followup-To: Pawel Jakub Dawidek , freebsd-hackers@FreeBSD.ORG References: <200406271925.40073.ky@df.ru> <20040627181220.GA10962@VARK.homeunix.com> <20040628073202.GR12007@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040628073202.GR12007@darkness.comp.waw.pl> cc: freebsd-hackers@FreeBSD.ORG Subject: Re: kern___getcwd() returns ENOTDIR X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 08:28:04 -0000 On Mon, Jun 28, 2004, Pawel Jakub Dawidek wrote: > On Sun, Jun 27, 2004 at 11:12:20AM -0700, David Schultz wrote: > +> On Sun, Jun 27, 2004, Kentucky Mandeloid Mo. wrote: > +> > I'm writng a smal kernel module that catches file access syscalls. > +> > At every syscall I need a full name of file is being passed to a syscall. > +> > I'm getting it with a path passed to syscall and if path is not starting > +> > with / I get current working directory of process using kern___getcwd(). > +> > In every syscall all works just fine except rmdir & unlink. > +> > Sometimes in unlink and everytime in rmdir it returns "not a directory" error. > +> > I know already that kern___getcwd() works through vnode cache and this method > +> > is not a reliable way to get file names. > +> > So is there any other way get cwd of a proccess? > +> > +> linux_getcwd() works in more cases than kern___getcwd(), but it > +> has other problems. > > What problems does it have? Could you provide more details? > Was it discusses when patch for changing kern___getcwd() with > linux_getcwd() was introduced? It was discussed when phk merged it into kern___getcwd() last year, and on at least one other occasion. However, I can't seem to find the relevant thread in the mail archives. Perhaps phk or dwmalone remember. From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 12:41:53 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F40316A4CF; Mon, 28 Jun 2004 12:41:53 +0000 (GMT) Received: from ciberia.viavale.com.br (ciberia.viavale.com.br [200.143.116.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1ABDD43D53; Mon, 28 Jun 2004 12:41:52 +0000 (GMT) (envelope-from klaus@viavale.com.br) Received: from [200.143.116.30] (ibook.viavale.com.br [200.143.116.30]) by ciberia.viavale.com.br (Postfix) with ESMTP id A47C8EA; Mon, 28 Jun 2004 09:41:34 -0300 (BRT) Mime-Version: 1.0 (Apple Message framework v618) Content-Type: multipart/mixed; boundary=Apple-Mail-26-597627894 Message-Id: <7CD4711D-C900-11D8-A1F2-000A95B562DC@viavale.com.br> From: Klaus Schneider Date: Mon, 28 Jun 2004 09:41:33 -0300 To: freebsd-bugs@freebsd.org X-Mailer: Apple Mail (2.618) X-viavale-MailScanner-Information: Please contact the ISP for more information X-viavale-MailScanner: Found to be clean cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: Panic on 5.2.1-p8 Current X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 12:41:53 -0000 --Apple-Mail-26-597627894 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed I'm running FreeBSD with 2 NFS mounts over tcp, apache 1.3.31, openwebmail(read/write on both nfs mounted filesystems, /var/mail spooldir and webmail userdir) and proftpd. # uname -a FreeBSD 5.2.1-RELEASE-p8 #3: Mon Jun 28 07:18:32 BRT 2004 src-all last updated at: Sat Jun 19 09:28:59 BRT 2004. The problem occurs only when users access the openwebmail, reading/writing data on nfs mounted filesystems. Here my sysctl.conf: net.inet.tcp.blackhole=2 net.inet.udp.blackhole=1 vfs.nfs.access_cache_timeout=60 net.inet.ip.check_interface=0 net.inet.tcp.inflight_enable=1 net.inet.tcp.inflight_debug=0 net.isr.enable=1 kern.polling.enable=1 kern.polling.user_frac=50 EOF ... and here part of my kernel config file: machine i386 cpu I686_CPU makeoptions DEBUG=-g makeoptions NO_MODULES=yes options NFSCLIENT options NFSSERVER options QUOTA options COMPAT_FREEBSD4 options KTRACE options SYSVSHM options SYSVMSG options SYSVSEM options _KPOSIX_PRIORITY_SCHEDULING options DDB options INVARIANTS options INVARIANT_SUPPORT options HZ=2000 options NMBCLUSTERS=65535 options DEVICE_POLLING EOF Running on: Dell P. Edge 1600 Single Xeon 2.4Ghz HTT(disabled) Ram: 1Gb 3 SCSI Disks Backtrace with gdb in attached file. --Apple-Mail-26-597627894 Content-Transfer-Encoding: 7bit Content-Type: text/plain; x-unix-mode=0644; name="backtrace.txt" Content-Disposition: attachment; filename=backtrace.txt (kgdb) bt #0 doadump () at ../../../kern/kern_shutdown.c:240 #1 0xc04f2bc8 in boot (howto=260) at ../../../kern/kern_shutdown.c:372 #2 0xc04f2f57 in panic () at ../../../kern/kern_shutdown.c:550 #3 0xc0538241 in bremfreel (bp=0xd8f0aab8) at ../../../kern/vfs_bio.c:647 #4 0xc0538115 in bremfree (bp=0x0) at ../../../kern/vfs_bio.c:629 #5 0xc053bd4e in getblk (vp=0xcca14104, blkno=7, size=16384, slpflag=0, slptimeo=0, flags=0) at ../../../kern/vfs_bio.c:2468 #6 0xc0538312 in breadn (vp=0xcca14104, blkno=0, size=0, rablkno=0x0, rabsize=0x0, cnt=0, cred=0x0, bpp=0x0) at ../../../kern/vfs_bio.c:700 #7 0xc05382bc in bread (vp=0x0, blkno=0, size=0, cred=0x0, bpp=0x0) at ../../../kern/vfs_bio.c:682 #8 0xc05bc352 in ffs_balloc_ufs2 (vp=0xcca14104, startoffset=0, size=5856, cred=0xc25bbe00, flags=65536, bpp=0xea0367b4) at ../../../ufs/ffs/ffs_balloc.c:601 #9 0xc05d30c7 in ffs_write (ap=0xea0367ec) at ../../../ufs/ffs/ffs_vnops.c:698 #10 0xc05dc874 in dqsync (vp=0xccc84b2c, dq=0xcd11a1c0) at vnode_if.h:432 #11 0xc05dc1b0 in qsync (mp=0xcc935800) at ../../../ufs/ufs/ufs_quota.c:775 #12 0xc05d18fd in ffs_sync (mp=0xcc935800, waitfor=2, cred=0xc25b0f00, td=0xc06a48a0) at ../../../ufs/ffs/ffs_vfsops.c:1204 #13 0xc054e61e in sync (td=0xc06a48a0, uap=0x0) at ../../../kern/vfs_syscalls.c:141 #14 0xc04f2760 in boot (howto=256) at ../../../kern/kern_shutdown.c:281 #15 0xc04f2f57 in panic () at ../../../kern/kern_shutdown.c:550 #16 0xc05391f1 in bundirty (bp=0xd90341f0) at ../../../kern/vfs_bio.c:1122 #17 0xc0539d1e in brelse (bp=0xd90341f0) at ../../../kern/vfs_bio.c:1441 #18 0xc05915a8 in nfs_writebp (bp=0xd90341f0, force=1, td=0xccd77640) at ../../../nfsclient/nfs_vnops.c:2990 #19 0xc0581bc3 in nfs_bwrite (bp=0x0) at machine/pcpu.h:156 #20 0xc053be11 in getblk (vp=0xccd54c30, blkno=1, size=8192, slpflag=0, slptimeo=0, flags=0) at ../../../kern/vfs_bio.c:2536 #21 0xc0583c24 in nfs_getcacheblk (vp=0xccd54c30, bn=1, size=8192, td=0xccd77640) at ../../../nfsclient/nfs_bio.c:1064 #22 0xc0583780 in nfs_write (ap=0x0) at ../../../nfsclient/nfs_bio.c:874 #23 0xc0557393 in vn_write (fp=0xcc997f68, uio=0xea036c80, active_cred=0xcdbc9700, flags=0, td=0xccd77640) at vnode_if.h:432 #24 0xc05198fb in dofilewrite (td=0xccd77640, fp=0xcc997f68, fd=0, buf=0x879a000, nbyte=0, offset=0, flags=0) at ../../../sys/file.h:249 #25 0xc051972e in write (td=0xccd77640, uap=0xea036d14) at ../../../kern/sys_generic.c:331 #26 0xc062a3e0 in syscall (frame= {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 142188544, tf_esi = 3, tf_ebp = -1077944360, tf_isp = -368874124, tf_ebx = 673177888, tf_edx = 4096, tf_ecx = 12, tf_eax = 4, tf_trapno = 22, tf_err = 2, tf_eip = 672674095, tf_cs = 31, tf_eflags = 531, tf_esp = -1077944420, tf_ss = 47}) at ../../../i386/i386/trap.c:1010 #27 0xc061b21d in Xint0x80_syscall () at {standard input}:136 --Apple-Mail-26-597627894-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 14:46:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E079016A4CF; Mon, 28 Jun 2004 14:46:48 +0000 (GMT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 7ABB543D2D; Mon, 28 Jun 2004 14:46:47 +0000 (GMT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 28 Jun 2004 15:46:46 +0100 (BST) Date: Mon, 28 Jun 2004 15:46:45 +0100 From: David Malone To: Pawel Jakub Dawidek , freebsd-hackers@FreeBSD.ORG Message-ID: <20040628144645.GA6568@walton.maths.tcd.ie> References: <200406271925.40073.ky@df.ru> <20040627181220.GA10962@VARK.homeunix.com> <20040628073202.GR12007@darkness.comp.waw.pl> <20040628082656.GA15867@VARK.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040628082656.GA15867@VARK.homeunix.com> User-Agent: Mutt/1.5.3i Sender: dwmalone@maths.tcd.ie Subject: Re: kern___getcwd() returns ENOTDIR X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 14:46:49 -0000 On Mon, Jun 28, 2004 at 01:26:56AM -0700, David Schultz wrote: > It was discussed when phk merged it into kern___getcwd() last > year, and on at least one other occasion. However, I can't seem > to find the relevant thread in the mail archives. Perhaps phk or > dwmalone remember. The only problems that I remember were when *getcwd() used the name cache and managed to work around directories that it didn't have r/x permission on. It is quite possible I've forgotten some other problem though. David. From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 15:41:16 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09AA216A4CE for ; Mon, 28 Jun 2004 15:41:16 +0000 (GMT) Received: from gawab.com (v2.gawab.com [204.97.230.42]) by mx1.FreeBSD.org (Postfix) with SMTP id 8C57443D1D for ; Mon, 28 Jun 2004 15:41:15 +0000 (GMT) (envelope-from wandys@gawab.com) Received: (qmail 25431 invoked by uid 1004); 28 Jun 2004 15:41:16 -0000 Received: from unknown (HELO localhost) (wandys@210.77.10.49) by gawab.com with SMTP; 28 Jun 2004 15:41:16 -0000 Date: Mon, 28 Jun 2004 23:45:54 +0800 From: Alecs King To: hackers@freebsd.org Message-ID: <20040628154554.GA975@localhost> Mail-Followup-To: hackers@freebsd.org References: <40DCC57F.5090209@fer.hr> <20040626104947.T93253@woozle.rinet.ru> <40DD3EC1.9000106@fer.hr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40DD3EC1.9000106@fer.hr> User-Agent: Mutt/1.5.6i Subject: Re: Getting MAC address? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 15:41:16 -0000 On Sat, Jun 26, 2004 at 11:15:45AM +0200, Ivan Voras wrote: > > I was looking at it and came across getifaddrs(). This function does not > depend on a open socket (yes, mine is AF_LINK, sockaddr_dl), and > apparently returns a list of all interfaces. Is there really no other > way than to traverse this list? Back on the days of using FreeBSD 4.6-Release, i once wrote a simple program to get MAC address of a specified NIC. I tested it on -current just now. Still works fine. =) /* * getmac.c * * Simple Demo: Get MAC address of a specified NIC on FreeBSD * * To compile: gcc getmac.c -o getmac * * Tested on FreeBSD-4.6 RELEASE & FreeBSD-5.2-current */ #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char *argv[]) { int mib[6], len; char *buf; unsigned char *ptr; struct if_msghdr *ifm; struct sockaddr_dl *sdl; if (argc != 2) { fprintf(stderr, "Usage: getmac \n"); return 1; } mib[0] = CTL_NET; mib[1] = AF_ROUTE; mib[2] = 0; mib[3] = AF_LINK; mib[4] = NET_RT_IFLIST; if ((mib[5] = if_nametoindex(argv[1])) == 0) { perror("if_nametoindex error"); exit(2); } if (sysctl(mib, 6, NULL, &len, NULL, 0) < 0) { perror("sysctl 1 error"); exit(3); } if ((buf = malloc(len)) == NULL) { perror("malloc error"); exit(4); } if (sysctl(mib, 6, buf, &len, NULL, 0) < 0) { perror("sysctl 2 error"); exit(5); } ifm = (struct if_msghdr *)buf; sdl = (struct sockaddr_dl *)(ifm + 1); ptr = (unsigned char *)LLADDR(sdl); printf("%02x:%02x:%02x:%02x:%02x:%02x\n", *ptr, *(ptr+1), *(ptr+2), *(ptr+3), *(ptr+4), *(ptr+5)); return 0; } Reference: UNP v1. Section 17.5 Hope this helps. -- Alecs King From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 15:50:42 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FAF616A4CE for ; Mon, 28 Jun 2004 15:50:42 +0000 (GMT) Received: from driverheaven.net (driverheaven.net [67.15.42.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D4A843D2D for ; Mon, 28 Jun 2004 15:50:42 +0000 (GMT) (envelope-from d-force@driverheaven.net) Received: (qmail 29504 invoked by uid 48); 28 Jun 2004 15:50:24 -0000 Received: from 62.107.80.79 (SquirrelMail authenticated user d-force); by www.driverheaven.net with HTTP; Mon, 28 Jun 2004 17:50:24 +0200 (CEST) Message-ID: <51332.62.107.80.79.1088437824.squirrel@62.107.80.79> Date: Mon, 28 Jun 2004 17:50:24 +0200 (CEST) From: "David H. Kristensen" To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.3a-0.e3.1 X-Mailer: SquirrelMail/1.4.3a-0.e3.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Kernel configuration program - 0.1 alpha. Hacker help and feedback required. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: d-force@driverheaven.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 15:50:42 -0000 :) I have started development on a kernel configuration tool for FreeBSD 5.2.1 (other versions aren't supported yet) It's similar to the linux kernel's make config and xf86config in terms of way of working, and it's written in ISO C++ (requires g++ compiler) Get the source: (DENMARK) http://www.davidhanefelt.dk/files/upload/kernconf01.tar.bz2 (SCOTLAND) http://www.kentra.net/kernconf01.tar.bz2 Extract to a directory, and build with: g++ main.cpp printinfo.cpp getfilename.cpp printmsg.cpp writecpu.cpp operations.cpp scsi.cpp pcinic.cpp isanic.cpp wifi.cpp usbnet.cpp Run the output with ./a.out as usual :) Here's what i'd like to see (but can't figure out myself) GCC Makefile (would really rock) Here's what i intend to add to 0.2: Support for moving the file into /usr/src/sys/i386/conf/[fname] and instantiate the config, build and install process. The program is released under the BSD license. Happy hacking. David From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 16:15:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 892C016A4CE for ; Mon, 28 Jun 2004 16:15:44 +0000 (GMT) Received: from mail.gulfgate-inc.com (mail.gulfgate-inc.com [64.1.98.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF35243D31 for ; Mon, 28 Jun 2004 16:15:43 +0000 (GMT) (envelope-from mpf@inodes.us) Received: (qmail 34606 invoked by uid 85); 28 Jun 2004 16:16:08 -0000 Received: from mpf@inodes.us by mail.gulfgate-inc.com by uid 89 with qmail-scanner-1.20 Clear:RC:1(192.168.0.4):. Processed in 0.043442 secs); 28 Jun 2004 16:16:08 -0000 Received: from unknown (HELO ?192.168.0.4?) (192.168.0.4) by 192.168.0.40 with SMTP; 28 Jun 2004 16:16:07 -0000 Message-ID: <40E0442B.6020007@inodes.us> Date: Mon, 28 Jun 2004 11:15:39 -0500 From: Matt Freitag User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 To: d-force@driverheaven.net References: <51332.62.107.80.79.1088437824.squirrel@62.107.80.79> In-Reply-To: <51332.62.107.80.79.1088437824.squirrel@62.107.80.79> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Kernel configuration program - 0.1 alpha. Hacker help andfeedback required. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 16:15:44 -0000 Personally I prefer the flat file configuration, as it's much more intuitive, and an obfuscated method of configuring my kernel just isn't for me. To each his own of course, but I myself will always stick to vi'ing my kernel's config. It's the fastest, most efficient way IMHO. (Not to say, that's better, since lots of people prefer what I'd call, a more lazy method) I never liked the Linux kernel "way", but that's just me. Good on you for trying to give something back to the fbsd community though - not trying to bring it down, just shedding light on my personal convictions when it comes to configuring a kernel. -mpf David H. Kristensen wrote: >:) > >I have started development on a kernel configuration tool for FreeBSD >5.2.1 (other versions aren't supported yet) > >It's similar to the linux kernel's make config and xf86config in terms of >way of working, and it's written in ISO C++ (requires g++ compiler) > >Get the source: > >(DENMARK) >http://www.davidhanefelt.dk/files/upload/kernconf01.tar.bz2 > >(SCOTLAND) >http://www.kentra.net/kernconf01.tar.bz2 > >Extract to a directory, and build with: > >g++ main.cpp printinfo.cpp getfilename.cpp printmsg.cpp writecpu.cpp >operations.cpp scsi.cpp pcinic.cpp isanic.cpp wifi.cpp usbnet.cpp > >Run the output with ./a.out as usual :) > >Here's what i'd like to see (but can't figure out myself) >GCC Makefile (would really rock) > >Here's what i intend to add to 0.2: >Support for moving the file into /usr/src/sys/i386/conf/[fname] and >instantiate the config, build and install process. > >The program is released under the BSD license. > >Happy hacking. > >David > > >_______________________________________________ >freebsd-hackers@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > > From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 18:08:46 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4750416A4CE; Mon, 28 Jun 2004 18:08:46 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i5SI8jBG022978; Mon, 28 Jun 2004 14:08:45 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.12.11/8.12.11/Submit) id i5SI8i8h022977; Mon, 28 Jun 2004 14:08:44 -0400 (EDT) (envelope-from green) Date: Mon, 28 Jun 2004 14:08:44 -0400 From: Brian Fundakowski Feldman To: Klaus Schneider Message-ID: <20040628180844.GC5635@green.homeunix.org> References: <7CD4711D-C900-11D8-A1F2-000A95B562DC@viavale.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7CD4711D-C900-11D8-A1F2-000A95B562DC@viavale.com.br> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org cc: freebsd-bugs@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: Panic on 5.2.1-p8 Current X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 18:08:46 -0000 On Mon, Jun 28, 2004 at 09:41:33AM -0300, Klaus Schneider wrote: > I'm running FreeBSD with 2 NFS mounts over tcp, apache 1.3.31, > openwebmail(read/write on both nfs mounted filesystems, /var/mail > spooldir and webmail userdir) and proftpd. > > # uname -a > FreeBSD 5.2.1-RELEASE-p8 #3: Mon Jun 28 07:18:32 BRT 2004 > > src-all last updated at: Sat Jun 19 09:28:59 BRT 2004. > > The problem occurs only when users access the openwebmail, > reading/writing data on nfs mounted filesystems. > [...] > #15 0xc04f2f57 in panic () at ../../../kern/kern_shutdown.c:550 > #16 0xc05391f1 in bundirty (bp=0xd90341f0) at ../../../kern/vfs_bio.c:1122 > #17 0xc0539d1e in brelse (bp=0xd90341f0) at ../../../kern/vfs_bio.c:1441 > #18 0xc05915a8 in nfs_writebp (bp=0xd90341f0, force=1, td=0xccd77640) at ../../../nfsclient/nfs_vnops.c:2990 > #19 0xc0581bc3 in nfs_bwrite (bp=0x0) at machine/pcpu.h:156 > #20 0xc053be11 in getblk (vp=0xccd54c30, blkno=1, size=8192, slpflag=0, slptimeo=0, flags=0) > at ../../../kern/vfs_bio.c:2536 > #21 0xc0583c24 in nfs_getcacheblk (vp=0xccd54c30, bn=1, size=8192, td=0xccd77640) > at ../../../nfsclient/nfs_bio.c:1064 > #22 0xc0583780 in nfs_write (ap=0x0) at ../../../nfsclient/nfs_bio.c:874 > #23 0xc0557393 in vn_write (fp=0xcc997f68, uio=0xea036c80, active_cred=0xcdbc9700, flags=0, td=0xccd77640) > at vnode_if.h:432 > #24 0xc05198fb in dofilewrite (td=0xccd77640, fp=0xcc997f68, fd=0, buf=0x879a000, nbyte=0, offset=0, flags=0) > at ../../../sys/file.h:249 > #25 0xc051972e in write (td=0xccd77640, uap=0xea036d14) at ../../../kern/sys_generic.c:331 > #26 0xc062a3e0 in syscall (frame= > {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 142188544, tf_esi = 3, tf_ebp = -1077944360, tf_isp = -368874124, tf_ebx = 673177888, tf_edx = 4096, tf_ecx = 12, tf_eax = 4, tf_trapno = 22, tf_err = 2, tf_eip = 672674095, tf_cs = 31, tf_eflags = 531, tf_esp = -1077944420, tf_ss = 47}) at ../../../i386/i386/trap.c:1010 > #27 0xc061b21d in Xint0x80_syscall () at {standard input}:136 What queue is the buffer on that the system is panicking? (What was the panic message, or alternately, "p *bp" from the bundirty or brelse frame in gdb leading up to the panic. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\ From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 18:21:06 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1B79616A4CE; Mon, 28 Jun 2004 18:21:06 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i5SIL5He023050; Mon, 28 Jun 2004 14:21:05 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.12.11/8.12.11/Submit) id i5SIL5vp023049; Mon, 28 Jun 2004 14:21:05 -0400 (EDT) (envelope-from green) Date: Mon, 28 Jun 2004 14:21:04 -0400 From: Brian Fundakowski Feldman To: Lev Walkin Message-ID: <20040628182104.GE5635@green.homeunix.org> References: <40DC83A0.3060509@fer.hr> <40DC8742.5000100@netli.com> <40DC8948.9090406@fer.hr> <40DC8A15.7080700@netli.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40DC8A15.7080700@netli.com> User-Agent: Mutt/1.5.6i cc: hackers@freebsd.org cc: Ivan Voras Subject: Re: PF_PACKET X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 18:21:06 -0000 On Fri, Jun 25, 2004 at 01:24:53PM -0700, Lev Walkin wrote: > Ivan Voras wrote: > >Lev Walkin wrote: > > > >>Ivan Voras wrote: > >> > >>>I'm trying to port open1x xsupplicant, and it uses PF_PACKET to get > >>>relevant packets (of appropriate ethernet type). I looked around in > >>>/usr/include and can't find the support, at least not under that and > >>>similar names. Is there support for it in FreeBSD? > >>> > >>>(I only need to catch & send a few packets now and then, not anything > >>>complex or bandwidth demanding). > >> > >> > >> > >>man bpf > > > > > > > >I've no experience with bpf, but It looks way too complex. And besides, > >the program is relaying on using sendto/recvfrom all over the place. > > > it is actually pretty simple. man pcap. this is a wrapper around bpf > which lets you do it in a couple lines of C code. Just change the sendto/recvfrom calls to write/read. It's not a lot of work, the xsupplicant code just sucks period. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\ From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 19:29:38 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CAC1016A4CF; Mon, 28 Jun 2004 19:29:37 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i5SJTbnq023473; Mon, 28 Jun 2004 15:29:37 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.12.11/8.12.11/Submit) id i5SJTaoc023472; Mon, 28 Jun 2004 15:29:36 -0400 (EDT) (envelope-from green) Date: Mon, 28 Jun 2004 15:29:35 -0400 From: Brian Fundakowski Feldman To: Stephen Hurd Message-ID: <20040628192935.GF5635@green.homeunix.org> References: <20040624174919.46160f9e.shurd@sasktel.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040624174919.46160f9e.shurd@sasktel.net> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: Locking: kern/50827 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 19:29:38 -0000 On Thu, Jun 24, 2004 at 05:49:19PM -0600, Stephen Hurd wrote: > Well, possibly due to editorial content, kern/50827 has been completely > ignored. Not sure exactly the correct method of bringing something like > this up, but am I the only one who finds flock(), dotlock, and fcntl() > locks insufficient for their needs? Originally, this patch resulted from > porting a multi-threaded Win32 program to *nix... however, I've since used > the features it in a number of programs (for FreeBSD only of course) with > good success. It really makes locking behave as expected. > > Has anyone looked at this? Does anyone have any comments? > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/50827 I don't think you'll ever find anyone interested in file locking anymore. Since they're all advisory, anyway, you can just implement them at a higher level in your application. BSD and System V IPC mechanisms already are very good building blocks here for system-scoped locks. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\ From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 23:24:13 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEC4316A4CE for ; Mon, 28 Jun 2004 23:24:13 +0000 (GMT) Received: from spiff.melthusia.org (spiff.melthusia.org [207.67.244.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 928A643D3F for ; Mon, 28 Jun 2004 23:24:13 +0000 (GMT) (envelope-from gtetlow@spiff.melthusia.org) Received: from spiff.melthusia.org (gtetlow@localhost [127.0.0.1]) by spiff.melthusia.org (8.12.10/8.12.10) with ESMTP id i5SNNWGc015365; Mon, 28 Jun 2004 16:23:32 -0700 (PDT) (envelope-from gtetlow@spiff.melthusia.org) Received: (from gtetlow@localhost) by spiff.melthusia.org (8.12.10/8.12.10/Submit) id i5SNNVto015364; Mon, 28 Jun 2004 16:23:31 -0700 (PDT) (envelope-from gtetlow) Date: Mon, 28 Jun 2004 16:23:31 -0700 From: Gordon Tetlow To: Alexey Zagarin Message-ID: <20040628232331.GH10016@spiff.melthusia.org> References: <40D56C73.8090806@emax.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fwblGvOBo7NCOYks" Content-Disposition: inline In-Reply-To: <40D56C73.8090806@emax.ru> X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . User-Agent: Mutt/1.5.5.1i cc: freebsd-hackers@freebsd.org Subject: Re: sshd & pam & getpwnam() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 23:24:13 -0000 --fwblGvOBo7NCOYks Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 20, 2004 at 02:52:35PM +0400, Alexey Zagarin wrote: > Hello! >=20 > Does anybody know, why sshd call getpwnam() even if user is=20 > authenticating via PAM? This broke remote authentication (RADIUS,=20 > TACACS+) when user doesn't exist in local password database. The user must exist in some sort of directory service in order to log in. Services like krb5 (possibly RADIUS (I can't be bothered to look it up)) don't have fields for assigning critical user information like uid, gid, home directory, shell, .... What you are interested is nsswitch against a remote directory service like NIS or LDAP. -gordon --fwblGvOBo7NCOYks Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA4KhzRu2t9DV9ZfsRAlYxAJ4kqUjZCxdCvtHKi9DcDCFOYcTzLgCeJE5t +DzT82+GSBmVxFe4qdQ2Az4= =aAY2 -----END PGP SIGNATURE----- --fwblGvOBo7NCOYks-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 29 06:13:23 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A22C816A4CE for ; Tue, 29 Jun 2004 06:13:23 +0000 (GMT) Received: from burka.carrier.kiev.ua (burka.carrier.kiev.ua [193.193.193.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43ABF43D46 for ; Tue, 29 Jun 2004 06:13:22 +0000 (GMT) (envelope-from netch@lucky.net) Received: from netch@localhost [127.0.0.1] (netch@localhost [127.0.0.1]) by burka.carrier.kiev.ua with ESMTP id i5T6D4sR025637; Tue, 29 Jun 2004 09:13:08 +0300 (EEST) (envelope-from netch@burka.carrier.kiev.ua) Received: (from netch@localhost) by burka.carrier.kiev.ua (8.12.11/8.12.11/Submit) id i5T6D316025634; Tue, 29 Jun 2004 09:13:03 +0300 (EEST) (envelope-from netch) Date: Tue, 29 Jun 2004 09:13:03 +0300 From: Valentin Nechayev To: Alexey Zagarin Message-ID: <20040629061303.GA37195@lucky.net> References: <40D56C73.8090806@emax.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40D56C73.8090806@emax.ru> X-42: On X-Verify-Sender: verified cc: freebsd-hackers@freebsd.org Subject: Re: sshd & pam & getpwnam() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 06:13:23 -0000 Sun, Jun 20, 2004 at 14:52:35, zagarin wrote about "sshd & pam & getpwnam()": > Does anybody know, why sshd call getpwnam() even if user is > authenticating via PAM? This broke remote authentication (RADIUS, > TACACS+) when user doesn't exist in local password database. Because you mix two different things - users directory (in modern unixes including 5.* it is implemented as NSS) and authentication (implemented as PAM). To log in with sshd, user must be known in passwd database; if sshd would enable user to log in without account, this won't be sshd, but will be anything another. To allow remote user lists, use NIS; for now it is the only working and well-tested mechanism to spread user list (passwd.*) for many systems. See "YP/NIS INTERACTION" in passwd(5) for details. -netch- From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 29 06:39:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8664916A4CE for ; Tue, 29 Jun 2004 06:39:37 +0000 (GMT) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D16843D31 for ; Tue, 29 Jun 2004 06:39:37 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by cs1.cs.huji.ac.il with esmtp id 1BfCHA-000Ccs-O9; Tue, 29 Jun 2004 09:39:28 +0300 X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Valentin Nechayev In-reply-to: Your message of Tue, 29 Jun 2004 09:13:03 +0300 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 29 Jun 2004 09:39:28 +0300 From: Danny Braniss Message-Id: <20040629063937.4D16843D31@mx1.FreeBSD.org> cc: freebsd-hackers@freebsd.org Subject: Re: sshd & pam & getpwnam() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 06:39:37 -0000 > Sun, Jun 20, 2004 at 14:52:35, zagarin wrote about "sshd & pam & getpwnam()": > > > Does anybody know, why sshd call getpwnam() even if user is > > authenticating via PAM? This broke remote authentication (RADIUS, > > TACACS+) when user doesn't exist in local password database. > > Because you mix two different things - users directory (in modern unixes > including 5.* it is implemented as NSS) and authentication (implemented as PAM). > To log in with sshd, user must be known in passwd database; if sshd would > enable user to log in without account, this won't be sshd, but will be > anything another. > > To allow remote user lists, use NIS; for now it is the only working > and well-tested mechanism to spread user list (passwd.*) for many systems. > See "YP/NIS INTERACTION" in passwd(5) for details. > not 100% true, dns/hesiod works great. my 5 cents, danny From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 29 09:03:24 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EF9016A4CE for ; Tue, 29 Jun 2004 09:03:24 +0000 (GMT) Received: from mail.cableone.net (scanmail3.cableone.net [24.116.0.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id D037243D41 for ; Tue, 29 Jun 2004 09:03:23 +0000 (GMT) (envelope-from v.velox@vvelox.net) Received: from vixen42.24-119-122-191.cpe.cableone.net (unverified [24.119.122.191]) by smail3.cableone.net (SurgeMail 1.9b) with ESMTP id 25561866 for multiple; Tue, 29 Jun 2004 01:49:08 -0700 Date: Tue, 29 Jun 2004 04:03:13 -0500 From: Vulpes Velox To: Arvid Message-Id: <20040629040313.55325877@vixen42.24-119-122-191.cpe.cableone.net> In-Reply-To: <5.1.0.14.0.20040112101357.08813748@130.89.1.29> References: <5.1.0.14.0.20040112101357.08813748@130.89.1.29> X-Mailer: Sylpheed version 0.9.11claws (GTK+ 1.2.10; i386-portbld-freebsd4.10) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Server: High Performance Mail Server - http://surgemail.com cc: freebsd-hackers@freebsd.org Subject: Re: Wacom Graphire3 USB Tablet and FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 09:03:24 -0000 On Mon, 12 Jan 2004 10:29:39 +0100 Arvid wrote: > Hello people, > > I have a bit of a problem to get my Wacom Graphire3 (USB) to work > with FreeBSD. At first I thought I was doing something wrong, but it > seems that FreeBSD doesnt understand it. I know it works with > OpenBSD and NetBSD, and that it probably is due to uhid.c > http://fxr.watson.org/fxr/source/dev/usb/uhid.c?v=RELENG51 > I was really surprised that it works on the two other BSDs, if I had > known that before I probably would've installed one of them. But now > my FreeBSD is pretty much set up(about everything else works now), > so I give it another try. > > It only works since about 1-2 weeks on NetBSD, I found the story > behind that, and wrote the guy responsible for that about it. He > gave me some hints, you can find what he wrote, and what I tried > before in (and it the parent message) > Message-ID: > or on google: > http://groups.google.com/groups?selm=slrnbvrd54.9hq.nospam%40hennep.adsl.utwente.nl > > What I want to know is, is it possible to just replace the uhid.c > from FreeBSD by the one from Net- or OpenBSD? I dont think so, but > if so, thats an easy try. > > Otherwise I'm looking for someone that knows C, and wants to look at > > uhid.c. I obviously dont know C, nor any other programming language. > If its probably a better idea to install OpenBSD, I'd like to hear > that too ;-) Ever get it working or find a tablet that does work under FreeBSD? From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 27 21:39:49 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78A4816A4CE for ; Sun, 27 Jun 2004 21:39:49 +0000 (GMT) Received: from hotmail.com (bay22-f21.bay22.hotmail.com [64.4.16.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6561143D31 for ; Sun, 27 Jun 2004 21:39:49 +0000 (GMT) (envelope-from tobe_better@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 27 Jun 2004 14:41:59 -0700 Received: from 195.229.241.182 by by22fd.bay22.hotmail.msn.com with HTTP; Sun, 27 Jun 2004 21:41:59 GMT X-Originating-IP: [195.229.241.182] X-Originating-Email: [tobe_better@hotmail.com] X-Sender: tobe_better@hotmail.com From: "Auge Mike" To: freebsd-hackers@freebsd.org Date: Mon, 28 Jun 2004 01:41:59 +0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 27 Jun 2004 21:41:59.0781 (UTC) FILETIME=[937E1950:01C45C8F] X-Mailman-Approved-At: Tue, 29 Jun 2004 12:29:08 +0000 Subject: PCI memory alloc..! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2004 21:39:49 -0000 Hi all, While I was trying to track to find out how a device alloc a new memory resource, I have been little confused on finding out how the new PCI device can deal with a case when the activation calls pmap_mapdev???? What I need to understand that what will happen if pmap_mapdev allocated a new space that dose not match what is expected by the device and determined by r_start and r_end ?? Yours, _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 07:36:41 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36A8516A4CE for ; Mon, 28 Jun 2004 07:36:41 +0000 (GMT) Received: from gawab.com (v2.gawab.com [204.97.230.42]) by mx1.FreeBSD.org (Postfix) with SMTP id DCFFF43D41 for ; Mon, 28 Jun 2004 07:36:40 +0000 (GMT) (envelope-from wandys@gawab.com) Received: (qmail 24063 invoked by uid 1004); 28 Jun 2004 07:36:31 -0000 Received: from unknown (HELO localhost) (wandys@210.77.10.244) by gawab.com with SMTP; 28 Jun 2004 07:36:31 -0000 Date: Mon, 28 Jun 2004 15:41:01 +0800 From: Alecs King To: hackers@freebsd.org Message-ID: <20040628074101.GA885@localhost> Mail-Followup-To: hackers@freebsd.org References: <40DCC57F.5090209@fer.hr> <20040626104947.T93253@woozle.rinet.ru> <40DD3EC1.9000106@fer.hr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40DD3EC1.9000106@fer.hr> User-Agent: Mutt/1.5.6i X-Mailman-Approved-At: Tue, 29 Jun 2004 12:29:08 +0000 Subject: Re: Getting MAC address? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 07:36:41 -0000 On Sat, Jun 26, 2004 at 11:15:45AM +0200, Ivan Voras wrote: > > I was looking at it and came across getifaddrs(). This function does not > depend on a open socket (yes, mine is AF_LINK, sockaddr_dl), and > apparently returns a list of all interfaces. Is there really no other > way than to traverse this list? Back on the days of using FreeBSD 4.6-Release, i once wrote a simple program to get MAC address of a specified NIC. I tested it on -current just now. Still works fine. =) /* * getmac.c * * Simple Demo: Get MAC address of a specified NIC on FreeBSD * * To compile: gcc getmac.c -o getmac * * Tested on FreeBSD-4.6 RELEASE & FreeBSD-5.2-current */ #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char *argv[]) { int mib[6], len; char *buf; unsigned char *ptr; struct if_msghdr *ifm; struct sockaddr_dl *sdl; if (argc != 2) { fprintf(stderr, "Usage: getmac \n"); return 1; } mib[0] = CTL_NET; mib[1] = AF_ROUTE; mib[2] = 0; mib[3] = AF_LINK; mib[4] = NET_RT_IFLIST; if ((mib[5] = if_nametoindex(argv[1])) == 0) { perror("if_nametoindex error"); exit(2); } if (sysctl(mib, 6, NULL, &len, NULL, 0) < 0) { perror("sysctl 1 error"); exit(3); } if ((buf = malloc(len)) == NULL) { perror("malloc error"); exit(4); } if (sysctl(mib, 6, buf, &len, NULL, 0) < 0) { perror("sysctl 2 error"); exit(5); } ifm = (struct if_msghdr *)buf; sdl = (struct sockaddr_dl *)(ifm + 1); ptr = (unsigned char *)LLADDR(sdl); printf("%02x:%02x:%02x:%02x:%02x:%02x\n", *ptr, *(ptr+1), *(ptr+2), *(ptr+3), *(ptr+4), *(ptr+5)); return 0; } Reference: UNP v1. Section 17.5 Hope this helps. -- Alecs King From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 17:58:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A51316A4CE for ; Mon, 28 Jun 2004 17:58:35 +0000 (GMT) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2545743D46 for ; Mon, 28 Jun 2004 17:58:34 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (ohwnsp@localhost [127.0.0.1]) by lurza.secnetix.de (8.12.11/8.12.11) with ESMTP id i5SHwUmI001224; Mon, 28 Jun 2004 19:58:31 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.11/8.12.11/Submit) id i5SHwU0n001223; Mon, 28 Jun 2004 19:58:30 +0200 (CEST) (envelope-from olli) Date: Mon, 28 Jun 2004 19:58:30 +0200 (CEST) Message-Id: <200406281758.i5SHwU0n001223@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, non_secure@yahoo.com In-Reply-To: <20040625211917.37738.qmail@web53302.mail.yahoo.com> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.10-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 29 Jun 2004 12:29:08 +0000 Subject: Re: A few technical items on UFS2 and snapshots... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, non_secure@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 17:58:35 -0000 Joe Schmoe wrote: > Oliver Fromme wrote: > > Joe Schmoe wrote: > > > 1. Is it dangerous to mount all 20 possible > > > filesystem snapshots and > > > _leave them mounted_ to use at any time ? > > > > I don't think there is any danger, except that you > > will run > > out of disk space sooner or later. > > Every snapshot I have taken so far takes up zero space > on the drive, or at least that is what `df` is telling > me ... Well, right after you have taken the snapshot, it doesn't require any additional space, because it contains just the same data as the original filesystem. Similar to a hard- link which doesn't take any addition disk space either. But as soon as you start modifying the filesystem _after_ you have taken the snapshot, the snapshot will begin to take up space on its own. For example, when you delete a file, then its space will not actually be freed, but taken over by the snapshot, because it still has to exist in the snapshot -- you will not actually free any physical space. Remember that the snapshot is supposed to contain the data from the time when it was created. Similar things happen when you modify a file: When you, say, change a few bytes in a file, then the disk block with the _old_ contents is copied and given to the snap- shot -- then the modification is written to the original disk block. That mechanism is called copy-on-write. It means that your snapshot's space requirement is growing all the time. Removing files does not free any space, and modifying files in fact reduces the free space, even if your modification don't actually increase the size of the file. > > > What about > > > automatically mounting all 20 snapshots at boot > > > time ? > > > > Sorry, I fail to see what exactly you're trying to > > achieve. > > Why would you want to do that? > > I dunno - just to have all the snapshots mounted so > that if I want to access one, I don't have to take the > time to mount it up. I'm just lazy, I guess ... so > there would be no ill effects of doing this ? No -- except, as I said, you'll run out of disk space, sooner or later. Under normal circumstances snapshots don't live for an extended period of time. Typical uses include: - Background fsck. This is done automatically during boot without you having to do anything. - Secure dump. You can take a snapshot and them dump it, which is better than dumping a live filesystem. - Short term backup. You can set up a cron which creates and removes (i.e. "rotates") snapshots in certain inter- vals, e.g. once per hour. This can protect against accidental "rm" commands -- just copy the lost file back from the most recent snapshot. However, I fail to see why you would want to make 20 fixed snapshots, automatically mount them during boot and keep those same snapshots mounted forever. > > > 2. Related to the first question, it seems like I > > > am getting space > > > out of nowher e ... that is, if I fill up a > > > drive, then make a > > > snapshot, then erase the drive and fill it again, > > > > You cannot fill it up again, because the snapshot > > still > > takes up all the space. When you fill the drive and > > make > > a snapshot, erasing the drive will not free any > > space. > > Is this really true ? Yes. See above. > Where did you read this ? Uhm, I think I read it 10 years ago in the manual of a NetApp Filer. :-) FreeBSD's snapshots work very similar to those of the NetApps. > if the snapshot files all take > up the same amount of space as the filesystem itself, It does't. First it takes zero space. When modifying the original filesystem, the space of the snapshot grows. > but `df` does not show an increase in space when I > make a snapshot, how do I tell what is _really_ going > on ? "df" displays the current size of the snapshot (which is zero in the beginning) and the total size of the original filesystem, which includes any snapshots. > > > 3. When I mount a snapshot, as described in the > > > man page, but then > > > later mount - uw the snapshot ( to make that a > > > writeable mount) and, > > > say, touch a file or create a file in the mounted > > > snapshot ... what > > > exactly am I doing ? > > > > You're getting EPERM ("operation not permitted"), > > because > > snapshots are always read-only. > > No, I'm not. Re-read the question - I am saying that > after I mount the snapshot, I then remount it with > -uw, making it writeable (with `mount -uw`), and then > I can _successfully_ touch files inside that snapshot. Have you actually tried that? And did the touched file appear within the snapshot? I don't think so. Note that you might be able to remount the snapshot with -uw, but it doesn't actually change anything. You still cannot write to it. You can also mount a CD-ROM (cd9660) read/write -- and yes, I have tried this. ;-) You don't get an error, and "mount" displays it to be mounted read/write. But you still cannot write to it: First, for the obvious reason that a CD-ROM is physically non-writable. Second, because FreeBSD's cd9660 filesystem does not support write operations. I guess it it very similar with snapshots: You might be able to mount them read/write, but that doesn't mean that you can really successfully write to them. > SO what exactly am I doing then ? Have I ruined the > snapshot ? Can it still be used ? It seem you have not actually tried it, otherwise you would not ask those questions. :-) Best regards Oliver PS: Also see Robert Watson's detailed reply (which I've only noticed after I had written mine ...) -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "A language that doesn't have everything is actually easier to program in than some that do." -- Dennis M. Ritchie From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 22:49:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EEAC16A4D0 for ; Mon, 28 Jun 2004 22:49:35 +0000 (GMT) Received: from minerva.int.gov.br (nat.int.gov.br [200.20.196.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EC1043D1F for ; Mon, 28 Jun 2004 22:49:34 +0000 (GMT) (envelope-from jonny@jonny.eng.br) Received: from jonny.eng.br (jonny.int.gov.br [10.0.8.17]) by minerva.int.gov.br (Postfix) with ESMTP id E9DD1BE506 for ; Mon, 28 Jun 2004 19:49:31 -0300 (BRT) Message-ID: <40E0A07B.6030405@jonny.eng.br> Date: Mon, 28 Jun 2004 19:49:31 -0300 From: =?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: pt-br, en-us, en, pt MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 29 Jun 2004 12:29:08 +0000 Subject: No flames please: Linux mknod compatibilty X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 22:49:35 -0000 Hi everybody, First of all, please copy all answers back to me, since I am not anymore subscribed to -hackers. (Panic: time fault) I´ve done some changes to the kernel mknod(2) handling to make it more compatible to the Linux behaviour, allowing one to create files of type VREG, VSOCK and VFIFO with mknod(2). I already know that BSD way is that one should use creat(2), bind(2) and mkfifo(2) functions for these, but, if all these are indeed vnodes, why bother if one use mkfifo(2) or mknod(2) to create fifos?? The only vnode type I think I left out is VDIR, because it needs to be initialized with "." and "..". I first came with this idea using rsync for a full backup, noticing it could not copy fifos or sockets. I could simply fix rsync, but I thought "fixing" FreeBSD would be a little bit funnier! ;-) To allow your appreciation, here are my patches. I am not an expert in VFS coding, so it should probably be checked by an expert before commiting. All I can say is that it worked for me. I'll submit a PR after this email, to make it faster to commit. ;-) ----8<--------8<--------8<--------8<--------8<--------8<--------8<---- --- RELENG_4/src/sys/kern/vfs_syscalls.c.orig Mon Jun 28 18:11:58 2004 +++ RELENG_4/src/sys/kern/vfs_syscalls.c Mon Jun 28 19:26:31 2004 @@ -1187,14 +1187,20 @@ register struct vnode *vp; struct vattr vattr; int error; - int whiteout = 0; + int vtype; struct nameidata nd; - switch (SCARG(uap, mode) & S_IFMT) { + vtype = SCARG(uap, mode) & S_IFMT; + switch ( vtype ) { case S_IFCHR: case S_IFBLK: error = suser(p); break; + case S_IFREG: + case S_IFIFO: + case S_IFSOCK: + error = 0; + break; default: error = suser_xxx(0, p, PRISON_ROOT); break; @@ -1202,7 +1208,7 @@ if (error) return (error); bwillwrite(); - NDINIT(&nd, CREATE, LOCKPARENT, UIO_USERSPACE, SCARG(uap, path), p); + NDINIT(&nd, CREATE, LOCKPARENT, (vtype==S_IFSOCK)?UIO_SYSSPACE:UIO_USERSPACE, SCARG(uap, path), p); if ((error = namei(&nd)) != 0) return (error); vp = nd.ni_vp; @@ -1212,9 +1218,8 @@ VATTR_NULL(&vattr); vattr.va_mode = (SCARG(uap, mode) & ALLPERMS) &~ p->p_fd->fd_cmask; vattr.va_rdev = SCARG(uap, dev); - whiteout = 0; - switch (SCARG(uap, mode) & S_IFMT) { + switch ( vtype ) { case S_IFMT: /* used by badsect to flag bad sectors */ vattr.va_type = VBAD; break; @@ -1224,8 +1229,17 @@ case S_IFBLK: vattr.va_type = VBLK; break; + case S_IFREG: + vattr.va_type = VREG; + break; + case S_IFSOCK: + vattr.va_type = VSOCK; + break; + case S_IFIFO: + vattr.va_type = VFIFO; + break; case S_IFWHT: - whiteout = 1; + /* NOTHING */ break; default: error = EINVAL; @@ -1234,9 +1248,18 @@ } if (!error) { VOP_LEASE(nd.ni_dvp, p, p->p_ucred, LEASE_WRITE); - if (whiteout) + switch ( vtype ) { + case S_IFWHT: error = VOP_WHITEOUT(nd.ni_dvp, &nd.ni_cnd, CREATE); - else { + break; + case S_IFREG: + case S_IFSOCK: + error = VOP_CREATE(nd.ni_dvp, &nd.ni_vp, + &nd.ni_cnd, &vattr); + if (error == 0) + vput(nd.ni_vp); + break; + default: error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr); if (error == 0) ----8<--------8<--------8<--------8<--------8<--------8<--------8<---- And here is a small test program, ran on both Linux and FreeBSD: ----8<--------8<--------8<--------8<--------8<--------8<--------8<---- #include #include #include #include #include main() { mknod( "test1", S_IFSOCK|0777, 0 ); perror( "mknod" ); errno=0; mknod( "test2", S_IFIFO|0777, 0 ); perror( "mknod" ); errno=0; mknod( "test3", S_IFREG|0777, 0 ); perror( "mknod" ); errno=0; mknod( "test4", S_IFBLK|0777, 0 ); perror( "mknod" ); errno=0; mknod( "test5", S_IFCHR|0777, 0 ); perror( "mknod" ); errno=0; } ----8<--------8<--------8<--------8<--------8<--------8<--------8<---- From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 29 14:08:34 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 452DD16A4CE for ; Tue, 29 Jun 2004 14:08:34 +0000 (GMT) Received: from geri.cc.fer.hr (geri.cc.fer.hr [161.53.72.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EE0143D41 for ; Tue, 29 Jun 2004 14:08:33 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [127.0.0.1] (root@geri.cc.fer.hr [161.53.72.107]) by geri.cc.fer.hr (8.12.9p2/8.12.8) with ESMTP id i5TE7AsU016757 for ; Tue, 29 Jun 2004 16:07:10 +0200 (CEST) (envelope-from ivoras@fer.hr) Message-ID: <40E177DB.6070506@fer.hr> Date: Tue, 29 Jun 2004 16:08:27 +0200 From: Ivan Voras User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org X-Enigmail-Version: 0.84.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Peeking BPF X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 14:08:34 -0000 I need to convert this code: ret = recvfrom(thisint->sockInt, &resultframe, 1520, MSG_PEEK, 0, 0); if (ret > 0) return TRUE; to use BPF. Essentialy, how to find out if a packet is available over the BPF interface? -- What part of "Ph'nglui mglw'nath Cthulhu R'lyeh wgah'nagl fhtagn" don't you understand? From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 29 15:50:49 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8FEE16A4CF for ; Tue, 29 Jun 2004 15:50:49 +0000 (GMT) Received: from merlin.com.ua (Merlin.Com.UA [195.66.196.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72CAF43D39 for ; Tue, 29 Jun 2004 15:50:49 +0000 (GMT) (envelope-from sid@merlin.com.ua) Received: from H55_2.homeinet.loc (localhost [127.0.0.1]) by merlin.com.ua (Postmaster) with ESMTP id 6E34ABD09 for ; Tue, 29 Jun 2004 18:50:47 +0300 (EEST) Date: Tue, 29 Jun 2004 18:48:18 -0700 From: sid@merlin.com.ua X-Mailer: The Bat! (v2.10.03) Business X-Priority: 3 (Normal) Message-ID: <1709637723.20040629184818@merlin.com.ua> To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: ipfw add allow ip from @access_list1 to any in X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: sid@merlin.com.ua List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 15:50:49 -0000 Hello freebsd-hackers, Hi, for my own purposes I add some new features to ipfw2. now hereis patches for 5.1 Luigi some time ago have a look at ones, but now.. if it is looks like interesting, get and enjoy it free this is not a release, I stil work about it. and I wait for 5.3 to make complete patches for 5.3. will be pleasure for me if this will include to release... read first: ftp://merlin.com.ua/pub/FreeBSD/5.1/ipfw_sid/readme ftp://merlin.com.ua/pub/FreeBSD/5.1/ipfw_sid/*.tgz disclaimer: who downloaded it, please make backups your original files, extract patches in new directory and look at ones first. if you not sure that you doing, do not do anything, please. support of that features only if ones will include in FreeBSD and only via freebsd-hackers@freebsd.org its do like this: ipnt add @MY_NET 192.168.0.0/16 ipnt add @MY_NET 195.66.199.0/24 ipnt add @MY_NET 62.16.9.0/24 ipfw add 350 pipe 350 ip from any to @MY_NET out you can manipulate that lists without changing firewall ipnt del @MY_NET 0/0 ipnt add @MY_NET 1.1.1.1 sid_at_merlin.com.ua From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 29 16:10:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E10716A4D6 for ; Tue, 29 Jun 2004 16:10:27 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 981AA43D5F for ; Tue, 29 Jun 2004 16:10:25 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i5TG8MVM072463; Tue, 29 Jun 2004 10:08:22 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 29 Jun 2004 10:08:48 -0600 (MDT) Message-Id: <20040629.100848.48201340.imp@bsdimp.com> To: tobe_better@hotmail.com From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: PCI memory alloc..! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 16:10:27 -0000 In message: "Auge Mike" writes: : While I was trying to track to find out how a device alloc a new memory : resource, I have been little confused on finding out how the new PCI device : can deal with a case when the activation calls pmap_mapdev???? : : What I need to understand that what will happen if pmap_mapdev allocated a : new space that dose not match what is expected by the device and determined : by r_start and r_end ?? The pci bus deals with allocating and mapping the memory. Getting the bus handle and bus tags will let you access it via the bus_space routines or the bus_dma routines. pmap_mamdev is done under the covers and you'll not need to worry about such things. Warner From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 29 17:07:25 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C62E116A4CE for ; Tue, 29 Jun 2004 17:07:25 +0000 (GMT) Received: from smtp.netli.com (ip2-pal-focal.netli.com [66.243.52.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A1ED43D31 for ; Tue, 29 Jun 2004 17:07:25 +0000 (GMT) (envelope-from vlm@netli.com) Received: (qmail 9113 invoked by uid 84); 29 Jun 2004 17:07:07 -0000 Received: from vlm@netli.com by l3-1 with qmail-scanner-0.96 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.174024 secs); 29 Jun 2004 17:07:07 -0000 Received: from unknown (HELO netli.com) (172.17.1.12) by mx01-pal-lan.netli.lan with SMTP; 29 Jun 2004 17:07:07 -0000 Message-ID: <40E1A1F8.90003@netli.com> Date: Tue, 29 Jun 2004 10:08:08 -0700 From: Lev Walkin Organization: Netli, Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040307 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: Ivan Voras References: <40E177DB.6070506@fer.hr> In-Reply-To: <40E177DB.6070506@fer.hr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: Peeking BPF X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 17:07:25 -0000 Ivan Voras wrote: > > I need to convert this code: > > ret = recvfrom(thisint->sockInt, &resultframe, 1520, MSG_PEEK, 0, 0); > if (ret > 0) return TRUE; > > to use BPF. Essentialy, how to find out if a packet is available over > the BPF interface? try to read() it and read() will hang there until there is data in it. alternatively, use poll() or select() to check for readability event. char resultBuffer[65536]; ret = read(thisint->bpfInt, resultBuffer, sizeof(resultBuffer)); if(ret > 0) return TRUE; -- Lev Walkin vlm@netli.com From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 29 18:07:33 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0F2216A4CE for ; Tue, 29 Jun 2004 18:07:33 +0000 (GMT) Received: from geri.cc.fer.hr (geri.cc.fer.hr [161.53.72.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A85543D53 for ; Tue, 29 Jun 2004 18:07:33 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [127.0.0.1] (root@geri.cc.fer.hr [161.53.72.107]) by geri.cc.fer.hr (8.12.9p2/8.12.8) with ESMTP id i5TI6BsU018724 for ; Tue, 29 Jun 2004 20:06:12 +0200 (CEST) (envelope-from ivoras@fer.hr) Message-ID: <40E1AFE1.2050709@fer.hr> Date: Tue, 29 Jun 2004 20:07:29 +0200 From: Ivan Voras User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org X-Enigmail-Version: 0.84.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: 802.1x for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 18:07:33 -0000 I proudly anounce that I've managed to make a workable port of open1x xsupplicant for FreeBSD :) I don't actually have a wireless card, and only nead it in 'wired' mode (e.g. over ethernet), so the wireless bits almost certainly won't work. Anyway, the patch is at http://www.sharanet.org/~ivoras/xsupplicant.patch.gz and there are some notes at http://www.sharanet.org/~ivoras/open1x.html Thanks to everyone who helped with their advice! -- What part of "Ph'nglui mglw'nath Cthulhu R'lyeh wgah'nagl fhtagn" don't you understand? From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 29 20:05:28 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6EA3716A4CE for ; Tue, 29 Jun 2004 20:05:28 +0000 (GMT) Received: from mxfep02.bredband.com (mxfep02.bredband.com [195.54.107.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD95A43D45 for ; Tue, 29 Jun 2004 20:03:21 +0000 (GMT) (envelope-from mnemo@minimum.se) Received: from [213.112.41.247] ([213.112.41.247] [213.112.41.247]) by mxfep02.bredband.com with ESMTP id <20040629200308.OETC26240.mxfep02.bredband.com@[213.112.41.247]> for ; Tue, 29 Jun 2004 22:03:08 +0200 Message-ID: <40E1CAAD.3000303@minimum.se> Date: Tue, 29 Jun 2004 22:01:49 +0200 From: Martin Olsson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en, sv MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 20:05:28 -0000 Hi, * MacOS X is based on FreeBSD * there is a x86 kernel for FreeBSD Does that mean I can buy a copy of MacOS X, download an x86 kernel for freeBSD, do some (or quite alot of) hacking and then get MacOS X running on my PC? I realize that such hacking would be quite substantial but maybe if I forgot about audio and all that, just how much work would it be? Could it be done? Sincerly, Martin Olsson From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 29 20:16:43 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6264F16A4CE for ; Tue, 29 Jun 2004 20:16:43 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9A7943D45 for ; Tue, 29 Jun 2004 20:16:42 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i5TKFDlF074937; Tue, 29 Jun 2004 14:15:15 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 29 Jun 2004 14:15:39 -0600 (MDT) Message-Id: <20040629.141539.73587905.imp@bsdimp.com> To: mnemo@minimum.se From: "M. Warner Losh" In-Reply-To: <40E1CAAD.3000303@minimum.se> References: <40E1CAAD.3000303@minimum.se> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 20:16:43 -0000 In message: <40E1CAAD.3000303@minimum.se> Martin Olsson writes: : Does that mean I can buy a copy of MacOS X, download an x86 kernel for : freeBSD, do some (or quite alot of) hacking and then get MacOS X running : on my PC? No. MacOS X is for PowerPC, not Intel. Also, the FreeBSD kernel and Darwin kernels are somewhat different. Warner From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 29 20:19:25 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45C6F16A4CE for ; Tue, 29 Jun 2004 20:19:25 +0000 (GMT) Received: from smtp.netli.com (ip2-pal-focal.netli.com [66.243.52.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0534243D39 for ; Tue, 29 Jun 2004 20:19:25 +0000 (GMT) (envelope-from vlm@netli.com) Received: (qmail 22594 invoked by uid 84); 29 Jun 2004 20:19:15 -0000 Received: from vlm@netli.com by l3-1 with qmail-scanner-0.96 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.17883 secs); 29 Jun 2004 20:19:15 -0000 Received: from unknown (HELO netli.com) (172.17.1.12) by mx01-pal-lan.netli.lan with SMTP; 29 Jun 2004 20:19:14 -0000 Message-ID: <40E1CF00.2090601@netli.com> Date: Tue, 29 Jun 2004 13:20:16 -0700 From: Lev Walkin Organization: Netli, Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040307 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: Martin Olsson References: <40E1CAAD.3000303@minimum.se> In-Reply-To: <40E1CAAD.3000303@minimum.se> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 20:19:25 -0000 Martin Olsson wrote: > Hi, > > * MacOS X is based on FreeBSD > * there is a x86 kernel for FreeBSD > > Does that mean I can buy a copy of MacOS X, download an x86 kernel for > freeBSD, do some (or quite alot of) hacking and then get MacOS X running > on my PC? > > I realize that such hacking would be quite substantial but maybe if I > forgot about audio and all that, just how much work would it be? Could > it be done? MacOS X is based on multiple concepts, including Darwin. Darwin is based on FreeBSD. To run MacOS on your platform, you would need a bulk of sources which are not freely accessible. You simply cannot "hack" Aqua or Quartz sources because there ain't any in public access. Otherwise, you could just install Darwin, it will run on your PC without any hacking. -- Lev Walkin vlm@netli.com From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 29 20:20:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2C9916A4CE for ; Tue, 29 Jun 2004 20:20:37 +0000 (GMT) Received: from britannica.bec.de (wlan032106.uni-rostock.de [139.30.32.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8684B43D1F for ; Tue, 29 Jun 2004 20:20:32 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (localhost [127.0.0.1]) by britannica.bec.de (8.12.10/8.12.10) with ESMTP id i5TKJNc9001526; Tue, 29 Jun 2004 22:19:28 +0200 (CEST) (envelope-from joerg@britannica.bec.de) Received: (from joerg@localhost) by britannica.bec.de (8.12.10/8.12.10/Submit) id i5TKJ2FR001525; Tue, 29 Jun 2004 22:19:02 +0200 (CEST) Date: Tue, 29 Jun 2004 22:19:02 +0200 From: Joerg Sonnenberger To: Martin Olsson Message-ID: <20040629201902.GA1495@britannica.bec.de> Mail-Followup-To: Martin Olsson , freebsd-hackers@freebsd.org References: <40E1CAAD.3000303@minimum.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40E1CAAD.3000303@minimum.se> User-Agent: Mutt/1.4.1i cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 20:20:37 -0000 On Tue, Jun 29, 2004 at 10:01:49PM +0200, Martin Olsson wrote: > Hi, > > * MacOS X is based on FreeBSD > * there is a x86 kernel for FreeBSD > > Does that mean I can buy a copy of MacOS X, download an x86 kernel for > freeBSD, do some (or quite alot of) hacking and then get MacOS X running > on my PC? > > I realize that such hacking would be quite substantial but maybe if I > forgot about audio and all that, just how much work would it be? Could > it be done? Hm. Yes, that's possible. In principle, you have to write a PPC emulator to get the programs runnable, a Darwin emulation for the OS kernel [NetBSD might help there] and of course do a lot of testing. On a second thought, you might just emulate a full PPC like VmWare does. You don't really need FreeBSD for this, but having such software would be cool, so go on :) OS X is based on FreeBSD, yes. But the kernel is very different now and the greatest problems are (a) it's PPC and (b) most of the interesting stuff isn't really affected by the kernel. So if Apple would start to distribute e.g. OS X for IA32, yes, this would be a lot of work, but achievable. For PPC it surely can be done and NetBSD started something already. The biggest problem is likely to be the GUI support. Joerg > > > Sincerly, > Martin Olsson > _______________________________________________ > 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 Jun 29 21:26:53 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FFB016A4DF for ; Tue, 29 Jun 2004 21:26:53 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6580943D53 for ; Tue, 29 Jun 2004 21:26:52 +0000 (GMT) (envelope-from max@love2party.net) Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BfQ7r-0001l7-00; Tue, 29 Jun 2004 23:26:47 +0200 Received: from [217.83.10.36] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1BfQ7q-0005hM-00; Tue, 29 Jun 2004 23:26:47 +0200 From: Max Laier To: freebsd-hackers@freebsd.org, sid@merlin.com.ua Date: Tue, 29 Jun 2004 23:24:05 +0200 User-Agent: KMail/1.6.2 References: <1709637723.20040629184818@merlin.com.ua> In-Reply-To: <1709637723.20040629184818@merlin.com.ua> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_83d4AC0dvlpGM+T"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406292324.12678.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 Subject: Re: ipfw add allow ip from @access_list1 to any in X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 21:26:53 -0000 --Boundary-02=_83d4AC0dvlpGM+T Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 30 June 2004 03:48, sid@merlin.com.ua wrote: > Hello freebsd-hackers, > > > Hi, > for my own purposes I add some new features to ipfw2. > now hereis patches for 5.1 > Luigi some time ago have a look at ones, but now.. > if it is looks like interesting, get and enjoy it free > this is not a release, I stil work about it. > and I wait for 5.3 to make complete patches for 5.3. > will be pleasure for me if this will include to release... > > read first: > ftp://merlin.com.ua/pub/FreeBSD/5.1/ipfw_sid/readme > > ftp://merlin.com.ua/pub/FreeBSD/5.1/ipfw_sid/*.tgz > > disclaimer: > who downloaded it, please make backups your original files, > extract patches in new directory and look at ones first. > if you not sure that you doing, do not do anything, please. > support of that features only if ones will include in FreeBSD > and only via freebsd-hackers@freebsd.org > > its do like this: > > ipnt add @MY_NET 192.168.0.0/16 > ipnt add @MY_NET 195.66.199.0/24 > ipnt add @MY_NET 62.16.9.0/24 > > ipfw add 350 pipe 350 ip from any to @MY_NET out > > you can manipulate that lists without changing firewall > > ipnt del @MY_NET 0/0 > ipnt add @MY_NET 1.1.1.1 I think something like this is implemented in -current for quite some time= =20 already. Check the "LOOKUP TABLES" section of ipfw(8) and ask ru@ about his= =20 plans to transform them from numbered to named entities (as that is what yo= ur=20 are suggesting). =2D-=20 Best regards, | mlaier@freebsd.org Max Laier | ICQ #67774661 http://pf4freebsd.love2party.net/ | mlaier@EFnet --Boundary-02=_83d4AC0dvlpGM+T Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBA4d38XyyEoT62BG0RAgqQAJkBskRGnCCgv1xpGNP6TLsbPSwbBwCdE/ua DK0diRJZkuMLak/xA2ZLROI= =rf2G -----END PGP SIGNATURE----- --Boundary-02=_83d4AC0dvlpGM+T-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 29 21:42:21 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB0D516A4CE for ; Tue, 29 Jun 2004 21:42:21 +0000 (GMT) Received: from afields.ca (afields.ca [216.194.67.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F91F43D2F for ; Tue, 29 Jun 2004 21:42:21 +0000 (GMT) (envelope-from afields@afields.ca) Received: from afields.ca (localhost.afields.ca [127.0.0.1]) by afields.ca (8.12.11/8.12.11) with ESMTP id i5TLgKYb051109; Tue, 29 Jun 2004 17:42:20 -0400 (EDT) (envelope-from afields@afields.ca) Received: (from afields@localhost) by afields.ca (8.12.11/8.12.11/Submit) id i5TLgKNH051108; Tue, 29 Jun 2004 17:42:20 -0400 (EDT) (envelope-from afields) Date: Tue, 29 Jun 2004 17:42:20 -0400 From: Allan Fields To: Martin Olsson Message-ID: <20040629214220.GF594@afields.ca> References: <40E1CAAD.3000303@minimum.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40E1CAAD.3000303@minimum.se> User-Agent: Mutt/1.4i cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 21:42:21 -0000 On Tue, Jun 29, 2004 at 10:01:49PM +0200, Martin Olsson wrote: > Hi, > > * MacOS X is based on FreeBSD > * there is a x86 kernel for FreeBSD And a lot of other sources too. Not a drop-in replacement. You can Run Mac OS X or Darwin/PPC on FreeBSD w/ PearPC ( http://pearpc.sf.net ). And it's pretty slow at this point. Nothing like running MOL on Linux on PPC. You can Run Darwin/x86 natively on your PC ( http://www.opensource.apple.com , http://www.opendarwin.org). You can Run Darwin on FreeBSD on your PC w/ Bochs or VMWare ( http://bochs.sf.net ) Why would you want to use Mac OS X w/ FreeBSD anyway? The thing about all this emulation/virtual machine stuff is that you should ask, is it worth it? I've been thinking about running multiple BSDs on one machine for development purposes. Even multibooting taught me this fiddling around is quite time consuming. > Sincerly, > Martin Olsson -- Allan Fields, AFRSL - http://afields.ca 2D4F 6806 D307 0889 6125 C31D F745 0D72 39B4 5541 From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 01:01:53 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F0E816A4CE for ; Wed, 30 Jun 2004 01:01:53 +0000 (GMT) Received: from smtp.internal.alivewww.com (gp1.alivewww.com [217.158.94.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5E5C43D39 for ; Wed, 30 Jun 2004 01:01:52 +0000 (GMT) (envelope-from enquiries@alivewww.com) Received: from host-83-146-2-180.bulldogdsl.com ([83.146.2.180]) by smtp.internal.alivewww.com with asmtp (Exim 4.34) id 1BfTTP-00022b-Lu for freebsd-hackers@freebsd.org; Wed, 30 Jun 2004 02:01:17 +0100 From: Alasdair Lumsden To: freebsd-hackers@freebsd.org In-Reply-To: <40E1CF00.2090601@netli.com> References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> Content-Type: text/plain Message-Id: <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6-1mdk Date: Wed, 30 Jun 2004 02:01:06 +0100 Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 01:01:53 -0000 On Tue, 2004-06-29 at 21:20, Lev Walkin wrote: > MacOS X is based on multiple concepts, including > Darwin. Darwin is based on FreeBSD. "Darwin is based on FreeBSD" - technically, no :) Darwin is a continuation of NeXT Step which is based on the Mach kernel. While Mach is derived from 4.3BSD (circa 1986~1988), there's been about 15 years worth of divergence since then. For example, FreeBSD is monolithic while Mach is more micro-kernel based. Also the driver models are quite different, eg Darwin uses IOKit (Object Oriented driver interface model). So, its correct to say Darwin is based on NeXT Step, Mach, and 4.3BSD, but not to say it's based on FreeBSD. It would be interesting to see what percentage of Darwin is based on 4.3BSD, Mach/NeXTStep, FreeBSD, and Apple code (ie post-NeXT acquisition). Even more interestingly, just how much code has migrated from Darwin to FreeBSD? Apple seems to do a lot of taking from the Open Source community, how much have we taken much back? From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 01:09:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B81A16A4CE for ; Wed, 30 Jun 2004 01:09:35 +0000 (GMT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35E4743D5D for ; Wed, 30 Jun 2004 01:09:35 +0000 (GMT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc11) with ESMTP id <200406300109340130054575e>; Wed, 30 Jun 2004 01:09:34 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id SAA64663; Tue, 29 Jun 2004 18:09:33 -0700 (PDT) Date: Tue, 29 Jun 2004 18:09:31 -0700 (PDT) From: Julian Elischer To: Alasdair Lumsden In-Reply-To: <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 01:09:35 -0000 On Wed, 30 Jun 2004, Alasdair Lumsden wrote: > On Tue, 2004-06-29 at 21:20, Lev Walkin wrote: > > MacOS X is based on multiple concepts, including > > Darwin. Darwin is based on FreeBSD. > > > "Darwin is based on FreeBSD" - technically, no :) > > Darwin is a continuation of NeXT Step which is based on the Mach kernel. > > While Mach is derived from 4.3BSD (circa 1986~1988), there's been about > 15 years worth of divergence since then. For example, FreeBSD is > monolithic while Mach is more micro-kernel based. Also the driver models > are quite different, eg Darwin uses IOKit (Object Oriented driver > interface model). > > So, its correct to say Darwin is based on NeXT Step, Mach, and 4.3BSD, > but not to say it's based on FreeBSD. > > > It would be interesting to see what percentage of Darwin is based on > 4.3BSD, Mach/NeXTStep, FreeBSD, and Apple code (ie post-NeXT > acquisition). > There are bits of FreeBSD in the kernel.. the majority of the importing has been in the userland however where the UNIX userland is mostly based on FreeBSD (or so I'm told) > Even more interestingly, just how much code has migrated from Darwin to > FreeBSD? Apple seems to do a lot of taking from the Open Source > community, how much have we taken much back? > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 01:16:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB03B16A4CE for ; Wed, 30 Jun 2004 01:16:48 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A2C043D4C for ; Wed, 30 Jun 2004 01:16:48 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 4C3EF651F7 for ; Wed, 30 Jun 2004 02:16:36 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 58473-01-5 for ; Wed, 30 Jun 2004 02:16:36 +0100 (BST) Received: from empiric.dek.spc.org (82-147-17-88.dsl.uk.rapidplay.com [82.147.17.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id F12C5651F4 for ; Wed, 30 Jun 2004 02:16:35 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 46544614B; Wed, 30 Jun 2004 02:16:35 +0100 (BST) Date: Wed, 30 Jun 2004 02:16:35 +0100 From: Bruce M Simpson To: freebsd-hackers@FreeBSD.org Message-ID: <20040630011635.GF34501@empiric.dek.spc.org> Mail-Followup-To: freebsd-hackers@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: Article on Sun's DTrace X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 01:16:48 -0000 This recently caught my eye: http://www.samag.com/documents/s=9171/sam0406h/0406h.htm There are a number of good sounding suggestions in there. BMS From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 01:38:28 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 109D716A4CE for ; Wed, 30 Jun 2004 01:38:28 +0000 (GMT) Received: from mail2.speakeasy.net (mail2.speakeasy.net [216.254.0.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id E101A43D54 for ; Wed, 30 Jun 2004 01:38:27 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 9250 invoked from network); 30 Jun 2004 01:37:34 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 30 Jun 2004 01:37:33 -0000 Received: from 131.106.56.214 (p58.n-nypop02.stsn.com [199.106.89.58]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i5U1bLxK014025; Tue, 29 Jun 2004 21:37:30 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Tue, 29 Jun 2004 21:38:26 -0400 User-Agent: KMail/1.6 References: <20040630011635.GF34501@empiric.dek.spc.org> In-Reply-To: <20040630011635.GF34501@empiric.dek.spc.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406292138.26068.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx Subject: Re: Article on Sun's DTrace X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 01:38:28 -0000 On Tuesday 29 June 2004 09:16 pm, Bruce M Simpson wrote: > This recently caught my eye: > http://www.samag.com/documents/s=9171/sam0406h/0406h.htm > > There are a number of good sounding suggestions in there. They gave a paper on it at USENIX ATC as well. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 01:42:47 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D19016A4CE for ; Wed, 30 Jun 2004 01:42:47 +0000 (GMT) Received: from adsl-68-76-19-75.dsl.klmzmi.ameritech.net (adsl-68-76-19-75.dsl.klmzmi.ameritech.net [68.76.19.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BE4D43D41 for ; Wed, 30 Jun 2004 01:42:46 +0000 (GMT) (envelope-from luke@foolishgames.com) Received: from [192.168.2.49] (adsl-65-42-187-207.dsl.klmzmi.ameritech.net [65.42.187.207]) (authenticated bits=0)ESMTP id i5U1gFC1041097; Tue, 29 Jun 2004 21:42:16 -0400 (EDT) (envelope-from luke@foolishgames.com) In-Reply-To: <40E1CAAD.3000303@minimum.se> References: <40E1CAAD.3000303@minimum.se> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <9AB2A3A2-CA36-11D8-96CD-000A95EFF4CA@foolishgames.com> Content-Transfer-Encoding: 7bit From: Lucas Holt Date: Tue, 29 Jun 2004 21:41:27 -0400 To: Martin Olsson X-Mailer: Apple Mail (2.618) X-Virus-Scanned: clamd / ClamAV version 0.73, clamav-milter version 0.73a on adsl-68-76-19-75.dsl.klmzmi.ameritech.net X-Virus-Status: Clean cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 01:42:47 -0000 Here's an idea.. install FreeBSD 5.2.1 and use the ports collection to get PearPC. Then you can get a license to OSX and run it. I read the hardware support list, and sound doesn't even work yet in pearpc. It might be more beneficial to buy a used Mac. I have a FreeBSD desktop and an Ibook. OSX is very nice. Apple actually had a build of OSX that ran on ia32 hardware before 10.0 came out. It was one of the first release canidates. Apple kept it updated through 10.1 supposedly internally in case they needed to switch to Amd or Intel processors. Instead they chose the G4 and G5 chips. Thats how darwin was ported to x86 hardware. (well i think there was a version of next for pc hardware toward the end...) I'm going to try pearpc since I have 10.1, 10.2 and 10.3 install CDs. :) On Jun 29, 2004, at 4:01 PM, Martin Olsson wrote: > Hi, > > * MacOS X is based on FreeBSD > * there is a x86 kernel for FreeBSD > > Does that mean I can buy a copy of MacOS X, download an x86 kernel for > freeBSD, do some (or quite alot of) hacking and then get MacOS X > running on my PC? > > I realize that such hacking would be quite substantial but maybe if I > forgot about audio and all that, just how much work would it be? Could > it be done? > > > Sincerly, > Martin Olsson > _______________________________________________ > 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" > > Lucas Holt Luke@FoolishGames.com ________________________________________________________ FoolishGames.com (Jewel Fan Site) JustJournal.com (Free blogging) From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 02:00:02 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BB3B16A4CE for ; Wed, 30 Jun 2004 02:00:02 +0000 (GMT) Received: from voodoo.oberon.net (voodoo.oberon.net [212.118.165.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92A3E43D2D for ; Wed, 30 Jun 2004 02:00:01 +0000 (GMT) (envelope-from igor@doom.homeunix.org) Received: from [213.172.12.36] (helo=doom.homeunix.org) by voodoo.oberon.net with esmtp (TLSv1:AES256-SHA:256) (Exim 4.34 (FreeBSD)) id 1BfUOE-000Hnk-Tw for hackers@freebsd.org; Wed, 30 Jun 2004 04:00:02 +0200 Received: from doom.homeunix.org (localhost [127.0.0.1]) by doom.homeunix.org (8.12.11/8.12.11) with ESMTP id i5U1t1H4000600; Wed, 30 Jun 2004 05:55:05 +0400 (MSD) (envelope-from igor@doom.homeunix.org) Received: (from igor@localhost) by doom.homeunix.org (8.12.11/8.12.11/Submit) id i5T94U64044757; Tue, 29 Jun 2004 13:04:30 +0400 (MSD) (envelope-from igor) Date: Tue, 29 Jun 2004 13:04:30 +0400 From: Igor Pokrovsky To: Markie Message-ID: <20040629090430.GA44729@doom.homeunix.org> Mail-Followup-To: Markie , hackers@freebsd.org, Arne Schwabe References: <86d63n8ttx.fsf@kamino.rfc1149.org> <002c01c45adb$53ce6770$f700000a@ape> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002c01c45adb$53ce6770$f700000a@ape> User-Agent: Mutt/1.4.2.1i cc: hackers@freebsd.org cc: Arne Schwabe Subject: Re: Setting Standby Mode for ATA Disks X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 02:00:02 -0000 On Fri, Jun 25, 2004 at 06:38:51PM +0100, Markie wrote: > ----- Original Message ----- > From: "Arne Schwabe" > To: > Sent: Friday, June 25, 2004 5:51 PM > Subject: Setting Standby Mode for ATA Disks > > > | Hi, > | > | is there a way to set the standby mode for ATA Disks > | > | Under linux hdparm -S seems to work: > | > | -S Set the standby (spindown) timeout for the drive. This > value is > | used by the drive to determine how long to wait (with no > disk > | activity) before turning off the spindle motor to save > power. > | Under such circumstances, the drive may take as long as 30 > sec- > | onds to respond to a subsequent disk access, though most > drives > | are much quicker. The encoding of the timeout value is > somewhat > | peculiar. A value of zero means "off". Values from 1 > to 240 > | specify multiples of 5 seconds, for timeouts from 5 > seconds to > | 20 minutes. Values from 241 to 251 specify from 1 to 11 > units > | of 30 minutes, for timeouts from 30 minutes to 5.5 > hours. A > | value of 252 signifies a timeout of 21 minutes, 253 sets a > ven- > | dor-defined timeout, and 255 is interpreted as 21 minutes > plus > | 15 seconds. > | > | I googled but I did not found anything like this for FreeBSD :/ > > Well this almost certainly doesn't help your question at all, but when I > upgraded a box from 4.x to 5.2.1 recently I found it was spinning down one > of the disks without twiddling with any settings at all. This, in turn, > appears to have caused the box to lockup/panic (can't remember now) so I > had to make a cron job that wrote to the disk every minute to stop it from > spinning down! > > I would love to know if there's some tool which can be used to just turn > this behaviour off completely! Did you try to turn it off in BIOS? -ip -- In a family recipe you just discovered in an old book, the most vital measurement will be illegible. From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 02:17:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29F2516A4CE for ; Wed, 30 Jun 2004 02:17:54 +0000 (GMT) Received: from mps2.plala.or.jp (c145240.vh.plala.or.jp [210.150.145.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95A1C43D2F for ; Wed, 30 Jun 2004 02:17:52 +0000 (GMT) (envelope-from e-kamo@trio.plala.or.jp) Received: from msvc1.plala.or.jp ([172.23.8.209]) by mps2.plala.or.jp with SMTP id <20040630021743.NRW1281.mps2.plala.or.jp@msvc1.plala.or.jp> for ; Wed, 30 Jun 2004 11:17:43 +0900 Received: ( 1203 invoked from network); 30 Jun 2004 11:17:43 +0900 X-SVCK: Received: from unknown (HELO mpb1.plala.or.jp) (172.23.8.16) by msvc1 with SMTP; 30 Jun 2004 11:17:42 +0900 Received: from trio.plala.or.jp ([219.25.148.126]) by mpb1.plala.or.jp with ESMTP id <20040630021742.QXVF19716.mpb1.plala.or.jp@trio.plala.or.jp>; Wed, 30 Jun 2004 11:17:42 +0900 Message-ID: <40E22442.10406@trio.plala.or.jp> Date: Wed, 30 Jun 2004 11:24:02 +0900 From: Eitarou Kamo User-Agent: Mozilla/5.0 (Windows; U; Win98; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: ja MIME-Version: 1.0 To: Julian Elischer , freebsd-hackers@freebsd.org References: In-Reply-To: X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 02:17:54 -0000 Hi Julian or guys, Julian Elischer wrote: > > > > >There are bits of FreeBSD in the kernel.. >the majority of the importing has been in the userland however where >the UNIX userland is mostly based on FreeBSD (or so I'm told) > > There seem to be some stories about Mac X. I have read the article which mentioned that for Mac X Apple hired a core developer of FreeBSD as the manager. and he and his team made BSD flavor of Mac X. But I heard Mac X is based on NetBSD, too. I'm confused a bit. Any idea? I will be back umass issue. For a while I have left it. Eitarou -- *********************** Eitarou Kamo Tel. +81 75 7035997 Fax +81 75 7035997 VoIP 050 10585997(domestic only) e-mail e-kamo@trio.plala.or.jp For business: Feel free to mail me(above), please. Donation http://www.PayPal.Com GPG FingerPrint: 032D FDF9 D27B 23F7 9A81 BF4C 626C FBAA BC3A 9895 ************************************************************************ From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 02:24:16 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BBF816A4CE for ; Wed, 30 Jun 2004 02:24:16 +0000 (GMT) Received: from smtp.internal.alivewww.com (gp1.alivewww.com [217.158.94.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C31743D2F for ; Wed, 30 Jun 2004 02:24:16 +0000 (GMT) (envelope-from enquiries@alivewww.com) Received: from host-83-146-2-180.bulldogdsl.com ([83.146.2.180]) by smtp.internal.alivewww.com with asmtp (Exim 4.34) id 1BfUlW-0004VR-03; Wed, 30 Jun 2004 03:24:02 +0100 From: Alasdair Lumsden To: freebsd-hackers@freebsd.org In-Reply-To: <40E22442.10406@trio.plala.or.jp> References: <40E22442.10406@trio.plala.or.jp> Content-Type: text/plain Message-Id: <1088562237.3528.116.camel@host-83-146-2-180.bulldogdsl.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6-1mdk Date: Wed, 30 Jun 2004 03:23:57 +0100 Content-Transfer-Encoding: 7bit cc: Julian Elischer Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 02:24:16 -0000 On Wed, 2004-06-30 at 03:24, Eitarou Kamo wrote: > Julian Elischer wrote: > >There are bits of FreeBSD in the kernel.. > >the majority of the importing has been in the userland however where > >the UNIX userland is mostly based on FreeBSD (or so I'm told) > > There seem to be some stories about Mac X. > I have read the article which mentioned that for Mac X > Apple hired a core developer of FreeBSD as the manager. > and he and his team made BSD flavor of Mac X. But I heard > Mac X is based on NetBSD, too. I'm confused a bit. > > Any idea? http://www.daemonnews.org/200010/darwin.html From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 02:37:15 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C36E16A4CE for ; Wed, 30 Jun 2004 02:37:15 +0000 (GMT) Received: from adsl-68-76-19-75.dsl.klmzmi.ameritech.net (adsl-68-76-19-75.dsl.klmzmi.ameritech.net [68.76.19.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id A384B43D39 for ; Wed, 30 Jun 2004 02:37:14 +0000 (GMT) (envelope-from luke@foolishgames.com) Received: from [192.168.2.49] (adsl-65-42-187-207.dsl.klmzmi.ameritech.net [65.42.187.207]) (authenticated bits=0)ESMTP id i5U2beOl041531; Tue, 29 Jun 2004 22:37:41 -0400 (EDT) (envelope-from luke@foolishgames.com) In-Reply-To: <9AB2A3A2-CA36-11D8-96CD-000A95EFF4CA@foolishgames.com> References: <40E1CAAD.3000303@minimum.se> <9AB2A3A2-CA36-11D8-96CD-000A95EFF4CA@foolishgames.com> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <5874D904-CA3E-11D8-96CD-000A95EFF4CA@foolishgames.com> Content-Transfer-Encoding: 7bit From: Lucas Holt Date: Tue, 29 Jun 2004 22:36:52 -0400 To: Lucas Holt X-Mailer: Apple Mail (2.618) X-Virus-Scanned: clamd / ClamAV version 0.73, clamav-milter version 0.73a on adsl-68-76-19-75.dsl.klmzmi.ameritech.net X-Virus-Status: Clean cc: freebsd-hackers@freebsd.org cc: Martin Olsson Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 02:37:15 -0000 I have pearpc installed from ports. I'm having trouble installing 10.1. In fact, i can't seem to get the cd to even boot at this point. Lucas Holt Luke@FoolishGames.com ________________________________________________________ FoolishGames.com (Jewel Fan Site) JustJournal.com (Free blogging) From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 03:20:12 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 161F716A4CE for ; Wed, 30 Jun 2004 03:20:12 +0000 (GMT) Received: from mps2.plala.or.jp (c145240.vh.plala.or.jp [210.150.145.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B24643D2D for ; Wed, 30 Jun 2004 03:20:08 +0000 (GMT) (envelope-from e-kamo@trio.plala.or.jp) Received: from msvc2.plala.or.jp ([172.23.8.210]) by mps2.plala.or.jp with SMTP id <20040630031948.DTAU1281.mps2.plala.or.jp@msvc2.plala.or.jp> for ; Wed, 30 Jun 2004 12:19:48 +0900 Received: ( 4126 invoked from network); 30 Jun 2004 12:19:48 +0900 X-SVCK: Received: from unknown (HELO mpb1.plala.or.jp) (172.23.8.16) by msvc2 with SMTP; 30 Jun 2004 12:19:48 +0900 Received: from trio.plala.or.jp ([219.25.148.126]) by mpb1.plala.or.jp with ESMTP id <20040630031947.QZBL19716.mpb1.plala.or.jp@trio.plala.or.jp>; Wed, 30 Jun 2004 12:19:47 +0900 Message-ID: <40E232D1.3050404@trio.plala.or.jp> Date: Wed, 30 Jun 2004 12:26:09 +0900 From: Eitarou Kamo User-Agent: Mozilla/5.0 (Windows; U; Win98; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: ja MIME-Version: 1.0 To: Eitarou Kamo , freebsd-hackers@freebsd.org References: <40E22442.10406@trio.plala.or.jp> <1088562237.3528.116.camel@host-83-146-2-180.bulldogdsl.com> <40E22C83.9090100@trio.plala.or.jp> In-Reply-To: <40E22C83.9090100@trio.plala.or.jp> X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 03:20:12 -0000 Hi Alasdair, Alasdair Lumsden wrote: >>On Wed, 2004-06-30 at 03:24, Eitarou Kamo wrote: >> >> > > >>>> >>>>Any idea? >>>> >>>> >> >> >> >>http://www.daemonnews.org/200010/darwin.html >> >> > > I see. Eitarou -- *********************** Eitarou Kamo Tel. +81 75 7035997 Fax +81 75 7035997 VoIP 050 10585997(domestic only) e$B!>(Bmail e-kamo@trio.plala.or.jp For business: Feel free to mail me(above), please. Donation http://www.PayPal.Com GPG FingerPrint: 032D FDF9 D27B 23F7 9A81 BF4C 626C FBAA BC3A 9895 ************************************************************************ From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 03:31:45 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7488416A4CE for ; Wed, 30 Jun 2004 03:31:45 +0000 (GMT) Received: from smtp.netli.com (ip2-pal-focal.netli.com [66.243.52.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C84443D1F for ; Wed, 30 Jun 2004 03:31:45 +0000 (GMT) (envelope-from vlm@netli.com) Received: (qmail 25380 invoked by uid 84); 30 Jun 2004 03:31:29 -0000 Received: from vlm@netli.com by l3-1 with qmail-scanner-0.96 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.180353 secs); 30 Jun 2004 03:31:29 -0000 Received: from unknown (HELO netli.com) (172.17.1.12) by mx01-pal-lan.netli.lan with SMTP; 30 Jun 2004 03:31:28 -0000 Message-ID: <40E23451.4010803@netli.com> Date: Tue, 29 Jun 2004 20:32:33 -0700 From: Lev Walkin Organization: Netli, Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040307 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: Alasdair Lumsden References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> In-Reply-To: <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 03:31:45 -0000 Alasdair Lumsden wrote: > On Tue, 2004-06-29 at 21:20, Lev Walkin wrote: > >>MacOS X is based on multiple concepts, including >>Darwin. Darwin is based on FreeBSD. > > > > "Darwin is based on FreeBSD" - technically, no :) > > Darwin is a continuation of NeXT Step which is based on the Mach kernel. > > While Mach is derived from 4.3BSD (circa 1986~1988), there's been about > 15 years worth of divergence since then. For example, FreeBSD is > monolithic while Mach is more micro-kernel based. Also the driver models > are quite different, eg Darwin uses IOKit (Object Oriented driver > interface model). > > So, its correct to say Darwin is based on NeXT Step, Mach, and 4.3BSD, > but not to say it's based on FreeBSD. > http://www.daemonnews.org/200010/darwin.html === cut === Darwin is based on Mach 3.0 and FreeBSD 3.2, and glued together in a very NeXT-like style. === cut === You are contradicting yourself. -- Lev Walkin vlm@netli.com From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 04:15:47 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B9FA16A4CE for ; Wed, 30 Jun 2004 04:15:47 +0000 (GMT) Received: from web41405.mail.yahoo.com (web41405.mail.yahoo.com [66.218.93.71]) by mx1.FreeBSD.org (Postfix) with SMTP id ACF0D43D49 for ; Wed, 30 Jun 2004 04:15:46 +0000 (GMT) (envelope-from zera_holladay@yahoo.com) Message-ID: <20040630041529.76490.qmail@web41405.mail.yahoo.com> Received: from [67.39.180.55] by web41405.mail.yahoo.com via HTTP; Tue, 29 Jun 2004 21:15:29 PDT Date: Tue, 29 Jun 2004 21:15:29 -0700 (PDT) From: zera holladay To: freebsd-hackers@freebsd.org In-Reply-To: <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 04:15:47 -0000 > Even more interestingly, just how much code has > migrated from Darwin to > FreeBSD? Apple seems to do a lot of taking from the > Open Source > community, how much have we taken much back? I was wondering about this ... there was a thread not too long ago about Darwin and FreeBSD. Somebody made the point that code seems to go into Darwin but no code is returned. It occurred to me that open source is like an ethical choice inasmuch as when one chooses the more ethical option they’re not always looking to further their own desires - sometimes they are simply shooting themselves in the foot. Is this a strong point or a weak point of open source? I’m not looking to resolve an enigmatic psychological question, I was just wondering what those people who contribute to open source think. -zh __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 04:26:38 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBA5F16A4CE for ; Wed, 30 Jun 2004 04:26:38 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8603643D5E for ; Wed, 30 Jun 2004 04:26:38 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i5U4Qbr5043816; Tue, 29 Jun 2004 23:26:37 -0500 (CDT) (envelope-from dan) Date: Tue, 29 Jun 2004 23:26:37 -0500 From: Dan Nelson To: zera holladay Message-ID: <20040630042637.GA6574@dan.emsphone.com> References: <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <20040630041529.76490.qmail@web41405.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040630041529.76490.qmail@web41405.mail.yahoo.com> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 04:26:38 -0000 In the last episode (Jun 29), zera holladay said: > > Even more interestingly, just how much code has migrated from > > Darwin to FreeBSD? Apple seems to do a lot of taking from the Open > > Source community, how much have we taken much back? > > I was wondering about this ... there was a thread not too long ago > about Darwin and FreeBSD. Somebody made the point that code seems to > go into Darwin but no code is returned. Only because few people have gone through the Darwin tree and pulled out changes. It does happen (grep for darwin in the commitlogs), but since there's no-one being paid to do it, you get much less code going in that direction. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 04:50:40 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2D0816A4D5 for ; Wed, 30 Jun 2004 04:50:18 +0000 (GMT) Received: from sarajevo.pacific.net.sg (sarajevo.pacific.net.sg [203.120.90.134]) by mx1.FreeBSD.org (Postfix) with SMTP id 8141743D41 for ; Wed, 30 Jun 2004 04:50:17 +0000 (GMT) (envelope-from oceanare@pacific.net.sg) Received: (qmail 13025 invoked from network); 30 Jun 2004 04:50:03 -0000 Received: from unknown (HELO maxwell2.pacific.net.sg) (203.120.90.192) by sarajevo with SMTP; 30 Jun 2004 04:50:03 -0000 Received: from pacific.net.sg ([210.24.202.160]) by maxwell2.pacific.net.sg with ESMTP id <20040630045003.SBBS1183.maxwell2.pacific.net.sg@pacific.net.sg>; Wed, 30 Jun 2004 12:50:03 +0800 Message-ID: <40E24670.5070705@pacific.net.sg> Date: Wed, 30 Jun 2004 12:49:52 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7b) Gecko/20040409 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Martin Olsson References: <40E1CAAD.3000303@minimum.se> In-Reply-To: <40E1CAAD.3000303@minimum.se> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 04:50:41 -0000 Hi, Martin Olsson wrote: > Hi, > > * MacOS X is based on FreeBSD > * there is a x86 kernel for FreeBSD > > Does that mean I can buy a copy of MacOS X, download an x86 kernel for > freeBSD, do some (or quite alot of) hacking and then get MacOS X running > on my PC? > take a look at the Darwin project. > I realize that such hacking would be quite substantial but maybe if I > forgot about audio and all that, just how much work would it be? Could > it be done? > Do not forget that all the things which make a Mac a Mac are still closed source. It is more like Linux. Linux alone is pretty useless without GNU, X and so on. Erich From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 04:55:53 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B25D16A4D9 for ; Wed, 30 Jun 2004 04:55:53 +0000 (GMT) Received: from mx1.mail.ru (mx1.mail.ru [194.67.23.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42B5B43D2D for ; Wed, 30 Jun 2004 04:55:52 +0000 (GMT) (envelope-from bogorodskiy@inbox.ru) Received: from [217.23.66.49] (port=49157 helo=inbox.ru) by mx1.mail.ru with esmtp id 1BfX7m-000AXB-00; Wed, 30 Jun 2004 08:55:11 +0400 Date: Wed, 30 Jun 2004 08:54:52 +0400 From: Roman Bogorodskiy To: Lucas Holt Message-ID: <20040630045451.GA666@lame.novel.ru> References: <40E1CAAD.3000303@minimum.se> <9AB2A3A2-CA36-11D8-96CD-000A95EFF4CA@foolishgames.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="45Z9DzgjV8m4Oswq" Content-Disposition: inline In-Reply-To: <9AB2A3A2-CA36-11D8-96CD-000A95EFF4CA@foolishgames.com> X-GPG: http://phptags.sourceforge.net/key User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org cc: Martin Olsson Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 04:55:53 -0000 --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Lucas wrote: > Here's an idea.. install FreeBSD 5.2.1 and use the ports collection to=20 > get PearPC. Then you can get a license to OSX and run it. >=20 > I read the hardware support list, and sound doesn't even work yet in=20 > pearpc. It might be more beneficial to buy a used Mac. I have a=20 > FreeBSD desktop and an Ibook. OSX is very nice. There were some discussions in pearpc-devel maillist about the sound driver and I think it'll be avaible soon.=20 -Roman Bogorodskiy --45Z9DzgjV8m4Oswq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iQCVAwUBQOJHm4B0WzgdqspGAQJAxQQAkM9va/gXArp+6IViSXk8pCNb0BFye0ck 1BVTv2kc5xI3I4tGD4bOxHvx3wuhrZIouVsBeF4xYipYC2OYzd9Ntdq6dJEncTrx 0Jx0Iqk67DOGM7su8wEL03c7yO3DR09y4v7sHZftqKFJv52om33mla+BXwaj0SMn 0NHTBwgbc5Q= =vl6T -----END PGP SIGNATURE----- --45Z9DzgjV8m4Oswq-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 06:41:26 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFCD416A4CE for ; Wed, 30 Jun 2004 06:41:26 +0000 (GMT) Received: from engine140.deployzone.net (engine140.deployzone.net [193.17.85.140]) by mx1.FreeBSD.org (Postfix) with SMTP id 19A5F43D31 for ; Wed, 30 Jun 2004 06:41:26 +0000 (GMT) (envelope-from chris@zumbrunn.com) Received: from adsl-212-90-218-6.cybernet.ch [212.90.218.6] by engine140.deployzone.net; Wed, 30 Jun 2004 08:40:11 +0200 In-Reply-To: <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> Content-Transfer-Encoding: 7bit From: Chris Zumbrunn Date: Wed, 30 Jun 2004 08:40:59 +0200 To: Alasdair Lumsden X-Mailer: Apple Mail (2.618) cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 06:41:27 -0000 On 30. Jun 2004, at 3:01, Alasdair Lumsden wrote: > While Mach is derived from 4.3BSD (circa 1986~1988), there's been about > 15 years worth of divergence since then. For example, FreeBSD is > monolithic while Mach is more micro-kernel based. Also the driver > models > are quite different, eg Darwin uses IOKit (Object Oriented driver > interface model). From Apple's webpages previewing Tiger: "The upgraded kernel, based on FreeBSD 5.x, provides optimised resource locking for better scalability across multiple processors, support for 64-bit memory pointers through the System library and standards-based access control lists." http://www.apple.com.au/macosx/tiger/unix.html chris@czv.com +41 329 41 41 41 Chris Zumbrunn Ventures - http://www.czv.com/ Internet Application Technology - Reduced to the Maximum From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 19:06:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53EDD16A4CE for ; Wed, 30 Jun 2004 19:06:22 +0000 (GMT) Received: from kozubik.com (kozubik.com [65.248.2.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B77743D55 for ; Wed, 30 Jun 2004 19:06:22 +0000 (GMT) (envelope-from john@kozubik.com) Received: from kozubik.com (john@localhost [IPv6:::1]) by kozubik.com (8.12.3/8.12.3) with ESMTP id i5UJ54Bx034334 for ; Wed, 30 Jun 2004 12:05:04 -0700 (PDT) (envelope-from john@kozubik.com) Received: from localhost (john@localhost) by kozubik.com (8.12.3/8.12.3/Submit) with ESMTP id i5UJ54KT034331 for ; Wed, 30 Jun 2004 12:05:04 -0700 (PDT) Date: Wed, 30 Jun 2004 12:05:04 -0700 (PDT) From: John Kozubik To: freebsd-hackers@freebsd.org Message-ID: <20040630115340.L806-100000@kozubik.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: writing to RW-mounted UFS2 snapshots - confirmed. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 19:06:22 -0000 It was mentioned earlier this week that UFS2 snapshots could somehow be mounted read/write and then written to. I noticed this a few weeks ago but didn't think much of it. I have reproduced this: mksnap_ffs / /snap1 mkdir /snapmount mdconfig -a -t vnode -f /snap1 -u 4 mount -r /dev/md4 /snapmount So far so good ... now enter the mounted snapshot and attempt to write a file: # cd /snapmount/ # touch test touch: test: Read-only file system # This is the expected behavior. However: # # pwd /snapmount # mount -uw /snapmount # touch test # echo sldkfslk >> /snapmount/test # # cat /snapmount/test sldkfslk # This is unexpected. You can successfully mount the snapshot read/write and create and write to files in that snapshot. You can also write to files that existed in the snapshot prior to mounting it read/write. I have confirmed that if you unmount the snapshot and remount it again normally, the created file(s) still exist in it, and any changes made to existing files in the snapshot are persistent as well. I don't know what context this was being discussed in, but this behavior does indeed exist, and I believe it to be a somewhat serious problem. ----- John Kozubik - john@kozubik.com - http://www.kozubik.com From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 01:20:43 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6767D16A4CE for ; Thu, 1 Jul 2004 01:20:43 +0000 (GMT) Received: from blitzen.qlo.com (blitzen.qlo.com [142.165.150.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C2D343D49 for ; Thu, 1 Jul 2004 01:20:43 +0000 (GMT) (envelope-from shurd@sasktel.net) Received: from stephens (hssx-yktn-59-202.sasknet.sk.ca [142.165.59.202]) by mail.qlo.com (SaskTel eMessaging Service) with ESMTPA id <0I0500JFWFQH1E@mail.qlo.com> for freebsd-hackers@freebsd.org; Wed, 30 Jun 2004 19:20:42 -0600 (CST) Date: Wed, 30 Jun 2004 19:20:41 -0600 From: Stephen Hurd In-reply-to: <20040628192935.GF5635@green.homeunix.org> To: freebsd-hackers@freebsd.org Message-id: <20040630192041.1d9c5348.shurd@sasktel.net> MIME-version: 1.0 X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <20040624174919.46160f9e.shurd@sasktel.net> <20040628192935.GF5635@green.homeunix.org> Subject: Re: Locking: kern/50827 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 01:20:43 -0000 > > Has anyone looked at this? Does anyone have any comments? > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/50827 > > I don't think you'll ever find anyone interested in file locking > anymore. Since they're all advisory, anyway, you can just implement them > at a higher level in your application. BSD and System V IPC mechanisms > already are very good building blocks here for system-scoped locks. Hrm? I'm sort of confused... file locking is still the best way of doing erm... file locking. A few points: 1) File locking works with any program using the file locking API. Hand-rolled implementations will only work with other programs which use the same hand-rolled routines. 2) File locking works across NFS, so you aren't limited to the local system. 3) There's no simple way of doing per-descriptor locks using BSD and SysV IPC... ie: locks which are automatically released when the file descriptor used to obtain the lock is released. This also of course means programs which core won't leave stale locks laying around. Essentially, implementing locks at a higher level is alway more difficult, usually more prone to problems, and in some cases introduces more overhead than the rest of the program. The only reason I can think of for implementing locks at a higher level is for cross-platform code... From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 02:24:51 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D588816A4CE for ; Thu, 1 Jul 2004 02:24:51 +0000 (GMT) Received: from bloodwood.hunterlink.net.au (smtp-local.hunterlink.net.au [203.12.144.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F59A43D4C for ; Thu, 1 Jul 2004 02:24:50 +0000 (GMT) (envelope-from boris@brooknet.com.au) Received: from [61.8.42.207] (ppp2ACF.dyn.pacific.net.au [61.8.42.207]) i612HGRj018558; Thu, 1 Jul 2004 12:17:17 +1000 From: Sam Lawrance To: John Kozubik In-Reply-To: <20040630115340.L806-100000@kozubik.com> References: <20040630115340.L806-100000@kozubik.com> Content-Type: text/plain Message-Id: <1088648757.56400.5.camel@dirk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 01 Jul 2004 12:25:57 +1000 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: writing to RW-mounted UFS2 snapshots - confirmed. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 02:24:51 -0000 > This is unexpected. You can successfully mount the snapshot > read/write and create and write to files in that snapshot. You can > also write to files that existed in the snapshot prior to mounting it > read/write. Perhaps the writing is done from a point where the schg flag is not checked or obeyed? From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 06:23:59 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5952D16A4CE for ; Thu, 1 Jul 2004 06:23:59 +0000 (GMT) Received: from smtp107.mail.sc5.yahoo.com (smtp107.mail.sc5.yahoo.com [66.163.169.227]) by mx1.FreeBSD.org (Postfix) with SMTP id 33F1F43D5A for ; Thu, 1 Jul 2004 06:23:59 +0000 (GMT) (envelope-from q_dolan@yahoo.com.au) Received: from unknown (HELO ?172.22.1.10?) (q?dolan@203.13.70.60 with plain) by smtp107.mail.sc5.yahoo.com with SMTP; 1 Jul 2004 06:22:46 -0000 In-Reply-To: <1088648757.56400.5.camel@dirk> References: <20040630115340.L806-100000@kozubik.com> <1088648757.56400.5.camel@dirk> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <0FAC476E-CB27-11D8-9145-000D9335C6A0@yahoo.com.au> Content-Transfer-Encoding: 7bit From: Q Date: Thu, 1 Jul 2004 16:22:43 +1000 To: Sam Lawrance X-Mailer: Apple Mail (2.618) cc: freebsd-hackers@freebsd.org Subject: Re: writing to RW-mounted UFS2 snapshots - confirmed. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 06:23:59 -0000 On 01/07/2004, at 12:25 PM, Sam Lawrance wrote: >> This is unexpected. You can successfully mount the snapshot >> read/write and create and write to files in that snapshot. You can >> also write to files that existed in the snapshot prior to mounting it >> read/write. > > Perhaps the writing is done from a point where the schg flag is not > checked or obeyed? While this may not be "expected" behavior, I am curious why this is something that should be prevented, rather than verified for correctness? By "correct" I mean, that the copy on write process is performed correctly and modifications made to the snapshot don't modify the underlying filesystem elements also. To me this has the potential to allow snapshots to be used in reverse as a sort of an "undo drive", similar to unionfs, where you can make changes to a snapshot without the changes being permanently applied to the live filesystem. This might be useful for testing an upgrade or database recovery on a "staging" snapshot before attempting to modify the real thing. -- Seeya...Q -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- _____ / Quinton Dolan - q_dolan@yahoo.com.au __ __/ / / __/ / / / __ / _/ / / Gold Coast, QLD, Australia __/ __/ __/ ____/ / - / Ph: +61 419 729 806 _______ / _\ From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 06:33:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 369BF16A4CF for ; Thu, 1 Jul 2004 06:33:55 +0000 (GMT) Received: from smtp018.mail.yahoo.com (smtp018.mail.yahoo.com [216.136.174.115]) by mx1.FreeBSD.org (Postfix) with SMTP id 1D53B43D2D for ; Thu, 1 Jul 2004 06:33:55 +0000 (GMT) (envelope-from q_dolan@yahoo.com.au) Received: from unknown (HELO ?172.22.1.10?) (q?dolan@203.13.70.60 with plain) by smtp018.mail.yahoo.com with SMTP; 1 Jul 2004 06:33:51 -0000 In-Reply-To: <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> Content-Transfer-Encoding: 7bit From: Q Date: Thu, 1 Jul 2004 16:33:47 +1000 To: Chris Zumbrunn X-Mailer: Apple Mail (2.618) cc: freebsd-hackers@freebsd.org cc: Alasdair Lumsden Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 06:33:55 -0000 On 30/06/2004, at 4:40 PM, Chris Zumbrunn wrote: > > On 30. Jun 2004, at 3:01, Alasdair Lumsden wrote: > >> While Mach is derived from 4.3BSD (circa 1986~1988), there's been >> about >> 15 years worth of divergence since then. For example, FreeBSD is >> monolithic while Mach is more micro-kernel based. Also the driver >> models >> are quite different, eg Darwin uses IOKit (Object Oriented driver >> interface model). > > From Apple's webpages previewing Tiger: > > "The upgraded kernel, based on FreeBSD 5.x, provides optimised > resource locking for better scalability across multiple processors, > support for 64-bit memory pointers through the System library and > standards-based access control lists." > > http://www.apple.com.au/macosx/tiger/unix.html Some of the newer code in Darwin is "based on FreeBSD 5.x" yes, but the monolithic FreeBSD kernel (as a whole) is not one of them. Instead apple has targeted the "interesting" bits and imported these pieces of the kernel as discrete components into Darwin (they are implemented this way anyway). Darwin still uses a Mach kernel design, although Apple has made some significant modifications to its implementation to reduce message passing overhead and latency etc, making it something of a hybrid and no longer a pure micro-kernel. As a result the Darwin Mach kernel is not the traditional Mach mix of userspace/kernelspace RPC connected components, instead the kernel is linked into a single address space, using kernel extensions (loadable modules) in a similar way FreeBSD does. However these extensions are implemented using a highly object oriented API (IOKit) for interacting with the kernel, instead of the traditional struct passing procedural approach used in FreeBSD. The portions of the FreeBSD kernel that Apple have adopted can be found as part of the XNU project (the darwin kernel) from Apple's Opensource website http://www.opensource.apple.com/darwinsource/ The CVS tags should still be intact on the files in question. While FreeBSD provides a sizable chunk of Darwin's BSDness, it still has a decent amount of legacy NeXT/BSD code in it as well. Some of the things that have been adopted from FreeBSD/NetBSD in the Darwin kernel include: Crypto support Filesystem support for CD9660, DEVFS, NFS, VFS, MEMDEV (Curiously this doesn't include UFS/FFS support) IP & IPV6 TCP stack support including BPF & IPFW Most of the BSD/Posix/SYSV system calls (sysctl, fork, exec, ktrace, mmap, etc) and corresponding MAN pages. -- Seeya...Q -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- _____ / Quinton Dolan - q_dolan@yahoo.com.au __ __/ / / __/ / / / __ / _/ / / Gold Coast, QLD, Australia __/ __/ __/ ____/ / - / Ph: +61 419 729 806 _______ / _\ From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 07:10:40 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BAC416A4CE for ; Thu, 1 Jul 2004 07:10:40 +0000 (GMT) Received: from engine140.deployzone.net (engine140.deployzone.net [193.17.85.140]) by mx1.FreeBSD.org (Postfix) with SMTP id D612B43D2F for ; Thu, 1 Jul 2004 07:10:39 +0000 (GMT) (envelope-from chris@zumbrunn.com) Received: from adsl-212-90-218-6.cybernet.ch [212.90.218.6] by engine140.deployzone.net; Thu, 1 Jul 2004 09:09:25 +0200 In-Reply-To: <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Chris Zumbrunn Date: Thu, 1 Jul 2004 09:10:16 +0200 To: Q X-Mailer: Apple Mail (2.618) cc: freebsd-hackers@freebsd.org cc: Alasdair Lumsden Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 07:10:40 -0000 On 1. Jul 2004, at 8:33, Q wrote: > > On 30/06/2004, at 4:40 PM, Chris Zumbrunn wrote: > >> >> On 30. Jun 2004, at 3:01, Alasdair Lumsden wrote: >> >>> While Mach is derived from 4.3BSD (circa 1986~1988), there's been >>> about >>> 15 years worth of divergence since then. For example, FreeBSD is >>> monolithic while Mach is more micro-kernel based. Also the driver >>> models >>> are quite different, eg Darwin uses IOKit (Object Oriented driver >>> interface model). >> >> From Apple's webpages previewing Tiger: >> >> "The upgraded kernel, based on FreeBSD 5.x, provides optimised >> resource locking for better scalability across multiple processors, >> support for 64-bit memory pointers through the System library and >> standards-based access control lists." >> >> http://www.apple.com.au/macosx/tiger/unix.html > > Some of the newer code in Darwin is "based on FreeBSD 5.x" yes, but > the monolithic FreeBSD kernel (as a whole) is not one of them. Instead > apple has targeted the "interesting" bits and imported these pieces of > the kernel as discrete components into Darwin (they are implemented > this way anyway). > > Darwin still uses a Mach kernel design, although Apple has made some > significant modifications to its implementation to reduce message > passing overhead and latency etc, making it something of a hybrid and > no longer a pure micro-kernel. As a result the Darwin Mach kernel is > not the traditional Mach mix of userspace/kernelspace RPC connected > components, instead the kernel is linked into a single address space, > using kernel extensions (loadable modules) in a similar way FreeBSD > does. However these extensions are implemented using a highly object > oriented API (IOKit) for interacting with the kernel, instead of the > traditional struct passing procedural approach used in FreeBSD. > > The portions of the FreeBSD kernel that Apple have adopted can be > found as part of the XNU project (the darwin kernel) from Apple's > Opensource website > http://www.opensource.apple.com/darwinsource/ > The CVS tags should still be intact on the files in question. > > While FreeBSD provides a sizable chunk of Darwin's BSDness, it still > has a decent amount of legacy NeXT/BSD code in it as well. > > Some of the things that have been adopted from FreeBSD/NetBSD in the > Darwin kernel include: > > Crypto support > Filesystem support for CD9660, DEVFS, NFS, VFS, MEMDEV (Curiously this > doesn't include UFS/FFS support) > IP & IPV6 TCP stack support including BPF & IPFW > Most of the BSD/Posix/SYSV system calls (sysctl, fork, exec, ktrace, > mmap, etc) and corresponding MAN pages. So, Apple's statement is a bit misleading. It's the "kernel upgrades" and not the "upgraded kernel" that is/are based on FreeBSD 5.x. :-) Chris From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 11:07:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2CC816A4CE for ; Thu, 1 Jul 2004 11:07:27 +0000 (GMT) Received: from smtp102.mail.sc5.yahoo.com (smtp102.mail.sc5.yahoo.com [216.136.174.140]) by mx1.FreeBSD.org (Postfix) with SMTP id 9714743D1D for ; Thu, 1 Jul 2004 11:07:27 +0000 (GMT) (envelope-from q_dolan@yahoo.com.au) Received: from unknown (HELO ?192.168.100.135?) (q?dolan@203.144.21.67 with plain) by smtp102.mail.sc5.yahoo.com with SMTP; 1 Jul 2004 11:00:06 -0000 In-Reply-To: <0FAC476E-CB27-11D8-9145-000D9335C6A0@yahoo.com.au> References: <20040630115340.L806-100000@kozubik.com> <1088648757.56400.5.camel@dirk> <0FAC476E-CB27-11D8-9145-000D9335C6A0@yahoo.com.au> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Q Date: Thu, 1 Jul 2004 21:00:04 +1000 To: Q X-Mailer: Apple Mail (2.618) cc: freebsd-hackers@freebsd.org cc: Sam Lawrance Subject: Re: writing to RW-mounted UFS2 snapshots - confirmed. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 11:07:27 -0000 On 01/07/2004, at 4:22 PM, Q wrote: > On 01/07/2004, at 12:25 PM, Sam Lawrance wrote: > >>> This is unexpected. You can successfully mount the snapshot >>> read/write and create and write to files in that snapshot. You can >>> also write to files that existed in the snapshot prior to mounting it >>> read/write. >> >> Perhaps the writing is done from a point where the schg flag is not >> checked or obeyed? > > While this may not be "expected" behavior, I am curious why this is > something that should be prevented, rather than verified for > correctness? By "correct" I mean, that the copy on write process is > performed correctly and modifications made to the snapshot don't > modify the underlying filesystem elements also. Ok, I decided to be self sufficient and read Marshall McKusick's paper on background fsck (which also covers snapshots) to answer my own question. Firstly, one of the stated requirements for snapshots to function as outlined in the paper is that they must be read only. The reason they need to be read only is because the support for multiple snapshots assumes that they cannot change, and handles block allocation of freed blocks with this in mind. Supporting snapshot modification is outside the scope of the original implementation and would require further thought. -- Seeya...Q -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- _____ / Quinton Dolan - q_dolan@yahoo.com.au __ __/ / / __/ / / / __ / _/ / / Gold Coast, QLD, Australia __/ __/ __/ ____/ / - / Ph: +61 419 729 806 _______ / _\ From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 15:04:58 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 368F016A4D1 for ; Wed, 30 Jun 2004 15:04:58 +0000 (GMT) Received: from mailhub.intercaf.ru (mailhub.intercaf.ru [195.96.167.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 602A743D48 for ; Wed, 30 Jun 2004 15:04:57 +0000 (GMT) (envelope-from lesha@intercaf.ru) Received: from [195.96.167.70] (sick@[195.96.167.70]) (authenticated bits=0) by mailhub.intercaf.ru (8.12.10/8.12.10) with ESMTP id i5UF4fMG002047 for ; Wed, 30 Jun 2004 19:04:42 +0400 (MSD) (envelope-from lesha@intercaf.ru) From: Alex K Organization: InterCAF To: freebsd-hackers@freebsd.org Date: Wed, 30 Jun 2004 19:04:44 +0400 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Message-Id: <200406301904.44292.lesha@intercaf.ru> X-Virus-Scanned: ClamAV version 'clamd / ClamAV version 0.65', clamav-milter version '0.60p' X-Mailman-Approved-At: Thu, 01 Jul 2004 12:17:16 +0000 Subject: USB driver selection algorithm? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 15:04:58 -0000 Hello, everyone! As far as I understand drivers for USB devices are selected and attached based on USB VendorID and ProductID match. Here I have situation where I have 2 diffrent USB devices (cables) which got same Vendor and Device IDs, only revision differes. It is mobile phone cables based on PL2303 and PL2303X chipsets. What approach will you recommend? Cheers, AL. p.s. please CC me. From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 12:24:17 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3102116A4CE for ; Thu, 1 Jul 2004 12:24:17 +0000 (GMT) Received: from mps6.plala.or.jp (c149240.vh.plala.or.jp [210.150.149.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 073E743D2D for ; Thu, 1 Jul 2004 12:24:16 +0000 (GMT) (envelope-from e-kamo@trio.plala.or.jp) Received: from msvc2.plala.or.jp ([172.23.8.210]) by mps6.plala.or.jp with SMTP id <20040701122229.TFFM9776.mps6.plala.or.jp@msvc2.plala.or.jp> for ; Thu, 1 Jul 2004 21:22:29 +0900 Received: ( 23205 invoked from network); 1 Jul 2004 21:22:29 +0900 X-SVCK: Received: from unknown (HELO mpb1.plala.or.jp) (172.23.8.16) by msvc2 with SMTP; 1 Jul 2004 21:22:29 +0900 Received: from trio.plala.or.jp ([219.25.148.126]) by mpb1.plala.or.jp with ESMTP id <20040701122228.SOPJ19716.mpb1.plala.or.jp@trio.plala.or.jp>; Thu, 1 Jul 2004 21:22:28 +0900 Message-ID: <40E40385.9030401@trio.plala.or.jp> Date: Thu, 01 Jul 2004 21:28:53 +0900 From: Eitarou Kamo User-Agent: Mozilla/5.0 (Windows; U; Win98; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: ja MIME-Version: 1.0 To: Q , freebsd-hackers@freebsd.org References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> In-Reply-To: <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 12:24:17 -0000 Hi Q and all, Q wrote: > > The portions of the FreeBSD kernel that Apple have adopted can be > found as part of the XNU project (the darwin kernel) from Apple's > Opensource website > http://www.opensource.apple.com/darwinsource/ > The CVS tags should still be intact on the files in question. > Is the darwin entirely open source? Eitarou -- *********************** Eitarou Kamo Tel. +81 75 7035997 Fax +81 75 7035997 VoIP 050 10585997(domestic only) e-mail e-kamo@trio.plala.or.jp For business: Feel free to mail me(above), please. Donation http://www.PayPal.Com GPG FingerPrint: 032D FDF9 D27B 23F7 9A81 BF4C 626C FBAA BC3A 9895 ************************************************************************ From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 12:39:57 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A05116A4CE for ; Thu, 1 Jul 2004 12:39:57 +0000 (GMT) Received: from mps10.plala.or.jp (c153126.vh.plala.or.jp [210.150.153.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B0B843D31 for ; Thu, 1 Jul 2004 12:39:56 +0000 (GMT) (envelope-from e-kamo@trio.plala.or.jp) Received: from msvc2.plala.or.jp ([172.23.8.210]) by mps10.plala.or.jp with SMTP id <20040701123909.EHS1124.mps10.plala.or.jp@msvc2.plala.or.jp> for ; Thu, 1 Jul 2004 21:39:09 +0900 Received: ( 708 invoked from network); 1 Jul 2004 21:39:09 +0900 X-SVCK: Received: from unknown (HELO mpb1.plala.or.jp) (172.23.8.16) by msvc2 with SMTP; 1 Jul 2004 21:39:09 +0900 Received: from trio.plala.or.jp ([219.25.148.126]) by mpb1.plala.or.jp with ESMTP id <20040701123908.SPCK19716.mpb1.plala.or.jp@trio.plala.or.jp> for ; Thu, 1 Jul 2004 21:39:08 +0900 Message-ID: <40E4076E.60201@trio.plala.or.jp> Date: Thu, 01 Jul 2004 21:45:34 +0900 From: Eitarou Kamo User-Agent: Mozilla/5.0 (Windows; U; Win98; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: ja MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> In-Reply-To: X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 12:39:57 -0000 Hi Chris and all, Chris Zumbrunn wrote: > > >> Some of the things that have been adopted from FreeBSD/NetBSD in the >> Darwin kernel include: >> >> Crypto support >> Filesystem support for CD9660, DEVFS, NFS, VFS, MEMDEV (Curiously >> this doesn't include UFS/FFS support) >> IP & IPV6 TCP stack support including BPF & IPFW >> Most of the BSD/Posix/SYSV system calls (sysctl, fork, exec, ktrace, >> mmap, etc) and corresponding MAN pages. > > My curiosity is that the FreeBSD and NetBSD license are left. And should those licenses are kept after porting? Eitarou > > Chris -- *********************** Eitarou Kamo Tel. +81 75 7035997 Fax +81 75 7035997 VoIP 050 10585997(domestic only) e-mail e-kamo@trio.plala.or.jp For business: Feel free to mail me(above), please. Donation http://www.PayPal.Com GPG FingerPrint: 032D FDF9 D27B 23F7 9A81 BF4C 626C FBAA BC3A 9895 ************************************************************************ From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 13:12:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4305016A4CE for ; Thu, 1 Jul 2004 13:12:22 +0000 (GMT) Received: from mps7.plala.or.jp (c150240.vh.plala.or.jp [210.150.150.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB01543D1D for ; Thu, 1 Jul 2004 13:12:20 +0000 (GMT) (envelope-from e-kamo@trio.plala.or.jp) Received: from msvc2.plala.or.jp ([172.23.8.210]) by mps7.plala.or.jp with SMTP id <20040701131141.MZGS18364.mps7.plala.or.jp@msvc2.plala.or.jp> for ; Thu, 1 Jul 2004 22:11:41 +0900 Received: ( 18972 invoked from network); 1 Jul 2004 22:11:41 +0900 X-SVCK: Received: from unknown (HELO mpb1.plala.or.jp) (172.23.8.16) by msvc2 with SMTP; 1 Jul 2004 22:11:40 +0900 Received: from trio.plala.or.jp ([219.25.148.126]) by mpb1.plala.or.jp with ESMTP id <20040701131140.SQIX19716.mpb1.plala.or.jp@trio.plala.or.jp> for ; Thu, 1 Jul 2004 22:11:40 +0900 Message-ID: <40E40F0E.8080908@trio.plala.or.jp> Date: Thu, 01 Jul 2004 22:18:06 +0900 From: Eitarou Kamo User-Agent: Mozilla/5.0 (Windows; U; Win98; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: ja MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> <40E4076E.60201@trio.plala.or.jp> In-Reply-To: <40E4076E.60201@trio.plala.or.jp> X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 13:12:22 -0000 Hi all, This is just correction of previous post. Eitarou Kamo wrote: #if 0 > > My curiosity is that the FreeBSD and NetBSD license are left. > And should those licenses are kept after porting? #else My curiosity is if the FreeBSD and NetBSD license are left. And should those licenses are kept after porting? #endif > > Eitarou > -- *********************** Eitarou Kamo Tel. +81 75 7035997 Fax +81 75 7035997 VoIP 050 10585997(domestic only) e-mail e-kamo@trio.plala.or.jp For business: Feel free to mail me(above), please. Donation http://www.PayPal.Com GPG FingerPrint: 032D FDF9 D27B 23F7 9A81 BF4C 626C FBAA BC3A 9895 ************************************************************************ From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 13:33:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FD6916A4CE for ; Thu, 1 Jul 2004 13:33:55 +0000 (GMT) Received: from smtp105.mail.sc5.yahoo.com (smtp105.mail.sc5.yahoo.com [66.163.169.225]) by mx1.FreeBSD.org (Postfix) with SMTP id 5CFB043D31 for ; Thu, 1 Jul 2004 13:33:55 +0000 (GMT) (envelope-from q_dolan@yahoo.com.au) Received: from unknown (HELO ?192.168.100.135?) (q?dolan@203.144.21.67 with plain) by smtp105.mail.sc5.yahoo.com with SMTP; 1 Jul 2004 13:32:14 -0000 In-Reply-To: <40E4076E.60201@trio.plala.or.jp> References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> <40E4076E.60201@trio.plala.or.jp> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <0F3D7DA8-CB63-11D8-9145-000D9335C6A0@yahoo.com.au> Content-Transfer-Encoding: 7bit From: Q Date: Thu, 1 Jul 2004 23:32:12 +1000 To: Eitarou Kamo X-Mailer: Apple Mail (2.618) cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 13:33:55 -0000 On 01/07/2004, at 10:45 PM, Eitarou Kamo wrote: >>> Some of the things that have been adopted from FreeBSD/NetBSD in the >>> Darwin kernel include: >>> >>> Crypto support >>> Filesystem support for CD9660, DEVFS, NFS, VFS, MEMDEV (Curiously >>> this doesn't include UFS/FFS support) >>> IP & IPV6 TCP stack support including BPF & IPFW >>> Most of the BSD/Posix/SYSV system calls (sysctl, fork, exec, ktrace, >>> mmap, etc) and corresponding MAN pages. > > My curiosity is that the FreeBSD and NetBSD license are left. > And should those licenses are kept after porting? Yes the original license and copyright notices are all kept intact, it's one of the requirements of virtually every opensource license. To remove them would be a violation of the original copyright holders requirements. -- Seeya...Q -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- _____ / Quinton Dolan - q_dolan@yahoo.com.au __ __/ / / __/ / / / __ / _/ / / Gold Coast, QLD, Australia __/ __/ __/ ____/ / - / Ph: +61 419 729 806 _______ / _\ From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 13:50:42 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82CA816A4CE for ; Thu, 1 Jul 2004 13:50:42 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id A3D4D43D31 for ; Thu, 1 Jul 2004 13:50:41 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i61Do0aI003505 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 1 Jul 2004 15:50:02 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i61DnYUi038722 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 1 Jul 2004 15:49:34 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id i61DnYVu008221; Thu, 1 Jul 2004 15:49:34 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i61CaHwe066731; Thu, 1 Jul 2004 14:36:17 +0200 (CEST) (envelope-from ticso) Date: Thu, 1 Jul 2004 14:36:17 +0200 From: Bernd Walter To: Alex K Message-ID: <20040701123615.GA57889@cicely12.cicely.de> References: <200406301904.44292.lesha@intercaf.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200406301904.44292.lesha@intercaf.ru> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on cicely5.cicely.de cc: freebsd-hackers@freebsd.org Subject: Re: USB driver selection algorithm? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 01 Jul 2004 13:50:42 -0000 On Wed, Jun 30, 2004 at 07:04:44PM +0400, Alex K wrote: > > Hello, everyone! > > As far as I understand drivers for USB devices are selected and attached > based on USB VendorID and ProductID match. Here I have situation where > I have 2 diffrent USB devices (cables) which got same Vendor and Device > IDs, only revision differes. USB drivers are selected based on the drivers need. That is usually deviceclass, interfaceclass or vendor/product. First all drivers are asked if they want the whole device. If none takes it than all drivers are asked for each interface of the device - an interface is a functional part of an USB device. If that also fails the driver is given to ugen as a whole. > It is mobile phone cables based on PL2303 and PL2303X chipsets. uplcom takes devices (or maybe interfaces) based on vendor/product ID. > What approach will you recommend? What is your problem? -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 13:52:58 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7081516A4CE for ; Thu, 1 Jul 2004 13:52:58 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60CAE43D2F for ; Thu, 1 Jul 2004 13:52:57 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id i61DphGF099676; Thu, 1 Jul 2004 23:21:44 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Thu, 1 Jul 2004 23:21:39 +0930 User-Agent: KMail/1.6.2 References: <200406301904.44292.lesha@intercaf.ru> In-Reply-To: <200406301904.44292.lesha@intercaf.ru> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Message-Id: <200407012321.39496.doconnor@gsoft.com.au> X-Spam-Score: -4.9 () CARRIAGE_RETURNS,IN_REP_TO,PGP_SIGNATURE,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: Alex K Subject: Re: USB driver selection algorithm? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 13:52:58 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 1 Jul 2004 00:34, Alex K wrote: > Hello, everyone! > > As far as I understand drivers for USB devices are selected and attached > based on USB VendorID and ProductID match. Here I have situation where > I have 2 diffrent USB devices (cables) which got same Vendor and Device > IDs, only revision differes. > > It is mobile phone cables based on PL2303 and PL2303X chipsets. > > What approach will you recommend? The probe and attach routines shouuld be able to select on revision, althou= gh=20 I'd be suprised if the 2 differ by enough that one driver couldn't cover th= em=20 both. =2D --=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA5Bbr5ZPcIHs/zowRArc8AKCNwUgrDyIlN4ibbzai7F5yQ9ZdLACfbkiH Bz7QNY7AuyUOvf8uuCYug+k=3D =3DWpMv =2D----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 14:18:47 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAC1516A4CE for ; Thu, 1 Jul 2004 14:18:47 +0000 (GMT) Received: from mailhub.intercaf.ru (mailhub.intercaf.ru [195.96.167.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9B8443D1F for ; Thu, 1 Jul 2004 14:18:46 +0000 (GMT) (envelope-from lesha@intercaf.ru) Received: from [195.96.167.70] (sick@[195.96.167.70]) (authenticated bits=0) by mailhub.intercaf.ru (8.12.10/8.12.10) with ESMTP id i61E5qMG012987; Thu, 1 Jul 2004 18:05:53 +0400 (MSD) (envelope-from lesha@intercaf.ru) From: Alex K Organization: InterCAF To: ticso@cicely.de, "Daniel O'Connor" Date: Thu, 1 Jul 2004 18:05:55 +0400 User-Agent: KMail/1.6.2 References: <200406301904.44292.lesha@intercaf.ru> <20040701123615.GA57889@cicely12.cicely.de> In-Reply-To: <20040701123615.GA57889@cicely12.cicely.de> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Message-Id: <200407011805.55432.lesha@intercaf.ru> X-Virus-Scanned: ClamAV version 'clamd / ClamAV version 0.65', clamav-milter version '0.60p' cc: freebsd-hackers@freebsd.org Subject: uplcom.c changes (was: USB driver selection algorithm?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 14:18:47 -0000 Hello! =20 Bernd Walter wrote: > uplcom takes devices (or maybe interfaces) based on vendor/product ID. > > > What approach will you recommend? > > What is your problem? 2 different USB devices with same vendor/product ID, only revision differes. They both will be handeled by uplcom, but initialization should be differen= t, because chips are different (PL2303 and PL2303X) Daniel O'Connor wrote: > The probe and attach routines shouuld be able to select on revision, > although I'd be suprised if the 2 differ by enough that one driver could= n't=20 > cover them both. Technically it will be 1 driver, but device initialization should differ based on revision. (just trying to add some functionality to uplcom.c to support PL2303X USB-2-Serial chipset) I have already sent some mail to personal @freebsd.org boxes of people who were tweaking uplcom.c during last few months, but I think I should copy it to the list, as it is not the only problem I have. Cheers, AL. =2D------[ Cut here ]--------------- I have recently got USB cable for my Nokia 6100 phone, which is based on PL2303X chipset, I thought it will work with uplcom driver, but no, something changed. After some investigation and USB bus snooping on "Other OS"=20 I have found that upon connection host sends some special initialization sequences to the cable. I have tried modifing uplcom.c to do this initialization, now I can "cu -l /dev/ucom0" and speak "AT" commands to phone. But connection to phone is somehow not "binary safe", some=20 characerts typed will return garbage - for example "F" returns "=FD"=20 but some characters work OK, and if I will type a working letter -=20 any one character following will also be OK. So if I type "AF"=20 it will work correctly What can be causing such problem? Patch here: http://gate.intercaf.ru/~lesha/6100/pl2303x.patch Also Prolific people gave me Linux driver for PL2303X (it is not included with Linux as for now, and not avaible via their web site) http://gate.intercaf.ru/~lesha/6100/pl2303x-linux.zip This may be of interest. If anyone of you, magisters, will have some spare time and/or ideas how to make this work - I will be very pleased. My kernel programming knowledge is very limitied, not to say "none". From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 14:22:01 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CF2B16A4CE for ; Thu, 1 Jul 2004 14:22:01 +0000 (GMT) Received: from mps7.plala.or.jp (c150240.vh.plala.or.jp [210.150.150.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id E47C243D45 for ; Thu, 1 Jul 2004 14:21:59 +0000 (GMT) (envelope-from e-kamo@trio.plala.or.jp) Received: from msvc1.plala.or.jp ([172.23.8.209]) by mps7.plala.or.jp with SMTP id <20040701142040.RADW18364.mps7.plala.or.jp@msvc1.plala.or.jp> for ; Thu, 1 Jul 2004 23:20:40 +0900 Received: ( 15401 invoked from network); 1 Jul 2004 23:20:40 +0900 X-SVCK: Received: from unknown (HELO mpb1.plala.or.jp) (172.23.8.16) by msvc1 with SMTP; 1 Jul 2004 23:20:39 +0900 Received: from trio.plala.or.jp ([219.25.148.126]) by mpb1.plala.or.jp with ESMTP id <20040701142039.SSRO19716.mpb1.plala.or.jp@trio.plala.or.jp> for ; Thu, 1 Jul 2004 23:20:39 +0900 Message-ID: <40E41F3A.3050405@trio.plala.or.jp> Date: Thu, 01 Jul 2004 23:27:06 +0900 From: Eitarou Kamo User-Agent: Mozilla/5.0 (Windows; U; Win98; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: ja MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> <40E4076E.60201@trio.plala.or.jp> <0F3D7DA8-CB63-11D8-9145-000D9335C6A0@yahoo.com.au> In-Reply-To: <0F3D7DA8-CB63-11D8-9145-000D9335C6A0@yahoo.com.au> X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 14:22:01 -0000 Hi Q, Q wrote: > > >> My curiosity is that the FreeBSD and NetBSD license are left. >> And should those licenses are kept after porting? > > > > Yes the original license and copyright notices are all kept intact, > it's one of the requirements of virtually every opensource license. To > remove them would be a violation of the original copyright holders > requirements. > This is important. For the people to port from now this must be a point, not to port beyond the law. The words "Redistributions" in the FreeBSD License includes "porting"? But I heard, the algorithm of the source code wasn't preserved by the copyright. In the case of the porting from FreeBSD to other different flavor OS (e.g. Linux), the algorithm is used. But the variables or way of writing is not used. In this case what should I do? Ethically I should notice FreeBSD license. But.... It's a bit contradiction, I think. Eitarou -- *********************** Eitarou Kamo Tel. +81 75 7035997 Fax +81 75 7035997 VoIP 050 10585997(domestic only) e-mail e-kamo@trio.plala.or.jp For business: Feel free to mail me(above), please. Donation http://www.PayPal.Com GPG FingerPrint: 032D FDF9 D27B 23F7 9A81 BF4C 626C FBAA BC3A 9895 ************************************************************************ From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 14:29:33 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A80E16A4CE for ; Thu, 1 Jul 2004 14:29:33 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D0EE43D49 for ; Thu, 1 Jul 2004 14:29:32 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i61ET1aI004307 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 1 Jul 2004 16:29:02 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i61ESOUi039023 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 1 Jul 2004 16:28:25 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id i61ESNFs011317; Thu, 1 Jul 2004 16:28:23 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i61ESNRo011316; Thu, 1 Jul 2004 16:28:23 +0200 (CEST) (envelope-from ticso) Date: Thu, 1 Jul 2004 16:28:23 +0200 From: Bernd Walter To: Alex K Message-ID: <20040701142822.GC57889@cicely12.cicely.de> References: <200406301904.44292.lesha@intercaf.ru> <20040701123615.GA57889@cicely12.cicely.de> <200407011805.55432.lesha@intercaf.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407011805.55432.lesha@intercaf.ru> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on cicely5.cicely.de cc: ticso@cicely.de cc: freebsd-hackers@freebsd.org Subject: Re: uplcom.c changes (was: USB driver selection algorithm?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 01 Jul 2004 14:29:33 -0000 On Thu, Jul 01, 2004 at 06:05:55PM +0400, Alex K wrote: > > Hello! > > Bernd Walter wrote: > > uplcom takes devices (or maybe interfaces) based on vendor/product ID. > > > > > What approach will you recommend? > > > > What is your problem? > 2 different USB devices with same vendor/product ID, only revision differes. > They both will be handeled by uplcom, but initialization should be different, > because chips are different (PL2303 and PL2303X) Ah - so it's a matter of expanding our uplcom driver. I will check the linux driver and try to find out what the differences are. I asume you have test hardware? -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 14:35:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4DF1E16A4CE for ; Thu, 1 Jul 2004 14:35:52 +0000 (GMT) Received: from mailhub.intercaf.ru (mailhub.intercaf.ru [195.96.167.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8645E43D4C for ; Thu, 1 Jul 2004 14:35:51 +0000 (GMT) (envelope-from lesha@intercaf.ru) Received: from [195.96.167.70] (sick@[195.96.167.70]) (authenticated bits=0) by mailhub.intercaf.ru (8.12.10/8.12.10) with ESMTP id i61EZWMG013205; Thu, 1 Jul 2004 18:35:33 +0400 (MSD) (envelope-from lesha@intercaf.ru) From: Alex K Organization: InterCAF To: ticso@cicely.de Date: Thu, 1 Jul 2004 18:35:35 +0400 User-Agent: KMail/1.6.2 References: <200406301904.44292.lesha@intercaf.ru> <200407011805.55432.lesha@intercaf.ru> <20040701142822.GC57889@cicely12.cicely.de> In-Reply-To: <20040701142822.GC57889@cicely12.cicely.de> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200407011835.35592.lesha@intercaf.ru> X-Virus-Scanned: ClamAV version 'clamd / ClamAV version 0.65', clamav-milter version '0.60p' cc: ticso@cicely.de cc: freebsd-hackers@freebsd.org Subject: Re: uplcom.c changes (was: USB driver selection algorithm?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 14:35:52 -0000 Hello! > Ah - so it's a matter of expanding our uplcom driver. > I will check the linux driver and try to find out what the differences > are. > I asume you have test hardware? Yes, I can give you access to the machine with cable and phone connected and GSM/GPRS accounts to try if driver will work btw... If I dial plain modem connection and it connects to remote site strange problem with invalid characters dissapear, I can type anything in remote shell. ppp is not working - so I assume there is something still wrong. Cheers, AL. From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 14:53:33 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74ED416A4CE for ; Thu, 1 Jul 2004 14:53:33 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0847943D39 for ; Thu, 1 Jul 2004 14:53:33 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i61EnXUA097789; Thu, 1 Jul 2004 08:49:33 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 01 Jul 2004 08:50:04 -0600 (MDT) Message-Id: <20040701.085004.69987799.imp@bsdimp.com> To: lesha@intercaf.ru From: "M. Warner Losh" In-Reply-To: <200406301904.44292.lesha@intercaf.ru> References: <200406301904.44292.lesha@intercaf.ru> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: USB driver selection algorithm? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 14:53:33 -0000 In message: <200406301904.44292.lesha@intercaf.ru> Alex K writes: : : Hello, everyone! : : As far as I understand drivers for USB devices are selected and attached : based on USB VendorID and ProductID match. Here I have situation where : I have 2 diffrent USB devices (cables) which got same Vendor and Device : IDs, only revision differes. : : It is mobile phone cables based on PL2303 and PL2303X chipsets. : : What approach will you recommend? Do they need different drivers? You can also use the revision if you want. Warner From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 19:05:29 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81C2A16A4CE for ; Thu, 1 Jul 2004 19:05:29 +0000 (GMT) Received: from komposti.turkuamk.fi (komposti.turkuamk.fi [195.148.208.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9477743D2D for ; Thu, 1 Jul 2004 19:05:28 +0000 (GMT) (envelope-from Lauri.Jarvenpaa@students.turkuamk.fi) To: freebsd-hackers@freebsd.org From: "Lauri J =?iso-8859-1?Q?J=E4rvenp=E4=E4?=" Date: Thu, 1 Jul 2004 22:12:48 +0300 Message-ID: X-MIMETrack: Serialize by Router on lisa/AmkOp(Release 5.0.12 |February 13, 2003) at 01.07.2004 22:13:17 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Subject: Re: Wacom Graphire3 USB Tablet and FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 19:05:29 -0000 > Ever get it working or find a tablet that does work under FreeBSD? Just in case you didn't knew already: Serial Wacoms are supported and work. I use Intuos2 serial and I have also tried older Intuos serial and ArtPad II serial models which also worked fine. You can get used Intuos models pretty cheaply from Wacom onlineshop. Lack of USB support is sad, but you can use SGI machines with your serial Wacom, too :) FYI, pen switch for Intuos2 didn't work until I either compiled XFree Wacom driver from XFree snapshot or used precompiled driver from linuxwacom sourceforge project. Cheers, lauri j From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 19:25:03 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3D1916A4CE for ; Thu, 1 Jul 2004 19:25:03 +0000 (GMT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id A611243D1D for ; Thu, 1 Jul 2004 19:25:03 +0000 (GMT) (envelope-from justin@mac.com) Received: from mac.com (smtpin01-en2 [10.13.10.146]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id i61JO6Av022839; Thu, 1 Jul 2004 12:24:06 -0700 (PDT) Received: from [67.169.117.81] (c-67-169-117-81.client.comcast.net [67.169.117.81]) (authenticated bits=0) by mac.com (Xserve/smtpin01/MantshX 4.0) with ESMTP id i61JNsTw015170 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Thu, 1 Jul 2004 12:24:05 -0700 (PDT) In-Reply-To: <40E41F3A.3050405@trio.plala.or.jp> References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> <40E4076E.60201@trio.plala.or.jp> <0F3D7DA8-CB63-11D8-9145-000D9335C6A0@yahoo.com.au> <40E41F3A.3050405@trio.plala.or.jp> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <30499270-CB94-11D8-AFC7-00306544D642@mac.com> Content-Transfer-Encoding: 7bit From: Justin Walker Date: Thu, 1 Jul 2004 12:23:53 -0700 To: Eitarou Kamo X-Mailer: Apple Mail (2.618) cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 19:25:03 -0000 On Jul 1, 2004, at 7:27, Eitarou Kamo wrote: > Hi Q, > > Q wrote: > >>> My curiosity is that the FreeBSD and NetBSD license are left. >>> And should those licenses are kept after porting? >> >> Yes the original license and copyright notices are all kept intact, >> it's one of the requirements of virtually every opensource license. >> To remove them would be a violation of the original copyright holders >> requirements. >> > This is important. For the people to port from now this must > be a point, not to port beyond the law. > > The words "Redistributions" in the FreeBSD License includes > "porting"? > > But I heard, the algorithm of the source code wasn't preserved > by the copyright. In the case of the porting from FreeBSD to other > different flavor OS (e.g. Linux), the algorithm is used. But the > variables or > way of writing is not used. This is a fine point of copyright law, and few engineers/programmers are in a position to know the answer. Your best bet is to read the license in full, and refer to a lawyer familiar with this area of law. Check the websites for the EFF and OSI for details. > In this case what should I do? Ethically I should > notice FreeBSD license. But.... It's a bit contradiction, I think. I'm not sure what you mean by "this case". If you are porting Darwin code to some other system, then you have to follow the license requirements for the components you use. As has been pointed out earlier in this thread, some of the Darwin OS code is from FreeBSD and other sources with similar licenses; and some is developed largely by Apple (so the APSL applies). If you are porting to Darwin, then the license on the code you start with applies. In either case, you do need to understand the license issues. The best we can do is to answer specific questions, but you still may be better off discussing this via one of the above sites. Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | Some people have a mental | horizon of radius zero, and | call it their point of view. | -- David Hilbert *--------------------------------------*-------------------------------* From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 19:30:30 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CE7616A4CE for ; Thu, 1 Jul 2004 19:30:30 +0000 (GMT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B0DB43D1F for ; Thu, 1 Jul 2004 19:30:30 +0000 (GMT) (envelope-from justin@mac.com) Received: from mac.com (smtpin01-en2 [10.13.10.146]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id i61JTmVN012344 for ; Thu, 1 Jul 2004 12:29:48 -0700 (PDT) Received: from [67.169.117.81] (c-67-169-117-81.client.comcast.net [67.169.117.81]) (authenticated bits=0) by mac.com (Xserve/smtpin01/MantshX 4.0) with ESMTP id i61JTQTw016806 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Thu, 1 Jul 2004 12:29:32 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v618) In-Reply-To: <40E40385.9030401@trio.plala.or.jp> References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> <40E40385.9030401@trio.plala.or.jp> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Justin Walker Date: Thu, 1 Jul 2004 12:29:25 -0700 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.618) Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 19:30:30 -0000 On Jul 1, 2004, at 5:28, Eitarou Kamo wrote: > Hi Q and all, > > Q wrote: > >> >> The portions of the FreeBSD kernel that Apple have adopted can be >> found as part of the XNU project (the darwin kernel) from Apple's >> Opensource website >> http://www.opensource.apple.com/darwinsource/ >> The CVS tags should still be intact on the files in question. >> > Is the darwin entirely open source? Darwin, as the underpinnings for Mac OS X, is entirely open source, in the sense that you can build a running Darwin system from the open-source code available from Apple. You can't completely replace corresponding components in Mac OS X with code from the Darwin code base and have a working system (some frameworks/libraries are only partially open source). Some components of the kernel are not open-source, but they are not needed to build a Darwin system, or to build a kernel that can replace the one you have on a running Mac OS X system. These components are loadable kernel modules, and as such, will load into a rebuilt kernel of the same version level. Hope that isn't too confusing. Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | When LuteFisk is outlawed | Only outlaws will have | LuteFisk *--------------------------------------*-------------------------------* From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 19:30:56 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F059B16A4CE for ; Thu, 1 Jul 2004 19:30:55 +0000 (GMT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id C75D743D3F for ; Thu, 1 Jul 2004 19:30:55 +0000 (GMT) (envelope-from justin@mac.com) Received: from mac.com (smtpin01-en2 [10.13.10.146]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id i61JUCgH023649 for ; Thu, 1 Jul 2004 12:30:12 -0700 (PDT) Received: from [67.169.117.81] (c-67-169-117-81.client.comcast.net [67.169.117.81]) (authenticated bits=0) by mac.com (Xserve/smtpin01/MantshX 4.0) with ESMTP id i61JTQTx016806 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Thu, 1 Jul 2004 12:29:56 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v618) In-Reply-To: <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Justin Walker Date: Thu, 1 Jul 2004 12:29:32 -0700 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.618) Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 19:30:56 -0000 On Jun 30, 2004, at 23:33, Q wrote: > > On 30/06/2004, at 4:40 PM, Chris Zumbrunn wrote: > >> >> On 30. Jun 2004, at 3:01, Alasdair Lumsden wrote: >> [snip] > Darwin still uses a Mach kernel design, although Apple has made some > significant modifications to its implementation to reduce message > passing overhead and latency etc, making it something of a hybrid and > no longer a pure micro-kernel. To get pedantic, the Darwin kernel of Mac OS X is not a microkernel. Although it used the code-base of Mach 3.0 as a starting point, it is monolithic, as were the pre-3.0 versions of Mach. In fact, I doubt at this point that you could get any micro-kernel functionality to work based on Darwin. > As a result the Darwin Mach kernel is not the traditional Mach mix of > userspace/kernelspace RPC connected components, instead the kernel is > linked into a single address space, using kernel extensions (loadable > modules) in a similar way FreeBSD does. However these extensions are > implemented using a highly object oriented API (IOKit) for interacting > with the kernel, instead of the traditional struct passing procedural > approach used in FreeBSD. The device driver model (IOKit) is C++, using the "embedded C++" constraints to avoid a huge C++ runtime in the kernel. Other extensions (file system and network plugins), however, are not. > The portions of the FreeBSD kernel that Apple have adopted can be > found as part of the XNU project (the darwin kernel) from Apple's > Opensource website > http://www.opensource.apple.com/darwinsource/ > The CVS tags should still be intact on the files in question. > > While FreeBSD provides a sizable chunk of Darwin's BSDness, it still > has a decent amount of legacy NeXT/BSD code in it as well. I'm not sure precisely what you mean here, but the Darwin kernel has been completely rewritten since the days of NeXT. There may be minor bits of NeXT code left, but I don't think it's much. > Some of the things that have been adopted from FreeBSD/NetBSD in the > Darwin kernel include: > > Crypto support > Filesystem support for CD9660, DEVFS, NFS, VFS, MEMDEV (Curiously this > doesn't include UFS/FFS support) > IP & IPV6 TCP stack support including BPF & IPFW > Most of the BSD/Posix/SYSV system calls (sysctl, fork, exec, ktrace, > mmap, etc) and corresponding MAN pages. Sounds like you've been doing some homework :-} Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | It's not whether you win or lose... | It's whether *I* win or lose. *--------------------------------------*-------------------------------* From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 20:49:16 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28B6816A4CE for ; Thu, 1 Jul 2004 20:49:16 +0000 (GMT) Received: from mail.cableone.net (scanmail2.cableone.net [24.116.0.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7ACFE43D49 for ; Thu, 1 Jul 2004 20:49:15 +0000 (GMT) (envelope-from v.velox@vvelox.net) Received: from vixen42.24-119-122-191.cpe.cableone.net (unverified [24.119.122.191]) by smail2.cableone.net (SurgeMail 1.9b) with ESMTP id 7687899 for ; Thu, 01 Jul 2004 13:34:42 -0700 Date: Thu, 1 Jul 2004 15:48:00 -0500 From: Vulpes Velox To: freebsd-hackers@freebsd.org Message-Id: <20040701154800.1991727d@vixen42.24-119-122-191.cpe.cableone.net> In-Reply-To: References: X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.10) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Server: High Performance Mail Server - http://surgemail.com Subject: Re: Wacom Graphire3 USB Tablet and FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 20:49:16 -0000 On Thu, 1 Jul 2004 22:12:48 +0300 "Lauri J J=E4rvenp=E4=E4" wrote: > > Ever get it working or find a tablet that does work under FreeBSD? >=20 > Just in case you didn't knew already: > Serial Wacoms are supported and work. > I use Intuos2 serial and I have also tried older Intuos serial and > ArtPad II serial models which also worked fine. >=20 > You can get used Intuos models pretty cheaply from Wacom onlineshop. Really? Cool, got a link? I got looking and I could not find it :/ The only cheap ones I can find on there are refurbished Graphire 3s and 2s. They have Intous2 there with serial, but that is all I've found. Currently looking at a serial ACECAD Acecat Flair. =20 > Lack of USB support is sad, but you can use SGI machines with your > serial Wacom, too :) >=20 > FYI, pen switch for Intuos2 didn't work until I either compiled > XFree Wacom driver from XFree snapshot or used precompiled driver > from linuxwacom sourceforge project. From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 01:19:26 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4216A16A4CE for ; Fri, 2 Jul 2004 01:19:26 +0000 (GMT) Received: from kozubik.com (kozubik.com [65.248.2.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29EDC43D55 for ; Fri, 2 Jul 2004 01:19:26 +0000 (GMT) (envelope-from john@kozubik.com) Received: from kozubik.com (john@localhost [IPv6:::1]) by kozubik.com (8.12.3/8.12.3) with ESMTP id i621GoBx052925 for ; Thu, 1 Jul 2004 18:16:50 -0700 (PDT) (envelope-from john@kozubik.com) Received: from localhost (john@localhost) by kozubik.com (8.12.3/8.12.3/Submit) with ESMTP id i621GoDR052922 for ; Thu, 1 Jul 2004 18:16:50 -0700 (PDT) Date: Thu, 1 Jul 2004 18:16:50 -0700 (PDT) From: John Kozubik To: freebsd-hackers@freebsd.org In-Reply-To: Message-ID: <20040701172211.K806-100000@kozubik.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: writing to RW-mounted UFS2 snapshots - confirmed. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 01:19:26 -0000 On Thu, 1 Jul 2004, Q wrote: > > While this may not be "expected" behavior, I am curious why this is > > something that should be prevented, rather than verified for > > correctness? By "correct" I mean, that the copy on write process is > > performed correctly and modifications made to the snapshot don't > > modify the underlying filesystem elements also. > > Ok, I decided to be self sufficient and read Marshall McKusick's paper > on background fsck (which also covers snapshots) to answer my own > question. > > Firstly, one of the stated requirements for snapshots to function as > outlined in the paper is that they must be read only. The reason they > need to be read only is because the support for multiple snapshots > assumes that they cannot change, and handles block allocation of freed > blocks with this in mind. Supporting snapshot modification is outside > the scope of the original implementation and would require further > thought. This was the main reason that I decided to go back and see if this was really happening or not. I read the USENIX paper (McKusick) to be quite clear that snapshots must be read-only: "Writes to snapshot files are not permitted". However, nothing is said about writing files to, or changing files within, a mounted snapshot file. My initial assumption is that both activities are equally incorrect (and dangerous - especially for subsequent snapshots created after altering the first one). As for a solution, I suppose a quick fix would be to alter `mount` to disallow the read/write mount of a snapshot file. This is similar to the exception that is already coded into `unlink` to accomodate snapshot files. I just submitted a PR for this. ----- John Kozubik - john@kozubik.com - http://www.kozubik.com From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 01:23:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8339D16A4CE for ; Fri, 2 Jul 2004 01:23:55 +0000 (GMT) Received: from mps2.plala.or.jp (c145240.vh.plala.or.jp [210.150.145.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37F6243D55 for ; Fri, 2 Jul 2004 01:23:52 +0000 (GMT) (envelope-from e-kamo@trio.plala.or.jp) Received: from msvc2.plala.or.jp ([172.23.8.210]) by mps2.plala.or.jp with SMTP id <20040702012222.JWZI1281.mps2.plala.or.jp@msvc2.plala.or.jp> for ; Fri, 2 Jul 2004 10:22:22 +0900 Received: ( 15991 invoked from network); 2 Jul 2004 10:22:22 +0900 X-SVCK: Received: from unknown (HELO mpb1.plala.or.jp) (172.23.8.16) by msvc2 with SMTP; 2 Jul 2004 10:22:21 +0900 Received: from trio.plala.or.jp ([219.25.148.126]) by mpb1.plala.or.jp with ESMTP id <20040702012221.TBFY19716.mpb1.plala.or.jp@trio.plala.or.jp>; Fri, 2 Jul 2004 10:22:21 +0900 Message-ID: <40E4BA4E.4060007@trio.plala.or.jp> Date: Fri, 02 Jul 2004 10:28:46 +0900 From: Eitarou Kamo User-Agent: Mozilla/5.0 (Windows; U; Win98; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: ja MIME-Version: 1.0 To: Justin Walker , freebsd-hackers@freebsd.org References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> <40E40385.9030401@trio.plala.or.jp> In-Reply-To: X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 01:23:55 -0000 HI Justin, Justin Walker wrote: > > On Jul 1, 2004, at 5:28, Eitarou Kamo wrote: > >> > > Darwin, as the underpinnings for Mac OS X, is entirely open source, in > the sense that you can build a running Darwin system from the > open-source code available from Apple. You can't completely replace > corresponding components in Mac OS X with code from the Darwin code > base and have a working system (some frameworks/libraries are only > partially open source). > > Some components of the kernel are not open-source, but they are not > needed to build a Darwin system, or to build a kernel that can replace > the one you have on a running Mac OS X system. These components are > loadable kernel modules, and as such, will load into a rebuilt kernel > of the same version level. > > Hope that isn't too confusing. > It may be OK, I guess. I didn't know Darwin well so far. and I'm not going to port or derive Darwin to other systems. But I'm interested in a bit. Eitarou -- *********************** Eitarou Kamo Tel. +81 75 7035997 Fax +81 75 7035997 VoIP 050 10585997(domestic only) e-mail e-kamo@trio.plala.or.jp For business: Feel free to mail me(above), please. Donation http://www.PayPal.Com GPG FingerPrint: 032D FDF9 D27B 23F7 9A81 BF4C 626C FBAA BC3A 9895 ************************************************************************ From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 01:54:38 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82F4416A4D7 for ; Fri, 2 Jul 2004 01:54:38 +0000 (GMT) Received: from smtp106.mail.sc5.yahoo.com (smtp106.mail.sc5.yahoo.com [66.163.169.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 5DE1B43D41 for ; Fri, 2 Jul 2004 01:54:38 +0000 (GMT) (envelope-from q_dolan@yahoo.com.au) Received: from unknown (HELO ?172.22.1.10?) (q?dolan@203.13.70.60 with plain) by smtp106.mail.sc5.yahoo.com with SMTP; 2 Jul 2004 01:53:24 -0000 In-Reply-To: References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <98F7E51E-CBCA-11D8-9145-000D9335C6A0@yahoo.com.au> Content-Transfer-Encoding: 7bit From: Q Date: Fri, 2 Jul 2004 11:53:21 +1000 To: Justin Walker X-Mailer: Apple Mail (2.618) cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 01:54:38 -0000 On 02/07/2004, at 5:29 AM, Justin Walker wrote: > On Jun 30, 2004, at 23:33, Q wrote: > >> Darwin still uses a Mach kernel design, although Apple has made some >> significant modifications to its implementation to reduce message >> passing overhead and latency etc, making it something of a hybrid and >> no longer a pure micro-kernel. > > To get pedantic, the Darwin kernel of Mac OS X is not a microkernel. > Although it used the code-base of Mach 3.0 as a starting point, it is > monolithic, as were the pre-3.0 versions of Mach. In fact, I doubt at > this point that you could get any micro-kernel functionality to work > based on Darwin. Correct, the Darwin kernel is not a micro-kernel (I never said it was), but it is not monolithic either, to be pedantic it is actually a "hybrid kernel" (1) or modified micro-kernel because it shares the message passing design of a micro-kernel, but includes otherwise "non-essential" components in kernel space. (1) http://en.wikipedia.org/wiki/ Monolithic_kernel#Hybrid_kernels_.28modified_microkernels.29 >> As a result the Darwin Mach kernel is not the traditional Mach mix of >> userspace/kernelspace RPC connected components, instead the kernel is >> linked into a single address space, using kernel extensions (loadable >> modules) in a similar way FreeBSD does. However these extensions are >> implemented using a highly object oriented API (IOKit) for >> interacting with the kernel, instead of the traditional struct >> passing procedural approach used in FreeBSD. > > The device driver model (IOKit) is C++, using the "embedded C++" > constraints to avoid a huge C++ runtime in the kernel. Other > extensions (file system and network plugins), however, are not. This is true, I should have been more specific, I was attempting to highlight the most obvious difference without going into too much detail. >> The portions of the FreeBSD kernel that Apple have adopted can be >> found as part of the XNU project (the darwin kernel) from Apple's >> Opensource website >> http://www.opensource.apple.com/darwinsource/ >> The CVS tags should still be intact on the files in question. >> >> While FreeBSD provides a sizable chunk of Darwin's BSDness, it still >> has a decent amount of legacy NeXT/BSD code in it as well. > > I'm not sure precisely what you mean here, but the Darwin kernel has > been completely rewritten since the days of NeXT. There may be minor > bits of NeXT code left, but I don't think it's much. Ok, let me rephrase, I'm referring specifically to BSD kernel code. While there is a sizable amount of "BSD" code taken primarily from FreeBSD in the darwin kernel, there is still a reasonable amount of original "BSD" code (4.3/4.4BSD) that has come indirectly into the code base (via NeXT, you can tell by the license body) and not directly from the FreeBSD source tree. That's not to say there is much difference in a lot of cases, but any FreeBSD specific alterations will not be represented in these portions of the code. The UFS/FFS code is a prime example. A lot of the UFS/FFS code in both FreeBSD-5 and Darwin is quite different due to evolutionary changes in FreeBSD (eg. snapshots, UFS2, softupdates), but there are also some files that have been virtually unaltered from 4.4BSD and in these cases it wouldn't really matter where they came from. The point I was making is that there is still a bit of a mixture of sources that make up the BSD'ness of Darwin, and as a result there are still some notable parts of FreeBSD missing. >> Some of the things that have been adopted from FreeBSD/NetBSD in the >> Darwin kernel include: >> >> Crypto support >> Filesystem support for CD9660, DEVFS, NFS, VFS, MEMDEV (Curiously >> this doesn't include UFS/FFS support) >> IP & IPV6 TCP stack support including BPF & IPFW >> Most of the BSD/Posix/SYSV system calls (sysctl, fork, exec, ktrace, >> mmap, etc) and corresponding MAN pages. > > Sounds like you've been doing some homework :-} Yes, you might say that I have developed a rather healthy interest in the topic recently. -- Seeya...Q -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- _____ / Quinton Dolan - q_dolan@yahoo.com.au __ __/ / / __/ / / / __ / _/ / / Gold Coast, QLD, Australia __/ __/ __/ ____/ / - / Ph: +61 419 729 806 _______ / _\ From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 02:20:43 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (unknown [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1A8416A4CE for ; Fri, 2 Jul 2004 02:20:43 +0000 (GMT) Received: from web53302.mail.yahoo.com (web53302.mail.yahoo.com [206.190.39.231]) by mx1.FreeBSD.org (Postfix) with SMTP id E0CB643D1F for ; Fri, 2 Jul 2004 02:20:42 +0000 (GMT) (envelope-from jiafu_he@yahoo.com) Message-ID: <20040702021242.67064.qmail@web53302.mail.yahoo.com> Received: from [151.196.123.49] by web53302.mail.yahoo.com via HTTP; Thu, 01 Jul 2004 19:12:42 PDT Date: Thu, 1 Jul 2004 19:12:42 -0700 (PDT) From: Jiafu He To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Debugging APIC problem (R5.2.1 vt-8235 ata failure no interrupt), need help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 02:20:44 -0000 Hi, folks, Rel 5.2.1 can't be installed on my machine due to APIC problems. The error message is like "ata0-master: FAILURE - ATA_IDENTIFY no interrupt". It is a Soyo motherboard "SY-P4VGA" with VIA VT-8235 south bridge. Debugging results using DDB ("show intrcnt") show no interrupts ever occur. Disable the APIC feature on BIOS, then the disk is detected and everything works fine. Installing release 5.1 and 4.10 both work perfect. So I guess there must be problems with the APIC or IO APIC initialization code in release 5.2.1. Below are the printouts by calling lapic_dump(): If ENABLE APIC in BIOS: ------------------------------------------------------------------------------------- ID:0x00000000 VER:0x00050014 LDR:0x01000000 DFR:0x0fffffff Lint0:0x00010700 Lint1:0x00000400 TPR:0x00000000 SVR:0x000001ff -------------------------------------------------------------------------------------- If DISABLE APIC in BIOS: -------------------------------------------------------------------------------------- ID:0xf000fea5 VER:0xf000ef6f LDR:0xf000e816 DFR:0xf000e816 Lint0:0xef1b8579 Lint 1:0xef190000 TPR:0xf000e816 SVR:0xf000e816 -------------------------------------------------------------------------------------- The bit 16 of Lint0 (mask bit) is 1 in the former case. Is that the cause of the problem? Problem not, since now IOAPIC in VT-8235 is used and Lint0 may not be useful any longer (pls correct me if the statement is wrong). Try to change the setting by writing to the LVT but couldn't succeed. I am still not so familiar with the Pentium architecture and need more time to practice. Any comments and help are welcome. Thanks in advance. Jiafu --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 02:47:53 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C75EF16A4CE for ; Fri, 2 Jul 2004 02:47:53 +0000 (GMT) Received: from cs.columbia.edu (cs.columbia.edu [128.59.16.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82F0843D53 for ; Fri, 2 Jul 2004 02:47:53 +0000 (GMT) (envelope-from mre2007@cs.columbia.edu) Received: from hydra.cs.columbia.edu (IDENT:y8RVnxD3qU4KH4uViY4XJjCaBDAJd0jd@hydra.cs.columbia.edu [128.59.16.129]) by cs.columbia.edu (8.12.10/8.12.10) with ESMTP id i622kDfq002643 verify=NOT); Thu, 1 Jul 2004 22:46:13 -0400 (EDT) Received: from webmail.cs.columbia.edu (IDENT:QpAMXDjRHOC/hRiQPmPUFZnhlccNCOja@localhost [127.0.0.1]) i622kCXt021799; Thu, 1 Jul 2004 22:46:12 -0400 Received: from 24.243.189.238 (SquirrelMail authenticated user mre2007) by webmail.cs.columbia.edu with HTTP; Thu, 1 Jul 2004 22:46:12 -0400 (EDT) Message-ID: <33087.24.243.189.238.1088736372.squirrel@webmail.cs.columbia.edu> Date: Thu, 1 Jul 2004 22:46:12 -0400 (EDT) From: mre2007@cs.columbia.edu To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-PMX-Version: 4.6.0.99824, Antispam-Core: 4.6.1.104326, Antispam-Data: 2004.7.1.105720 X-PerlMx-Spam: Gauge=X, Probability=10%, Report='PRIORITY_NO_NAME 0.716, FROM_ENDS_IN_NUMS 0.001, NO_REAL_NAME 0.000, __FROM_ENDS_IN_NUMS 0, __TO_MALFORMED_2 0, __USER_AGENT 0, __MIME_VERSION 0, __EVITE_CTYPE 0, __CT_TEXT_PLAIN 0, __CT 0, __CTE 0, __HAS_X_PRIORITY 0, __MIME_TEXT_ONLY 0, __HAS_MSGID 0, __SANE_MSGID 0, USER_AGENT 0.000' Subject: Dealing with an orphaned function inside the kernel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 02:47:53 -0000 FreeBSD Hackers: I am trying to use the sched_bind() function from sched.h inside a kernel module and having difficulties. It seems that sched_bind() is orphaned inside of sys/kern. I'm not sure how to stop the kernel linker from garbage collecting this function, due to the fact that it is never actually used in the kernel. I determined this to be the case by noticing that: nm `sysctl -n kern.bootfile` | grep sched_bind doesn't return the symbol, and the fact that I grepped for sched_bind and didn't see it anywhere else other than the schedule files. When I try to load my kernel module using this function, I get the message: link_elf: symbol sched_bind undefined What's the proper way to remedy this situation? Maybe a function pointer in an innocuous place in the code? Can someone provide a good example perhaps of the proper way to do this? Thanks in advance, -Marc Eisenbarth From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 02:50:01 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE26C16A4CE for ; Fri, 2 Jul 2004 02:50:01 +0000 (GMT) Received: from porthos.spock.org (porthos.spock.org [204.97.176.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C63B43D3F for ; Fri, 2 Jul 2004 02:50:01 +0000 (GMT) (envelope-from jon@porthos.spock.org) Received: from porthos.spock.org (0@localhost [127.0.0.1]) EF600Q3T-B7F8823i622mT2U025412F7T for ; Thu, 1 Jul 2004 22:48:29 -0400 (EDT) (envelope-from jon@porthos.spock.org) Received: (from jon@localhost) by porthos.spock.org (8.12.11/8.12.9/Submit) id i622mTdB025411 for freebsd-hackers@freebsd.org; Thu, 1 Jul 2004 22:48:29 -0400 (EDT) (envelope-from jon) Date: Thu, 1 Jul 2004 22:48:29 -0400 From: Jonathan Chen To: freebsd-hackers@freebsd.org Message-ID: <20040701224829.A20882@porthos.spock.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: telnet/1.1x Subject: bge on 64-bit pci: corrupt packets X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 02:50:02 -0000 Hi all, I've been experiencing a problem with using bge on 64-bit pci slots. After looking at this for the whole day, I still have no idea what the problem is. Perhaps one of you can help... The setup: SuperMicro P4SCT+ motherboard (E7210 Canterwood ES) 3Com 3c996-SX (Broadcom BCM5701 rev 0x105) FreeBSD 5.2.1 GENERIC kernel Using vlan over the bge card The problem: TCP packets sent over the vlan would get corrupted while sending. Other packet types may or may not be corrupted -- I've only been able to catch TCP so far. The content of the packet would get corrupted, while the checksum generated remains valid for the non-corrupted packet. tcpdump on the sending side does not show any errors, while tcpdump on the receive side shows the problem. (See tcpdump output at bottom of message, bytes 0x210-0x214 should be the string "8901" and not "0123") The corrupted 4 bytes appear to be at the end of the buffer of a write() call. The problem appears to go away when a 32-bit PCI slot is used. I am also unable to reproduce the problem on a 64-bit PCI slot without the use of vlans. Not only were there no tcp checksum errors, datastreams appears intact after the transfer (using md5). In the course of trying to track down the problem, I turned off hardware TCP checksuming for the card (by removing CSUM_TCP from BGE_CSUM_FEATURES). This appears to make matters worse. Now, not only is TCP over vlans broken, TCP traffic over the non-vlaned bge is also corrupt in the same manner. Note that turning off checksuming through ifconfig -txcsum did not have the same effect. (NB: I think turning on/off bge checksuming through ifconfig/ioctl is broken? Shouldn't it set ifp->if_hwassist?) Since the card works fine in a 32-bit slot but breaks in a 64-bit slot, I'm guessing the problem is somehow related to alignment. However, I have no idea how I would go about realigning things, especially since the card uses DMA. Help? BTW, am I correct in assuming that transmit checksum offloading is not used with vlans? -Jon 192.168.1.1.49178 > 192.168.1.2.5001: . [bad tcp cksum 606!] 97779257:97780701(1444) ack 1 win 33212 (DF) (ttl 64, id 19704, len 1496) 0x0000 4500 05d8 4cf8 4000 4006 64d4 c0a8 0101 E...L.@.@.d..... 0x0010 c0a8 0102 c01a 1389 affe cfe1 060c 82ee ................ 0x0020 8010 81bc 4f61 0000 0101 080a 0167 8fd0 ....Oa.......g.. 0x0030 0167 d258 3233 3435 3637 3839 3031 3233 .g.X234567890123 0x0040 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x0050 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x0060 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x0070 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x0080 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x0090 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x00a0 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x00b0 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x00c0 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x00d0 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x00e0 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x00f0 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x0100 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x0110 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x0120 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x0130 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x0140 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x0150 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x0160 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x0170 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x0180 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x0190 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x01a0 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x01b0 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x01c0 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x01d0 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x01e0 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x01f0 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x0200 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x0210 3031 3233 0000 0000 0000 0001 0000 1389 0123............ 0x0220 0000 0000 0000 0000 ffff fc18 3435 3637 ............4567 0x0230 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x0240 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x0250 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x0260 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x0270 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x0280 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x0290 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x02a0 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x02b0 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x02c0 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x02d0 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x02e0 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x02f0 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x0300 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x0310 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x0320 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x0330 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x0340 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x0350 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x0360 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x0370 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x0380 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x0390 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x03a0 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x03b0 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x03c0 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x03d0 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x03e0 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x03f0 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x0400 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x0410 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x0420 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x0430 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x0440 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x0450 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x0460 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x0470 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x0480 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x0490 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x04a0 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x04b0 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x04c0 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x04d0 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x04e0 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x04f0 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x0500 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x0510 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x0520 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x0530 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x0540 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x0550 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x0560 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x0570 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x0580 3637 3839 3031 3233 3435 3637 3839 3031 6789012345678901 0x0590 3233 3435 3637 3839 3031 3233 3435 3637 2345678901234567 0x05a0 3839 3031 3233 3435 3637 3839 3031 3233 8901234567890123 0x05b0 3435 3637 3839 3031 3233 3435 3637 3839 4567890123456789 0x05c0 3031 3233 3435 3637 3839 3031 3233 3435 0123456789012345 0x05d0 3637 3839 3031 3233 67890123 [packet courtasy of iperf] -Jon From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 03:04:24 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1FF716A4CE for ; Fri, 2 Jul 2004 03:04:24 +0000 (GMT) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D02643D49 for ; Fri, 2 Jul 2004 03:04:24 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 9173 invoked from network); 2 Jul 2004 03:03:00 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 2 Jul 2004 03:02:59 -0000 Received: from 131.106.58.153 (p58.n-nypop02.stsn.com [199.106.89.58]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i6232qvj029354; Thu, 1 Jul 2004 23:02:55 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Thu, 1 Jul 2004 23:04:03 -0400 User-Agent: KMail/1.6 References: <20040702021242.67064.qmail@web53302.mail.yahoo.com> In-Reply-To: <20040702021242.67064.qmail@web53302.mail.yahoo.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200407012304.03810.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Jiafu He Subject: Re: Debugging APIC problem (R5.2.1 vt-8235 ata failure no interrupt), need help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 03:04:25 -0000 On Thursday 01 July 2004 10:12 pm, Jiafu He wrote: > Hi, folks, > > Rel 5.2.1 can't be installed on my machine due to APIC problems. The error > message is like "ata0-master: FAILURE - ATA_IDENTIFY no interrupt". It is a > Soyo motherboard "SY-P4VGA" with VIA VT-8235 south bridge. > > Debugging results using DDB ("show intrcnt") show no interrupts ever occur. > Disable the APIC feature on BIOS, then the disk is detected and everything > works fine. Installing release 5.1 and 4.10 both work perfect. So I guess > there must be problems with the APIC or IO APIC initialization code in > release 5.2.1. Do you have a dmesg output with APIC enabled? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 03:05:08 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6C5D16A4CE for ; Fri, 2 Jul 2004 03:05:08 +0000 (GMT) Received: from mx4.mail.ru (fallback.mail.ru [194.67.57.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2356D43D31 for ; Fri, 2 Jul 2004 03:05:08 +0000 (GMT) (envelope-from shmukler@mail.ru) Received: from f17.mail.ru (f17.mail.ru [194.67.57.47]) by mx4.mail.ru (mPOP.Fallback_MX) with ESMTP id 2CA7FD7AF3 for ; Fri, 2 Jul 2004 07:03:53 +0400 (MSD) Received: from mail by f17.mail.ru with local id 1BgEKg-0005r5-00; Fri, 02 Jul 2004 07:03:22 +0400 Received: from [24.184.137.115] by msg.mail.ru with HTTP; Fri, 02 Jul 2004 07:03:22 +0400 From: Igor Shmukler To: justin@mac.com Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [24.184.137.115] Date: Fri, 02 Jul 2004 07:03:22 +0400 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: cc: freebsd-hackers@freebsd.org Subject: re: OS X (was *BSD and Mac OS) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Igor Shmukler List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 03:05:08 -0000 Hello, Sorry for intrusion. This is not really what original argument was about. I am curious, do you (or someone else) knows what exactly was changed in Tiger in regards to fine-grained locking. I did not make to WWDC and I could not find any technical info on that. Sincerely, IS. From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 04:10:24 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 345D616A4D3 for ; Fri, 2 Jul 2004 04:10:24 +0000 (GMT) Received: from web53303.mail.yahoo.com (web53303.mail.yahoo.com [206.190.39.232]) by mx1.FreeBSD.org (Postfix) with SMTP id D48C943D4C for ; Fri, 2 Jul 2004 04:10:23 +0000 (GMT) (envelope-from jiafu_he@yahoo.com) Message-ID: <20040702040236.42896.qmail@web53303.mail.yahoo.com> Received: from [151.196.123.49] by web53303.mail.yahoo.com via HTTP; Thu, 01 Jul 2004 21:02:36 PDT Date: Thu, 1 Jul 2004 21:02:36 -0700 (PDT) From: Jiafu He To: John Baldwin , freebsd-hackers@FreeBSD.org In-Reply-To: <200407012304.03810.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: Debugging APIC problem (R5.2.1 vt-8235 ata failure no interrupt), need help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 04:10:24 -0000 John Baldwin wrote: On Thursday 01 July 2004 10:12 pm, Jiafu He wrote: > Hi, folks, > > Rel 5.2.1 can't be installed on my machine due to APIC problems. The error > message is like "ata0-master: FAILURE - ATA_IDENTIFY no interrupt". It is a > Soyo motherboard "SY-P4VGA" with VIA VT-8235 south bridge. > > Debugging results using DDB ("show intrcnt") show no interrupts ever occur. > Disable the APIC feature on BIOS, then the disk is detected and everything > works fine. Installing release 5.1 and 4.10 both work perfect. So I guess > there must be problems with the APIC or IO APIC initialization code in > release 5.2.1. Do you have a dmesg output with APIC enabled? I can see it on my monitor, However I can't even have my disk attached, do I have a way to save it anywhere? :( If you want a dmesg from R5.1, I can send it to you. Jiafu __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 04:22:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09EB816A4E2 for ; Fri, 2 Jul 2004 04:22:22 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id B543643D1F for ; Fri, 2 Jul 2004 04:22:21 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 31166 invoked from network); 2 Jul 2004 04:21:04 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 2 Jul 2004 04:21:03 -0000 Received: from 131.106.58.153 (p58.n-nypop02.stsn.com [199.106.89.58]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i624KpfB029796; Fri, 2 Jul 2004 00:20:55 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Jiafu He Date: Fri, 2 Jul 2004 00:22:02 -0400 User-Agent: KMail/1.6 References: <20040702040236.42896.qmail@web53303.mail.yahoo.com> In-Reply-To: <20040702040236.42896.qmail@web53303.mail.yahoo.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200407020022.02219.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: freebsd-hackers@FreeBSD.org Subject: Re: Debugging APIC problem (R5.2.1 vt-8235 ata failure no interrupt), need help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 04:22:22 -0000 On Friday 02 July 2004 12:02 am, Jiafu He wrote: > John Baldwin wrote: > > On Thursday 01 July 2004 10:12 pm, Jiafu He wrote: > > Hi, folks, > > > > Rel 5.2.1 can't be installed on my machine due to APIC problems. The > > error message is like "ata0-master: FAILURE - ATA_IDENTIFY no interrupt". > > It is a Soyo motherboard "SY-P4VGA" with VIA VT-8235 south bridge. > > > > Debugging results using DDB ("show intrcnt") show no interrupts ever > > occur. Disable the APIC feature on BIOS, then the disk is detected and > > everything works fine. Installing release 5.1 and 4.10 both work perfect. > > So I guess there must be problems with the APIC or IO APIC initialization > > code in release 5.2.1. > > Do you have a dmesg output with APIC enabled? > > I can see it on my monitor, However I can't even have my disk attached, do > I have a way to save it anywhere? :( If you want a dmesg from R5.1, I can > send it to you. > > Jiafu Do you have a serial console? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 04:34:46 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB59716A4CE for ; Fri, 2 Jul 2004 04:34:45 +0000 (GMT) Received: from web53309.mail.yahoo.com (web53309.mail.yahoo.com [206.190.39.238]) by mx1.FreeBSD.org (Postfix) with SMTP id 8AF5343D39 for ; Fri, 2 Jul 2004 04:34:45 +0000 (GMT) (envelope-from jiafu_he@yahoo.com) Message-ID: <20040702043317.75506.qmail@web53309.mail.yahoo.com> Received: from [151.196.123.49] by web53309.mail.yahoo.com via HTTP; Thu, 01 Jul 2004 21:33:17 PDT Date: Thu, 1 Jul 2004 21:33:17 -0700 (PDT) From: Jiafu He To: John Baldwin In-Reply-To: <200407020022.02219.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-hackers@FreeBSD.org Subject: Re: Debugging APIC problem (R5.2.1 vt-8235 ata failure no interrupt), need help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 04:34:46 -0000 John Baldwin wrote: On Friday 02 July 2004 12:02 am, Jiafu He wrote: > John Baldwin wrote: > > On Thursday 01 July 2004 10:12 pm, Jiafu He wrote: > > Hi, folks, > > > > Rel 5.2.1 can't be installed on my machine due to APIC problems. The > > error message is like "ata0-master: FAILURE - ATA_IDENTIFY no interrupt". > > It is a Soyo motherboard "SY-P4VGA" with VIA VT-8235 south bridge. > > > > Debugging results using DDB ("show intrcnt") show no interrupts ever > > occur. Disable the APIC feature on BIOS, then the disk is detected and > > everything works fine. Installing release 5.1 and 4.10 both work perfect. > > So I guess there must be problems with the APIC or IO APIC initialization > > code in release 5.2.1. > > Do you have a dmesg output with APIC enabled? > > I can see it on my monitor, However I can't even have my disk attached, do > I have a way to save it anywhere? :( If you want a dmesg from R5.1, I can > send it to you. > > Jiafu Do you have a serial console? I tried to mount fixit floppy. looks like floppy controller can't be found either. I should have a serial cable around. Not sure whether it works for PC or not, I used it for debugging ARM. I'll get it back to you tomorrow. Too late today. In order not to mess up with the mailing list. I'll send it directly to you. Thanks. Jiafu --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 06:37:09 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9224A16A4CF for ; Fri, 2 Jul 2004 06:37:09 +0000 (GMT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7760743D39 for ; Fri, 2 Jul 2004 06:37:09 +0000 (GMT) (envelope-from justin@mac.com) Received: from mac.com (smtpin02-en2 [10.13.10.147]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id i626aO2w023357; Thu, 1 Jul 2004 23:36:24 -0700 (PDT) Received: from [67.169.117.81] (c-67-169-117-81.client.comcast.net [67.169.117.81]) (authenticated bits=0) by mac.com (Xserve/smtpin02/MantshX 4.0) with ESMTP id i626aNTA004771 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Thu, 1 Jul 2004 23:36:24 -0700 (PDT) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <22850F67-CBF2-11D8-A09E-00306544D642@mac.com> Content-Transfer-Encoding: 7bit From: Justin Walker Date: Thu, 1 Jul 2004 23:36:22 -0700 To: Igor Shmukler X-Mailer: Apple Mail (2.618) cc: freebsd-hackers@freebsd.org Subject: Re: OS X (was *BSD and Mac OS) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 06:37:09 -0000 On Jul 1, 2004, at 20:03, Igor Shmukler wrote: > Hello, > Sorry for intrusion. > This is not really what original argument was about. > I am curious, do you (or someone else) knows what exactly was changed > in Tiger in regards to fine-grained locking. > I did not make to WWDC and I could not find any technical info on that. That information is not available publicly until it appears on one of Apple's web sites (e.g., as source for xnu). Those that find out about it at WWDC are bound by NDA to not divulge it. Regards, Justin -- /~\ The ASCII Justin C. Walker, Curmudgeon-at-Large \ / Ribbon Campaign X Help cure HTML Email / \ From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 15:51:11 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7780116A4CE for ; Fri, 2 Jul 2004 15:51:11 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15C4B43D3F for ; Fri, 2 Jul 2004 15:51:11 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i62FncJP006560; Fri, 2 Jul 2004 11:49:38 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i62FnR3u006545; Fri, 2 Jul 2004 11:49:27 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Fri, 2 Jul 2004 11:49:27 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Q In-Reply-To: <0FAC476E-CB27-11D8-9145-000D9335C6A0@yahoo.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org cc: Sam Lawrance Subject: Re: writing to RW-mounted UFS2 snapshots - confirmed. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 15:51:11 -0000 On Thu, 1 Jul 2004, Q wrote: > >> This is unexpected. You can successfully mount the snapshot > >> read/write and create and write to files in that snapshot. You can > >> also write to files that existed in the snapshot prior to mounting it > >> read/write. > > > > Perhaps the writing is done from a point where the schg flag is not > > checked or obeyed? > > While this may not be "expected" behavior, I am curious why this is > something that should be prevented, rather than verified for > correctness? By "correct" I mean, that the copy on write process is > performed correctly and modifications made to the snapshot don't modify > the underlying filesystem elements also. > > To me this has the potential to allow snapshots to be used in reverse as > a sort of an "undo drive", similar to unionfs, where you can make > changes to a snapshot without the changes being permanently applied to > the live filesystem. This might be useful for testing an upgrade or > database recovery on a "staging" snapshot before attempting to modify > the real thing. Having checked with Kirk yesterday here at USENIX, the reason this is undesirable is that he didn't intend it to work that way, and therefore hasn't written the necessary bookkeeping. I.e., while one could argue the feature should work that way, one would want it to be intentional :-). This is probably a bug in our md code, I'll try to take a look at it today sometime, now that I've pinned kirk down on how it's supposed to work. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 16:47:39 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC93016A4CE for ; Fri, 2 Jul 2004 16:47:39 +0000 (GMT) Received: from n066.sc1.cp.net (h13.rdg.cp.net [209.228.29.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D76043D1D for ; Fri, 2 Jul 2004 16:47:39 +0000 (GMT) (envelope-from bruce@cran.org.uk) Received: from [192.168.0.10] (82.3.65.58) by n066.sc1.cp.net (7.0.027.3-1) id 40C8ED0900324A71; Fri, 2 Jul 2004 16:46:35 +0000 In-Reply-To: <86d63n8ttx.fsf@kamino.rfc1149.org> References: <86d63n8ttx.fsf@kamino.rfc1149.org> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <60B91C04-CC47-11D8-B2DB-000D93ACEE20@cran.org.uk> Content-Transfer-Encoding: 7bit From: Bruce Cran Date: Fri, 2 Jul 2004 17:46:34 +0100 To: Arne Schwabe X-Mailer: Apple Mail (2.618) cc: hackers@freebsd.org Subject: Re: Setting Standby Mode for ATA Disks X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 16:47:40 -0000 On 25 Jun 2004, at 17:51, Arne Schwabe wrote: > Hi, > > is there a way to set the standby mode for ATA Disks > > Under linux hdparm -S seems to work: > > -S Set the standby (spindown) timeout for the drive. This > value is > used by the drive to determine how long to wait (with > no disk > activity) before turning off the spindle motor to > save power. > Under such circumstances, the drive may take as long as > 30 sec- > onds to respond to a subsequent disk access, though > most drives > are much quicker. The encoding of the timeout value is > somewhat > peculiar. A value of zero means "off". Values from > 1 to 240 > specify multiples of 5 seconds, for timeouts from 5 > seconds to > 20 minutes. Values from 241 to 251 specify from 1 to > 11 units > of 30 minutes, for timeouts from 30 minutes to 5.5 > hours. A > value of 252 signifies a timeout of 21 minutes, 253 > sets a ven- > dor-defined timeout, and 255 is interpreted as 21 > minutes plus > 15 seconds. > > I googled but I did not found anything like this for FreeBSD :/ ATAidle (http://www.cran.org.uk/bruce/software/ataidle.php and sysutils/ataidle in ports) does this. Unfortunately due to a site redesign, the page seems to have been dropped from the google results; I'll have to add the keywords back in so it gets listed again! -- Bruce Cran From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 16:50:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AF5716A4CE for ; Fri, 2 Jul 2004 16:50:44 +0000 (GMT) Received: from cannabis.dataforce.net (cannabis.dataforce.net [195.42.160.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42DC643D3F for ; Fri, 2 Jul 2004 16:50:43 +0000 (GMT) (envelope-from ky@df.ru) Received: from proxy.rostelekom.ru (proxy.rostelekom.ru [195.42.179.169]) by cannabis.dataforce.net (8.11.6p2-DF5/8.8.8) with ESMTP id i62GnGW03064 for ; Fri, 2 Jul 2004 20:49:17 +0400 From: "Kentucky Mandeloid Mo." To: freebsd-hackers@freebsd.org Date: Fri, 2 Jul 2004 20:49:16 +0400 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200407022049.16063.ky@df.ru> Subject: Custom kernel syscall module & data validation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ky@df.ru List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 16:50:44 -0000 Hi, hackers! I wrote a small kernel module whch impliments some syscall. Syscall takes a char * as a parameter. Theoriticaly its posible to pass a bad pointer from userland. What should I do in orde to check the pointer from userland? I use copyout(9) to store data from kernel to userland but it doesn't seams to be enough - systems got panic if I pass a bad pounter. I think I'm missing something important about kernel programming. From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 23:55:57 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9303616A4CE for ; Fri, 2 Jul 2004 23:55:57 +0000 (GMT) Received: from outfbmx009.isp.belgacom.be (outfbmx009.isp.belgacom.be [195.238.2.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AB4443D53 for ; Fri, 2 Jul 2004 23:55:57 +0000 (GMT) (envelope-from geert@lori.mine.nu) Received: from outmx017.isp.belgacom.be (outmx017.isp.belgacom.be [195.238.2.116]) (8.12.11/8.12.11/Skynet-OUT-FALLBACK-2.22) with ESMTP id i617qxu2000881 for ; Thu, 1 Jul 2004 09:52:59 +0200 (envelope-from ) Received: from outmx017.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id i617qdgT015998 for ; Thu, 1 Jul 2004 09:52:39 +0200 (envelope-from ) Received: from lori.mine.nu (208-133.244.81.adsl.skynet.be [81.244.133.208]) with ESMTP id i617qUDO015909; Thu, 1 Jul 2004 09:52:30 +0200 (envelope-from ) Received: by lori.mine.nu (Postfix, from userid 1000) id C8F8A7E8; Thu, 1 Jul 2004 09:52:28 +0200 (CEST) Date: Thu, 1 Jul 2004 09:52:27 +0200 From: Geert Hendrickx To: Martin Olsson Message-ID: <20040701075227.GB97086@lori.mine.nu> References: <40E1CAAD.3000303@minimum.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40E1CAAD.3000303@minimum.se> User-Agent: Mutt/1.4.2i X-GPG-Key: http://www.win.ua.ac.be/~s005085/gnupgkey.txt X-GPG-Key-ID: 1024D/766C1E92 X-Accept-Language: nl,en cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 23:55:57 -0000 On Tue, Jun 29, 2004 at 10:01:49PM +0200, Martin Olsson wrote: > Hi, > > * MacOS X is based on FreeBSD > * there is a x86 kernel for FreeBSD > > Does that mean I can buy a copy of MacOS X, download an x86 kernel for > freeBSD, do some (or quite alot of) hacking and then get MacOS X running > on my PC? > > I realize that such hacking would be quite substantial but maybe if I > forgot about audio and all that, just how much work would it be? Could > it be done? > > > Sincerly, > Martin Olsson I think you are misunderstanding something: the kernel is not the only architecture-dependent part of an operating system. You would have to port the entire OS X, most of which is closed source. GH From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 3 01:54:04 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9674116A4CE for ; Sat, 3 Jul 2004 01:54:04 +0000 (GMT) Received: from beck.quonix.net (beck.quonix.net [146.145.66.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2F9F43D53 for ; Sat, 3 Jul 2004 01:54:03 +0000 (GMT) (envelope-from john@essenz.com) Received: from [192.168.1.100] (pool-68-162-116-195.phil.east.verizon.net [68.162.116.195]) by beck.quonix.net (8.12.11/8.12.11) with ESMTP id i631rvd0042185 for ; Fri, 2 Jul 2004 21:53:57 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v618) In-Reply-To: <40E4BA4E.4060007@trio.plala.or.jp> References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> <40E40385.9030401@trio.plala.or.jp> <40E4BA4E.4060007@trio.plala.or.jp> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: John Von Essen Date: Fri, 2 Jul 2004 21:46:27 -0400 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.618) X-SpamAssassin-Score: 1.5/6 (*) JVE_UNSUB1,RCVD_IN_DYNABLOCK,RCVD_IN_NJABL,RCVD_IN_NJABL_DIALUP,RCVD_IN_SORBS X-MimeDefang: beck.quonix.net X-Scanned-By: MIMEDefang 2.39 Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jul 2004 01:54:04 -0000 I think when I originally started this thread it had to do with confusion concerning what constitutes current OS X. I know rhapsody started with heavy OPENSTEP 4.2 influence, but it seems that some major changes have occurred since rhapsody/10.0 and current 10.3. The OPENSTEP stuff gave them a good start, but once they got started things evolved and FreeBSD is now more of an influence - which is good! As for darwin. I remember when darwin was made available for free download, I put it on my g3 imac. It had no gui, just shell interface, and lacked alot of tools. If I remember correctly, you had to manually ifconfig your network devices. Since OPENSTEP kernel had an x86 port, its not to far off to conclude that darwin could be run on x86 - but I think all the x86 talk was just hypothetical - would only happen in real life if some hardcore coders had alot of spare time on their hands... -john On Jul 1, 2004, at 9:28 PM, Eitarou Kamo wrote: > HI Justin, > > Justin Walker wrote: > >> >> On Jul 1, 2004, at 5:28, Eitarou Kamo wrote: >> >>> >> >> Darwin, as the underpinnings for Mac OS X, is entirely open source, >> in the sense that you can build a running Darwin system from the >> open-source code available from Apple. You can't completely replace >> corresponding components in Mac OS X with code from the Darwin code >> base and have a working system (some frameworks/libraries are only >> partially open source). >> >> Some components of the kernel are not open-source, but they are not >> needed to build a Darwin system, or to build a kernel that can >> replace the one you have on a running Mac OS X system. These >> components are loadable kernel modules, and as such, will load into a >> rebuilt kernel of the same version level. >> >> Hope that isn't too confusing. >> > It may be OK, I guess. I didn't know Darwin well so far. and > I'm not going to port or derive Darwin to other systems. But > I'm interested in a bit. > > Eitarou > > -- > > *********************** > Eitarou Kamo > > Tel. +81 75 7035997 > Fax +81 75 7035997 > VoIP 050 10585997(domestic only) > e-mail e-kamo@trio.plala.or.jp > > For business: > Feel free to mail me(above), please. > > Donation http://www.PayPal.Com > > GPG FingerPrint: > 032D FDF9 D27B 23F7 9A81 BF4C 626C FBAA BC3A 9895 > *********************************************************************** > * > > > > > _______________________________________________ > 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 Sat Jul 3 08:59:23 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E63616A4CE for ; Sat, 3 Jul 2004 08:59:23 +0000 (GMT) Received: from mps2.plala.or.jp (c145240.vh.plala.or.jp [210.150.145.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4074643D62 for ; Sat, 3 Jul 2004 08:59:22 +0000 (GMT) (envelope-from e-kamo@trio.plala.or.jp) Received: from msvc2.plala.or.jp ([172.23.8.210]) by mps2.plala.or.jp with SMTP id <20040703085921.EVHI1281.mps2.plala.or.jp@msvc2.plala.or.jp> for ; Sat, 3 Jul 2004 17:59:21 +0900 Received: ( 9537 invoked from network); 3 Jul 2004 17:59:20 +0900 X-SVCK: Received: from unknown (HELO mpb1.plala.or.jp) (172.23.8.16) by msvc2 with SMTP; 3 Jul 2004 17:59:19 +0900 Received: from trio.plala.or.jp ([219.25.148.126]) by mpb1.plala.or.jp with ESMTP id <20040703085919.UEVC19716.mpb1.plala.or.jp@trio.plala.or.jp>; Sat, 3 Jul 2004 17:59:19 +0900 Message-ID: <40E676EA.3080001@trio.plala.or.jp> Date: Sat, 03 Jul 2004 18:05:46 +0900 From: Eitarou Kamo User-Agent: Mozilla/5.0 (Windows; U; Win98; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: ja MIME-Version: 1.0 To: John Von Essen , freebsd-hackers@freebsd.org References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> <40E40385.9030401@trio.plala.or.jp> <40E4BA4E.4060007@trio.plala.or.jp> In-Reply-To: X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jul 2004 08:59:23 -0000 Hi John and all, John Von Essen wrote: > > Since OPENSTEP kernel had an x86 port, its not to far off to conclude > that darwin could be run on x86 - but I think all the x86 talk was > just hypothetical - would only happen in real life if some hardcore > coders had alot of spare time on their hands... Apple will not invest it, I wonder..... > -john > > On Jul 1, 2004, at 9:28 PM, Eitarou Kamo wrote: > Eitarou -- *********************** Eitarou Kamo Tel. +81 75 7035997 Fax +81 75 7035997 VoIP 050 10585997(domestic only) e-mail e-kamo@trio.plala.or.jp For business: Feel free to mail me(above), please. Donation http://www.PayPal.Com GPG FingerPrint: 032D FDF9 D27B 23F7 9A81 BF4C 626C FBAA BC3A 9895 ************************************************************************ From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 3 10:28:56 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4743416A4CE for ; Sat, 3 Jul 2004 10:28:56 +0000 (GMT) Received: from visi.gothic.net.au (visi.gothic.net.au [202.182.72.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F21743D3F for ; Sat, 3 Jul 2004 10:28:54 +0000 (GMT) (envelope-from sean@gothic.net.au) Received: from localhost (localhost [127.0.0.1]) by visi.gothic.net.au (Postfix) with ESMTP id 3A76326F03; Sat, 3 Jul 2004 20:28:50 +1000 (EST) Received: from visi.gothic.net.au ([127.0.0.1]) by localhost (visi.gothic.net.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 69044-04; Sat, 3 Jul 2004 20:28:44 +1000 (EST) Received: from [10.99.34.33] (dellcpi.private.gothic.net.au [10.99.34.33]) by visi.gothic.net.au (Postfix) with ESMTP id 9CB8526C10; Sat, 3 Jul 2004 20:28:44 +1000 (EST) Message-ID: <40E68A74.5000908@gothic.net.au> Date: Sat, 03 Jul 2004 20:29:08 +1000 From: Sean Winn User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eitarou Kamo References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> <40E40385.9030401@trio.plala.or.jp> <40E4BA4E.4060007@trio.plala.or.jp> <40E676EA.3080001@trio.plala.or.jp> In-Reply-To: <40E676EA.3080001@trio.plala.or.jp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gothic.net.au cc: freebsd-hackers@freebsd.org cc: John Von Essen Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jul 2004 10:28:56 -0000 Eitarou Kamo wrote: > Hi John and all, > > John Von Essen wrote: > >> >> Since OPENSTEP kernel had an x86 port, its not to far off to conclude >> that darwin could be run on x86 - but I think all the x86 talk was >> just hypothetical - would only happen in real life if some hardcore >> coders had alot of spare time on their hands... > > > Apple will not invest it, I wonder..... Darwin has been available for x86 since at least version 1.3.1 (possibly earlier, but that's the ISO on opendarwin.org) > >> -john >> >> On Jul 1, 2004, at 9:28 PM, Eitarou Kamo wrote: >> > Eitarou > From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 3 10:34:01 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64FEB16A4CF for ; Sat, 3 Jul 2004 10:34:01 +0000 (GMT) Received: from n068.sc1.cp.net (h14.rdg.cp.net [209.228.29.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05CA343D1F for ; Sat, 3 Jul 2004 10:34:01 +0000 (GMT) (envelope-from bruce@cran.org.uk) Received: from [192.168.0.10] (82.3.65.58) by n068.sc1.cp.net (7.0.027.3-1) id 40C8C7A00032823F; Sat, 3 Jul 2004 10:33:59 +0000 In-Reply-To: <40E676EA.3080001@trio.plala.or.jp> References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> <40E40385.9030401@trio.plala.or.jp> <40E4BA4E.4060007@trio.plala.or.jp> <40E676EA.3080001@trio.plala.or.jp> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <7E0F1AFE-CCDC-11D8-B2DB-000D93ACEE20@cran.org.uk> Content-Transfer-Encoding: 7bit From: Bruce Cran Date: Sat, 3 Jul 2004 11:33:58 +0100 To: Eitarou Kamo X-Mailer: Apple Mail (2.618) cc: hackers@freebsd.org Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jul 2004 10:34:01 -0000 On 3 Jul 2004, at 10:05, Eitarou Kamo wrote: > Hi John and all, > > John Von Essen wrote: > >> >> Since OPENSTEP kernel had an x86 port, its not to far off to conclude >> that darwin could be run on x86 - but I think all the x86 talk was >> just hypothetical - would only happen in real life if some hardcore >> coders had alot of spare time on their hands... > > Apple will not invest it, I wonder..... > No, Apple _does_ invest the money and time to create an x86 port: http://www.opensource.apple.com/darwinsource/ That is only the kernel and command-line utilities, there's no GUI included. http://www.kernelthread.com/mac/osx/arch_xnu.html provides a good overview of the kernel. Apple did have a port of MacOS X to x86 (http://www.theregister.co.uk/2002/09/02/apples_x86_os_named_sized/), I would guess they were waiting to see which CPU they were going to use after the G3, since Motorola were being a little slow in making faster PowerPC CPUs. They were considering switching to an Intel-based line; in the end they went with IBM and their PPC970, so I would think it's fairly unlikely we'll now ever see a version (of the GUI) for x86. -- Bruce Cran From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 3 11:15:34 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF04C16A4CF for ; Sat, 3 Jul 2004 11:15:34 +0000 (GMT) Received: from mps2.plala.or.jp (c145240.vh.plala.or.jp [210.150.145.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5EC343D48 for ; Sat, 3 Jul 2004 11:15:33 +0000 (GMT) (envelope-from e-kamo@trio.plala.or.jp) Received: from msvc1.plala.or.jp ([172.23.8.209]) by mps2.plala.or.jp with SMTP id <20040703111532.JPEF1281.mps2.plala.or.jp@msvc1.plala.or.jp> for ; Sat, 3 Jul 2004 20:15:32 +0900 Received: ( 1737 invoked from network); 3 Jul 2004 20:15:32 +0900 X-SVCK: Received: from unknown (HELO mpb1.plala.or.jp) (172.23.8.16) by msvc1 with SMTP; 3 Jul 2004 20:15:31 +0900 Received: from trio.plala.or.jp ([219.25.148.126]) by mpb1.plala.or.jp with ESMTP id <20040703111531.UGVC19716.mpb1.plala.or.jp@trio.plala.or.jp> for ; Sat, 3 Jul 2004 20:15:31 +0900 Message-ID: <40E696D7.2040904@trio.plala.or.jp> Date: Sat, 03 Jul 2004 20:21:59 +0900 From: Eitarou Kamo User-Agent: Mozilla/5.0 (Windows; U; Win98; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: ja MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> <40E40385.9030401@trio.plala.or.jp> <40E4BA4E.4060007@trio.plala.or.jp> <40E676EA.3080001@trio.plala.or.jp> <40E68A74.5000908@gothic.net.au> In-Reply-To: <40E68A74.5000908@gothic.net.au> X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jul 2004 11:15:35 -0000 Hi, Sean Winn wrote: > Eitarou Kamo wrote: > >> Apple will not invest it, I wonder..... > > > > Darwin has been available for x86 since at least version 1.3.1 > (possibly earlier, but that's the ISO on opendarwin.org) > Sorry, I'm somewhat stranger about Darwin. Eitarou -- *********************** Eitarou Kamo Tel. +81 75 7035997 Fax +81 75 7035997 VoIP 050 10585997(domestic only) e-mail e-kamo@trio.plala.or.jp For business: Feel free to mail me(above), please. Donation http://www.PayPal.Com GPG FingerPrint: 032D FDF9 D27B 23F7 9A81 BF4C 626C FBAA BC3A 9895 ************************************************************************ From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 3 11:23:05 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E21916A4CF for ; Sat, 3 Jul 2004 11:23:05 +0000 (GMT) Received: from mps5.plala.or.jp (c148240.vh.plala.or.jp [210.150.148.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 526DF43D5E for ; Sat, 3 Jul 2004 11:23:04 +0000 (GMT) (envelope-from e-kamo@trio.plala.or.jp) Received: from msvc1.plala.or.jp ([172.23.8.209]) by mps5.plala.or.jp with SMTP id <20040703112301.OVGL2494.mps5.plala.or.jp@msvc1.plala.or.jp> for ; Sat, 3 Jul 2004 20:23:01 +0900 Received: ( 3807 invoked from network); 3 Jul 2004 20:23:01 +0900 X-SVCK: Received: from unknown (HELO mpb1.plala.or.jp) (172.23.8.16) by msvc1 with SMTP; 3 Jul 2004 20:22:59 +0900 Received: from trio.plala.or.jp ([219.25.148.126]) by mpb1.plala.or.jp with ESMTP id <20040703112259.UGXU19716.mpb1.plala.or.jp@trio.plala.or.jp>; Sat, 3 Jul 2004 20:22:59 +0900 Message-ID: <40E69898.3040206@trio.plala.or.jp> Date: Sat, 03 Jul 2004 20:29:28 +0900 From: Eitarou Kamo User-Agent: Mozilla/5.0 (Windows; U; Win98; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: ja MIME-Version: 1.0 To: Bruce Cran , freebsd-hackers@freebsd.org References: <40E1CAAD.3000303@minimum.se> <40E1CF00.2090601@netli.com> <1088557263.3528.102.camel@host-83-146-2-180.bulldogdsl.com> <72A1AE29-CA60-11D8-988E-000A95C969C6@zumbrunn.com> <9B616D82-CB28-11D8-9145-000D9335C6A0@yahoo.com.au> <40E40385.9030401@trio.plala.or.jp> <40E4BA4E.4060007@trio.plala.or.jp> <40E676EA.3080001@trio.plala.or.jp> <7E0F1AFE-CCDC-11D8-B2DB-000D93ACEE20@cran.org.uk> In-Reply-To: <7E0F1AFE-CCDC-11D8-B2DB-000D93ACEE20@cran.org.uk> X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD and MacOS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jul 2004 11:23:05 -0000 Hi, Bruce Cran wrote: > > > No, Apple _does_ invest the money and time to create an x86 port: > http://www.opensource.apple.com/darwinsource/ > That is only the kernel and command-line utilities, there's no GUI > included. http://www.kernelthread.com/mac/osx/arch_xnu.html provides a > good overview of the kernel. Apple did have a port of MacOS X to x86 > (http://www.theregister.co.uk/2002/09/02/apples_x86_os_named_sized/), > I would guess they were waiting to see which CPU they were going to > use after the G3, since Motorola were being a little slow in making > faster PowerPC CPUs. They were considering switching to an Intel-based > line; in the end they went with IBM and their PPC970, so I would think > it's fairly unlikely we'll now ever see a version (of the GUI) for x86. > > -- > Bruce Cran As for GUI, no problem. Apple will be able to add X.org one or other one with their DeskTop on the kernel ASAP, I guess. Eitarou -- *********************** Eitarou Kamo Tel. +81 75 7035997 Fax +81 75 7035997 VoIP 050 10585997(domestic only) e-mail e-kamo@trio.plala.or.jp For business: Feel free to mail me(above), please. Donation http://www.PayPal.Com GPG FingerPrint: 032D FDF9 D27B 23F7 9A81 BF4C 626C FBAA BC3A 9895 ************************************************************************