From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 00:29:49 2005 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 76FAE16A4CE for ; Sun, 24 Apr 2005 00:29:49 +0000 (GMT) Received: from april.chuckr.org (april.chuckr.org [66.92.151.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id D458143D1D for ; Sun, 24 Apr 2005 00:29:48 +0000 (GMT) (envelope-from chuckr@chuckr.org) Received: from [66.92.151.195] (july.chuckr.org [66.92.151.195]) by april.chuckr.org (8.13.1/8.12.11) with ESMTP id j3O0PRfc001585; Sat, 23 Apr 2005 20:25:27 -0400 (EDT) (envelope-from chuckr@chuckr.org) Message-ID: <426AE866.7050008@chuckr.org> Date: Sun, 24 Apr 2005 00:29:26 +0000 From: Chuck Robey User-Agent: Mozilla Thunderbird 1.0 (X11/20050316) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chuck Robey References: <426AC21B.2080205@chuckr.org> In-Reply-To: <426AC21B.2080205@chuckr.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@FreeBSD.org Subject: Re: region code in cdrecord 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, 24 Apr 2005 00:29:49 -0000 Mail screwup, so I'm re-sending. In fact, since it messed up going out ot Multimedia, I'm resending to hackers instead. Chuck Robey wrote: > I am really doing rather well here; I got dvd copying to work via 'k3b'. > Now, I want to go for broke, and try for the one I've been after for > years, which is converting a region==2 dvd to a region==1 dvd (Britain > to US). I have a dvd taht you can't buy in the US, I've tried, and the > British won't sell it in region code 1, so I want to convert the one I > went ahead and purchased anyhow. Once I get it converted, I figure I > can toss out the old region==2 version and remain lily-white and pure > as far as honesty goes. > > Anyhow, I have looked REALLY hard to find out how to set teh region code > that k3b writes (via cdrdao and cdrecord) but I can't find it. I found > the point in the code that cdrecord reads it from the disk, but not > where it writes it. > > I'd REALLY appreciate some help here, this is one of those 'forever' > projects that I never really expected to get going, but you never know .... > From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 02:19:07 2005 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 2B8E816A4CE for ; Sun, 24 Apr 2005 02:19:07 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1940343D3F for ; Sun, 24 Apr 2005 02:19:04 +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 j3O2Irl8000423; Sun, 24 Apr 2005 11:48:54 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Sun, 24 Apr 2005 11:48:42 +0930 User-Agent: KMail/1.8 References: <426AC21B.2080205@chuckr.org> <426AE866.7050008@chuckr.org> In-Reply-To: <426AE866.7050008@chuckr.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1952501.zisLe32VRb"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200504241148.48912.doconnor@gsoft.com.au> X-Spam-Score: -2.2 () IN_REP_TO,MIME_LONG_LINE_QP,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: Chuck Robey Subject: Re: region code in cdrecord 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, 24 Apr 2005 02:19:07 -0000 --nextPart1952501.zisLe32VRb Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sun, 24 Apr 2005 09:59, Chuck Robey wrote: > > Now, I want to go for broke, and try for the one I've been after for > > years, which is converting a region=3D=3D2 dvd to a region=3D=3D1 dvd (= Britain > > to US). I have a dvd taht you can't buy in the US, I've tried, and the > > British won't sell it in region code 1, so I want to convert the one I > > went ahead and purchased anyhow. Once I get it converted, I figure I > > can toss out the old region=3D=3D2 version and remain lily-white and p= ure > > as far as honesty goes. The region code is part of the VOB/IFO files that contain the DVD, not as a= =20 part of the ISO metadata. You will need another tool to change region, I know DVD Decrypter=20 [http://www.dvddecrypter.com/] does it for Win32. Maybe transcode? =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 --nextPart1952501.zisLe32VRb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBCawII5ZPcIHs/zowRApfhAKCW4/Gibcl9Z4LCF4CFy0w1wod+nwCgn56J uXaWoBV7ClqEiyvpzTCHU18= =dBWY -----END PGP SIGNATURE----- --nextPart1952501.zisLe32VRb-- From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 08:15:17 2005 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 301C916A4CE for ; Sun, 24 Apr 2005 08:15:17 +0000 (GMT) Received: from smtp01.aptg.net (smtp01.aptg.net [210.200.211.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AB3643D2D for ; Sun, 24 Apr 2005 08:15:16 +0000 (GMT) (envelope-from b8701143@tmu.edu.tw) Received: from localhost (localhost [127.0.0.1])664D653375E for ; Sun, 24 Apr 2005 16:15:15 +0800 (CST) Received: from smtp01.aptg.net ([127.0.0.1]) by localhost (smtp01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24328-19 for ; Sun, 24 Apr 2005 16:15:15 +0800 (CST) Received: from IBM6C6CDABCD41 (210-58-40-189.cm.dynamic.apol.com.tw [210.58.40.189])CC851533759 for ; Sun, 24 Apr 2005 16:15:14 +0800 (CST) Message-ID: <001601c548a5$bcdde6b0$6702a8c0@IBM6C6CDABCD41> From: "HHCHANG" To: Date: Sun, 24 Apr 2005 16:15:12 +0800 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at aptg.net Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: about execute assembly exapmles under 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: Sun, 24 Apr 2005 08:15:17 -0000 Hi, I couldn't execute assembly example under freebsd . The environment and tools I used were (in IBM X31 box): 1. bash-2.05b# uname -a FreeBSD sexbear.localhost 5.3-STABLE FreeBSD 5.3-STABLE #3: Sun Feb 20 = 21:55:06 UTC 2005 = ?root@sexbear.localhost:/usr/obj/usr/src/sys/SEXBEAR??i386 2. bash-2.05b# as -v GNU assembler version 2.15 [FreeBSD] 2004-05-23 (i386-obrien-freebsd) = using BFD version 2.15 [FreeBSD] 2004-05-23 bash-2.05b# ld -v GNU ld version 2.15 [FreeBSD] 2004-05-23 3.(compile and execute the example) bash-2.05b# as -gstabs -o cpuid.o cpuid.s ld -o cpuid cpuid.o cpuid (no output after executing the program) gdb cpuid (gdb) run Starting program: /usr/local/src/code/chap04/cpuid Program exited with code 0340. (gdb) break *_start (gdb) run Program exited with code 0340. ###################example in book################################### #cpuid.s Sample program to extract the processor Vendor ID .section .data output: .ascii "The processor Vendor ID is 'xxxxxxxxxxxx'\n" .section .text .globl _start _start: movl $0, %eax cpuid movl $output, %edi movl %ebx, 28(%edi) movl %edx, 32(%edi) movl %ecx, 36(%edi) movl $4, %eax movl $1, %ebx movl $output, %ecx movl $42, %edx int $0x80 movl $1, %eax movl $0, %ebx int $0x80 ###################example in book################################### I viewed the tutorial: http://www.int80h.org/bsdasm/. but I couldn't find any syntax error in the program. Could someone give me a hint where I could find the more information? Thanks~ Regards, From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 10:07:53 2005 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 9632016A4CF for ; Sun, 24 Apr 2005 10:07:53 +0000 (GMT) Received: from mta13-winn.mailhost.ntl.com (smtpout19.mailhost.ntl.com [212.250.162.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8538943D2D for ; Sun, 24 Apr 2005 10:07:52 +0000 (GMT) (envelope-from scott@fishballoon.org) Received: from aamta04-winn.mailhost.ntl.com ([212.250.162.8]) by mta13-winn.mailhost.ntl.com with ESMTP <20050424100751.YOL8086.mta13-winn.mailhost.ntl.com@aamta04-winn.mailhost.ntl.com>; Sun, 24 Apr 2005 11:07:51 +0100 Received: from llama.fishballoon.org ([81.104.196.104]) by aamta04-winn.mailhost.ntl.com with ESMTP <20050424100751.JIID1352.aamta04-winn.mailhost.ntl.com@llama.fishballoon.org>; Sun, 24 Apr 2005 11:07:51 +0100 Received: from tuatara.fishballoon.org ([192.168.1.6]) by llama.fishballoon.org with esmtp (Exim 4.50 (FreeBSD)) id 1DPe1l-000JDX-6G; Sun, 24 Apr 2005 11:07:49 +0100 Received: (from scott@localhost) by tuatara.fishballoon.org (8.13.1/8.13.1/Submit) id j3OA7nkn000621; Sun, 24 Apr 2005 11:07:49 +0100 (BST) (envelope-from scott) Date: Sun, 24 Apr 2005 11:07:49 +0100 From: Scott Mitchell To: "Daniel O'Connor" Message-ID: <20050424100749.GB528@tuatara.fishballoon.org> References: <426AC21B.2080205@chuckr.org> <426AE866.7050008@chuckr.org> <200504241148.48912.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200504241148.48912.doconnor@gsoft.com.au> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.11-STABLE i386 cc: freebsd-hackers@freebsd.org cc: Chuck Robey Subject: Re: region code in cdrecord 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, 24 Apr 2005 10:07:53 -0000 On Sun, Apr 24, 2005 at 11:48:42AM +0930, Daniel O'Connor wrote: > On Sun, 24 Apr 2005 09:59, Chuck Robey wrote: > > > Now, I want to go for broke, and try for the one I've been after for > > > years, which is converting a region==2 dvd to a region==1 dvd (Britain > > > to US). I have a dvd taht you can't buy in the US, I've tried, and the > > > British won't sell it in region code 1, so I want to convert the one I > > > went ahead and purchased anyhow. Once I get it converted, I figure I > > > can toss out the old region==2 version and remain lily-white and pure > > > as far as honesty goes. > > The region code is part of the VOB/IFO files that contain the DVD, not as a > part of the ISO metadata. > > You will need another tool to change region, I know DVD Decrypter > [http://www.dvddecrypter.com/] does it for Win32. Maybe transcode? I may be completely off base here (no experience with making DVDs other than as enormous CDR's for backup), but does it need to be region coded at all? Even region-locked players should be able to play a dvd with no region code. I think 'no region code' might actually be region 0, but it amounts to the same thing. IMHO there's nothing dishonest in taking whatever steps you need to play a piece of legitimately purchased media. Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 10:28:26 2005 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 5309316A4CE for ; Sun, 24 Apr 2005 10:28:26 +0000 (GMT) Received: from smtp001.mail.ukl.yahoo.com (smtp001.mail.ukl.yahoo.com [217.12.11.32]) by mx1.FreeBSD.org (Postfix) with SMTP id 2D38F43D31 for ; Sun, 24 Apr 2005 10:28:25 +0000 (GMT) (envelope-from maverick31337@vfemail.net) Received: from unknown (HELO ?219.197.212.112?) (fcknroll2@219.197.212.112 with plain) by smtp001.mail.ukl.yahoo.com with SMTP; 24 Apr 2005 10:28:23 -0000 Message-ID: <426B74C5.3090509@vfemail.net> Date: Sun, 24 Apr 2005 19:28:21 +0900 From: "Tetsuji \"Maverick\" Rai" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050401 MIME-Version: 1.0 To: HHCHANG References: <001601c548a5$bcdde6b0$6702a8c0@IBM6C6CDABCD41> In-Reply-To: <001601c548a5$bcdde6b0$6702a8c0@IBM6C6CDABCD41> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: about execute assembly exapmles under 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: Sun, 24 Apr 2005 10:28:26 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 HHCHANG wrote: > Hi, I couldn't execute assembly example under freebsd . The > environment and tools I used were (in IBM X31 box): 1. bash-2.05b# > uname -a FreeBSD sexbear.localhost 5.3-STABLE FreeBSD 5.3-STABLE > #3: Sun Feb 20 21:55:06 UTC 2005 > ?root@sexbear.localhost:/usr/obj/usr/src/sys/SEXBEAR??i386 2. > bash-2.05b# as -v GNU assembler version 2.15 [FreeBSD] 2004-05-23 > (i386-obrien-freebsd) using BFD version 2.15 [FreeBSD] 2004-05-23 > > bash-2.05b# ld -v GNU ld version 2.15 [FreeBSD] 2004-05-23 > > 3.(compile and execute the example) bash-2.05b# as -gstabs -o > cpuid.o cpuid.s ld -o cpuid cpuid.o cpuid (no output after > executing the program) gdb cpuid (gdb) run Starting program: > /usr/local/src/code/chap04/cpuid Program exited with code 0340. > (gdb) break *_start (gdb) run Program exited with code 0340. > ###################example in > book################################### #cpuid.s Sample program to > extract the processor Vendor ID .section .data output: .ascii "The > processor Vendor ID is 'xxxxxxxxxxxx'\n" .section .text .globl > _start _start: movl $0, %eax cpuid movl $output, %edi movl %ebx, > 28(%edi) movl %edx, 32(%edi) movl %ecx, 36(%edi) movl $4, %eax movl > $1, %ebx movl $output, %ecx movl $42, %edx int $0x80 movl $1, %eax > movl $0, %ebx int $0x80 > > ###################example in > book################################### > > I viewed the tutorial: http://www.int80h.org/bsdasm/. but I > couldn't find any syntax error in the program. Could someone give > me a hint where I could find the more information? Thanks~ > > Regards, hi, There are some mistakes in that code. 1. Your code is calling systemcall in Linux mode..not in FreeBSD. In FreeBSD, you need to push arguments in stack as in C language. 2. mov $output,%eax loads the "content" of $output, instead of the address (or pointer) of $output. So you have to take care :) 3. An improvement can be done when you want to load 0 (zero) into a register, you should use "xor %eax,%eax" or "sub %eax,%eax" because it will make your code shorter and faster. So I made a working code, t.s; - ------t.s------------ .section .data output: .ascii "The processor Vendor ID is 'xxxxxxxxxxxx'\n" .section .text .globl _start _start: xor %eax, %eax cpuid lea output, %edi # load address of output in edi movl %ebx, 28(%edi) movl %edx, 32(%edi) movl %ecx, 36(%edi) pushl $42 lea output, %eax pushl %eax pushl $1 mov $4,%eax push %eax int $0x80 add $16,%esp xor %eax,%eax push %eax # this is shorter than "pushl $0" inc %eax # put $1 in %eax. This is faster and shorter. push %eax int $0x80 - ----------end of t.s-------- It is assembled and works like this - ------cut-------- freebsd53:~/tmp% as t.s -o t.o freebsd53:~/tmp% ld t.o -o t freebsd53:~/tmp% ./t The processor Vendor ID is 'GenuineIntel' - ------------------ I made a small homepage about Linux shellcode (assembler code utilities for hacking.) http://shellcode.4pu.com/ Have fun!! btw my father was born in Taiwan. My last name should be "Lai" instead of "Rai" - -- Tetsuji 'Maverick' Rai PGP Key fingerprint = 2021 6BF9 CEA3 73DE FF17 B326 F4DA F04E F784 3B85 gpg fingerprint Aviation Jokes: http://www.geocities.com/tetsuji_rai/ Profile http://maverick.ns1.name/ http://maverick.IsASecret.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFCa3TF9NrwTveEO4URAhaVAJwL2T20SQ0o2O6sydX3pBPke98KswCbBvqI Cljbd60/yH8r95BUX3l0Chk= =SxAD -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 10:33:21 2005 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 B628D16A4CE for ; Sun, 24 Apr 2005 10:33:21 +0000 (GMT) Received: from smtp005.mail.ukl.yahoo.com (smtp005.mail.ukl.yahoo.com [217.12.11.36]) by mx1.FreeBSD.org (Postfix) with SMTP id D17E043D48 for ; Sun, 24 Apr 2005 10:33:20 +0000 (GMT) (envelope-from maverick31337@vfemail.net) Received: from unknown (HELO ?219.197.212.112?) (fcknroll2@219.197.212.112 with plain) by smtp005.mail.ukl.yahoo.com with SMTP; 24 Apr 2005 10:33:19 -0000 Message-ID: <426B75ED.4030201@vfemail.net> Date: Sun, 24 Apr 2005 19:33:17 +0900 From: "Tetsuji \"Maverick\" Rai" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050401 MIME-Version: 1.0 References: <001601c548a5$bcdde6b0$6702a8c0@IBM6C6CDABCD41> <426B74C5.3090509@vfemail.net> In-Reply-To: <426B74C5.3090509@vfemail.net> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: HHCHANG Subject: Re: about execute assembly exapmles under 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: Sun, 24 Apr 2005 10:33:21 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tetsuji "Maverick" Rai wrote: > HHCHANG wrote: > >> Hi, I couldn't execute assembly example under freebsd . The >> environment and tools I used were (in IBM X31 box): 1. >> bash-2.05b# uname -a FreeBSD sexbear.localhost 5.3-STABLE FreeBSD >> 5.3-STABLE #3: Sun Feb 20 21:55:06 UTC 2005 >> ?root@sexbear.localhost:/usr/obj/usr/src/sys/SEXBEAR??i386 2. >> bash-2.05b# as -v GNU assembler version 2.15 [FreeBSD] 2004-05-23 >> (i386-obrien-freebsd) using BFD version 2.15 [FreeBSD] >> 2004-05-23 > >> bash-2.05b# ld -v GNU ld version 2.15 [FreeBSD] 2004-05-23 > >> 3.(compile and execute the example) bash-2.05b# as -gstabs -o >> cpuid.o cpuid.s ld -o cpuid cpuid.o cpuid (no output after >> executing the program) gdb cpuid (gdb) run Starting program: >> /usr/local/src/code/chap04/cpuid Program exited with code 0340. >> (gdb) break *_start (gdb) run Program exited with code 0340. >> ###################example in >> book################################### #cpuid.s Sample program >> to extract the processor Vendor ID .section .data output: .ascii >> "The processor Vendor ID is 'xxxxxxxxxxxx'\n" .section .text >> .globl _start _start: movl $0, %eax cpuid movl $output, %edi movl >> %ebx, 28(%edi) movl %edx, 32(%edi) movl %ecx, 36(%edi) movl $4, >> %eax movl $1, %ebx movl $output, %ecx movl $42, %edx int $0x80 >> movl $1, %eax movl $0, %ebx int $0x80 > >> ###################example in >> book################################### > >> I viewed the tutorial: http://www.int80h.org/bsdasm/. but I >> couldn't find any syntax error in the program. Could someone give >> me a hint where I could find the more information? Thanks~ > >> Regards, > > > hi, > > There are some mistakes in that code. 1. Your code is calling > systemcall in Linux mode..not in FreeBSD. In FreeBSD, you need to > push arguments in stack as in C language. 2. mov $output,%eax > loads the "content" of $output, instead of the address (or pointer) > of $output. So you have to take care :) 3. An improvement can be > done when you want to load 0 (zero) into a register, you should use > "xor %eax,%eax" or "sub %eax,%eax" because it will make your code > shorter and faster. > > So I made a working code, t.s; ------t.s------------ .section .data > output: .ascii "The processor Vendor ID is 'xxxxxxxxxxxx'\n" > .section .text .globl _start _start: xor %eax, %eax cpuid lea > output, %edi # load address of output in edi movl %ebx, > 28(%edi) movl %edx, 32(%edi) movl %ecx, 36(%edi) pushl $42 lea > output, %eax pushl %eax pushl $1 mov $4,%eax push %eax int $0x80 > add $16,%esp xor %eax,%eax push %eax # this is > shorter than "pushl $0" inc %eax # put $1 in %eax. > This is faster and shorter. push %eax int $0x80 ----------end of > t.s-------- > > It is assembled and works like this > > ------cut-------- freebsd53:~/tmp% as t.s -o t.o freebsd53:~/tmp% > ld t.o -o t freebsd53:~/tmp% ./t The processor Vendor ID is > 'GenuineIntel' ------------------ > > I made a small homepage about Linux shellcode (assembler code > utilities for hacking.) http://shellcode.4pu.com/ > > Have fun!! btw my father was born in Taiwan. My last name should > be "Lai" instead of "Rai" > correction. "movl $output,%edi" is correct...sorry for my mistake. - -- Tetsuji 'Maverick' Rai PGP Key fingerprint = 2021 6BF9 CEA3 73DE FF17 B326 F4DA F04E F784 3B85 gpg fingerprint Aviation Jokes: http://www.geocities.com/tetsuji_rai/ Profile http://maverick.ns1.name/ http://maverick.IsASecret.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFCa3Xs9NrwTveEO4URAjexAJ43rZEjqZ0lgRwAlQ77LSCokOL5XwCfQhwK A4W0TD8XnP1ilsUkLKMQEEk= =Mmf8 -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 11:06:21 2005 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 385D116A4CE for ; Sun, 24 Apr 2005 11:06:21 +0000 (GMT) Received: from mailserv1.neuroflux.com (ns2.neuroflux.com [204.228.228.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0B8C43D2F for ; Sun, 24 Apr 2005 11:06:20 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 32736 invoked by uid 1003); 24 Apr 2005 11:06:38 -0000 Received: from ryans@gamersimpact.com by mailserv1.neuroflux.com by uid 89 with qmail-scanner-1.22 (clamscan: 0.65. spamassassin: 2.60. Clear:RC:1(63.231.170.25):. Processed in 1.268871 secs); 24 Apr 2005 11:06:38 -0000 Received: from unknown (HELO ?192.168.0.5?) (63.231.170.25) by mailserv1.neuroflux.com with SMTP; 24 Apr 2005 11:06:37 -0000 Message-ID: <426B7DAE.4080502@gamersimpact.com> Date: Sun, 24 Apr 2005 06:06:22 -0500 From: Ryan Sommers User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Tetsuji \"Maverick\" Rai" References: <001601c548a5$bcdde6b0$6702a8c0@IBM6C6CDABCD41> <426B74C5.3090509@vfemail.net> In-Reply-To: <426B74C5.3090509@vfemail.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: HHCHANG Subject: Re: about execute assembly exapmles under 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: Sun, 24 Apr 2005 11:06:21 -0000 Something else than can be useful is to use inline assembly and the -S switch for GCC (gcc -S sourcefile, produces sourcesfile.s which is the assembly that would have been sent to gas if you had specified -o). Inline assembly example: (ryans@blue)~:cat test.c int main() { int input=0; void *edx, *ebx, *ecx, *eax; asm("cpuid" : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) : "a" (input)); printf("CPUid returned: EAX=%0.8x EBX=%0.8x ECX=%0.8x EDX=%0.8x\n", eax, ebx, ecx, edx); return 1; } (ryans@blue)~:./test CPUid returned: EAX=0001 EBX=68747541 ECX=444d4163 EDX=69746e65 (ryans@blue)~:perl -e 'print "\x41\x75\x74\x68\x65\x6e\x74\x69\x63\x41\x4d\x44\n";' AuthenticAMD (ryans@blue)~: NOTE: If the order in the Perl command confused you, remember, byte-ordering. :) Little-endian you have to reverse the bytes. -- Ryan Sommers ryans@gamersimpact.com From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 11:12:52 2005 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 CD93D16A4CE for ; Sun, 24 Apr 2005 11:12:52 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF1D243D49 for ; Sun, 24 Apr 2005 11:12:51 +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 j3OBBKFN009682; Sun, 24 Apr 2005 20:41:21 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Scott Mitchell Date: Sun, 24 Apr 2005 20:40:53 +0930 User-Agent: KMail/1.8 References: <426AC21B.2080205@chuckr.org> <200504241148.48912.doconnor@gsoft.com.au> <20050424100749.GB528@tuatara.fishballoon.org> In-Reply-To: <20050424100749.GB528@tuatara.fishballoon.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6885896.NjtKgTd1o6"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200504242041.13709.doconnor@gsoft.com.au> X-Spam-Score: -1.6 () BEST_PORN,IN_REP_TO,NO_EXPERIENCE,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: freebsd-hackers@freebsd.org cc: Chuck Robey Subject: Re: region code in cdrecord 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, 24 Apr 2005 11:12:52 -0000 --nextPart6885896.NjtKgTd1o6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sun, 24 Apr 2005 19:37, Scott Mitchell wrote: > I may be completely off base here (no experience with making DVDs other > than as enormous CDR's for backup), but does it need to be region coded at > all? Even region-locked players should be able to play a dvd with no > region code. I think 'no region code' might actually be region 0, but it > amounts to the same thing. The video doesn't have to be regioned (ie most porn DVDs) but in any case i= t=20 is part of the DVD video structure not part of the media/ISO as such. > IMHO there's nothing dishonest in taking whatever steps you need to play a > piece of legitimately purchased media. Maybe so, but you can still get sued for it :( =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 --nextPart6885896.NjtKgTd1o6 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBCa37R5ZPcIHs/zowRAho6AKClj8bi0jMZFafSTsBWtT5GLBNIdQCdFIMK bFnmG9iE8or8h/+diZr1Dxg= =oo87 -----END PGP SIGNATURE----- --nextPart6885896.NjtKgTd1o6-- From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 11:51:32 2005 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 7D67116A4CE for ; Sun, 24 Apr 2005 11:51:32 +0000 (GMT) Received: from mail.nativenerds.com (host-70-0-111-24.midco.net [24.111.0.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id F32AB43D49 for ; Sun, 24 Apr 2005 11:51:31 +0000 (GMT) (envelope-from estover@nativenerds.com) Received: from red (host-133-35-230-24.midco.net [24.230.35.133]) j3OC4Pk3002985; Sun, 24 Apr 2005 06:04:26 -0600 (MDT) (envelope-from estover@nativenerds.com) From: Ed Stover To: security@revolutionsp.com, freebsd-hackers@freebsd.org In-Reply-To: <200504141631.j3EGVZ2t058641@marlena.vvi.at> References: <200504141631.j3EGVZ2t058641@marlena.vvi.at> Content-Type: text/plain Organization: Native Nerds Date: Sun, 24 Apr 2005 05:52:16 -0600 Message-Id: <1114343536.32182.21.camel@red.nativenerds.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=5.0 tests=HTML_MESSAGE autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mail.nativenerds.com Subject: Re: imminent disk failure ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: estover@nativenerds.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 11:51:32 -0000 Forgive my top post SMART tools are in ports /usr/ports/sysutils/smartmontools I would also try going into single user mode and running fsck on the drive. If that presents unrepairable errors then try low level tools from your drive's manufacturer. I have brought many of drives back long enough to retrieve the data off of them. I don't recommend using the drives for any more then target practice after that. lol On Thu, 2005-04-14 at 09:31 -0700, ALeine wrote: > security@revolutionsp.com wrote: > > > /kernel: ad0: READ command timeout tag=0 serv=0 - resetting > > > > Could this message mean this disk is giving its last breaths ? > > Check to see if some part of the system is not overheating due to > a failed fan somewhere. Also check the cabling and the SMART status > of the drive. There were some issues with DMA and UDMA133 mode, so > you may want to try to rule out those as possible causes first by > putting hw.ata.ata_dma=0 into /boot/loader.conf and forcing UDMA100 > mode with atacontrol(8) (see man 8 atacontrol for details). > > BTW, you may want to consider posting such questions to > freebsd-questions@freebsd.org in the future as this is not the > most appropriate list for such questions. > > ALeine > ___________________________________________________________________ > WebMail FREE http://mail.austrosearch.net > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 11:59:10 2005 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 1CE2916A4CE for ; Sun, 24 Apr 2005 11:59:10 +0000 (GMT) Received: from bgo1smout1.broadpark.no (bgo1smout1.broadpark.no [217.13.4.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id B62B543D54 for ; Sun, 24 Apr 2005 11:59:09 +0000 (GMT) (envelope-from des@des.no) Received: from bgo1sminn1.broadpark.no ([217.13.4.93]) by bgo1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IFG00GM090N5G10@bgo1smout1.broadpark.no> for freebsd-hackers@FreeBSD.org; Sun, 24 Apr 2005 13:53:11 +0200 (CEST) Received: from dsa.des.no ([80.203.228.37]) by bgo1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IFG00ETS9BWLZ60@bgo1sminn1.broadpark.no> for freebsd-hackers@FreeBSD.org; Sun, 24 Apr 2005 13:59:56 +0200 (CEST) Received: by dsa.des.no (Pony Express, from userid 666) id 3CA2A45157; Sun, 24 Apr 2005 13:58:53 +0200 (CEST) Received: from xps.des.no (xps.des.no [10.0.0.12]) by dsa.des.no (Pony Express) with ESMTP id 28FBBEBC06; Sun, 24 Apr 2005 13:58:47 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id 2084033C09; Sun, 24 Apr 2005 13:58:47 +0200 (CEST) Date: Sun, 24 Apr 2005 13:58:47 +0200 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) In-reply-to: <426AE866.7050008@chuckr.org> To: Chuck Robey Message-id: <86wtqs9yiw.fsf@xps.des.no> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on dsa.des.no References: <426AC21B.2080205@chuckr.org> <426AE866.7050008@chuckr.org> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.0.2 X-Spam-Level: cc: freebsd-hackers@FreeBSD.org Subject: Re: region code in cdrecord 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, 24 Apr 2005 11:59:10 -0000 Chuck Robey writes: > I am really doing rather well here; I got dvd copying to work via > 'k3b'. Now, I want to go for broke, and try for the one I've been > after for years, which is converting a region=3D=3D2 dvd to a region=3D= =3D1 > dvd (Britain to US). I have a dvd taht you can't buy in the US, > I've tried, and the British won't sell it in region code 1, so I > want to convert the one I went ahead and purchased anyhow. Once I > get it converted, I figure I can toss out the old region=3D=3D2 version > and remain lily-white and pure as far as honesty goes. Just unlock your player. Google should provide you with the correct procedure. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 23 16:02:13 2005 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 A08CC16A4CE; Sat, 23 Apr 2005 16:02:13 +0000 (GMT) Received: from grant.org (grant.org [206.190.173.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B5F643D45; Sat, 23 Apr 2005 16:02:13 +0000 (GMT) (envelope-from Devon@Jovi.Net) Received: from grant.org (localhost [127.0.0.1]) by grant.org (8.12.11/8.12.11) with ESMTP id j3NG1aQB096999 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 23 Apr 2005 12:01:37 -0400 (EDT) (envelope-from Devon@Jovi.Net) Received: (from devon@localhost) by grant.org (8.12.11/8.12.11/Submit) id j3NG1XQP096947; Sat, 23 Apr 2005 12:01:33 -0400 (EDT) (envelope-from Devon@Jovi.Net) Date: Sat, 23 Apr 2005 12:01:33 -0400 (EDT) Message-Id: <200504231601.j3NG1XQP096947@grant.org> X-Authentication-Warning: grant.org: devon set sender to Devon@Jovi.Net using -f From: Devon Sean McCullough To: Lucas Holt In-reply-to: <8fed6f5a0d21fb3a660b0e511cfd3e07@foolishgames.com> (message from Lucas Holt on Sat, 23 Apr 2005 00:11:19 -0400) References: <200504192127.j3JLR9Oq055796@grant.org><20050420083114.X46699@eleanor.us1.wmi.uvac.net> <200504201248.j3KCmYH3071130@grant.org> <011901c545a9$e5ac6fc0$b3db87d4@multiplay.co.uk> <200504201335.j3KDZMZ4086059@grant.org> <8fed6f5a0d21fb3a660b0e511cfd3e07@foolishgames.com> X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on grant.org X-Virus-Scanned: by amavisd-new X-Mailman-Approved-At: Sun, 24 Apr 2005 12:04:34 +0000 cc: security-advisories@freebsd.org cc: freebsd-hackers@freebsd.org cc: FreeBSD-2005@Jovi.Net cc: killing@BarrysWorld.com Subject: Re: sshd dieing? after applying FreeBSD-SA-03:12.openssh 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, 23 Apr 2005 16:02:13 -0000 Date: Sat, 23 Apr 2005 00:11:19 -0400 From: Lucas Holt As I recall there is an option in the openssh config file in recent versions to disable DNS lookups. Thank you for pointing that out! FreeBSD-5.3 supports workaround # sshd -o UseDNS=no but older servers do not. An older workaround # echo hosts: files >> /etc/nsswitch.conf disables DNS on the entire server. I know /etc/host.conf controlled host lookups, now vanished with no trace. I guess /etc/hosts lacks reverse lookups. Peace --Devon /~\ \ / Health Care X not warfare / \ Dubya won the digital vote Kerry won the popular vote PS: Oh no, I exposed my real mailbox to spammers harvesting the FreeBSD lists, ugh, time for a new domain and a smarter mailer. Subject: Re: sshd dieing? after applying FreeBSD-SA-03:12.openssh Date: Sat, 23 Apr 2005 00:11:19 -0400 From: Lucas Holt In-Reply-To: <200504201335.j3KDZMZ4086059@grant.org> As I recall there is an option in the openssh config file in recent versions to disable DNS lookups. On Apr 20, 2005, at 9:35 AM, FreeBSD-2005@Jovi.Net wrote: > In the future, please do as I did and publish whatever solution you > find, > my answer was somewhat lame but worked for me and will help the next > guy. > To the SSH server /etc/hosts I added the client machine, now when it > gets > to debug1: got SSH2_MSG_SERVICE_ACCEPT it hangs for only 75 seconds. > > Peace > --Devon > > From: "Steven Hartland" > Cc: , , > , > Date: Wed, 20 Apr 2005 14:07:21 +0100 > > Sorry I don't remember the solution we came up with. It was a long time > ago. I think it was to do with DNS invalid / broken DNS or something > like that but I couldn't say for sure. > > Regards > Steve > ----- Original Message ----- > From: >> >> This trouble hit me yesterday, 2005 Apr 19 Tue, Google led me to >> someone else with the exact same trouble. What use to ask the net >> if nobody publishes an ANSWER? A good netizen does the right thing. >> By citing the original question, I create a link to a possible answer. > > ================================================ > This e.mail is private and confidential between Multiplay (UK) Ltd. > and the person or entity to whom it is addressed. In the event of > misdirection, the recipient is prohibited from using, copying, > printing or otherwise disseminating it or any information contained in > it. > > In the event of misdirection, illegible or incomplete transmission > please telephone (023) 8024 3137 > or return the E.mail to postmaster@multiplay.co.uk. > > _______________________________________________ > 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) FoolishGames.net (Enemy Territory IoM site) From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 23 20:06:18 2005 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 6D47616A4CE for ; Sat, 23 Apr 2005 20:06:18 +0000 (GMT) Received: from esbens.latnet.lv (esbens.latnet.lv [159.148.19.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCCFE43D46 for ; Sat, 23 Apr 2005 20:06:15 +0000 (GMT) (envelope-from kaspars@os.lv) Received: from localhost (localhost.localdomain [127.0.0.1]) by esbens.latnet.lv (Postfix) with ESMTP id 66C4811E33D for ; Sat, 23 Apr 2005 23:06:14 +0300 (EEST) Received: from esbens.latnet.lv ([127.0.0.1]) by localhost (esbens.latnet.lv [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30842-06 for ; Sat, 23 Apr 2005 23:06:13 +0300 (EEST) Received: from os.lv (unknown [159.148.155.3]) by esbens.latnet.lv (Postfix) with SMTP id E9DEA11E27D for ; Sat, 23 Apr 2005 23:06:13 +0300 (EEST) Received: from 213.182.201.44 ([213.182.201.44]) by os.lv (WinRoute Pro 4.1) with SMTP; Sat, 23 Apr 2005 23:08:50 +0300 Message-ID: <426AAAE4.9070009@os.lv> Date: Sat, 23 Apr 2005 23:07:00 +0300 From: Kaspars User-Agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at latnet.lv X-Mailman-Approved-At: Sun, 24 Apr 2005 12:04:34 +0000 Subject: Problem ssh to jail 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, 23 Apr 2005 20:06:18 -0000 Hi, I don`t know is I write to right mail list, but my problem is with FreeBSD 5.4 RC3 just updated, not relised yet. I wanted to try it to set up jail. I followed instrucion in man and in http://lists.freebsd.org/pipermail/freebsd-doc/2004-June/004463.html but still I can ssh to jail. My set up: ~j/etc/rc.conf sendmail_enable="NONE" inetd_flags="-wW -a 192.168.10.1" network_interfaces="" rpcbind_enable="NO" sshd_enable="YES" inetd_enable="NO" syslogd_flags="-ss" usbd_enable="NO" moused_enable="NO" update_motd="NO" ~j/ssh/sshd_config ListenAddress 192.168.10.1 resol.conf is ok etc. I started with: #!/bin/sh jail /jail/mail mail 192.168.10.1 /bin/sh /etc/rc and: # jls JID IP Address Hostname Path 1 192.168.10.1 mail /jail/mail And host have normal internet ip. somebody have idea what`s wrong or some bug in rc with jail? thanks, Casper P.S. nsswitch.conf bug is still there, when you recompile src with "NO_NIS= true". From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 07:41:49 2005 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 C979716A4CE for ; Sun, 24 Apr 2005 07:41:49 +0000 (GMT) Received: from smtp01.aptg.net (smtp01.aptg.net [210.200.211.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FF9E43D45 for ; Sun, 24 Apr 2005 07:41:48 +0000 (GMT) (envelope-from b8701143@tmu.edu.tw) Received: from localhost (localhost [127.0.0.1])C98035336DB for ; Sun, 24 Apr 2005 15:41:46 +0800 (CST) Received: from smtp01.aptg.net ([127.0.0.1]) by localhost (smtp01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22124-06 for ; Sun, 24 Apr 2005 15:41:46 +0800 (CST) Received: from IBM6C6CDABCD41 (210-58-40-189.cm.dynamic.apol.com.tw [210.58.40.189])3A46B532C96 for ; Sun, 24 Apr 2005 15:41:46 +0800 (CST) Message-ID: <000f01c548a1$0eb33fd0$6702a8c0@IBM6C6CDABCD41> From: "HHCHANG" To: Date: Sun, 24 Apr 2005 15:41:41 +0800 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at aptg.net X-Mailman-Approved-At: Sun, 24 Apr 2005 12:04:34 +0000 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: about execute assembly exapmles under 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: Sun, 24 Apr 2005 07:41:49 -0000 Hi, I couldn't execute assembly example under freebsd . The environment and tools I used were (in IBM X31 box): 1. bash-2.05b# uname -a FreeBSD sexbear.localhost 5.3-STABLE FreeBSD 5.3-STABLE #3: Sun Feb 20 = 21:55:06 UTC 2005 = ?root@sexbear.localhost:/usr/obj/usr/src/sys/SEXBEAR??i386 2. bash-2.05b# as -v GNU assembler version 2.15 [FreeBSD] 2004-05-23 (i386-obrien-freebsd) = using BFD version 2.15 [FreeBSD] 2004-05-23 bash-2.05b# ld -v GNU ld version 2.15 [FreeBSD] 2004-05-23 3.(compile and execute the example) bash-2.05b# as -gstabs -o cpuid.o cpuid.s ld -o cpuid cpuid.o cpuid (no output after executing the program) gdb cpuid (gdb) run Starting program: /usr/local/src/code/chap04/cpuid Program exited with code 0340. (gdb) break *_start (gdb) run Program exited with code 0340. ###################example in book################################### #cpuid.s Sample program to extract the processor Vendor ID .section .data output: .ascii "The processor Vendor ID is 'xxxxxxxxxxxx'\n" .section .text .globl _start _start: movl $0, %eax cpuid movl $output, %edi movl %ebx, 28(%edi) movl %edx, 32(%edi) movl %ecx, 36(%edi) movl $4, %eax movl $1, %ebx movl $output, %ecx movl $42, %edx int $0x80 movl $1, %eax movl $0, %ebx int $0x80 ###################example in book################################### I viewed the tutorial: http://www.int80h.org/bsdasm/. but I couldn't find any syntax error in the program. Could someone give me a hint where I could find the more information? Thanks~ Regards, From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 09:56:53 2005 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 4FA4516A4CE for ; Sun, 24 Apr 2005 09:56:53 +0000 (GMT) Received: from mta09-winn.mailhost.ntl.com (smtpout17.mailhost.ntl.com [212.250.162.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CFE543D3F for ; Sun, 24 Apr 2005 09:56:52 +0000 (GMT) (envelope-from scott@fishballoon.org) Received: from aamta08-winn.mailhost.ntl.com ([212.250.162.8]) by mta09-winn.mailhost.ntl.com with ESMTP <20050424095650.BPKZ28254.mta09-winn.mailhost.ntl.com@aamta08-winn.mailhost.ntl.com>; Sun, 24 Apr 2005 10:56:50 +0100 Received: from llama.fishballoon.org ([81.104.196.104]) by aamta08-winn.mailhost.ntl.com with ESMTP <20050424095650.YUZO1844.aamta08-winn.mailhost.ntl.com@llama.fishballoon.org>; Sun, 24 Apr 2005 10:56:50 +0100 Received: from tuatara.fishballoon.org ([192.168.1.6]) by llama.fishballoon.org with esmtp (Exim 4.50 (FreeBSD)) id 1DPdr6-000JCe-Kz; Sun, 24 Apr 2005 10:56:48 +0100 Received: (from scott@localhost) by tuatara.fishballoon.org (8.13.1/8.13.1/Submit) id j3O9uf0Y000576; Sun, 24 Apr 2005 10:56:41 +0100 (BST) (envelope-from scott) Date: Sun, 24 Apr 2005 10:56:41 +0100 From: Scott Mitchell To: "Daniel O'Connor" Message-ID: <20050424095641.GA528@tuatara.fishballoon.org> References: <426AC21B.2080205@chuckr.org> <426AE866.7050008@chuckr.org> <200504241148.48912.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200504241148.48912.doconnor@gsoft.com.au> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.11-STABLE i386 X-Mailman-Approved-At: Sun, 24 Apr 2005 12:04:34 +0000 cc: freebsd-hackers@freebsd.org cc: Chuck Robey Subject: Re: region code in cdrecord 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, 24 Apr 2005 09:56:53 -0000 On Sun, Apr 24, 2005 at 11:48:42AM +0930, Daniel O'Connor wrote: > On Sun, 24 Apr 2005 09:59, Chuck Robey wrote: > > > Now, I want to go for broke, and try for the one I've been after for > > > years, which is converting a region==2 dvd to a region==1 dvd (Britain > > > to US). I have a dvd taht you can't buy in the US, I've tried, and the > > > British won't sell it in region code 1, so I want to convert the one I > > > went ahead and purchased anyhow. Once I get it converted, I figure I > > > can toss out the old region==2 version and remain lily-white and pure > > > as far as honesty goes. > > The region code is part of the VOB/IFO files that contain the DVD, not as a > part of the ISO metadata. > > You will need another tool to change region, I know DVD Decrypter > [http://www.dvddecrypter.com/] does it for Win32. Maybe transcode? I may be completely off base here (no experience with making DVDs other than as enormous CDR's for backup), but does it need to be region coded at all? Even region-locked players should be able to play a dvd with no region code. I think 'no region code' might actually be region 0, but it amounts to the same thing. IMHO there's nothing dishonest in taking whatever steps you need to play a piece of legitimately purchased media. Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 13:04:42 2005 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 00DD916A4CE for ; Sun, 24 Apr 2005 13:04:42 +0000 (GMT) Received: from smtp001.mail.ukl.yahoo.com (smtp001.mail.ukl.yahoo.com [217.12.11.32]) by mx1.FreeBSD.org (Postfix) with SMTP id 2A1CC43D48 for ; Sun, 24 Apr 2005 13:04:41 +0000 (GMT) (envelope-from maverick31337@vfemail.net) Received: from unknown (HELO ?219.197.212.112?) (fcknroll2@219.197.212.112 with plain) by smtp001.mail.ukl.yahoo.com with SMTP; 24 Apr 2005 13:04:39 -0000 Message-ID: <426B9965.2000003@vfemail.net> Date: Sun, 24 Apr 2005 22:04:37 +0900 From: "Tetsuji \"Maverick\" Rai" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050401 MIME-Version: 1.0 To: HHCHANG References: <000f01c548a1$0eb33fd0$6702a8c0@IBM6C6CDABCD41> In-Reply-To: <000f01c548a1$0eb33fd0$6702a8c0@IBM6C6CDABCD41> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: about execute assembly exapmles under 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: Sun, 24 Apr 2005 13:04:42 -0000 I refined my code to make the binary shorter. Your code is in Linux system call convention (ie, arguments are in eax,ebx,ecx...), however in FreeBSD by default arguments must be pushed in the stack. -----t.s------------- .section .data output: .ascii "The processor Vendor ID is 'xxxxxxxxxxxx'\n" .section .text .globl _start _start: xor %eax, %eax cpuid mov $output, %edi # load address of output in edi movl %ebx, 28(%edi) movl %edx, 32(%edi) movl %ecx, 36(%edi) pushl $42 mov $output, %eax pushl %eax pushl $1 mov $4,%eax push %eax int $0x80 add $16,%esp # of course you can omit this xor %eax,%eax # this is shorter than "pushl $0; pushl $1; mov $1,%eax" push %eax inc %eax push %eax int $0x80 --------------t.s end---------- and it works like this: ---cut----- freebsd53:~/tmp% as t.s -o t.o freebsd53:~/tmp% ld t.o -o t freebsd53:~/tmp% ./t The processor Vendor ID is 'GenuineIntel' ---cut----- HHCHANG wrote: >Hi, >I couldn't execute assembly example under freebsd . >The environment and tools I used were (in IBM X31 box): >1. >bash-2.05b# uname -a >FreeBSD sexbear.localhost 5.3-STABLE FreeBSD 5.3-STABLE #3: Sun Feb 20 21:55:06 UTC 2005 ?root@sexbear.localhost:/usr/obj/usr/src/sys/SEXBEAR??i386 >2. >bash-2.05b# as -v >GNU assembler version 2.15 [FreeBSD] 2004-05-23 (i386-obrien-freebsd) using BFD version 2.15 [FreeBSD] 2004-05-23 > >bash-2.05b# ld -v >GNU ld version 2.15 [FreeBSD] 2004-05-23 > >3.(compile and execute the example) >bash-2.05b# > as -gstabs -o cpuid.o cpuid.s > ld -o cpuid cpuid.o > cpuid (no output after executing the program) > gdb cpuid > (gdb) run > Starting program: /usr/local/src/code/chap04/cpuid > Program exited with code 0340. > (gdb) break *_start > (gdb) run > Program exited with code 0340. >###################example in book################################### >#cpuid.s Sample program to extract the processor Vendor ID >.section .data >output: > .ascii "The processor Vendor ID is 'xxxxxxxxxxxx'\n" >.section .text >.globl _start >_start: > movl $0, %eax > cpuid > movl $output, %edi > movl %ebx, 28(%edi) > movl %edx, 32(%edi) > movl %ecx, 36(%edi) > movl $4, %eax > movl $1, %ebx > movl $output, %ecx > movl $42, %edx > int $0x80 > movl $1, > %eax > movl $0, %ebx > int $0x80 > >###################example in book################################### > >I viewed the tutorial: http://www.int80h.org/bsdasm/. >but I couldn't find any syntax error in the program. >Could someone give me a hint where I could find the more information? >Thanks~ > >Regards, >_______________________________________________ >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" > > > -- Tetsuji 'Maverick' Rai PGP Key fingerprint = 2021 6BF9 CEA3 73DE FF17 B326 F4DA F04E F784 3B85 gpg fingerprint Aviation Jokes: http://www.geocities.com/tetsuji_rai/ Profile http://maverick.ns1.name/ http://maverick.IsASecret.com/ From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 17:06:19 2005 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 F0ED816A4CE for ; Sun, 24 Apr 2005 17:06:19 +0000 (GMT) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8529F43D46 for ; Sun, 24 Apr 2005 17:06:19 +0000 (GMT) (envelope-from kientzle@freebsd.org) Received: from freebsd.org (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id j3OH62OZ085194; Sun, 24 Apr 2005 10:06:02 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <426BD1F6.7050201@freebsd.org> Date: Sun, 24 Apr 2005 10:05:58 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= References: <426AC21B.2080205@chuckr.org> <426AE866.7050008@chuckr.org> <86wtqs9yiw.fsf@xps.des.no> In-Reply-To: <86wtqs9yiw.fsf@xps.des.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: Chuck Robey cc: freebsd-hackers@freebsd.org Subject: Re: region code in cdrecord 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, 24 Apr 2005 17:06:20 -0000 Dag-Erling Smørgrav wrote: > Chuck Robey writes: > >>... converting a region==2 dvd to a region==1 >>dvd (Britain to US). I have a dvd taht you can't buy in the US, >>I've tried, and the British won't sell it in region code 1 ... > > Just unlock your player. Google should provide you with the correct > procedure. With cheap DVD players down to about $50, just buy another player and set it to Region 2. Tim From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 17:39:53 2005 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 8EA3A16A4CE; Sun, 24 Apr 2005 17:39:53 +0000 (GMT) Received: from bgo1smout1.broadpark.no (bgo1smout1.broadpark.no [217.13.4.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AE9743D58; Sun, 24 Apr 2005 17:39:53 +0000 (GMT) (envelope-from des@des.no) Received: from bgo1sminn1.broadpark.no ([217.13.4.93]) by bgo1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IFG00GH1OSX5H70@bgo1smout1.broadpark.no>; Sun, 24 Apr 2005 19:34:09 +0200 (CEST) Received: from dsa.des.no ([80.203.228.37]) by bgo1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IFG00FMNP461OA0@bgo1sminn1.broadpark.no>; Sun, 24 Apr 2005 19:40:54 +0200 (CEST) Received: by dsa.des.no (Pony Express, from userid 666) id BE99245157; Sun, 24 Apr 2005 19:39:51 +0200 (CEST) Received: from xps.des.no (xps.des.no [10.0.0.12]) by dsa.des.no (Pony Express) with ESMTP id 0BAA6ED2F2; Sun, 24 Apr 2005 19:39:48 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id 045ED33C1C; Sun, 24 Apr 2005 19:39:48 +0200 (CEST) Date: Sun, 24 Apr 2005 19:39:47 +0200 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) In-reply-to: <426BD1F6.7050201@freebsd.org> To: Tim Kientzle Message-id: <86r7h08464.fsf@xps.des.no> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on dsa.des.no References: <426AC21B.2080205@chuckr.org> <426AE866.7050008@chuckr.org> <86wtqs9yiw.fsf@xps.des.no> <426BD1F6.7050201@freebsd.org> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.0.2 X-Spam-Level: cc: Chuck Robey cc: freebsd-hackers@freebsd.org Subject: Re: region code in cdrecord 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, 24 Apr 2005 17:39:53 -0000 Tim Kientzle writes: > With cheap DVD players down to about $50, just buy another > player and set it to Region 2. Uhm, why would you rather have two players locked to different regions than a single unlocked player? DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 17:57:59 2005 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 1515A16A4CE; Sun, 24 Apr 2005 17:57:59 +0000 (GMT) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5A9E43D2F; Sun, 24 Apr 2005 17:57:58 +0000 (GMT) (envelope-from tim@kientzle.com) Received: from kientzle.com (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id j3OHvsOZ085492; Sun, 24 Apr 2005 10:57:54 -0700 (PDT) (envelope-from tim@kientzle.com) Message-ID: <426BDE1F.3020004@kientzle.com> Date: Sun, 24 Apr 2005 10:57:51 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= References: <426AC21B.2080205@chuckr.org> <426AE866.7050008@chuckr.org> <86wtqs9yiw.fsf@xps.des.no> <426BD1F6.7050201@freebsd.org> <86r7h08464.fsf@xps.des.no> In-Reply-To: <86r7h08464.fsf@xps.des.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: Chuck Robey cc: Tim Kientzle cc: freebsd-hackers@freebsd.org Subject: Re: region code in cdrecord 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, 24 Apr 2005 17:57:59 -0000 Dag-Erling Smørgrav wrote: >Tim Kientzle writes: > > >>With cheap DVD players down to about $50, just buy another >>player and set it to Region 2. >> >> > >Uhm, why would you rather have two players locked to different regions >than a single unlocked player? > > I wouldn't "rather", but I think it might be simpler. I also seem to recall hearing about discs whose region-coding was done in such a way that they would not play on unlocked players. Mostly, it just occurred to me that falling DVD player prices make the whole "region code" concept rather silly. (Movie-industry paranoia backfires again? ;-) Tim From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 18:10:36 2005 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 A747F16A4CE; Sun, 24 Apr 2005 18:10:36 +0000 (GMT) Received: from april.chuckr.org (april.chuckr.org [66.92.151.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E38043D60; Sun, 24 Apr 2005 18:10:36 +0000 (GMT) (envelope-from chuckr@chuckr.org) Received: from [66.92.151.195] (july.chuckr.org [66.92.151.195]) by april.chuckr.org (Postfix) with ESMTP id 701CD11B02; Sun, 24 Apr 2005 14:06:02 -0400 (EDT) Message-ID: <426BE11A.5070907@chuckr.org> Date: Sun, 24 Apr 2005 18:10:34 +0000 From: Chuck Robey User-Agent: Mozilla Thunderbird 1.0 (X11/20050316) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tim Kientzle References: <426AC21B.2080205@chuckr.org> <426AE866.7050008@chuckr.org> <86wtqs9yiw.fsf@xps.des.no> <426BD1F6.7050201@freebsd.org> In-Reply-To: <426BD1F6.7050201@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= cc: freebsd-hackers@freebsd.org Subject: Re: region code in cdrecord 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, 24 Apr 2005 18:10:36 -0000 Tim Kientzle wrote: >>I may be completely off base here (no experience with making DVDs >>other than as enormous CDR's for backup), but does it need to be >>region coded at all? Even region-locked players should be able to >>play a dvd with no region code. I think 'no region code' might >>actually be region 0, but it amounts to the same thing. >>IMHO there's nothing dishonest in taking whatever steps you need to >>play a piece of legitimately purchased media. I should have answered earlier, but I had a mail disaster (really, caused by losing a raid volume) but I'm finally back, and miraculously enough, no lossage, even. I only get these disaster because I play so much with it. The mail quoting above I had to put together by hand, I wish the archive could be prodded into resending mail, but I haven't seen that yet. Anyhow, I had a bunch of answers like this. They are all assuming, I guess, that I'm a total idiot (and I think that sometimes I have given folks reasons why, but I hope not that often). Anyhow, the disk is (like I said, but in roundabout fashion I admit) region 2, so suggesting that I ignore the region is silly, it's there already. My dvd (and that of my friend's, I tested) both immediately choke on trying to play this disk, they don't even open a menu. I need to change that encoded region value from 2 to 1. Having software here that coded, say, a null value (if that's possible) would be ok, it's not what's happening today, the copy I made says region==2. That's why my dvd player says anyhow, I don't know where to look at the source files to figure it out. There was one suggestion that I go find out how to change my player. I guess that's a possibility, but I would really far, far rather produce a disk that has region==1 encoded onto it, than break my player by telling it that I'm in region 2 everytime I want to play that disk. k3b is just great at copying the disk. I understand that k3b really uses either cdrecord or cdrdao to burn the disk, so if I could convince the disk that I am region 1, I would be in fat city. I spent quite a long time reading the docs on cdrecord and cdrdao, and although I didn't learn enough, I learned more than I started with, like there is a config file named /usr/local/etc/cdrecord (and *.sample, a duplicate, for me)but of all the variables defined there, of the form CDR_, I didn't find anything really convenient like CDR_REGION. I figure that the right words in that file would likely do the job. I went into the source code of cdrecord, but didn't find anything that looked really likely to work. Doesn't mean it doesn't exist, maybe I just didn't look hard enough. I think that my two dvd records (one a Sony, it's really only a player) the other is a HP420i, and it's definitely a recorder, but I bet that the region is actually encoded right there in the hardware somehow. Maybe I need to hunt the HP website and find it? If anyone has any more info, they'be be welcome. Forget the really easy notions, I'm dumb, but not that dumb. From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 19:45:18 2005 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 9E4DC16A4CE; Sun, 24 Apr 2005 19:45:18 +0000 (GMT) Received: from april.chuckr.org (april.chuckr.org [66.92.151.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54A3143D39; Sun, 24 Apr 2005 19:45:18 +0000 (GMT) (envelope-from chuckr@chuckr.org) Received: from [66.92.151.195] (july.chuckr.org [66.92.151.195]) by april.chuckr.org (Postfix) with ESMTP id 6E49B12016; Sun, 24 Apr 2005 15:40:43 -0400 (EDT) Message-ID: <426BF74B.4000105@chuckr.org> Date: Sun, 24 Apr 2005 19:45:15 +0000 From: Chuck Robey User-Agent: Mozilla Thunderbird 1.0 (X11/20050316) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tim Kientzle References: <426AC21B.2080205@chuckr.org> <426AE866.7050008@chuckr.org> <86wtqs9yiw.fsf@xps.des.no> <426BD1F6.7050201@freebsd.org> <86r7h08464.fsf@xps.des.no> <426BDE1F.3020004@kientzle.com> In-Reply-To: <426BDE1F.3020004@kientzle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= cc: Tim Kientzle cc: freebsd-hackers@freebsd.org Subject: Re: region code in cdrecord 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, 24 Apr 2005 19:45:18 -0000 Tim Kientzle wrote: > Dag-Erling Smørgrav wrote: > >> Tim Kientzle writes: >> >> >>> With cheap DVD players down to about $50, just buy another >>> player and set it to Region 2. >>> >> >> >> Uhm, why would you rather have two players locked to different regions >> than a single unlocked player? >> >> > > I wouldn't "rather", but I think it might be simpler. > I also seem to recall hearing about discs whose region-coding > was done in such a way that they would not play > on unlocked players. > > Mostly, it just occurred to me that falling DVD player > prices make the whole "region code" concept rather > silly. (Movie-industry paranoia backfires again? ;-) I would rather have the ability to create clean disks, rather than have to try ti fix the dvd players of any friends I loan a dvd to. BTW, I found my mail problem, I switched from using courier-imap to dovecot for may imap server, because the permission-access for courier was too complicated, but I forgot to turn off the rc.d file, so I had battling imaps. Very wierd results, which is why it took me so long to figure it out, and I let it get out of hand. > > Tim > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 19:53:24 2005 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 15F2B16A4CE; Sun, 24 Apr 2005 19:53:24 +0000 (GMT) Received: from april.chuckr.org (april.chuckr.org [66.92.151.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF08743D1D; Sun, 24 Apr 2005 19:53:23 +0000 (GMT) (envelope-from chuckr@chuckr.org) Received: from [66.92.151.195] (july.chuckr.org [66.92.151.195]) by april.chuckr.org (Postfix) with ESMTP id C110211777; Sun, 24 Apr 2005 15:48:48 -0400 (EDT) Message-ID: <426BF930.6030108@chuckr.org> Date: Sun, 24 Apr 2005 19:53:20 +0000 From: Chuck Robey User-Agent: Mozilla Thunderbird 1.0 (X11/20050316) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tim Kientzle References: <426AC21B.2080205@chuckr.org> <426AE866.7050008@chuckr.org> <86wtqs9yiw.fsf@xps.des.no> <426BD1F6.7050201@freebsd.org> In-Reply-To: <426BD1F6.7050201@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= cc: freebsd-hackers@freebsd.org Subject: Re: region code in cdrecord 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, 24 Apr 2005 19:53:24 -0000 Tim Kientzle wrote: > Dag-Erling Smørgrav wrote: > >> Chuck Robey writes: >> >>> ... converting a region==2 dvd to a region==1 >>> dvd (Britain to US). I have a dvd taht you can't buy in the US, >>> I've tried, and the British won't sell it in region code 1 ... >> >> >> Just unlock your player. Google should provide you with the correct >> procedure. > > > With cheap DVD players down to about $50, just buy another > player and set it to Region 2. There are so many bad assumptions here! bad#1: that all dvd players come with secret decoder rings to change their region code. bad#2: that ANY of them do. A very small amount of dvd players have the ability to add patches to them, these all (in every case) need you to run Windows code to get these patches installed, and I don't run Windows, anywhere, anytime. bad#3: that I have the time and willingness to talk my good friend, the really truly stubborn one who doesn't' know computers so well, that his dvd player should change. He and I are family, and I just need to present him with clean copy. This should be a software thing, not hardware, just so I don't need to argue with my friend over that. I just spent a LOT of unfun time on google over this. I would rather spend days fixing cdrecord than minutes on the hardware, or telling folks who I don't want to boot Windows > > Tim > From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 22:09:17 2005 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 16DDC16A4CE for ; Sun, 24 Apr 2005 22:09:17 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70EC043D31 for ; Sun, 24 Apr 2005 22:09:16 +0000 (GMT) (envelope-from ajurna@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so1095786wri for ; Sun, 24 Apr 2005 15:09:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=U+A9GHUFMij/Xi2TiwedOPecTROzUWBlsmUMM0FyIBTUB6q1X76qyk68sfuGNOOjWzZfLnD9UHRgfA2+xbdBQllehNmowJL8OGNkp10ZC48Fl4TcA2nqkjjfURIbf33e6aHOxJK9Xf7BOMOP4qt5SvCdWuCw+h9oWxThQWBJ3KI= Received: by 10.54.151.2 with SMTP id y2mr1414038wrd; Sun, 24 Apr 2005 15:09:16 -0700 (PDT) Received: by 10.54.2.31 with HTTP; Sun, 24 Apr 2005 15:09:16 -0700 (PDT) Message-ID: <9008936a05042415099e335f0@mail.gmail.com> Date: Sun, 24 Apr 2005 23:09:16 +0100 From: Ajurna To: Chuck Robey In-Reply-To: <426BF930.6030108@chuckr.org> Mime-Version: 1.0 References: <426AC21B.2080205@chuckr.org> <426AE866.7050008@chuckr.org> <86wtqs9yiw.fsf@xps.des.no> <426BD1F6.7050201@freebsd.org> <426BF930.6030108@chuckr.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-hackers@freebsd.org Subject: Re: region code in cdrecord X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ajurna List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 22:09:17 -0000 On 4/24/05, Chuck Robey wrote: >=20 > Tim Kientzle wrote: > > Dag-Erling Sm=F8rgrav wrote: > > > >> Chuck Robey writes: > >> > >>> ... converting a region=3D=3D2 dvd to a region=3D=3D1 > >>> dvd (Britain to US). I have a dvd taht you can't buy in the US, > >>> I've tried, and the British won't sell it in region code 1 ... > >> > >> > >> Just unlock your player. Google should provide you with the correct > >> procedure. > > > > > > With cheap DVD players down to about $50, just buy another > > player and set it to Region 2. >=20 > There are so many bad assumptions here! >=20 > bad#1: that all dvd players come with secret decoder rings to change > their region code. >=20 > bad#2: that ANY of them do. A very small amount of dvd players have the > ability to add patches to them, these all (in every case) need you to > run Windows code to get these patches installed, and I don't run > Windows, anywhere, anytime. >=20 > bad#3: that I have the time and willingness to talk my good friend, the > really truly stubborn one who doesn't' know computers so well, that his > dvd player should change. He and I are family, and I just need to > present him with clean copy. This should be a software thing, not > hardware, just so I don't need to argue with my friend over that. >=20 > I just spent a LOT of unfun time on google over this. I would rather > spend days fixing cdrecord than minutes on the hardware, or telling > folks who I don't want to boot Windows >=20 > > > > Tim > > >=20 > _______________________________________________ > 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= " >=20 the region code is not a number in the header that says 1 or 2 it is part o= f=20 an encryption system that is put on dvds in order to stop people from=20 duplicating them. however this encryption system is incredibly bad because= =20 it is so easy to break. what you need to do is decrypt it completly. so then you have the vob files= =20 with no regioning or css so that you can burn it to a dvd disc with no=20 region. this will be able to play in your dvd player. i have yet to come=20 accross a dvd burner that can burn a dvd with css and regioning but if it= =20 plays and it has no region i dont think you have a problem. :D From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 03:12:32 2005 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 CC27516A4CE; Mon, 25 Apr 2005 03:12:32 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 959C843D49; Mon, 25 Apr 2005 03:12:31 +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 j3P3Bv8u042710; Mon, 25 Apr 2005 12:41:58 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Mon, 25 Apr 2005 12:41:02 +0930 User-Agent: KMail/1.8 References: <426AC21B.2080205@chuckr.org> <426BD1F6.7050201@freebsd.org> <426BE11A.5070907@chuckr.org> In-Reply-To: <426BE11A.5070907@chuckr.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1342253.FmXpJ5D9Ls"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200504251241.09410.doconnor@gsoft.com.au> X-Spam-Score: -2.2 () IN_REP_TO,MIME_LONG_LINE_QP,NAME_BRAND,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: Chuck Robey cc: Tim Kientzle cc: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= Subject: Re: region code in cdrecord 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, 25 Apr 2005 03:12:32 -0000 --nextPart1342253.FmXpJ5D9Ls Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Mon, 25 Apr 2005 03:40, Chuck Robey wrote: > k3b is just great at copying the disk. I understand that k3b really > uses either cdrecord or cdrdao to burn the disk, so if I could convince > the disk that I am region 1, I would be in fat city. I spent quite a > long time reading the docs on cdrecord and cdrdao, and although I didn't > learn enough, I learned more than I started with, like there is a config > file named /usr/local/etc/cdrecord (and *.sample, a duplicate, for > me)but of all the variables defined there, of the form CDR_, I > didn't find anything really convenient like CDR_REGION. I figure that > the right words in that file would likely do the job. I went into the > source code of cdrecord, but didn't find anything that looked really > likely to work. Doesn't mean it doesn't exist, maybe I just didn't look > hard enough. Like I said before, the region is NOT part of the ISO, nor can the burning= =20 program control the region! The only way to change the region is to alter the image you rip. In Win32 land you can do this with, say, DVDShrink. BTW most DVD players can be unlocked with the exception of major brands lik= e=20 Sony (probably because they sell DVDs as well as players). So, to repeat.. It ISN'T cdrecord you want to screw around with, it's the=20 actual ISO! OK? =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 --nextPart1342253.FmXpJ5D9Ls Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBCbF/N5ZPcIHs/zowRAopyAJ9k+231xo5+4CRgvmdGrLowuLiDfQCfeZmb 8aU4oDLspIpgZ6Eo4g+cu60= =VOo0 -----END PGP SIGNATURE----- --nextPart1342253.FmXpJ5D9Ls-- From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 05:41:32 2005 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 E477016A4CE for ; Mon, 25 Apr 2005 05:41:32 +0000 (GMT) Received: from web31510.mail.mud.yahoo.com (web31510.mail.mud.yahoo.com [68.142.198.139]) by mx1.FreeBSD.org (Postfix) with SMTP id 01E4C43D41 for ; Mon, 25 Apr 2005 05:41:32 +0000 (GMT) (envelope-from cbose_007@yahoo.com) Received: (qmail 50761 invoked by uid 60001); 25 Apr 2005 05:41:31 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=fs7ZNJbYEbiHnmcutL+8c+bB9jBk9ql8YjqrP8kiT+aBdpHhE/3/9VJ7okrmLnkTQcufei5w0EB6RA55WGcDCKXId9OIiItfAsj+ZVcWrCDOmyaMl9a7+lHJFIsPeCSLXOLufXX2emFSjDWDK6K7uAzpbCqULFSZfB4Z0pHkxDI= ; Message-ID: <20050425054131.50759.qmail@web31510.mail.mud.yahoo.com> Received: from [208.54.32.207] by web31510.mail.mud.yahoo.com via HTTP; Sun, 24 Apr 2005 22:41:31 PDT Date: Sun, 24 Apr 2005 22:41:31 -0700 (PDT) From: Chris Bose 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: Problem with: OSPF thru netgraph & Gif Tunnels 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, 25 Apr 2005 05:41:33 -0000 Hi All, I’m trying to setup a network between two locations over a WAN and I’m running into a wall when I try to get OSPF to talk over my WAN tunnel. I’ve realized that I’m not smart enough and need your help. The problem is as follows: My network consists of the following: Site A connects together with a few quagga routers on freebsd 4.8 Site A: Router 1: FXP0 (10.1.1.1/24) Router 1: FXP0 (10.1.2.1/24) Router 1: FXP0 (10.1.3.1/24) Router 1: GIF0 (10.1.4.1 -> 10.2.4.1) Site B connects to site A by using the GIF interface over the public network SiteB: Router 2: FXP0 (10.2.1.1/24) Router 2: FXP0 (10.2.2.1/24) Router 2: FXP0 (10.2.3.1/24) Router 2: GIF0 (10.2.4.1 -> 10.1.4.1) I run OSPFv2 (quagga) at Site A and at Site B. There is no problem connecting site A & B together via OSPF over the GIF0 tunnel. Essential OSPF multicasts its route advertisements thru the GIF tunnel to the other side. This works fine because the OSPF router and the GIF tunnel are both on the same freebsd computer Now here is what I’m trying to do to setup site C. At site C I need to separate this into two computers. Once computer will terminate the GIF tunnel and the other computer runs the OSPF router. So the setup between A and B looks like this: SiteA:Computer 1 SiteB:Computer 2 (OSPF + GIF0) ============== (GIF0 + OSPF) And setup between Site B and C looks like this: SiteB:Computer 2 SiteC:Computer 3 SiteC:computer 4 (OSPF + GIF1) ============== (GIF1) ---------(OSPF) === denotes GIF tunnel --- denotes normal Ethernet connection Computer 3 has two ethernet interfaces The problem that I have is I can’t get Computer 4 to communicate to computer 2 thru the GIF. The computers can ping each other, but the OSPF multicast packets don’t go thru. I have tried IPFW fwd commands on computer 3 >Ifpw fwd computer 2 ip from computer 4 to any But that didn’t work I’ve tried Ethernet bridging… but bridging doesn’t work on a Gif interface. I’ve tried to replace the gif tunnel with Netgraph UDP tunnel, but I can’t use that in the bridge either. I used the sample in /src/examples/netgraph/bridge. I have not tried L2TPv3… So my question is how to get the above configuration working. I think this should be really simple to do, it’s a typical configuration as far as I can tell. Please show your ingenuity with your reply. I really appreciate it. I tried to make the example generic without any configuration files because there is nothing specific about my configuration. Please post your own configuration for the above if applicable. You can assume that I have a virgin computer and I can configure it any which way I want. If you need me to give you any configuration please let me know. If you want me to post a better network diagram please let me know as well. Many thanks, Chris. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 07:06:26 2005 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 4CEA916A4D0 for ; Mon, 25 Apr 2005 07:06:26 +0000 (GMT) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9839E43D31 for ; Mon, 25 Apr 2005 07:06:25 +0000 (GMT) (envelope-from julian@elischer.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id 5CC041F604D; Mon, 25 Apr 2005 00:06:25 -0700 (PDT) Received: from [192.168.2.3] (home.elischer.org [216.240.48.38]) by idiom.com (8.12.11/8.12.11) with ESMTP id j3P76OGM055673; Mon, 25 Apr 2005 00:06:24 -0700 (PDT) (envelope-from julian@elischer.org) Message-ID: <426C96F0.1070509@elischer.org> Date: Mon, 25 Apr 2005 00:06:24 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050214 X-Accept-Language: en, hu MIME-Version: 1.0 To: Chris Bose References: <20050425054131.50759.qmail@web31510.mail.mud.yahoo.com> In-Reply-To: <20050425054131.50759.qmail@web31510.mail.mud.yahoo.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit cc: freebsd-hackers@freebsd.org Subject: Re: Problem with: OSPF thru netgraph & Gif Tunnels 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, 25 Apr 2005 07:06:26 -0000 Chris Bose wrote: > Hi All, > > > > I’m trying to setup a network between two locations over a WAN and I’m > running into a wall when I try to get OSPF to talk over my WAN tunnel. I’ve > realized that I’m not smart enough and need your help. > > > > The problem is as follows: > > My network consists of the following: > > Site A connects together with a few quagga routers on freebsd 4.8 > > Site A: > > Router 1: FXP0 (10.1.1.1/24) > > Router 1: FXP0 (10.1.2.1/24) > > Router 1: FXP0 (10.1.3.1/24) > > Router 1: GIF0 (10.1.4.1 -> 10.2.4.1) > > > > Site B connects to site A by using the GIF interface over the public network "public network" == Internet right? > > > > SiteB: > > Router 2: FXP0 (10.2.1.1/24) > > Router 2: FXP0 (10.2.2.1/24) > > Router 2: FXP0 (10.2.3.1/24) > > Router 2: GIF0 (10.2.4.1 -> 10.1.4.1) > > > > > > I run OSPFv2 (quagga) at Site A and at Site B. There is no problem > connecting site A & B together via OSPF over the GIF0 tunnel. Essential OSPF > multicasts its route advertisements thru the GIF tunnel to the other side. > This works fine because the OSPF router and the GIF tunnel are both on the > same freebsd computer With such a simple network, why not use static routing? > > > > Now here is what I’m trying to do to setup site C. > > > > At site C I need to separate this into two computers. One computer will > terminate the GIF tunnel and the other computer runs the OSPF router. why do you "need" to do this? > > > > So the setup between A and B looks like this: > > > > SiteA:Computer 1 SiteB:Computer 2 > > (OSPF + GIF0) ============== (GIF0 + OSPF) > > > > And setup between Site B and C looks like this: > > > > > > SiteB:Computer 2 SiteC:Computer 3 SiteC:computer 4 > > (OSPF + GIF1) ============== (GIF1) ---------(OSPF) > > > > === denotes GIF tunnel > > --- denotes normal Ethernet connection > > Computer 3 has two ethernet interfaces > > > > > > The problem that I have is I can’t get Computer 4 to communicate to computer > 2 thru the GIF. The computers can ping each other, but the OSPF multicast > packets don’t go thru. do the packets get as far as computer 3? I'm not an expert in multicast, but what in teh setup makes you think that the multicast packets SHOULD be sent through the tunnel? > > I have tried IPFW fwd commands on computer 3 I'm not sure that forwarding works for non-tcp traffic. Certainly that is true for local forwarding. > > >> Ifpw fwd computer 2 ip from computer 4 to any > > > But that didn’t work > > I’ve tried Ethernet bridging… but bridging doesn’t work on a Gif interface. > > I’ve tried to replace the gif tunnel with Netgraph UDP tunnel, but I can’t > use that in the bridge either. Interesting.. You should be able to make it work by using an ng_eiface instead of an ng_iface node for the tunnel, so that you are tunnelling ethernet packets instead of ip packets, then on the far end you can feed them straight into the bridge node. though you don't really understand where bridging comes into it in the first place. You have different subnets so you should be routing and not bridging. I use UDP netgraph tunnels all the time. sometimes encrypted by using IPSEC on the UDP packets connecting an iface node to a ksocket(udp) node. I also sometimes use mpd to encapsulate ppp instead of plain ip, and use it's udp transport method to do the work (When I want to bond several links into one tunnel using multilink ppp) I have NEVER however had experience with multicast and tunnels. > > > > I used the sample in /src/examples/netgraph/bridge. but you are not using a bridge.. are you? > > > > I have not tried L2TPv3… > > > > > > So my question is how to get the above configuration working. I think this > should be really simple to do, it’s a typical configuration as far as I can > tell. Please show your ingenuity with your reply. I really appreciate it. > > > > I tried to make the example generic without any configuration files because > there is nothing specific about my configuration. Please post your own > configuration for the above if applicable. You can assume that I have a > virgin computer and I can configure it any which way I want. If you need me > to give you any configuration please let me know. If you want me to post a > better network diagram please let me know as well. > > > > Many thanks, > > Chris. > > > > > __________________________________________________ Do You Yahoo!? Tired of > spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com > _______________________________________________ freebsd-hackers@freebsd.org > mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To > unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 07:37:54 2005 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 1244C16A4CE for ; Mon, 25 Apr 2005 07:37:54 +0000 (GMT) Received: from fw.zoral.com.ua (ll-227.216.82.212.sovam.net.ua [212.82.216.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E26843D2F for ; Mon, 25 Apr 2005 07:37:50 +0000 (GMT) (envelope-from konstantin.belousov@zoral.com.ua) Received: from deviant.zoral.local (root@kostik.zoral.local [10.1.1.38]) by fw.zoral.com.ua (8.13.1/8.13.1) with ESMTP id j3P7cTxD061936 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 25 Apr 2005 10:38:29 +0300 (EEST) (envelope-from konstantin.belousov@zoral.com.ua) Received: from deviant.zoral.local (kostik@localhost [127.0.0.1]) by deviant.zoral.local (8.13.3/8.13.3) with ESMTP id j3P7cWuB068862 for ; Mon, 25 Apr 2005 10:38:32 +0300 (EEST) (envelope-from konstantin.belousov@zoral.com.ua) Received: (from kostik@localhost) by deviant.zoral.local (8.13.3/8.13.3/Submit) id j3P7cW6M068861 for freebsd-hackers@freebsd.org; Mon, 25 Apr 2005 10:38:32 +0300 (EEST) (envelope-from konstantin.belousov@zoral.com.ua) X-Authentication-Warning: deviant.zoral.local: kostik set sender to konstantin.belousov@zoral.com.ua using -f Date: Mon, 25 Apr 2005 10:38:32 +0300 From: Kostik Belousov To: FreeBSD Hackers Message-ID: <20050425073832.GA81364@deviant.zoral.local> References: <5bbfe7d40504220842578b2d2d@mail.gmail.com> <426953C5.9080502@elischer.org> <5bbfe7d4050422150226c6712d@mail.gmail.com> <9328DC9EC69D53548F9E444F@peregrin.orthanc.ca> <5bbfe7d405042307305672e71f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5bbfe7d405042307305672e71f@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: ClamAV 0.82/851/Mon Apr 25 04:19:30 2005 on fw.zoral.com.ua X-Virus-Status: Clean Subject: Re: libthread 1:1 threads 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, 25 Apr 2005 07:37:54 -0000 On Sat, Apr 23, 2005 at 07:30:08AM -0700, David Leimbach wrote: > On 4/22/05, Lyndon Nerenberg wrote: > > --On 2005-4-22 3:02 PM -0700 David Leimbach wrote: > > > > > According to the man page, and plan 9 where rfork originated you can > > > use it to modify an extant process. In fact you have to set the > > > RFPROC flag to make a new process or all the changes apply to the > > > current one. > > > > Unfortunately the semantics of FreeBSD rfork() have diverted far enough > > from the original plan9 rfork() such that you can't consider it as the > > same call. This makes life miserable for things like running Inferno on > > FreeBSD. > > > > Yes the latest Inferno snapshot is currently not so happy on FreeBSD. > Charles Forsyth is working on getting it going again though [ I > believe he's a vitanuova employee]. Inferno works ok on 4-STABLE. For 5-STABLE and 6-CURRENT, see kern/80130. David Xu already commited fix for 6-CURRENT, I am impatiently waiting for MFC. Best regards, Kostik Belousov. From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 10:10:10 2005 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 9511516A4CE for ; Mon, 25 Apr 2005 10:10:10 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id D562743D55 for ; Mon, 25 Apr 2005 10:10:09 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id E088F1F1A8 for ; Mon, 25 Apr 2005 12:10:08 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id C609B618D; Mon, 25 Apr 2005 12:10:08 +0200 (CEST) Date: Mon, 25 Apr 2005 12:10:08 +0200 From: Marc Olzheim To: freebsd-hackers@freebsd.org Message-ID: <20050425101008.GA57542@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i Subject: preadv() / pwritev() 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, 25 Apr 2005 10:10:10 -0000 --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Are there plans on implementing preadv() and pwritev() ? I kind of miss the functionality and I saw NetBSD had it already... Are there any issues with it that I'm not aware of ? Marc --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCbMIAezjnobFOgrERAmgxAJ95MoS9FPZMj0GESyvnkJrhRuDRsgCeJeGP B5K9Dhz5v6mJrOn7bvQSjag= =8f8U -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe-- From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 10:12:06 2005 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 C426F16A4CE for ; Mon, 25 Apr 2005 10:12:06 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3887F43D54 for ; Mon, 25 Apr 2005 10:12:06 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 7E53565219; Mon, 25 Apr 2005 11:11:23 +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 86293-01-8; Mon, 25 Apr 2005 11:11:23 +0100 (BST) Received: from empiric.dek.spc.org (host81-134-90-164.in-addr.btopenworld.com [81.134.90.164]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 189D765216; Mon, 25 Apr 2005 11:11:23 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 3309F64CF; Mon, 25 Apr 2005 11:12:04 +0100 (BST) Date: Mon, 25 Apr 2005 11:12:04 +0100 From: Bruce M Simpson To: Chris Bose Message-ID: <20050425101204.GB769@empiric.icir.org> Mail-Followup-To: Chris Bose , freebsd-hackers@freebsd.org References: <20050425054131.50759.qmail@web31510.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050425054131.50759.qmail@web31510.mail.mud.yahoo.com> cc: freebsd-hackers@freebsd.org Subject: Re: Problem with: OSPF thru netgraph & Gif Tunnels 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, 25 Apr 2005 10:12:06 -0000 On Sun, Apr 24, 2005 at 10:41:31PM -0700, Chris Bose wrote: > I?m trying to setup a network between two locations over a WAN and I?m running into a wall when I try to get OSPF to talk over my WAN tunnel. I?ve realized that I?m not smart enough and need your help. I haven't looked in depth at the information but it sounds to me as though the most likely failure mode is that multicast isn't working over the gif tunnel for whatever reason. You could try configuring OSPF in NBMA mode over the tunnel, that way OSPF discovery isn't dependent upon multicasts being forwarded over the tunnel, but requires you to explicitly specify the OSPF peers at either end. Regards, BMS From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 10:39:07 2005 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 8FD4B16A4CE for ; Mon, 25 Apr 2005 10:39:07 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13F3F43D1D for ; Mon, 25 Apr 2005 10:39:07 +0000 (GMT) (envelope-from maslanbsd@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so1202628wra for ; Mon, 25 Apr 2005 03:39:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fG6DEtIpLgG8CyD/JKDEPz6Unn/XKTjkfAQO78aG3sSx46ZlXR8aXxvDzBZpBZLg+q4Ivy0ar2ct+QlabHu7cR/zWLQITEVTlSdsBmCtGPGr4UcQUfTQfKE872bFGU8oFW0gLhtUZJnYlPyrfGvz+1Gf/yZ8IoIf1zA/BCukQ9M= Received: by 10.54.24.48 with SMTP id 48mr1849642wrx; Mon, 25 Apr 2005 03:39:03 -0700 (PDT) Received: by 10.54.99.7 with HTTP; Mon, 25 Apr 2005 03:39:03 -0700 (PDT) Message-ID: <319cceca05042503395f67e573@mail.gmail.com> Date: Mon, 25 Apr 2005 12:39:03 +0200 From: Maslan To: Tetsuji Maverick Rai In-Reply-To: <426B9965.2000003@vfemail.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <000f01c548a1$0eb33fd0$6702a8c0@IBM6C6CDABCD41> <426B9965.2000003@vfemail.net> cc: freebsd-hackers@freebsd.org cc: HHCHANG Subject: Re: about execute assembly exapmles under freebsd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Maslan List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 10:39:07 -0000 hey if u need u to use linux calling way u will need to brandelf the executable (if it's elf) On 4/24/05, Tetsuji Maverick Rai wrote: > I refined my code to make the binary shorter. Your code is in Linux > system call convention (ie, arguments are in eax,ebx,ecx...), however in > FreeBSD by default arguments must be pushed in the stack. >=20 > -----t.s------------- > .section .data > output: > .ascii "The processor Vendor ID is 'xxxxxxxxxxxx'\n" > .section .text > .globl _start > _start: > xor %eax, %eax > cpuid > mov $output, %edi # load address of output in edi > movl %ebx, 28(%edi) > movl %edx, 32(%edi) > movl %ecx, 36(%edi) > pushl $42 > mov $output, %eax > pushl %eax > pushl $1 > mov $4,%eax > push %eax > int $0x80 > add $16,%esp # of course you can omit this > xor %eax,%eax # this is shorter than "pushl $0; pushl $1; mov > $1,%eax" > push %eax > inc %eax > push %eax > int $0x80 > --------------t.s end---------- >=20 > and it works like this: >=20 > ---cut----- > freebsd53:~/tmp% as t.s -o t.o > freebsd53:~/tmp% ld t.o -o t > freebsd53:~/tmp% ./t > The processor Vendor ID is 'GenuineIntel' > ---cut----- >=20 >=20 > HHCHANG wrote: >=20 > >Hi, > >I couldn't execute assembly example under freebsd . > >The environment and tools I used were (in IBM X31 box): > >1. > >bash-2.05b# uname -a > >FreeBSD sexbear.localhost 5.3-STABLE FreeBSD 5.3-STABLE #3: Sun Feb 20 2= 1:55:06 UTC 2005 ?root@sexbear.localhost:/usr/obj/usr/src/sys/SEXBEAR??i= 386 > >2. > >bash-2.05b# as -v > >GNU assembler version 2.15 [FreeBSD] 2004-05-23 (i386-obrien-freebsd) us= ing BFD version 2.15 [FreeBSD] 2004-05-23 > > > >bash-2.05b# ld -v > >GNU ld version 2.15 [FreeBSD] 2004-05-23 > > > >3.(compile and execute the example) > >bash-2.05b# > > as -gstabs -o cpuid.o cpuid.s > > ld -o cpuid cpuid.o > > cpuid (no output after executing the program) > > gdb cpuid > > (gdb) run > > Starting program: /usr/local/src/code/chap04/cpuid > > Program exited with code 0340. > > (gdb) break *_start > > (gdb) run > > Program exited with code 0340. > >###################example in book################################### > >#cpuid.s Sample program to extract the processor Vendor ID > >.section .data > >output: > > .ascii "The processor Vendor ID is 'xxxxxxxxxxxx'\n" > >.section .text > >.globl _start > >_start: > > movl $0, %eax > > cpuid > > movl $output, %edi > > movl %ebx, 28(%edi) > > movl %edx, 32(%edi) > > movl %ecx, 36(%edi) > > movl $4, %eax > > movl $1, %ebx > > movl $output, %ecx > > movl $42, %edx > > int $0x80 > > movl $1, > > %eax > > movl $0, %ebx > > int $0x80 > > > >###################example in book################################### > > > >I viewed the tutorial: http://www.int80h.org/bsdasm/. > >but I couldn't find any syntax error in the program. > >Could someone give me a hint where I could find the more information? > >Thanks~ > > > >Regards, > >_______________________________________________ > >freebsd-hackers@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.or= g" > > > > > > >=20 > -- > Tetsuji 'Maverick' Rai > PGP Key fingerprint =3D 2021 6BF9 CEA3 73DE FF17 B326 F4DA F04E F784 3B8= 5 > gpg fingerprint > Aviation Jokes: http://www.geocities.com/tetsuji_rai/ > Profile http://maverick.ns1.name/ > http://maverick.IsASecret.com/ >=20 > _______________________________________________ > 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= " >=20 --=20 I'm Searching For Perfection, So Even If U Need Portability U've To Use Assembly ;-) http://www.maslanlab.org From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 19:48:05 2005 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 4ABCC16A4CE for ; Sun, 24 Apr 2005 19:48:05 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8FDE43D5A for ; Sun, 24 Apr 2005 19:48:04 +0000 (GMT) (envelope-from zslist@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so1141431rnf for ; Sun, 24 Apr 2005 12:48:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=U8AkUnuKqmZ1NP65EFcIdpZ6LzwW7GIfyMHlL9WbOUU5Njz6xeedTLcnrQKYXg1YDu+Kc9X3rdBSEjFuhAksWm77kq113jp86DaBC83EM0MAJIh4hFuX9tO22EwB1ko+Audmw5fdZfnkvtiPZNYHFi+2l8O1c6zs1XRa9f9LhVI= Received: by 10.39.3.79 with SMTP id f79mr2716313rni; Sun, 24 Apr 2005 12:48:04 -0700 (PDT) Received: by 10.38.89.26 with HTTP; Sun, 24 Apr 2005 12:48:04 -0700 (PDT) Message-ID: Date: Sun, 24 Apr 2005 12:48:04 -0700 From: benchmark To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Mailman-Approved-At: Mon, 25 Apr 2005 12:06:41 +0000 Subject: cvsup hang X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: benchmark List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 19:48:05 -0000 Applogies if this isn't the right forum (as indicated in the Doc). my questions to the freebsd-question@list is'nt getting any responses.... Basic info: FreeBSD 5.3 I have been trying to use cvsup to sync up my ports, but it seems to hang everytime, see the following... rainier# cvsup -L 2 -h cvsup10.FreeBSD.org /root/ports-supfile Parsing supfile "/root/ports-supfile" Connecting to cvsup10.FreeBSD.org Connected to cvsup10.FreeBSD.org Server software version: SNAP_16_1h Negotiating file attribute support Exchanging collection information Network read failure: Connection timed out typical port operations such as make install, etc all worked fine. I suspect that this has something to do with my network, but couldn't figure out why. I have a DHCP setup, with my box being a dhcp client. However, i did set up the name of the host as 'rainier'. rainier# hostname rainier.sbcglobal.com rainier# host rainier.sbcglobal.com Host rainier.sbcglobal.com not found: 3(NXDOMAIN) rainier# Any suggestions? (most other network functions work fine, www, ping, etc, though slow) From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 24 20:39:48 2005 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 32A0016A4CE for ; Sun, 24 Apr 2005 20:39:48 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C13C43D53 for ; Sun, 24 Apr 2005 20:39:47 +0000 (GMT) (envelope-from dean@dragon.stack.nl) Received: from dragon.stack.nl (dragon.stack.nl [IPv6:2001:610:1108:5011:207:e9ff:fe09:230]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhost.stack.nl (Postfix) with ESMTP id 974071F12B; Sun, 24 Apr 2005 22:39:46 +0200 (CEST) Received: by dragon.stack.nl (Postfix, from userid 1600) id 70ADE5F15F; Sun, 24 Apr 2005 22:39:46 +0200 (CEST) Date: Sun, 24 Apr 2005 22:39:46 +0200 From: Dean Strik To: Jason Tsai Message-ID: <20050424203946.GA53506@dragon.stack.nl> References: <005901c54764$2e587d20$de010a0a@tsai> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <005901c54764$2e587d20$de010a0a@tsai> X-Editor: VIM Rulez! http://www.vim.org/ X-MUD: Outerspace - telnet://mud.stack.nl:3333 X-Really: Yes User-Agent: Mutt/1.5.9i X-Mailman-Approved-At: Mon, 25 Apr 2005 12:06:41 +0000 cc: freebsd-hackers@freebsd.org Subject: Re: SIS NIC drivers problem if use "media 100baseTX mediaopt full-duplex" 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, 24 Apr 2005 20:39:48 -0000 Jason Tsai wrote: > First sorry for my poor writing engish! I don't know if it's right to > post in this mailist, but I think it's best place I can ask this kind > of question. > > I am using FreeBSD 5.4-RC3 now for testing purpose, I find that if I > use ifconfig_sis0="inet 10.10.1.148 netmask 255.255.255.0" in > /etc/rc.conf, everything goes ok when I am using Jmeter(from Windows > Box) to load testing tomcat(on FreeBSD 5.4-RC3); but if I change > ifconfig_sis0 to "inet 10.10.1.148 netmask 255.255.255.0 media > 100baseTX mediaopt full-duplex", I always got "sis0 watchdog timeout" > error when I am doing testing. Just don't set media and mediaopt. That only works right when both sides of the link (your freebsd machine and the switch on the other side) are configured to always use the 100/FD setting. -- Dean C. Strik Eindhoven University of Technology dean@stack.nl | dean@ipnet6.org | http://www.ipnet6.org/ "This isn't right. This isn't even wrong." -- Wolfgang Pauli From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 05:50:16 2005 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 B393316A4CE for ; Mon, 25 Apr 2005 05:50:16 +0000 (GMT) Received: from web41303.mail.yahoo.com (web41303.mail.yahoo.com [66.218.93.52]) by mx1.FreeBSD.org (Postfix) with SMTP id 82E0F43D53 for ; Mon, 25 Apr 2005 05:50:16 +0000 (GMT) (envelope-from ron_chen_123@yahoo.com) Received: (qmail 56611 invoked by uid 60001); 25 Apr 2005 05:50:16 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=N/jGCU703sVds/Noh+7CZHp5aoOoFkPDe9UPQQ51ztpDVSTSDUV5QVWAx9d4NJV7kNd1/tb/xPA468qVStwr4PAHO6HDguoB7AvLpV6dxx1I7A7YB6BbpaVIwXW/aN5HM/Q2dSQD+9p8YAc9+DwsqkvKjnOcBTn5yPZh8msKuGs= ; Message-ID: <20050425055016.56609.qmail@web41303.mail.yahoo.com> Received: from [24.42.232.253] by web41303.mail.yahoo.com via HTTP; Sun, 24 Apr 2005 22:50:16 PDT Date: Sun, 24 Apr 2005 22:50:16 -0700 (PDT) From: Ron Chen To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Mon, 25 Apr 2005 12:06:41 +0000 Subject: C-style expression processing... 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, 25 Apr 2005 05:50:16 -0000 Hi, I am trying to add a new feature in Gridengine (free/opensource) to support ex-LSF users - there are more and more LSF users migrating to Gridengine), and some requested this one: In LSF, a user can specify from the command line the resource requirements of a batch job: (mem >= 100 || pg < 200.0) Where mem and pg are variables (they changes in time, and the master cluster scheduler has the most up-to-date information). And what I need is to find out whether the expression is true or not. My question is, is there an expression processing library that can handle complex equations easily? -Ron __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 08:08:17 2005 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 89D4B16A4CE for ; Mon, 25 Apr 2005 08:08:17 +0000 (GMT) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EFE543D2D for ; Mon, 25 Apr 2005 08:08:17 +0000 (GMT) (envelope-from wingman@waika9.com) Received: from pcemmanuel (def92-2-81-57-219-151.fbx.proxad.net [81.57.219.151]) by postfix3-2.free.fr (Postfix) with ESMTP id DCB2BC046 for ; Mon, 25 Apr 2005 10:08:15 +0200 (CEST) From: "Emmanuel Chriqui" To: Date: Mon, 25 Apr 2005 10:08:56 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcVJbgddOTRe9wF5RUOLuawXBlSQEA== Message-Id: <20050425080815.DCB2BC046@postfix3-2.free.fr> X-Mailman-Approved-At: Mon, 25 Apr 2005 12:06:41 +0000 Subject: Re: PXEBOOT/TFTPBOOT + big MD_ROOT problem 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, 25 Apr 2005 08:08:17 -0000 > I'm trying to make very big MD_ROOT (300MB) sent using > PXEBOOT+TFTPBOOT. No NFS. It's a sort of diskless machine with all the > system on ram. There is a problem when the preloaded image is >~32MB. > Kernel loads but it does not seem to find the files. It seems as if > only part of the image is really there. With a "small" image (<~32MB), > no probleme. I use the same image, off course, same init etc... just > more data for my application in the big image case. > > I use a classic mfs_root approche to make my image > > dd if=/dev/zero of=$MFS_FILE bs=1k count=$SIZE mdconfig -a -t vnode -f > $MFS_FILE -u0 bsdlabel -w /dev/md0 newfs /dev/md0a mount /dev/md0a > $MFS_FILE_MOUNT cp ... my content... > umount $MFS_FILE_MOUNT > fsck -t ufs /dev/md0a > mdconfig -d -u 0 > > then I mount the $MFS_FILE_MOUNT . > > I use i386/5.4RC2/TFTPD/PXEBOOT+TFTPBOOT . > (same pb with a 5.3). > > Am I missing something obvious? > It seems not. There seems to be a size limitation in the loader (and pxeboot since it is built using loader code). I've tried loading through pxeboot + TFTP : the tftp pxeboot client is limited to 32MB unfortunately (BTW : the one of the tftp port works fine). I tried to use pxeboot + NFS, kernel hangs because of loader limitation (BTW : you can use only NFS UDP since the pxeboot NFS client don't do TCP which means booting using this this technique using TFTP is not less reliable than NFS). I even tried pxegrub, but again it's the loader ... It seems the only reasonable solution is to make a small jumpstart mfsroot, make a md device (malloc / ..) with any size you want as long as you have enough memory (even 1GB+) and then fetch the mfsroot image using tftp/nfs/scp/.. and chroot to it. Emmanuel. From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 09:23:49 2005 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 F182D16A4CE; Mon, 25 Apr 2005 09:23:49 +0000 (GMT) Received: from tower.berklix.org (bsd.bsn.com [194.221.32.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7CB943D41; Mon, 25 Apr 2005 09:23:48 +0000 (GMT) (envelope-from jhs@flat.berklix.net) Received: from js.berklix.net (p549A62A9.dip.t-dialin.net [84.154.98.169]) (authenticated bits=0) by tower.berklix.org (8.12.9p2/8.12.9) with ESMTP id j3P9NO8o069041; Mon, 25 Apr 2005 11:23:25 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.12.11/8.12.11) with ESMTP id j3P9NHSi001282; Mon, 25 Apr 2005 11:23:22 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (localhost [127.0.0.1]) by fire.jhs.private (8.13.1/8.13.1) with ESMTP id j3P9NHnb006537; Mon, 25 Apr 2005 11:23:17 +0200 (CEST) (envelope-from jhs@fire.jhs.private) Message-Id: <200504250923.j3P9NHnb006537@fire.jhs.private> To: Chuck Robey In-Reply-To: Message from Chuck Robey of "Sun, 24 Apr 2005 18:10:34 -0000." <426BE11A.5070907@chuckr.org> Date: Mon, 25 Apr 2005 11:23:17 +0200 From: "Julian H. Stacey" X-Mailman-Approved-At: Mon, 25 Apr 2005 12:06:41 +0000 cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= cc: Tim Kientzle cc: freebsd-hackers@freebsd.org Subject: Re: region code in cdrecord 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, 25 Apr 2005 09:23:50 -0000 > folks reasons why, but I hope not that often). Anyhow, the disk is > (like I said, but in roundabout fashion I admit) region 2, so suggesting As someone said the Region code is in the VOB file: How about putting your Region 2 DVD media in a FreeBSD box, using /usr/ports/multimedia/dvdrip to creat a .avi file, writing that .avi back to a new CDROM or DVD (yes, films can squezze onto a 700M CDROM). Drawbacks: Not all television DVD players can play .avi, but some can. With no VOB files, I guess you'll also lose any menu type stuff. - Julian Stacey Net & Sys Eng Consultant, Munich http://berklix.com Mail in Ascii (Html=Spam). Ihr Rauch = mein allergischer Kopfschmerz. From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 09:30:15 2005 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 8E99416A4CE; Mon, 25 Apr 2005 09:30:15 +0000 (GMT) Received: from tower.berklix.org (bsd.bsn.com [194.221.32.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE10D43D49; Mon, 25 Apr 2005 09:30:14 +0000 (GMT) (envelope-from jhs@flat.berklix.net) Received: from js.berklix.net (p549A62A9.dip.t-dialin.net [84.154.98.169]) (authenticated bits=0) by tower.berklix.org (8.12.9p2/8.12.9) with ESMTP id j3P9UB8o069059; Mon, 25 Apr 2005 11:30:12 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.12.11/8.12.11) with ESMTP id j3P9UAsL001314; Mon, 25 Apr 2005 11:30:10 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (localhost [127.0.0.1]) by fire.jhs.private (8.13.1/8.13.1) with ESMTP id j3P9UAX2006597; Mon, 25 Apr 2005 11:30:10 +0200 (CEST) (envelope-from jhs@fire.jhs.private) Message-Id: <200504250930.j3P9UAX2006597@fire.jhs.private> To: Chuck Robey In-Reply-To: Message from Chuck Robey of "Sun, 24 Apr 2005 19:53:20 -0000." <426BF930.6030108@chuckr.org> Date: Mon, 25 Apr 2005 11:30:10 +0200 From: "Julian H. Stacey" X-Mailman-Approved-At: Mon, 25 Apr 2005 12:06:41 +0000 cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= cc: Tim Kientzle cc: freebsd-hackers@freebsd.org Subject: Re: region code in cdrecord 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, 25 Apr 2005 09:30:15 -0000 > There are so many bad assumptions here! > > bad#2: that ANY of them do. A very small amount of dvd players have the > ability to add patches to them, these all (in every case) need you to > run Windows code to get these patches installed, and I don't run > Windows, anywhere, anytime. My DVD Player, (eg external player. Not a computer as such, plugs into TV), did not require me to run Windows or FreeBSD. I just ran google, found the unlock code, & typed it in using remote controller. A DVD drive is another matter, that might need evil MS to zap it. - Julian Stacey Net & Sys Eng Consultant, Munich http://berklix.com Mail in Ascii (Html=Spam). Ihr Rauch = mein allergischer Kopfschmerz. From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 12:04:08 2005 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 30DA316A4CE; Mon, 25 Apr 2005 12:04:08 +0000 (GMT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0942243D48; Mon, 25 Apr 2005 12:04:08 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms063.mailsrvcs.net ([192.168.1.4]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IFI00MU746VIALD@vms044.mailsrvcs.net>; Mon, 25 Apr 2005 07:04:07 -0500 (CDT) Date: Mon, 25 Apr 2005 07:04:07 -0500 (CDT) From: Sergey Babkin To: Chuck Robey , Tim Kientzle Message-id: <15314518.1114430647592.JavaMail.root@vms063.mailsrvcs.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailman-Approved-At: Mon, 25 Apr 2005 12:57:02 +0000 cc: =?ISO646-US?Q?Dag-Erling_Sm=3Frgrav?= cc: freebsd-hackers@freebsd.org Subject: Re: Re: region code in cdrecord 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, 25 Apr 2005 12:04:08 -0000 >(like I said, but in roundabout fashion I admit) region 2, so suggesting >that I ignore the region is silly, it's there already. My dvd (and that >of my friend's, I tested) both immediately choke on trying to play this Sorry, can't help with your original question, but I can help with the choice of DVD players. Phillips makes a good reprogrammable one. I think the model is called 642 in US and 630 in Europe, I can look at mine (US) at home. Walmart and Target sell them for shomething like $70. Changing the region code is a breese - you get the tray open, press the "secret" button sequence and can enter the new code. Setting the code to 0 would make it region-free and would play any disks except the very paranoid ones. For those you can change it back to 1 or 2. >disk, they don't even open a menu. I need to change that encoded region >value from 2 to 1. Having software here that coded, say, a null value AFAIK it's done in a more interesting way: the region code on CD is actually a small interpreted bytecode program that reads the player's configuration data with the region code in it and decides if it wants to play on this player or not. That's why some disks won't work with the players having region 0. I'd guess that this program can be happily amputated altogether. -SB From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 13:50:47 2005 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 AC9E916A4CE for ; Mon, 25 Apr 2005 13:50:47 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6864343D4C for ; Mon, 25 Apr 2005 13:50:47 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 9895565216; Mon, 25 Apr 2005 14:50:04 +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 88462-02; Mon, 25 Apr 2005 14:50:04 +0100 (BST) Received: from empiric.dek.spc.org (host81-134-90-164.in-addr.btopenworld.com [81.134.90.164]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id CBA06651FA; Mon, 25 Apr 2005 14:50:03 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 15A5864CF; Mon, 25 Apr 2005 14:50:45 +0100 (BST) Date: Mon, 25 Apr 2005 14:50:45 +0100 From: Bruce M Simpson To: Marc Olzheim Message-ID: <20050425135044.GD769@empiric.icir.org> Mail-Followup-To: Marc Olzheim , freebsd-hackers@freebsd.org References: <20050425101008.GA57542@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NKoe5XOeduwbEQHU" Content-Disposition: inline In-Reply-To: <20050425101008.GA57542@stack.nl> cc: freebsd-hackers@freebsd.org Subject: Re: preadv() / pwritev() 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, 25 Apr 2005 13:50:47 -0000 --NKoe5XOeduwbEQHU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 25, 2005 at 12:10:08PM +0200, Marc Olzheim wrote: > Are there plans on implementing preadv() and pwritev() ? I kind of miss > the functionality and I saw NetBSD had it already... By the looks of pwrite() and writev() it could probably be implemented fairly easily; it would largely be a matter of rototiling pwrite() to accept an array of iovecs, as writev() currently does, as pwrite() already knows how to pass a single uio/iovec on the stack with the desired start offset. Looking at the man page for pwritev() it only accepts a start offset, rather than an individual offset for each scatter/gather element. I don't do enough thread-based programming at the moment to make this worth my while, though, but I'm happy to look at a patch. BMS --NKoe5XOeduwbEQHU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Comment: '' iD8DBQFCbPW0ueUpAYYNtTsRAk2FAKCKOD3gqoeVwp3WoANAYJjCVEEKngCeLG2U KlIxM2luLeMb3Ocr6AJLhGg= =4ey3 -----END PGP SIGNATURE----- --NKoe5XOeduwbEQHU-- From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 15:23:16 2005 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 DE02A16A4CE for ; Mon, 25 Apr 2005 15:23:16 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD25943D4C for ; Mon, 25 Apr 2005 15:23:15 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id AF4EB1F051; Mon, 25 Apr 2005 17:23:14 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id 91201618D; Mon, 25 Apr 2005 17:23:14 +0200 (CEST) Date: Mon, 25 Apr 2005 17:23:14 +0200 From: Marc Olzheim To: Marc Olzheim , freebsd-hackers@freebsd.org Message-ID: <20050425152314.GB58044@stack.nl> References: <20050425101008.GA57542@stack.nl> <20050425135044.GD769@empiric.icir.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NMuMz9nt05w80d4+" Content-Disposition: inline In-Reply-To: <20050425135044.GD769@empiric.icir.org> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i Subject: Re: preadv() / pwritev() 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, 25 Apr 2005 15:23:17 -0000 --NMuMz9nt05w80d4+ Content-Type: multipart/mixed; boundary="XsQoSWH+UP9D9v3l" Content-Disposition: inline --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 25, 2005 at 02:50:45PM +0100, Bruce M Simpson wrote: > I don't do enough thread-based programming at the moment to make this worth > my while, though, but I'm happy to look at a patch. Ok, something like this ? I'm a bit puzzled by the coding style in the file, but I think I got the spirit of it. ;-) Possibly more of dofileread() and dopreadv() and their write-cousins could be merged into each other, but this patch is better readable... Marc --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="preadv.patch" Content-Transfer-Encoding: quoted-printable --- sys/kern/syscalls.master Mon Apr 25 16:56:40 2005 +++ sys/kern/syscalls.master Mon Apr 25 17:05:07 2005 @@ -646,6 +646,10 @@ 454 MSTD { int _umtx_op(struct umtx *umtx, int op, long id, void *uaddr,\ void *uaddr2); } 455 MSTD { int thr_new(struct thr_param *param, int param_size); } +456 MSTD { ssize_t preadv(struct thread *td, int fd, struct uio * auio,\ + u_int iovcnt, off_t offset, int flags); } +457 MSTD { ssize_t pwritev(struct thread *td, int fd, struct uio * auio,\ + u_int iovcnt, off_t offset, int flags); } =20 ; Please copy any additions and changes to the following compatability tab= les: ; sys/compat/freebsd32/syscalls.master --- sys/compat/freebsd32/syscalls.master Mon Apr 25 16:56:52 2005 +++ sys/compat/freebsd32/syscalls.master Mon Apr 25 17:05:31 2005 @@ -620,3 +620,9 @@ 452 UNIMPL setaudit_addr 453 UNIMPL auditctl 454 UNIMPL _umtx_op +456 STD { ssize_t freebsd32_preadv(struct thread *td, int fd,\ + u_int iovcnt, struct uio * auio, off_t offset, int flags); } +; XXX note - bigendian is different +457 STD { ssize_t freebsd32_pwritev(struct thread *td, int fd,\ + u_int iovcnt, struct uio * auio, off_t offset, int flags); } +; XXX note - bigendian is different --- sys/kern/sys_generic.c Mon Apr 25 16:12:58 2005 +++ sys/kern/sys_generic.c Mon Apr 25 17:19:49 2005 @@ -80,6 +80,8 @@ size_t, off_t, int); static int dofilewrite(struct thread *, struct file *, int, const void *, size_t, off_t, int); +static int dopreadv(struct thread *, int, struct uio *, off_t, int); +static int dopwritev(struct thread *, int, struct uio *, off_t, int); static void doselwakeup(struct selinfo *, int); =20 /* @@ -233,9 +235,48 @@ return (error); } =20 +/* + * Scatter positioned read system call. + */ +#ifndef _SYS_SYSPROTO_H_ +struct preadv_args { + struct thread *td; + int fd; + struct iovec *iovp; + u_int iovcnt; + off_t offset; +}; +#endif +/* + * MPSAFE + */ +int +preadv(struct thread *td, struct preadv_args *uap) +{ + struct uio *auio; + int error; + + error =3D copyinuio(uap->iovp, uap->iovcnt, &auio); + if (error) + return (error); + error =3D dopreadv(td, uap->fd, auio, uap->offset, FOF_OFFSET); + free(auio, M_IOV); + return (error); +} + int kern_readv(struct thread *td, int fd, struct uio *auio) { + return (preadv(td, fd, auio, (off_t)-1, 0)); +} + +static int +dopreadv(td, fd, auio, offset, flags) + struct thread *td; + struct uio *auio; + int fd, flags; + off_t offset; +{ struct file *fp; long cnt; int error; @@ -253,13 +294,14 @@ return(0); } auio->uio_rw =3D UIO_READ; + auio->uio_offset =3D offset; auio->uio_td =3D td; #ifdef KTRACE if (KTRPOINT(td, KTR_GENIO))=20 ktruio =3D cloneuio(auio); #endif cnt =3D auio->uio_resid; - if ((error =3D fo_read(fp, auio, td->td_ucred, 0, td))) { + if ((error =3D fo_read(fp, auio, td->td_ucred, flags, td))) { if (auio->uio_resid !=3D cnt && (error =3D=3D ERESTART || error =3D=3D EINTR || error =3D=3D EWOULDBLOCK)) error =3D 0; @@ -430,9 +472,48 @@ return (error); } =20 +/* + * Gather posiotioned write system call + */ +#ifndef _SYS_SYSPROTO_H_ +struct pwritev_args { + struct thread *td; + int fd; + struct iovec *iovp; + u_int iovcnt; + off_t offset; +}; +#endif +/* + * MPSAFE + */ +int +pwritev(struct thread *td, struct pwritev_args *uap) +{ + struct uio *auio; + int error; + + error =3D copyinuio(uap->iovp, uap->iovcnt, &auio); + if (error) + return (error); + error =3D dopwritev(td, uap->fd, auio, uap->offset, FOF_OFFSET); + free(auio, M_IOV); + return (error); +} + int kern_writev(struct thread *td, int fd, struct uio *auio) { + return (dopwritev(td, fd, auio, (off_t)-1 , 0)); +} + +static int +dopwritev(td, fd, auio, offset, flags) + struct thread *td; + struct uio *auio; + int fd, flags; + off_t offset; +{ struct file *fp; long cnt; int error; @@ -445,6 +526,7 @@ return (EBADF); auio->uio_rw =3D UIO_WRITE; auio->uio_td =3D td; + auio->uio_offset =3D offset; #ifdef KTRACE if (KTRPOINT(td, KTR_GENIO)) ktruio =3D cloneuio(auio); @@ -452,7 +534,7 @@ cnt =3D auio->uio_resid; if (fp->f_type =3D=3D DTYPE_VNODE) bwillwrite(); - if ((error =3D fo_write(fp, auio, td->td_ucred, 0, td))) { + if ((error =3D fo_write(fp, auio, td->td_ucred, flags, td))) { if (auio->uio_resid !=3D cnt && (error =3D=3D ERESTART || error =3D=3D EINTR || error =3D=3D EWOULDBLOCK)) error =3D 0; --XsQoSWH+UP9D9v3l-- --NMuMz9nt05w80d4+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCbQtiezjnobFOgrERAqF/AKDOtzDvrS4zI9zI3OtQi+0RjLnH4gCgxtSJ meh9Z7M+aIVDjZWl6fvYzKA= =DuNq -----END PGP SIGNATURE----- --NMuMz9nt05w80d4+-- From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 15:31:28 2005 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 DF10116A4CE for ; Mon, 25 Apr 2005 15:31:28 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EA5E43D1D for ; Mon, 25 Apr 2005 15:31:28 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id 0387B1F00E; Mon, 25 Apr 2005 17:31:28 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id DC868618D; Mon, 25 Apr 2005 17:31:27 +0200 (CEST) Date: Mon, 25 Apr 2005 17:31:27 +0200 From: Marc Olzheim To: Marc Olzheim , freebsd-hackers@freebsd.org Message-ID: <20050425153127.GC58044@stack.nl> References: <20050425101008.GA57542@stack.nl> <20050425135044.GD769@empiric.icir.org> <20050425152314.GB58044@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lMM8JwqTlfDpEaS6" Content-Disposition: inline In-Reply-To: <20050425152314.GB58044@stack.nl> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i Subject: Re: preadv() / pwritev() 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, 25 Apr 2005 15:31:29 -0000 --lMM8JwqTlfDpEaS6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 25, 2005 at 05:23:14PM +0200, Marc Olzheim wrote: > int > kern_readv(struct thread *td, int fd, struct uio *auio) > { > + return (preadv(td, fd, auio, (off_t)-1, 0)); > +} ->dopreadv() Hit the send button too quickly, I'll submit a new one after testing. Marc --lMM8JwqTlfDpEaS6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCbQ1PezjnobFOgrERArcaAJ4zUCeJNSqKYk81qmg25oNtiJ37CACdEZbD 96wh8/7bJTZkfaFZzTaarV0= =vrev -----END PGP SIGNATURE----- --lMM8JwqTlfDpEaS6-- From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 16:03:47 2005 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 9224616A4CE; Mon, 25 Apr 2005 16:03:47 +0000 (GMT) Received: from ox.eicat.ca (ox.eicat.ca [66.96.30.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1136643D81; Mon, 25 Apr 2005 16:03:47 +0000 (GMT) (envelope-from dgilbert@daveg.ca) Received: by ox.eicat.ca (Postfix, from userid 66) id 5911EF9B4; Mon, 25 Apr 2005 12:03:45 -0400 (EDT) Received: by canoe.dclg.ca (Postfix, from userid 101) id 7694D1A08C3; Mon, 25 Apr 2005 12:03:42 -0400 (EDT) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17005.5342.260402.241779@canoe.dclg.ca> Date: Mon, 25 Apr 2005 12:03:42 -0400 To: Tim Kientzle In-Reply-To: <426BDE1F.3020004@kientzle.com> References: <426AC21B.2080205@chuckr.org> <426AE866.7050008@chuckr.org> <86wtqs9yiw.fsf@xps.des.no> <426BD1F6.7050201@freebsd.org> <86r7h08464.fsf@xps.des.no> <426BDE1F.3020004@kientzle.com> X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= cc: Tim Kientzle cc: freebsd-hackers@freebsd.org cc: Chuck Robey Subject: Re: region code in cdrecord 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, 25 Apr 2005 16:03:47 -0000 >>>>> "Tim" == Tim Kientzle writes: Tim> I wouldn't "rather", but I think it might be simpler. I also Tim> seem to recall hearing about discs whose region-coding was done Tim> in such a way that they would not play on unlocked players. Well (to put that to rest), there are two types of region coding in use on DVDs. The first is the one we're talking about here ... which is a code in the files that tells the DVD player which region the disk is. Early "unlocked" players were simply patched to accept any region. The second type is code in the menu system that queries the region code and then acts on it. Early players returned '0' for this function ... and the disks were coded to not play. The fix for this was players that you could change the region on ... and "unlocked" players of this type allow you to set the region an unlimited number of times. "locked" players usually let you set the region some small number of times. Dave. -- ============================================================================ |David Gilbert, Independent Contractor. | Two things can only be | |Mail: dave@daveg.ca | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================ From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 16:50:44 2005 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 141EE16A4CE for ; Mon, 25 Apr 2005 16:50:44 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 094D543D49 for ; Mon, 25 Apr 2005 16:50:43 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id 12FB01F060 for ; Mon, 25 Apr 2005 18:50:42 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id ECCF8618D; Mon, 25 Apr 2005 18:50:41 +0200 (CEST) Date: Mon, 25 Apr 2005 18:50:41 +0200 From: Marc Olzheim To: freebsd-hackers@freebsd.org Message-ID: <20050425165041.GA71899@stack.nl> References: <20050425101008.GA57542@stack.nl> <20050425135044.GD769@empiric.icir.org> <20050425152314.GB58044@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eJnRUKwClWJh1Khz" Content-Disposition: inline In-Reply-To: <20050425152314.GB58044@stack.nl> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i Subject: Re: preadv() / pwritev() 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, 25 Apr 2005 16:50:44 -0000 --eJnRUKwClWJh1Khz Content-Type: multipart/mixed; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 25, 2005 at 05:23:14PM +0200, Marc Olzheim wrote: > On Mon, Apr 25, 2005 at 02:50:45PM +0100, Bruce M Simpson wrote: > > I don't do enough thread-based programming at the moment to make this w= orth > > my while, though, but I'm happy to look at a patch. >=20 > Ok, something like this ? > I'm a bit puzzled by the coding style in the file, but I think I got the > spirit of it. ;-) More like this then... Marc --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="preadv.patch" Content-Transfer-Encoding: quoted-printable --- sys/sys/uio.h.orig Mon Apr 25 18:23:58 2005 +++ sys/sys/uio.h Mon Apr 25 18:30:54 2005 @@ -101,6 +101,8 @@ __BEGIN_DECLS ssize_t readv(int, const struct iovec *, int); ssize_t writev(int, const struct iovec *, int); +ssize_t preadv(int, const struct iovec *, int, off_t); +ssize_t pwritev(int, const struct iovec *, int, off_t); __END_DECLS =20 #endif /* _KERNEL */ --- sys/compat/freebsd32/syscalls.master.orig Mon Apr 25 16:56:52 2005 +++ sys/compat/freebsd32/syscalls.master Mon Apr 25 18:45:38 2005 @@ -406,8 +406,13 @@ 286 UNIMPL nosys 287 UNIMPL nosys 288 UNIMPL nosys -289 UNIMPL nosys -290 UNIMPL nosys +; 289 and 290 from NetBSD (OpenBSD: 267 and 268) +289 STD { ssize_t freebsd32_preadv(int fd, u_int iovcnt,\ + struct uio * auio, off_t offset); } +; XXX note - bigendian is different +290 STD { ssize_t freebsd32_pwritev(int fd, u_int iovcnt,\ + struct uio * auio, off_t offset); } +; XXX note - bigendian is different 291 UNIMPL nosys 292 UNIMPL nosys 293 UNIMPL nosys --- sys/kern/syscalls.master.orig Mon Apr 25 16:56:40 2005 +++ sys/kern/syscalls.master Mon Apr 25 18:45:47 2005 @@ -411,8 +411,11 @@ 286 UNIMPL nosys 287 UNIMPL nosys 288 UNIMPL nosys -289 UNIMPL nosys -290 UNIMPL nosys +; 289 and 290 from NetBSD (OpenBSD: 267 and 268) +289 MSTD { ssize_t preadv(int fd, struct iovec *iovp, u_int iovcnt,\ + off_t offset); } +290 MSTD { ssize_t pwritev(int fd, struct iovec *iovp, u_int iovcnt,\ + off_t offset); } 291 UNIMPL nosys 292 UNIMPL nosys 293 UNIMPL nosys --- sys/kern/sys_generic.c.orig Mon Apr 25 16:12:58 2005 +++ sys/kern/sys_generic.c Mon Apr 25 18:32:03 2005 @@ -80,6 +80,8 @@ size_t, off_t, int); static int dofilewrite(struct thread *, struct file *, int, const void *, size_t, off_t, int); +static int dopreadv(struct thread *, int, struct uio *, off_t, int); +static int dopwritev(struct thread *, int, struct uio *, off_t, int); static void doselwakeup(struct selinfo *, int); =20 /* @@ -233,9 +235,47 @@ return (error); } =20 +/* + * Scatter positioned read system call. + */ +#ifndef _SYS_SYSPROTO_H_ +struct preadv_args { + int fd; + struct iovec *iovp; + u_int iovcnt; + off_t offset; +}; +#endif +/* + * MPSAFE + */ +int +preadv(struct thread *td, struct preadv_args *uap) +{ + struct uio *auio; + int error; + + error =3D copyinuio(uap->iovp, uap->iovcnt, &auio); + if (error) + return (error); + error =3D dopreadv(td, uap->fd, auio, uap->offset, FOF_OFFSET); + free(auio, M_IOV); + return (error); +} + int kern_readv(struct thread *td, int fd, struct uio *auio) { + return (dopreadv(td, fd, auio, (off_t)-1, 0)); +} + +static int +dopreadv(td, fd, auio, offset, flags) + struct thread *td; + struct uio *auio; + int fd, flags; + off_t offset; +{ struct file *fp; long cnt; int error; @@ -253,13 +293,14 @@ return(0); } auio->uio_rw =3D UIO_READ; + auio->uio_offset =3D offset; auio->uio_td =3D td; #ifdef KTRACE if (KTRPOINT(td, KTR_GENIO))=20 ktruio =3D cloneuio(auio); #endif cnt =3D auio->uio_resid; - if ((error =3D fo_read(fp, auio, td->td_ucred, 0, td))) { + if ((error =3D fo_read(fp, auio, td->td_ucred, flags, td))) { if (auio->uio_resid !=3D cnt && (error =3D=3D ERESTART || error =3D=3D EINTR || error =3D=3D EWOULDBLOCK)) error =3D 0; @@ -430,9 +471,47 @@ return (error); } =20 +/* + * Gather posiotioned write system call + */ +#ifndef _SYS_SYSPROTO_H_ +struct pwritev_args { + int fd; + struct iovec *iovp; + u_int iovcnt; + off_t offset; +}; +#endif +/* + * MPSAFE + */ +int +pwritev(struct thread *td, struct pwritev_args *uap) +{ + struct uio *auio; + int error; + + error =3D copyinuio(uap->iovp, uap->iovcnt, &auio); + if (error) + return (error); + error =3D dopwritev(td, uap->fd, auio, uap->offset, FOF_OFFSET); + free(auio, M_IOV); + return (error); +} + int kern_writev(struct thread *td, int fd, struct uio *auio) { + return (dopwritev(td, fd, auio, (off_t)-1 , 0)); +} + +static int +dopwritev(td, fd, auio, offset, flags) + struct thread *td; + struct uio *auio; + int fd, flags; + off_t offset; +{ struct file *fp; long cnt; int error; @@ -445,6 +524,7 @@ return (EBADF); auio->uio_rw =3D UIO_WRITE; auio->uio_td =3D td; + auio->uio_offset =3D offset; #ifdef KTRACE if (KTRPOINT(td, KTR_GENIO)) ktruio =3D cloneuio(auio); @@ -452,7 +532,7 @@ cnt =3D auio->uio_resid; if (fp->f_type =3D=3D DTYPE_VNODE) bwillwrite(); - if ((error =3D fo_write(fp, auio, td->td_ucred, 0, td))) { + if ((error =3D fo_write(fp, auio, td->td_ucred, flags, td))) { if (auio->uio_resid !=3D cnt && (error =3D=3D ERESTART || error =3D=3D EINTR || error =3D=3D EWOULDBLOCK)) error =3D 0; --opJtzjQTFsWo+cga-- --eJnRUKwClWJh1Khz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCbR/hezjnobFOgrERArm7AJ9SUMPqAnJNxu8gEzIbx79NQYnv3QCeKQiA HCBATn7DpLpRueO8eOo2dLM= =wSia -----END PGP SIGNATURE----- --eJnRUKwClWJh1Khz-- From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 17:56:40 2005 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 8068516A4CE for ; Mon, 25 Apr 2005 17:56:40 +0000 (GMT) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 204AE43D5F for ; Mon, 25 Apr 2005 17:56:39 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) (8.13.4/8.13.3) with ESMTP id j3PHuZeq007730 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 25 Apr 2005 19:56:35 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.4/8.13.3/Submit) id j3PHuZ6m007729; Mon, 25 Apr 2005 19:56:35 +0200 (CEST) Date: Mon, 25 Apr 2005 19:56:35 +0200 From: Divacky Roman To: Ron Chen Message-ID: <20050425175635.GA7617@stud.fit.vutbr.cz> References: <20050425055016.56609.qmail@web41303.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050425055016.56609.qmail@web41303.mail.yahoo.com> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.49 on 147.229.10.14 cc: freebsd-hackers@freebsd.org Subject: Re: C-style expression processing... 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, 25 Apr 2005 17:56:40 -0000 On Sun, Apr 24, 2005 at 10:50:16PM -0700, Ron Chen wrote: > Hi, > > I am trying to add a new feature in Gridengine > (free/opensource) to support ex-LSF users - there are > more and more LSF users migrating to Gridengine), and > some requested this one: > > In LSF, a user can specify from the command line the > resource requirements of a batch job: > > (mem >= 100 || pg < 200.0) > > Where mem and pg are variables (they changes in time, > and the master cluster scheduler has the most > up-to-date information). And what I need is to find > out whether the expression is true or not. > > My question is, is there an expression processing > library that can handle complex equations easily? you can easily parse it, using yacc/lex... and even hand-writing such parser cannot be difficult.. From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 19:29:58 2005 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 2AA4C16A4CE for ; Mon, 25 Apr 2005 19:29:58 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB1DD43D1F for ; Mon, 25 Apr 2005 19:29:57 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id D05B3651EE; Mon, 25 Apr 2005 20:29:14 +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 91792-02-3; Mon, 25 Apr 2005 20:29:14 +0100 (BST) Received: from empiric.dek.spc.org (host81-134-90-164.in-addr.btopenworld.com [81.134.90.164]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 6DD9B651EB; Mon, 25 Apr 2005 20:29:11 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id C859A64CF; Mon, 25 Apr 2005 20:29:49 +0100 (BST) Date: Mon, 25 Apr 2005 20:29:49 +0100 From: Bruce M Simpson To: Marc Olzheim Message-ID: <20050425192949.GE769@empiric.icir.org> Mail-Followup-To: Marc Olzheim , freebsd-hackers@freebsd.org References: <20050425101008.GA57542@stack.nl> <20050425135044.GD769@empiric.icir.org> <20050425152314.GB58044@stack.nl> <20050425165041.GA71899@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tNQTSEo8WG/FKZ8E" Content-Disposition: inline In-Reply-To: <20050425165041.GA71899@stack.nl> cc: freebsd-hackers@freebsd.org Subject: Re: preadv() / pwritev() 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, 25 Apr 2005 19:29:58 -0000 --tNQTSEo8WG/FKZ8E Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 25, 2005 at 06:50:41PM +0200, Marc Olzheim wrote: > More like this then... Yep, something like that! Thanks, though I may not have time to commit this at the moment. :-( BMS --tNQTSEo8WG/FKZ8E Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Comment: '' iD8DBQFCbUUtueUpAYYNtTsRAln0AJ9Wi9ZvEJQ4E0THB32Wb7wa4OsBtACglp1S FfYfEmU7DWfxwKBSu0GWxXg= =71jl -----END PGP SIGNATURE----- --tNQTSEo8WG/FKZ8E-- From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 20:12:31 2005 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 ECEB516A4CE for ; Mon, 25 Apr 2005 20:12:31 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3670043D41 for ; Mon, 25 Apr 2005 20:12:31 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id 44B761F0E5; Mon, 25 Apr 2005 22:12:30 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id 1A3126149; Mon, 25 Apr 2005 22:12:30 +0200 (CEST) Date: Mon, 25 Apr 2005 22:12:29 +0200 From: Marc Olzheim To: Marc Olzheim , freebsd-hackers@freebsd.org Message-ID: <20050425201229.GA92995@stack.nl> References: <20050425101008.GA57542@stack.nl> <20050425135044.GD769@empiric.icir.org> <20050425152314.GB58044@stack.nl> <20050425165041.GA71899@stack.nl> <20050425192949.GE769@empiric.icir.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DocE+STaALJfprDB" Content-Disposition: inline In-Reply-To: <20050425192949.GE769@empiric.icir.org> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i Subject: Re: preadv() / pwritev() 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, 25 Apr 2005 20:12:32 -0000 --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 25, 2005 at 08:29:49PM +0100, Bruce M Simpson wrote: > > More like this then... >=20 > Yep, something like that! Thanks, though I may not have time to commit > this at the moment. :-( Then should I file a PR after someone tells me what kind of naming scheme they'd rather have than dopreadv() and dopwritev() :-P ? Or should I combine all of the 4 read functions together (as well as all of the 4 write functions) ? The current patch is against 6-CURRENT, but applies almost perfectly against 5-STABLE as well, and works for me. ;-) Marc --DocE+STaALJfprDB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCbU8tezjnobFOgrERAi4pAJ9Zctw0SgnvV5w1dps/QaVse4G9BgCgu+q9 IiTCnS/o+942ygF4ilLmmj8= =4kTl -----END PGP SIGNATURE----- --DocE+STaALJfprDB-- From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 21:25:56 2005 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 8A81316A4CE for ; Mon, 25 Apr 2005 21:25:56 +0000 (GMT) Received: from coe.ufrj.br (roma.coe.ufrj.br [146.164.53.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3BAD43D3F for ; Mon, 25 Apr 2005 21:25:55 +0000 (GMT) (envelope-from jonny@jonny.eng.br) Received: from localhost (localhost [127.0.0.1]) by coe.ufrj.br (Postfix) with ESMTP id B443117018 for ; Mon, 25 Apr 2005 18:25:54 -0300 (BRT) Received: from coe.ufrj.br ([146.164.53.65]) by localhost (roma.coe.ufrj.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 33861-10 for ; Mon, 25 Apr 2005 18:25:50 -0300 (BRT) Received: from [10.0.8.17] (nat.int.gov.br [200.20.196.226]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by coe.ufrj.br (Postfix) with ESMTP id C7CFA17016 for ; Mon, 25 Apr 2005 18:25:50 -0300 (BRT) Message-ID: <426D6087.7080908@jonny.eng.br> Date: Mon, 25 Apr 2005 18:26:31 -0300 From: =?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?= User-Agent: Mozilla Thunderbird 1.0+ (Windows/20050315) MIME-Version: 1.0 To: hackers@freebsd.org X-Enigmail-Version: 0.90.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at coe.ufrj.br Subject: Trouble with 250G SATA drive? 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, 25 Apr 2005 21:25:56 -0000 Hi all, I've just bought a Seagate 250G SATA drive to run in a shared desktop at home. It should have 3 boot partitions: 16M FreeBSD 5, 16M linux, 32M NTFS for Windows XP. The remaining wil be formatted with FAT32 to be used as a common data for the 3 operating systems. Well, everything seemed to be fine. I copied the FreeBSD partition from the previous installed disk with dump(8), and installed XP from CDs. But suddenly, the data and NTFS partitions began to disappear. I don't know exactly what were the steps used to crash the disk, but it happened at least 3 times, after 3 full windows installs (which are not quick, for my sadness). In the last one I could almost detect it. I finished the initial windows instalation, and booted into FreeBSD to make sure the NTFS and FAT partitions were available. They seemed to be. Then I reboot into windows, and it crashed, with a missing HAL.DLL. Boot again into FreeBSD, and the NTFS partition still seemed ok. But I gone into the \WINDOWS\system32, and did an ls. The kernel pushed some errors with "bad magic" or something like that, and the file system locked. Also, the boot information for the first FAT32 partition has been completely destroyed, leaving it unreadable. The mainboard is an ASUS K8V, with 1G RAM. I'm running the 32 bit version of FreeBSD, although it is an AMD64 machine. The 250G SATA disk is on the promise RAID, and I have another PATA 120G on the promise RAID, and a 40G PATA on standard IDE. I already had a problem with a previous ASUS board in which the promise raid could not deal with disks bigger than 120G. The symptons were very similar. Could this be the problem? Does somebody know if FreeBSD or mount_ntfs has any kind of disk size limitation in this hardware? Oh, I did remember now that I was using mount_ntfs -o noatime, if that matters. Thanks for any help, Jonny PS: Now it has been fully reformatted with no NTFS, using FAT32 instead. But I'm afraid of getting into FreeBSD again in this machine. Please help! :-( From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 26 11:10:39 2005 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 B298816A4CE for ; Tue, 26 Apr 2005 11:10:39 +0000 (GMT) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4312F43D45 for ; Tue, 26 Apr 2005 11:10:39 +0000 (GMT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dirg.bris.ac.uk with esmtp (Exim 4.50) id 1DQNxX-0006JH-Ng; Tue, 26 Apr 2005 12:10:34 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 4.50) id 1DQNxW-0004BD-W4; Tue, 26 Apr 2005 12:10:31 +0100 Date: Tue, 26 Apr 2005 12:10:30 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Divacky Roman In-Reply-To: <20050425175635.GA7617@stud.fit.vutbr.cz> Message-ID: References: <20050425055016.56609.qmail@web41303.mail.yahoo.com> <20050425175635.GA7617@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant X-Spam-Score: -2.8 X-Spam-Level: -- cc: freebsd-hackers@freebsd.org cc: Ron Chen Subject: Re: C-style expression processing... 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, 26 Apr 2005 11:10:39 -0000 On Mon, 25 Apr 2005, Divacky Roman wrote: > On Sun, Apr 24, 2005 at 10:50:16PM -0700, Ron Chen wrote: > > Hi, > > > > I am trying to add a new feature in Gridengine > > (free/opensource) to support ex-LSF users - there are > > more and more LSF users migrating to Gridengine), and > > some requested this one: > > > > In LSF, a user can specify from the command line the > > resource requirements of a batch job: > > > > (mem >= 100 || pg < 200.0) > > > > Where mem and pg are variables (they changes in time, > > and the master cluster scheduler has the most > > up-to-date information). And what I need is to find > > out whether the expression is true or not. > > > > My question is, is there an expression processing > > library that can handle complex equations easily? > > you can easily parse it, using yacc/lex... and even hand-writing such parser > cannot be difficult.. Google for: yacc calculator example. Rather than doing AST creation or semantic analysis, many introductions to yacc show it being used to create simple calculators. You'll probably even find one on your system: /usr/share/doc/psd/15.yacc/paper.ascii.gz That probably ought to sort you out. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44 (0)117 9287088 (with luck) http://ioctl.org/jan/ Q: What's yellow and equivalent to the axiom of choice? A: Zorn's lemon. From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 25 19:22:17 2005 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 2672316A4CE; Mon, 25 Apr 2005 19:22:17 +0000 (GMT) Received: from hotmail.com (bay103-f25.bay103.hotmail.com [65.54.174.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B93E43D55; Mon, 25 Apr 2005 19:22:17 +0000 (GMT) (envelope-from cool_mike_21@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 25 Apr 2005 12:22:16 -0700 Message-ID: Received: from 65.54.174.200 by by103fd.bay103.hotmail.msn.com with HTTP; Mon, 25 Apr 2005 19:22:16 GMT X-Originating-IP: [65.54.174.200] X-Originating-Email: [cool_mike_21@hotmail.com] X-Sender: cool_mike_21@hotmail.com From: "Michael Neeff" To: freebsd-hackers@freebsd.org Date: Mon, 25 Apr 2005 19:22:16 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 25 Apr 2005 19:22:16.0924 (UTC) FILETIME=[17AC21C0:01C549CC] X-Mailman-Approved-At: Tue, 26 Apr 2005 12:05:31 +0000 cc: freebsd-questions@freebsd.org Subject: Re: Cold Reboot (or cold restart) FreeBSD? locore.s hack attempt 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, 25 Apr 2005 19:22:17 -0000 Hey Billy, I have the same problem...however am not a hacker :(....only a newbie to FreeBSD 5.3. My system for some reason does not do a reboot using: shutdown -r now or reboot now. I am frustrated with having to manually turn on my PC each time I attempt to do a reboot....Any solutions out there would be much appreciated. Btw, does this cause bad sectors on the HDD. Thankx. Mike From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 26 13:31:16 2005 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 7323616A4CE for ; Tue, 26 Apr 2005 13:31:16 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 327E443D31 for ; Tue, 26 Apr 2005 13:31:16 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id 65EA11F023 for ; Tue, 26 Apr 2005 15:31:15 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id 3FEA8663D; Tue, 26 Apr 2005 15:31:15 +0200 (CEST) Date: Tue, 26 Apr 2005 15:31:15 +0200 From: Marc Olzheim To: freebsd-hackers@freebsd.org Message-ID: <20050426133115.GA52753@stack.nl> References: <20050425101008.GA57542@stack.nl> <20050425135044.GD769@empiric.icir.org> <20050425152314.GB58044@stack.nl> <20050425165041.GA71899@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline In-Reply-To: <20050425165041.GA71899@stack.nl> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i Subject: Re: preadv() / pwritev() 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, 26 Apr 2005 13:31:16 -0000 --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 25, 2005 at 06:50:41PM +0200, Marc Olzheim wrote: > On Mon, Apr 25, 2005 at 05:23:14PM +0200, Marc Olzheim wrote: > > On Mon, Apr 25, 2005 at 02:50:45PM +0100, Bruce M Simpson wrote: > > > I don't do enough thread-based programming at the moment to make this= worth > > > my while, though, but I'm happy to look at a patch. > >=20 > > Ok, something like this ? > > I'm a bit puzzled by the coding style in the file, but I think I got the > > spirit of it. ;-) >=20 > More like this then... Ok, I cleaned up the patch, got the freebsd32-compat working and filed a PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/80362 Marc --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCbkKjezjnobFOgrERAiYqAJ4xrhVZHYkmNeBcRe1A2WAIb1V6EwCfSXRf tq7iqF8N3JaypCEFOwpV9Gg= =wG5b -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+-- From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 26 13:58:21 2005 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 76E4916A4CE for ; Tue, 26 Apr 2005 13:58:21 +0000 (GMT) Received: from mail.secure-host.tv (mail.secure-host.tv [82.197.129.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 410F043D5A for ; Tue, 26 Apr 2005 13:58:21 +0000 (GMT) (envelope-from bgd@secure-host.tv) Received: by mail.secure-host.tv (Postfix, from userid 1001) id 550FB3C062; Tue, 26 Apr 2005 15:58:20 +0200 (CEST) Date: Tue, 26 Apr 2005 15:58:20 +0200 From: Bogdan TARU To: freebsd-hackers@freebsd.org Message-ID: <20050426135820.GD40420@icomag.de> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Flash Communication Server on 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, 26 Apr 2005 13:58:21 -0000 Hello everyone, Did anyone manage to get Macromedia's Flash Communication Server running on FreeBSD (in linux-emu, obviously)? Thanks, bgd From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 26 16:43:18 2005 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 E5DB716A4CE for ; Tue, 26 Apr 2005 16:43:18 +0000 (GMT) Received: from gate.bitblocks.com (bitblocks.com [209.204.185.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EB4443D3F for ; Tue, 26 Apr 2005 16:43:18 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost [127.0.0.1]) by gate.bitblocks.com (8.13.3/8.13.1) with ESMTP id j3QGhIhG060242; Tue, 26 Apr 2005 09:43:18 -0700 (PDT) (envelope-from bakul@bitblocks.com) Message-Id: <200504261643.j3QGhIhG060242@gate.bitblocks.com> To: Ron Chen In-reply-to: Your message of "Sun, 24 Apr 2005 22:50:16 PDT." <20050425055016.56609.qmail@web41303.mail.yahoo.com> Date: Tue, 26 Apr 2005 09:43:17 -0700 From: Bakul Shah cc: freebsd-hackers@freebsd.org Subject: Re: C-style expression processing... 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, 26 Apr 2005 16:43:19 -0000 > I am trying to add a new feature in Gridengine > (free/opensource) to support ex-LSF users - there are > more and more LSF users migrating to Gridengine), and > some requested this one: > > In LSF, a user can specify from the command line the > resource requirements of a batch job: > > (mem >= 100 || pg < 200.0) > > Where mem and pg are variables (they changes in time, > and the master cluster scheduler has the most > up-to-date information). And what I need is to find > out whether the expression is true or not. > > My question is, is there an expression processing > library that can handle complex equations easily? See http://www.bitblocks.com/src/expr BSD style copyright. README has some notes to help you turn it into what you want. From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 26 19:33:24 2005 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 F1C1416A4CE; Tue, 26 Apr 2005 19:33:23 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C46A43D4C; Tue, 26 Apr 2005 19:33:22 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id 0AF621F0A7; Tue, 26 Apr 2005 21:33:21 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id CBB31663D; Tue, 26 Apr 2005 21:33:20 +0200 (CEST) Date: Tue, 26 Apr 2005 21:33:20 +0200 From: Marc Olzheim To: freebsd-hackers@freebsd.org Message-ID: <20050426193320.GA72028@stack.nl> References: <20050425101008.GA57542@stack.nl> <20050425135044.GD769@empiric.icir.org> <20050425152314.GB58044@stack.nl> <20050425165041.GA71899@stack.nl> <20050426133115.GA52753@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E39vaYmALEf/7YXx" Content-Disposition: inline In-Reply-To: <20050426133115.GA52753@stack.nl> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i Subject: Re: preadv() / pwritev() 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, 26 Apr 2005 19:33:24 -0000 --E39vaYmALEf/7YXx Content-Type: multipart/mixed; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 26, 2005 at 03:31:15PM +0200, Marc Olzheim wrote: > Ok, I cleaned up the patch, got the freebsd32-compat working and filed a > PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/80362 Thanks to some people commenting, I've fixed a typo and added the off_t typedef in sys/uio.h, so that a buildworld now survives as well. :-) The diffs between the current- and stable- patch are now purely line number differences. I've got it running on my company's servers and everything seems to work ok. We don't use the freebsd32 compat part though, so I hope I've done that ok. Marc --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="preadv.stable.patch" Content-Transfer-Encoding: quoted-printable --- /usr/src/lib/libc/sys/read.2 Sat Nov 13 12:55:41 2004 +++ /usr/src/lib/libc/sys/read.2 Tue Apr 26 14:01:23 2005 @@ -38,7 +38,8 @@ .Sh NAME .Nm read , .Nm readv , -.Nm pread +.Nm pread , +.Nm preadv .Nd read input .Sh LIBRARY .Lb libc @@ -49,9 +50,11 @@ .Ft ssize_t .Fn read "int d" "void *buf" "size_t nbytes" .Ft ssize_t +.Fn pread "int d" "void *buf" "size_t nbytes" "off_t offset" +.Ft ssize_t .Fn readv "int d" "const struct iovec *iov" "int iovcnt" .Ft ssize_t -.Fn pread "int d" "void *buf" "size_t nbytes" "off_t offset" +.Fn preadv "int d" "const struct iovec *iov" "int iovcnt" "off_t offset" .Sh DESCRIPTION The .Fn read @@ -73,12 +76,16 @@ array: iov[0], iov[1], ..., iov[iovcnt\|\-\|1]. The .Fn pread -system call -performs the same function, but reads from the specified position in +and +.Fn preadv +system calls +perform the same functions, but read from the specified position in the file without modifying the file pointer. .Pp For -.Fn readv , +.Fn readv +and +.Fn preadv , the .Fa iovec structure is defined as: @@ -119,8 +126,9 @@ Upon successful completion, .Fn read , .Fn readv , -and .Fn pread +and +.Fn preadv return the number of bytes actually read and placed in the buffer. The system guarantees to read the number of bytes requested if the descriptor references a normal file that has that many bytes left @@ -137,8 +145,9 @@ The .Fn read , .Fn readv , -and .Fn pread +and +.Fn preadv system calls will succeed unless: .Bl -tag -width Er @@ -184,6 +193,8 @@ .Pp In addition, .Fn readv +and +.Fn preadv may return one of the following errors: .Bl -tag -width Er .It Bq Er EINVAL @@ -212,7 +223,9 @@ .Pp The .Fn pread -system call may also return the following errors: +and +.Fn preadv +system calls may also return the following errors: .Bl -tag -width Er .It Bq Er EINVAL The @@ -244,6 +257,10 @@ system calls are expected to conform to .St -xpg4.2 . .Sh HISTORY +The +.Fn preadv +system call appeared in +.Fx 5.4 . The .Fn pread function appeared in --- /usr/src/lib/libc/sys/write.2 Sat Nov 13 12:55:41 2004 +++ /usr/src/lib/libc/sys/write.2 Tue Apr 26 13:59:59 2005 @@ -49,9 +49,11 @@ .Ft ssize_t .Fn write "int d" "const void *buf" "size_t nbytes" .Ft ssize_t +.Fn pwrite "int d" "const void *buf" "size_t nbytes" "off_t offset" +.Ft ssize_t .Fn writev "int d" "const struct iovec *iov" "int iovcnt" .Ft ssize_t -.Fn pwrite "int d" "const void *buf" "size_t nbytes" "off_t offset" +.Fn pwritev "int d" "const struct iovec *iov" "int iovcnt" "off_t offset" .Sh DESCRIPTION The .Fn write @@ -73,12 +75,16 @@ array: iov[0], iov[1], ..., iov[iovcnt\|-\|1]. The .Fn pwrite -system call -performs the same function, but writes to the specified position in +and +.Fn pwritev +system calls +perform the same functions, but write to the specified position in the file without modifying the file pointer. .Pp For -.Fn writev , +.Fn writev +and +.Fn pwritev, the .Fa iovec structure is defined as: @@ -143,8 +149,9 @@ The .Fn write , .Fn writev , -and .Fn pwrite +and +.Fn pwritev system calls will fail and the file pointer will remain unchanged if: .Bl -tag -width Er @@ -196,6 +203,8 @@ .Pp In addition, .Fn writev +and +.Fn pwritev may return one of the following errors: .Bl -tag -width Er .It Bq Er EDESTADDRREQ @@ -228,7 +237,9 @@ .Pp The .Fn pwrite -system call may also return the following errors: +and +.Fn pwritev +system calls may also return the following errors: .Bl -tag -width Er .It Bq Er EINVAL The @@ -255,6 +266,10 @@ system calls are expected to conform to .St -xpg4.2 . .Sh HISTORY +The +.Fn pwritev +system call appeared in +.Fx 5.4 . The .Fn pwrite function appeared in --- /usr/src/sys/sys/syscallsubr.h Tue Apr 26 13:35:50 2005 +++ /usr/src/sys/sys/syscallsubr.h Tue Apr 26 13:36:56 2005 @@ -91,8 +91,12 @@ int flags, int mode); int kern_pathconf(struct thread *td, char *path, enum uio_seg pathseg, int name); +int kern_preadv(struct thread *td, int fd, struct uio *auio, off_t offset, + int flags); int kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data); +int kern_pwritev(struct thread *td, int fd, struct uio *auio, off_t offset, + int flags); int kern_readlink(struct thread *td, char *path, enum uio_seg pathseg, char *buf, enum uio_seg bufseg, int count); int kern_readv(struct thread *td, int fd, struct uio *auio); --- /usr/src/sys/sys/uio.h Tue Feb 1 00:26:57 2005 +++ /usr/src/sys/sys/uio.h Tue Apr 26 21:16:37 2005 @@ -42,6 +42,11 @@ #define _SSIZE_T_DECLARED #endif =20 +#ifndef _OFF_T_DECLARED +typedef __off_t off_t; +#define _OFF_T_DECLARED +#endif + #if __BSD_VISIBLE enum uio_rw { UIO_READ, UIO_WRITE }; =20 @@ -102,6 +107,8 @@ __BEGIN_DECLS ssize_t readv(int, const struct iovec *, int); ssize_t writev(int, const struct iovec *, int); +ssize_t preadv(int, const struct iovec *, int, off_t); +ssize_t pwritev(int, const struct iovec *, int, off_t); __END_DECLS =20 #endif /* _KERNEL */ --- /usr/src/sys/kern/syscalls.master Tue Apr 26 11:28:55 2005 +++ /usr/src/sys/kern/syscalls.master Tue Apr 26 11:31:56 2005 @@ -411,8 +411,11 @@ 286 UNIMPL nosys 287 UNIMPL nosys 288 UNIMPL nosys -289 UNIMPL nosys -290 UNIMPL nosys +; 289 and 290 from NetBSD (OpenBSD: 267 and 268) +289 MSTD { ssize_t preadv(int fd, struct iovec *iovp, u_int iovcnt,\ + off_t offset); } +290 MSTD { ssize_t pwritev(int fd, struct iovec *iovp, u_int iovcnt,\ + off_t offset); } 291 UNIMPL nosys 292 UNIMPL nosys 293 UNIMPL nosys --- /usr/src/sys/kern/sys_generic.c Tue Apr 26 11:28:55 2005 +++ /usr/src/sys/kern/sys_generic.c Tue Apr 26 13:37:57 2005 @@ -232,9 +232,47 @@ return (error); } =20 +/* + * Scatter positioned read system call. + */ +#ifndef _SYS_SYSPROTO_H_ +struct preadv_args { + int fd; + struct iovec *iovp; + u_int iovcnt; + off_t offset; +}; +#endif +/* + * MPSAFE + */ +int +preadv(struct thread *td, struct preadv_args *uap) +{ + struct uio *auio; + int error; + + error =3D copyinuio(uap->iovp, uap->iovcnt, &auio); + if (error) + return (error); + error =3D kern_preadv(td, uap->fd, auio, uap->offset, FOF_OFFSET); + free(auio, M_IOV); + return (error); +} + int kern_readv(struct thread *td, int fd, struct uio *auio) { + return (kern_preadv(td, fd, auio, (off_t)-1, 0)); +} + +int +kern_preadv(td, fd, auio, offset, flags) + struct thread *td; + struct uio *auio; + int fd, flags; + off_t offset; +{ struct file *fp; long cnt; int error; @@ -252,13 +290,14 @@ return(0); } auio->uio_rw =3D UIO_READ; + auio->uio_offset =3D offset; auio->uio_td =3D td; #ifdef KTRACE if (KTRPOINT(td, KTR_GENIO))=20 ktruio =3D cloneuio(auio); #endif cnt =3D auio->uio_resid; - if ((error =3D fo_read(fp, auio, td->td_ucred, 0, td))) { + if ((error =3D fo_read(fp, auio, td->td_ucred, flags, td))) { if (auio->uio_resid !=3D cnt && (error =3D=3D ERESTART || error =3D=3D EINTR || error =3D=3D EWOULDBLOCK)) error =3D 0; @@ -428,9 +467,47 @@ return (error); } =20 +/* + * Gather positioned write system call + */ +#ifndef _SYS_SYSPROTO_H_ +struct pwritev_args { + int fd; + struct iovec *iovp; + u_int iovcnt; + off_t offset; +}; +#endif +/* + * MPSAFE + */ +int +pwritev(struct thread *td, struct pwritev_args *uap) +{ + struct uio *auio; + int error; + + error =3D copyinuio(uap->iovp, uap->iovcnt, &auio); + if (error) + return (error); + error =3D kern_pwritev(td, uap->fd, auio, uap->offset, FOF_OFFSET); + free(auio, M_IOV); + return (error); +} + int kern_writev(struct thread *td, int fd, struct uio *auio) { + return (kern_pwritev(td, fd, auio, (off_t)-1, 0)); +} + +int +kern_pwritev(td, fd, auio, offset, flags) + struct thread *td; + struct uio *auio; + int fd, flags; + off_t offset; +{ struct file *fp; long cnt; int error; @@ -443,6 +520,7 @@ return (EBADF); auio->uio_rw =3D UIO_WRITE; auio->uio_td =3D td; + auio->uio_offset =3D offset; #ifdef KTRACE if (KTRPOINT(td, KTR_GENIO)) ktruio =3D cloneuio(auio); @@ -450,7 +528,7 @@ cnt =3D auio->uio_resid; if (fp->f_type =3D=3D DTYPE_VNODE) bwillwrite(); - if ((error =3D fo_write(fp, auio, td->td_ucred, 0, td))) { + if ((error =3D fo_write(fp, auio, td->td_ucred, flags, td))) { if (auio->uio_resid !=3D cnt && (error =3D=3D ERESTART || error =3D=3D EINTR || error =3D=3D EWOULDBLOCK)) error =3D 0; --- /usr/src/sys/compat/freebsd32/syscalls.master Tue Apr 26 11:28:51 2005 +++ /usr/src/sys/compat/freebsd32/syscalls.master Tue Apr 26 13:52:46 2005 @@ -406,8 +406,13 @@ 286 UNIMPL nosys 287 UNIMPL nosys 288 UNIMPL nosys -289 UNIMPL nosys -290 UNIMPL nosys +; 289 and 290 from NetBSD (OpenBSD: 267 and 268) +289 STD { ssize_t freebsd32_preadv(int fd, struct iovec32 *iovp,\ + u_int iovcnt, off_t offset); } +; XXX note - bigendian is different +290 STD { ssize_t freebsd32_pwritev(int fd, struct iovec32 *iovp,\ + u_int iovcnt, off_t offset); } +; XXX note - bigendian is different 291 UNIMPL nosys 292 UNIMPL nosys 293 UNIMPL nosys --- /usr/src/sys/compat/freebsd32/freebsd32_misc.c Tue Apr 26 13:38:38 2005 +++ /usr/src/sys/compat/freebsd32/freebsd32_misc.c Tue Apr 26 13:45:17 2005 @@ -694,7 +694,7 @@ error =3D freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio); if (error) return (error); - error =3D kern_readv(td, uap->fd, auio); + error =3D kern_preadv(td, uap->fd, auio, (off_t)-1, 0); free(auio, M_IOV); return (error); } @@ -708,7 +708,35 @@ error =3D freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio); if (error) return (error); - error =3D kern_writev(td, uap->fd, auio); + error =3D kern_pwritev(td, uap->fd, auio, (off_t)-1, 0); + free(auio, M_IOV); + return (error); +} + +int +freebsd32_preadv(struct thread *td, struct freebsd32_preadv_args *uap) +{ + struct uio *auio; + int error; + + error =3D freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio); + if (error) + return (error); + error =3D kern_preadv(td, uap->fd, auio, uap->offset, FOF_OFFSET); + free(auio, M_IOV); + return (error); +} + +int +freebsd32_pwritev(struct thread *td, struct freebsd32_pwritev_args *uap) +{ + struct uio *auio; + int error; + + error =3D freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio); + if (error) + return (error); + error =3D kern_pwritev(td, uap->fd, auio, uap->offset, FOF_OFFSET); free(auio, M_IOV); return (error); } --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="preadv.current.patch" Content-Transfer-Encoding: quoted-printable --- /usr/src/lib/libc/sys/read.2 Tue Apr 26 12:15:30 2005 +++ /usr/src/lib/libc/sys/read.2 Tue Apr 26 14:03:07 2005 @@ -38,7 +38,8 @@ .Sh NAME .Nm read , .Nm readv , -.Nm pread +.Nm pread , +.Nm preadv .Nd read input .Sh LIBRARY .Lb libc @@ -49,9 +50,11 @@ .Ft ssize_t .Fn read "int d" "void *buf" "size_t nbytes" .Ft ssize_t +.Fn pread "int d" "void *buf" "size_t nbytes" "off_t offset" +.Ft ssize_t .Fn readv "int d" "const struct iovec *iov" "int iovcnt" .Ft ssize_t -.Fn pread "int d" "void *buf" "size_t nbytes" "off_t offset" +.Fn preadv "int d" "const struct iovec *iov" "int iovcnt" "off_t offset" .Sh DESCRIPTION The .Fn read @@ -73,12 +76,16 @@ array: iov[0], iov[1], ..., iov[iovcnt\|\-\|1]. The .Fn pread -system call -performs the same function, but reads from the specified position in +and +.Fn preadv +system calls +perform the same functions, but read from the specified position in the file without modifying the file pointer. .Pp For -.Fn readv , +.Fn readv +and +.Fn preadv , the .Fa iovec structure is defined as: @@ -119,8 +126,9 @@ Upon successful completion, .Fn read , .Fn readv , -and .Fn pread +and +.Fn preadv return the number of bytes actually read and placed in the buffer. The system guarantees to read the number of bytes requested if the descriptor references a normal file that has that many bytes left @@ -137,8 +145,9 @@ The .Fn read , .Fn readv , -and .Fn pread +and +.Fn preadv system calls will succeed unless: .Bl -tag -width Er @@ -189,6 +198,8 @@ .Pp In addition, .Fn readv +and +.Fn preadv may return one of the following errors: .Bl -tag -width Er .It Bq Er EINVAL @@ -217,7 +228,9 @@ .Pp The .Fn pread -system call may also return the following errors: +and +.Fn preadv +system calls may also return the following errors: .Bl -tag -width Er .It Bq Er EINVAL The @@ -249,6 +262,10 @@ system calls are expected to conform to .St -xpg4.2 . .Sh HISTORY +The +.Fn preadv +system call appeared in +.Fx 5.4 . The .Fn pread function appeared in --- /usr/src/lib/libc/sys/write.2 Tue Apr 26 12:15:43 2005 +++ /usr/src/lib/libc/sys/write.2 Tue Apr 26 12:30:34 2005 @@ -50,9 +50,11 @@ .Ft ssize_t .Fn write "int d" "const void *buf" "size_t nbytes" .Ft ssize_t +.Fn pwrite "int d" "const void *buf" "size_t nbytes" "off_t offset" +.Ft ssize_t .Fn writev "int d" "const struct iovec *iov" "int iovcnt" .Ft ssize_t -.Fn pwrite "int d" "const void *buf" "size_t nbytes" "off_t offset" +.Fn pwritev "int d" "const struct iovec *iov" "int iovcnt" "off_t offset" .Sh DESCRIPTION The .Fn write @@ -74,12 +76,16 @@ array: iov[0], iov[1], ..., iov[iovcnt\|-\|1]. The .Fn pwrite -system call -performs the same function, but writes to the specified position in +and +.Fn pwritev +system calls +perform the same functions, but write to the specified position in the file without modifying the file pointer. .Pp For -.Fn writev , +.Fn writev +and +.Fn pwritev, the .Fa iovec structure is defined as: @@ -144,8 +150,9 @@ The .Fn write , .Fn writev , -and .Fn pwrite +and +.Fn pwritev system calls will fail and the file pointer will remain unchanged if: .Bl -tag -width Er @@ -202,6 +209,8 @@ .Pp In addition, .Fn writev +and +.Fn pwritev may return one of the following errors: .Bl -tag -width Er .It Bq Er EDESTADDRREQ @@ -234,7 +243,9 @@ .Pp The .Fn pwrite -system call may also return the following errors: +and +.Fn pwritev +system calls may also return the following errors: .Bl -tag -width Er .It Bq Er EINVAL The @@ -261,6 +272,10 @@ system calls are expected to conform to .St -xpg4.2 . .Sh HISTORY +The +.Fn pwritev +system call appeared in +.Fx 5.4 . The .Fn pwrite function appeared in --- /usr/src/sys/sys/syscallsubr.h Tue Apr 26 13:22:49 2005 +++ /usr/src/sys/sys/syscallsubr.h Tue Apr 26 13:22:27 2005 @@ -96,8 +96,12 @@ int flags, int mode); int kern_pathconf(struct thread *td, char *path, enum uio_seg pathseg, int name); +int kern_preadv(struct thread *td, int fd, struct uio *auio, off_t offset, + int flags); int kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data); +int kern_pwritev(struct thread *td, int fd, struct uio *auio, off_t offset, + int flags); int kern_readlink(struct thread *td, char *path, enum uio_seg pathseg, char *buf, enum uio_seg bufseg, int count); int kern_readv(struct thread *td, int fd, struct uio *auio); --- /usr/src/sys/sys/uio.h Fri Jan 7 03:29:24 2005 +++ /usr/src/sys/sys/uio.h Tue Apr 26 21:19:52 2005 @@ -42,6 +42,11 @@ #define _SSIZE_T_DECLARED #endif =20 +#ifndef _OFF_T_DECLARED +typedef __off_t off_t; +#define _OFF_T_DECLARED +#endif + #if __BSD_VISIBLE enum uio_rw { UIO_READ, UIO_WRITE }; =20 @@ -101,6 +106,8 @@ __BEGIN_DECLS ssize_t readv(int, const struct iovec *, int); ssize_t writev(int, const struct iovec *, int); +ssize_t preadv(int, const struct iovec *, int, off_t); +ssize_t pwritev(int, const struct iovec *, int, off_t); __END_DECLS =20 #endif /* _KERNEL */ --- /usr/src/sys/kern/syscalls.master Sat Apr 23 04:36:07 2005 +++ /usr/src/sys/kern/syscalls.master Tue Apr 26 12:14:46 2005 @@ -411,8 +411,11 @@ 286 UNIMPL nosys 287 UNIMPL nosys 288 UNIMPL nosys -289 UNIMPL nosys -290 UNIMPL nosys +; 289 and 290 from NetBSD (OpenBSD: 267 and 268) +289 MSTD { ssize_t preadv(int fd, struct iovec *iovp, u_int iovcnt,\ + off_t offset); } +290 MSTD { ssize_t pwritev(int fd, struct iovec *iovp, u_int iovcnt,\ + off_t offset); } 291 UNIMPL nosys 292 UNIMPL nosys 293 UNIMPL nosys --- /usr/src/sys/kern/sys_generic.c Fri Apr 1 00:51:18 2005 +++ /usr/src/sys/kern/sys_generic.c Tue Apr 26 13:21:15 2005 @@ -233,9 +233,47 @@ return (error); } =20 +/* + * Scatter positioned read system call. + */ +#ifndef _SYS_SYSPROTO_H_ +struct preadv_args { + int fd; + struct iovec *iovp; + u_int iovcnt; + off_t offset; +}; +#endif +/* + * MPSAFE + */ +int +preadv(struct thread *td, struct preadv_args *uap) +{ + struct uio *auio; + int error; + + error =3D copyinuio(uap->iovp, uap->iovcnt, &auio); + if (error) + return (error); + error =3D kern_preadv(td, uap->fd, auio, uap->offset, FOF_OFFSET); + free(auio, M_IOV); + return (error); +} + int kern_readv(struct thread *td, int fd, struct uio *auio) { + return (kern_preadv(td, fd, auio, (off_t)-1, 0)); +} + +int +kern_preadv(td, fd, auio, offset, flags) + struct thread *td; + struct uio *auio; + int fd, flags; + off_t offset; +{ struct file *fp; long cnt; int error; @@ -253,13 +291,14 @@ return(0); } auio->uio_rw =3D UIO_READ; + auio->uio_offset =3D offset; auio->uio_td =3D td; #ifdef KTRACE if (KTRPOINT(td, KTR_GENIO))=20 ktruio =3D cloneuio(auio); #endif cnt =3D auio->uio_resid; - if ((error =3D fo_read(fp, auio, td->td_ucred, 0, td))) { + if ((error =3D fo_read(fp, auio, td->td_ucred, flags, td))) { if (auio->uio_resid !=3D cnt && (error =3D=3D ERESTART || error =3D=3D EINTR || error =3D=3D EWOULDBLOCK)) error =3D 0; @@ -430,9 +469,47 @@ return (error); } =20 +/* + * Gather positioned write system call + */ +#ifndef _SYS_SYSPROTO_H_ +struct pwritev_args { + int fd; + struct iovec *iovp; + u_int iovcnt; + off_t offset; +}; +#endif +/* + * MPSAFE + */ +int +pwritev(struct thread *td, struct pwritev_args *uap) +{ + struct uio *auio; + int error; + + error =3D copyinuio(uap->iovp, uap->iovcnt, &auio); + if (error) + return (error); + error =3D kern_pwritev(td, uap->fd, auio, uap->offset, FOF_OFFSET); + free(auio, M_IOV); + return (error); +} + int kern_writev(struct thread *td, int fd, struct uio *auio) { + return (kern_pwritev(td, fd, auio, (off_t)-1, 0)); +} + +int +kern_pwritev(td, fd, auio, offset, flags) + struct thread *td; + struct uio *auio; + int fd, flags; + off_t offset; +{ struct file *fp; long cnt; int error; @@ -445,6 +522,7 @@ return (EBADF); auio->uio_rw =3D UIO_WRITE; auio->uio_td =3D td; + auio->uio_offset =3D offset; #ifdef KTRACE if (KTRPOINT(td, KTR_GENIO)) ktruio =3D cloneuio(auio); @@ -452,7 +530,7 @@ cnt =3D auio->uio_resid; if (fp->f_type =3D=3D DTYPE_VNODE) bwillwrite(); - if ((error =3D fo_write(fp, auio, td->td_ucred, 0, td))) { + if ((error =3D fo_write(fp, auio, td->td_ucred, flags, td))) { if (auio->uio_resid !=3D cnt && (error =3D=3D ERESTART || error =3D=3D EINTR || error =3D=3D EWOULDBLOCK)) error =3D 0; --- /usr/src/sys/compat/freebsd32/syscalls.master Tue Mar 1 07:32:53 2005 +++ /usr/src/sys/compat/freebsd32/syscalls.master Tue Apr 26 13:52:24 2005 @@ -406,8 +406,13 @@ 286 UNIMPL nosys 287 UNIMPL nosys 288 UNIMPL nosys -289 UNIMPL nosys -290 UNIMPL nosys +; 289 and 290 from NetBSD (OpenBSD: 267 and 268) +289 STD { ssize_t freebsd32_preadv(int fd, struct iovec32 *iovp,\ + u_int iovcnt, off_t offset); } +; XXX note - bigendian is different +290 STD { ssize_t freebsd32_pwritev(int fd, struct iovec32 *iovp,\ + u_int iovcnt, off_t offset); } +; XXX note - bigendian is different 291 UNIMPL nosys 292 UNIMPL nosys 293 UNIMPL nosys --- /usr/src/sys/compat/freebsd32/freebsd32_misc.c Tue Apr 26 13:14:09 2005 +++ /usr/src/sys/compat/freebsd32/freebsd32_misc.c Tue Apr 26 13:32:54 2005 @@ -733,7 +733,7 @@ error =3D freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio); if (error) return (error); - error =3D kern_readv(td, uap->fd, auio); + error =3D kern_preadv(td, uap->fd, auio, (off_t)-1, 0); free(auio, M_IOV); return (error); } @@ -747,7 +747,35 @@ error =3D freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio); if (error) return (error); - error =3D kern_writev(td, uap->fd, auio); + error =3D kern_pwritev(td, uap->fd, auio, (off_t)-1, 0); + free(auio, M_IOV); + return (error); +} + +int +freebsd32_preadv(struct thread *td, struct freebsd32_preadv_args *uap) +{ + struct uio *auio; + int error; + + error =3D freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio); + if (error) + return (error); + error =3D kern_preadv(td, uap->fd, auio, uap->offset, FOF_OFFSET); + free(auio, M_IOV); + return (error); +} + +int +freebsd32_pwritev(struct thread *td, struct freebsd32_pwritev_args *uap) +{ + struct uio *auio; + int error; + + error =3D freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio); + if (error) + return (error); + error =3D kern_pwritev(td, uap->fd, auio, uap->offset, FOF_OFFSET); free(auio, M_IOV); return (error); } --OXfL5xGRrasGEqWY-- --E39vaYmALEf/7YXx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCbpeAezjnobFOgrERAoO6AJ9mgp/pH3KtwWYtqL6bAfwmOkT1MQCfTW7/ xuOCYUgzHGl/T4F6AMYtn/c= =kuqO -----END PGP SIGNATURE----- --E39vaYmALEf/7YXx-- From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 26 19:44:43 2005 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 5B5A116A4CE for ; Tue, 26 Apr 2005 19:44:43 +0000 (GMT) Received: from mail26.sea5.speakeasy.net (mail26.sea5.speakeasy.net [69.17.117.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 219D543D5E for ; Tue, 26 Apr 2005 19:44:43 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 4247 invoked from network); 26 Apr 2005 19:44:42 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 26 Apr 2005 19:44:42 -0000 Received: from roboboy.corp.weather.com (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j3QJiapS034786; Tue, 26 Apr 2005 15:44:36 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Tue, 26 Apr 2005 14:56:51 -0400 User-Agent: KMail/1.8 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504261456.52070.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: John Giacomoni Subject: Re: what goes wrong with barrier free atomic_load/store? 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, 26 Apr 2005 19:44:43 -0000 On Wednesday 20 April 2005 04:39 pm, John Giacomoni wrote: > in reading /src/sys/i386/include/atomic.h > > I found this comment and I'm having trouble understanding what the > problem being > referred to below is. > > /* > * We assume that a = b will do atomic loads and stores. However, on a > * PentiumPro or higher, reads may pass writes, so for that case we have > * to use a serializing instruction (i.e. with LOCK) to do the load in > * SMP kernels. For UP kernels, however, the cache of the single > processor > * is always consistent, so we don't need any memory barriers. > */ > > can someone give me an example of a situation where one needs to use > memory barriers to ensure "correctness" when doing writes as above? > > the examples I can come up with seem to boil down to requiring locks > or accepting stale values, given that without a synchronization > mechanism > one shouldn't expect two processes to act in any specific order. > > In my case I can accept reading a stale value so I'm not understanding > the > purpose of only having atomic_load/atomic_store wrappers with memory > barriers. > > I saw a brief discussion where someone proposed barrier free load/store > but > don't think I saw any resolution. > > thanks, > > John G We use atomic_store_rel() as part of implementing mutexes. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 26 19:44:48 2005 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 6DD1A16A4CE for ; Tue, 26 Apr 2005 19:44:48 +0000 (GMT) Received: from mail23.sea5.speakeasy.net (mail23.sea5.speakeasy.net [69.17.117.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3900F43D41 for ; Tue, 26 Apr 2005 19:44:48 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 17116 invoked from network); 26 Apr 2005 19:44:47 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 26 Apr 2005 19:44:47 -0000 Received: from roboboy.corp.weather.com (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j3QJiapT034786; Tue, 26 Apr 2005 15:44:41 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Tue, 26 Apr 2005 15:07:04 -0400 User-Agent: KMail/1.8 References: <20050425101008.GA57542@stack.nl> <20050425165041.GA71899@stack.nl> <20050426133115.GA52753@stack.nl> In-Reply-To: <20050426133115.GA52753@stack.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504261507.05350.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: Marc Olzheim Subject: Re: preadv() / pwritev() 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, 26 Apr 2005 19:44:48 -0000 On Tuesday 26 April 2005 09:31 am, Marc Olzheim wrote: > On Mon, Apr 25, 2005 at 06:50:41PM +0200, Marc Olzheim wrote: > > On Mon, Apr 25, 2005 at 05:23:14PM +0200, Marc Olzheim wrote: > > > On Mon, Apr 25, 2005 at 02:50:45PM +0100, Bruce M Simpson wrote: > > > > I don't do enough thread-based programming at the moment to make this > > > > worth my while, though, but I'm happy to look at a patch. > > > > > > Ok, something like this ? > > > I'm a bit puzzled by the coding style in the file, but I think I got > > > the spirit of it. ;-) > > > > More like this then... > > Ok, I cleaned up the patch, got the freebsd32-compat working and filed a > PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/80362 Looks fine to me! -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 26 23:33:10 2005 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 98CE616A4CE; Tue, 26 Apr 2005 23:33:10 +0000 (GMT) Received: from april.chuckr.org (april.chuckr.org [66.92.151.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD3E243D68; Tue, 26 Apr 2005 23:33:09 +0000 (GMT) (envelope-from chuckr@chuckr.org) Received: from [66.92.151.195] (july.chuckr.org [66.92.151.195]) by april.chuckr.org (Postfix) with ESMTP id ACA0B1152C; Tue, 26 Apr 2005 19:28:29 -0400 (EDT) Message-ID: <426ECF7C.8060003@chuckr.org> Date: Tue, 26 Apr 2005 23:32:12 +0000 From: Chuck Robey User-Agent: Mozilla Thunderbird 1.0 (X11/20050316) X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Gilbert References: <426AC21B.2080205@chuckr.org> <426AE866.7050008@chuckr.org> <86wtqs9yiw.fsf@xps.des.no> <426BD1F6.7050201@freebsd.org> <86r7h08464.fsf@xps.des.no> <426BDE1F.3020004@kientzle.com> <17005.5342.260402.241779@canoe.dclg.ca> In-Reply-To: <17005.5342.260402.241779@canoe.dclg.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Tim Kientzle cc: freebsd-hackers@freebsd.org cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgr?= =?ISO-8859-1?Q?av?= Subject: Re: region code in cdrecord 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, 26 Apr 2005 23:33:10 -0000 David Gilbert wrote: >>>>>>"Tim" == Tim Kientzle writes: > > > Tim> I wouldn't "rather", but I think it might be simpler. I also > Tim> seem to recall hearing about discs whose region-coding was done > Tim> in such a way that they would not play on unlocked players. > > Well (to put that to rest), there are two types of region coding in > use on DVDs. The first is the one we're talking about here ... which > is a code in the files that tells the DVD player which region the disk > is. Early "unlocked" players were simply patched to accept any > region. > > The second type is code in the menu system that queries the region > code and then acts on it. Early players returned '0' for this > function ... and the disks were coded to not play. > > The fix for this was players that you could change the region on > ... and "unlocked" players of this type allow you to set the region an > unlimited number of times. "locked" players usually let you set the > region some small number of times. > It turns out I was wrong ... even though the k3b stuff I read said it was using cdrdao, a bit more investigation proved it was using mkisofs and growisofs instead. The both have large man pages, but nothing in them regarding the setting of region codes. I really don't want to have to replace my existing dvd players, that is dumb, then I have a nice programmable system here. > Dave. > From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 02:44:40 2005 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 15FB316A4CE; Wed, 27 Apr 2005 02:44:40 +0000 (GMT) Received: from f40.mail.ru (f40.mail.ru [194.67.57.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F87143D41; Wed, 27 Apr 2005 02:44:39 +0000 (GMT) (envelope-from shmukler@mail.ru) Received: from mail by f40.mail.ru with local id 1DQcXV-0005rT-00; Wed, 27 Apr 2005 06:44:37 +0400 Received: from [24.184.137.0] by win.mail.ru with HTTP; Wed, 27 Apr 2005 06:44:37 +0400 From: Igor Shmukler To: hackers@freebsd.org Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [24.184.137.0] Date: Wed, 27 Apr 2005 06:44:37 +0400 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: cc: rwatson@freebsd.org Subject: vn_fullpath() and devices 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: Wed, 27 Apr 2005 02:44:40 -0000 hello, i reported before that vn_fullpath() does not currently deal with VCHR type of vnodes. There is an easy solution for this: if (vnp->v_type == VCHR) { fullpath = vnp->v_rdev->si_name; VOP_UNLOCK(vnp, 0, td); len = sizeof("/dev/") + strlen(fullpath); freepath = vdt_malloc(len); sprintf(freepath, "/dev/%s", fullpath); fullpath = freepath; } else { it this works for everyone, i could make and test a patch against whatever branch is appropriate. thank you, igor From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 04:46:50 2005 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 5582116A4CE; Wed, 27 Apr 2005 04:46:50 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D32043D66; Wed, 27 Apr 2005 04:46:49 +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 j3R4kE1W019023; Wed, 27 Apr 2005 14:16:14 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Wed, 27 Apr 2005 14:15:53 +0930 User-Agent: KMail/1.8 References: <426AC21B.2080205@chuckr.org> <17005.5342.260402.241779@canoe.dclg.ca> <426ECF7C.8060003@chuckr.org> In-Reply-To: <426ECF7C.8060003@chuckr.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2401988.S0JQ9sPQBf"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200504271416.05216.doconnor@gsoft.com.au> X-Spam-Score: -2.5 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: Chuck Robey cc: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= cc: Tim Kientzle cc: David Gilbert Subject: Re: region code in cdrecord 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, 27 Apr 2005 04:46:50 -0000 --nextPart2401988.S0JQ9sPQBf Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 27 Apr 2005 09:02, Chuck Robey wrote: > and growisofs instead. The both have large man pages, but nothing in > them regarding the setting of region codes. Not at all suprising given that the ISO metdata (ie what mkisofs makes)=20 doesn't contain the region information.. =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 --nextPart2401988.S0JQ9sPQBf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCbxkM5ZPcIHs/zowRAiOIAJ9SYbyWvAmG1zyie9U9MZjKuiElqgCgjEbZ 2GMajmTLAiE5hjq/LVp93M4= =6RL5 -----END PGP SIGNATURE----- --nextPart2401988.S0JQ9sPQBf-- From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 04:53:18 2005 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 9E39916A4CE; Wed, 27 Apr 2005 04:53:18 +0000 (GMT) Received: from april.chuckr.org (april.chuckr.org [66.92.151.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id D16F343D48; Wed, 27 Apr 2005 04:53:17 +0000 (GMT) (envelope-from chuckr@chuckr.org) Received: from [66.92.151.195] (july.chuckr.org [66.92.151.195]) by april.chuckr.org (Postfix) with ESMTP id 6411611777; Wed, 27 Apr 2005 00:48:32 -0400 (EDT) Message-ID: <426F1A7C.1040500@chuckr.org> Date: Wed, 27 Apr 2005 04:52:12 +0000 From: Chuck Robey User-Agent: Mozilla Thunderbird 1.0 (X11/20050316) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel O'Connor References: <426AC21B.2080205@chuckr.org> <17005.5342.260402.241779@canoe.dclg.ca> <426ECF7C.8060003@chuckr.org> <200504271416.05216.doconnor@gsoft.com.au> In-Reply-To: <200504271416.05216.doconnor@gsoft.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: Tim Kientzle cc: David Gilbert cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= Subject: Re: region code in cdrecord 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, 27 Apr 2005 04:53:18 -0000 Daniel O'Connor wrote: > On Wed, 27 Apr 2005 09:02, Chuck Robey wrote: > >>and growisofs instead. The both have large man pages, but nothing in >>them regarding the setting of region codes. > > > Not at all suprising given that the ISO metdata (ie what mkisofs makes) > doesn't contain the region information.. Actually, I was surprised to find that mosrt of it is done in growisofs, which was just sitting there open in the editor when it came time to code the function, apparently. It doesn't make all that mush sense, but growisofs is what k3b uses to copy dvd's. That's all that'd doing the reading. of the vob'ds. bups, and ifo's. I have begun looing about for info on the file format of those things, that seems to be where the action is. Even though it IS writen by growisofs onto the dvd. > From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 09:05:55 2005 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 C62D016A4CE for ; Wed, 27 Apr 2005 09:05:55 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71EAB43D5D for ; Wed, 27 Apr 2005 09:05:55 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id 7EF691F0A5 for ; Wed, 27 Apr 2005 11:05:54 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id 6FF136149; Wed, 27 Apr 2005 11:05:54 +0200 (CEST) Date: Wed, 27 Apr 2005 11:05:54 +0200 From: Marc Olzheim To: freebsd-hackers@freebsd.org Message-ID: <20050427090554.GA87913@stack.nl> References: <20050425101008.GA57542@stack.nl> <20050425135044.GD769@empiric.icir.org> <20050425152314.GB58044@stack.nl> <20050425165041.GA71899@stack.nl> <20050426133115.GA52753@stack.nl> <20050426193320.GA72028@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+g7M9IMkV8truYOl" Content-Disposition: inline In-Reply-To: <20050426193320.GA72028@stack.nl> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i Subject: Re: preadv() / pwritev() 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, 27 Apr 2005 09:05:55 -0000 --+g7M9IMkV8truYOl Content-Type: multipart/mixed; boundary="pf9I7BMVVzbSWLtt" Content-Disposition: inline --pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline And a man page link fix to top it off... Marc --pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="links.patch" --- src/lib/libc/sys/Makefile.inc Wed Apr 7 11:07:47 2004 +++ src/lib/libc/sys/Makefile.inc Wed Apr 27 11:02:02 2005 @@ -127,7 +127,7 @@ MLINKS+=modnext.2 modfnext.2 MLINKS+=mount.2 nmount.2 mount.2 unmount.2 MLINKS+=pathconf.2 fpathconf.2 -MLINKS+=read.2 pread.2 read.2 readv.2 +MLINKS+=read.2 pread.2 read.2 readv.2 preadv.2 MLINKS+=recv.2 recvfrom.2 recv.2 recvmsg.2 MLINKS+=send.2 sendmsg.2 send.2 sendto.2 MLINKS+=setpgid.2 setpgrp.2 @@ -141,7 +141,7 @@ MLINKS+=truncate.2 ftruncate.2 MLINKS+=utimes.2 futimes.2 utimes.2 lutimes.2 MLINKS+=wait.2 wait3.2 wait.2 wait4.2 wait.2 waitpid.2 -MLINKS+=write.2 pwrite.2 write.2 writev.2 +MLINKS+=write.2 pwrite.2 write.2 writev.2 pwritev.2 .if !defined(NO_P1003_1B) MLINKS+=sched_get_priority_max.2 sched_get_priority_min.2 \ sched_get_priority_max.2 sched_rr_get_interval.2 --pf9I7BMVVzbSWLtt-- --+g7M9IMkV8truYOl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCb1XyezjnobFOgrERAjhgAJ9mGU16d5WTctKQtJ3lFKvEz3s68gCgk39l 3mxTVVknxEDsgU8mQyYinhk= =ktDT -----END PGP SIGNATURE----- --+g7M9IMkV8truYOl-- From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 11:21:27 2005 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 7AA2616A4CE for ; Wed, 27 Apr 2005 11:21:27 +0000 (GMT) Received: from smtpauth09.mail.atl.earthlink.net (smtpauth09.mail.atl.earthlink.net [209.86.89.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08E7143D58 for ; Wed, 27 Apr 2005 11:21:27 +0000 (GMT) (envelope-from berudy@earthlink.net) Received: from [167.112.160.33] (helo=earthlink.net) by smtpauth09.mail.atl.earthlink.net with asmtp (TLSv1:RC4-MD5:128) (Exim 4.34) id 1DQkbe-0004eN-Gy for freebsd-hackers@freebsd.org; Wed, 27 Apr 2005 07:21:26 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=test1; d=earthlink.net; h=Message-ID:Date:From:User-Agent:X-Accept-Language:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=hpUpyyARRCa2oHDQ/6QdgKvXBDtyGhLhKtK7lDQa5/u0mzi9QULJWsd9W++njyU0; Message-ID: <426F75B5.2070502@earthlink.net> Date: Wed, 27 Apr 2005 07:21:25 -0400 From: Brian Rudy User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: 8f3ad7bb8a634b4e94f5150ab1c16ac06b48d29827cfba20161875734bca548e688f7fb733c7f3e7350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 167.112.160.33 Subject: Problems with Display 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, 27 Apr 2005 11:21:27 -0000 Good day; I am having some difficulty with the installation of version 5.3 on a Ultra 60 system. It seems like everything goes fine but, the console display goes south. Everything else seems to be working ok but, the console isn't. Remote access to this box is working fine. Here's the last group of lines from dmesg: Apr 19 06:02:33 sun syslogd: kernel boot file is /boot/kernel/kernel ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib Starting local daemons: . Updating motd . Starting sshd. Initial sparc64 initialization: . Additional ABI support: . Starting cron. Local package initialization: NTP . Additional TCP options: . Starting inetd. Starting background file system checks in 60 seconds. Tue Apr 19 06:02:37 EDT 2005 Apr 19 06:02:37 sun getty[423]: open /dev/screen: No such file or directory There is no /dev/screen file but, there is a /dev/screen:r1280x1024x60 file I tried making a link to this file in hopes it would fix it but, after a reboot, my link was gone. Can someone point me in the right direction? Any help would be greatly appreciated. Thank you -- From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 08:41:13 2005 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 5636D16A4CE for ; Wed, 27 Apr 2005 08:41:13 +0000 (GMT) Received: from mail.schatti.ch (zux183-070.adsl.green.ch [80.254.183.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3ED2243D31 for ; Wed, 27 Apr 2005 08:41:12 +0000 (GMT) (envelope-from listman@schatti.ch) Received: from localhost (localhost [127.0.0.1]) (uid 2050) by mail.schatti.ch with local; Wed, 27 Apr 2005 08:51:20 +0000 From: "mail.schatti.ch" To: freebsd-hackers@freebsd.org Date: Wed, 27 Apr 2005 08:51:20 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: X-Mailman-Approved-At: Wed, 27 Apr 2005 12:23:06 +0000 Subject: viapm / vt8235 ? 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, 27 Apr 2005 08:41:13 -0000 Hi all! I've got a Via Epia PD6000E, which has a VT8235 onboard - I've seen a kernel patch for viapm.c at http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/62438 It helped as the device is found - BUT after a few seconds, I get a panic: viapropm: SMBus I/O Base at 0x6000 ... Mounting root from ufs:/dev/ad0s1a kernel trap 12 with interrupts disabled Page fault virtual addr = 0x6c instruction ptr = 0x8:0xc04c4d11 current process 58 (sysctl) Well, the DDB says: db>trace turnstile_setowner turnstile_wait _mtx_load_step sysctl_kern_ttys sysctl_root userland_sysctl _sysctl syscall(2f,2f,2f,2f,2,bfbfe4ac) Xint0x80:syscakk --- syscall (202, , ) eip=0x280c2757 if started up without viapm.ko loaded, pciconf -l tells: isab0@pci0:17:0 class=0x060100 card=0xaa011106 chip=31771106 Has anyone seen similiar problems ? And additionally already solved ? I want to use this bus to access external devices via i2c; I think bitbanger via i2cbb / ppbus is not an option; as I need the printer port already George From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 15:27:59 2005 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 A1E0C16A4EA for ; Wed, 27 Apr 2005 15:27:59 +0000 (GMT) Received: from mail.bitdefender.com (ns.bitdefender.com [217.156.83.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id D856243D4C for ; Wed, 27 Apr 2005 15:27:57 +0000 (GMT) (envelope-from apircalabu@bitdefender.com) Received: (qmail 29912 invoked by uid 1010); 27 Apr 2005 18:21:55 +0300 Received: from apircalabu.dsd.ro (10.10.15.22) by mail.bitdefender.com with AES256-SHA encrypted SMTP; 27 Apr 2005 18:21:54 +0300 Date: Wed, 27 Apr 2005 18:28:50 +0300 From: Adi Pircalabu To: freebsd-hackers@freebsd.org Message-ID: <20050427182850.3056f9f6@apircalabu.dsd.ro> Organization: BitDefender X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BitDefender-SpamStamp: 1.1.3 044000040111 X-BitDefender-Scanner: Clean, Agent: BitDefender Qmail 1.6.1 on mail.bitdefender.com X-BitDefender-Spam: No (0) cc: freebsd-bugs@freebsd.org cc: freebsd-stable@freebsd.org Subject: Multithreaded program crashes on SMP (HT enabled) machine 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, 27 Apr 2005 15:28:00 -0000 Hello, I have a multithreaded application ported on FreeBSD 5.3 which crashes in a minute or less if hyperthreading in enabled. Without HT there is no problem. How and where should I start to investigate the problem? The backtrace: (gdb) bt #0 0x2819631b in pthread_testcancel () from /usr/lib/libpthread.so.1 #1 0x2818e902 in pthread_mutexattr_init () from /usr/lib/libpthread.so.1 #2 0x00000000 in ?? () Thank you -- Adrian Pircalabu Public KeyID = 0x04329F5E -- This message was scanned for spam and viruses by BitDefender. For more information please visit http://linux.bitdefender.com/ From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 19:11:55 2005 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 D32EA16A4CE for ; Wed, 27 Apr 2005 19:11:55 +0000 (GMT) Received: from dfw-smtpout4.email.verio.net (dfw-smtpout4.email.verio.net [129.250.36.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9733E43D5E for ; Wed, 27 Apr 2005 19:11:55 +0000 (GMT) (envelope-from fclift@verio.net) Received: from [129.250.36.63] (helo=dfw-mmp3.email.verio.net) by dfw-smtpout4.email.verio.net with esmtp id 1DQrwx-0001Co-8b for freebsd-hackers@freebsd.org; Wed, 27 Apr 2005 19:11:55 +0000 Received: from [198.65.168.24] (helo=[10.20.12.69]) by dfw-mmp3.email.verio.net with esmtp id 1DQrwx-0005ZD-3Y for freebsd-hackers@freebsd.org; Wed, 27 Apr 2005 19:11:55 +0000 Message-ID: <426FE38D.2070300@verio.net> Date: Wed, 27 Apr 2005 13:10:05 -0600 From: Fred Clift User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050323 Thunderbird/1.0 Mnenhy/0.7 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: EFI network boot loader for ia32? 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, 27 Apr 2005 19:11:55 -0000 This might better belong on -questions, this isn't the most technical question, but it is obscure... I've recently been loaned an eval server indirectly from intel. It is an SR-2400. We've been using SR-2300s for a while now and have been doing custom network installs via PXE. I note that these new servers have ia32 EFI support and that the only net-booting they support is via EFI. I can DHCP boot the box via the EFI boot manager menu that comes up, I get an address and it tftp's a file from the right server but of course the pxeboot bootfile doesn't work. I downloaded the indel EFI SDK and it has some sample EFI binaries (a test binary, one that draws some cute little boxes on the screen etc) and I can boot and run those just fine... I understand that EFI netbooting works fine on (was designed to work on?) ia64 boxes - is there support for netbooting via EFI on ia32? I see /usr/src/sys/boot/EFI - can I somehow build a loader.efi that would work via netboot for ia32? Thanks in advance for any help... Fred Clift From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 19:18:55 2005 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 A351B16A4CE for ; Wed, 27 Apr 2005 19:18:55 +0000 (GMT) Received: from april.chuckr.org (april.chuckr.org [66.92.151.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E62443D49 for ; Wed, 27 Apr 2005 19:18:55 +0000 (GMT) (envelope-from chuckr@chuckr.org) Received: from [66.92.151.195] (july.chuckr.org [66.92.151.195]) by april.chuckr.org (Postfix) with ESMTP id BF67A11F46; Wed, 27 Apr 2005 15:14:01 -0400 (EDT) Message-ID: <426FE552.9020805@chuckr.org> Date: Wed, 27 Apr 2005 19:17:38 +0000 From: Chuck Robey User-Agent: Mozilla Thunderbird 1.0 (X11/20050316) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brian Rudy References: <426F75B5.2070502@earthlink.net> In-Reply-To: <426F75B5.2070502@earthlink.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Problems with Display 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, 27 Apr 2005 19:18:55 -0000 Brian Rudy wrote: > Good day; > I am having some difficulty with the installation of version 5.3 on a > Ultra 60 system. > I am currenlty installing an Ultra-60 system, so I have a keen interest in what you say, but your complaint is (at least to me) totally non-descriptive. Can you do a better job of explaining just exactly what's wrong? > It seems like everything goes fine but, the console display goes south. > Everything else seems to be working ok but, the console isn't. Remote > access to this box is working fine. > > Here's the last group of lines from dmesg: > > Apr 19 06:02:33 sun syslogd: kernel boot file is /boot/kernel/kernel > ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/X11R6/lib > /usr/local/lib > Starting local daemons: > . > Updating motd > . > Starting sshd. > Initial sparc64 initialization: > . > Additional ABI support: > . > Starting cron. > Local package initialization: > NTP > . > Additional TCP options: > . > Starting inetd. > Starting background file system checks in 60 seconds. > > Tue Apr 19 06:02:37 EDT 2005 > Apr 19 06:02:37 sun getty[423]: open /dev/screen: No such file or directory > > > There is no /dev/screen file but, there is a /dev/screen:r1280x1024x60 file > > I tried making a link to this file in hopes it would fix it but, after a > reboot, my link was gone. > > Can someone point me in the right direction? > > Any help would be greatly appreciated. > Thank you > From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 20:47:42 2005 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 BB3E216A569 for ; Wed, 27 Apr 2005 20:47:41 +0000 (GMT) Received: from mxsf19.cluster1.charter.net (mxsf19.cluster1.charter.net [209.225.28.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CEB943D48 for ; Wed, 27 Apr 2005 20:47:41 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip14.cluster1.charter.net (mxip14a.cluster1.charter.net [209.225.28.144])j3RKldTn010589 for ; Wed, 27 Apr 2005 16:47:40 -0400 Received: from 24-247-253-134.dhcp.aldl.mi.charter.com (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip14.cluster1.charter.net with ESMTP; 27 Apr 2005 16:47:39 -0400 X-Ironport-AV: i="3.92,135,1112587200"; d="scan'208"; a="250696623:sNHT13373860" Date: Wed, 27 Apr 2005 20:47:33 +0000 (UTC) From: c0ldbyte To: freebsd-hackers@freebsd.org In-Reply-To: <426F75B5.2070502@earthlink.net> Message-ID: <20050427204317.T89426@eleanor.us1.wmi.uvac.net> References: <426F75B5.2070502@earthlink.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: Problems with Display 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, 27 Apr 2005 20:47:42 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 27 Apr 2005, Brian Rudy wrote: > Good day; > I am having some difficulty with the installation of version 5.3 on a Ultra > 60 system. > > It seems like everything goes fine but, the console display goes south. > Everything else seems to be working ok but, the console isn't. Remote access > to this box is working fine. > > Here's the last group of lines from dmesg: > > Apr 19 06:02:33 sun syslogd: kernel boot file is /boot/kernel/kernel > ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/X11R6/lib > /usr/local/lib > Starting local daemons: > .. > Updating motd > .. > Starting sshd. > Initial sparc64 initialization: > .. > Additional ABI support: > .. > Starting cron. > Local package initialization: > NTP > .. > Additional TCP options: > .. > Starting inetd. > Starting background file system checks in 60 seconds. > > Tue Apr 19 06:02:37 EDT 2005 > Apr 19 06:02:37 sun getty[423]: open /dev/screen: No such file or directory > > > There is no /dev/screen file but, there is a /dev/screen:r1280x1024x60 file > > I tried making a link to this file in hopes it would fix it but, after a > reboot, my link was gone. > > Can someone point me in the right direction? > > Any help would be greatly appreciated. > Thank you > What your going to be looking into is devd/devfs somewhere in "/etc/*" in order to make sure the correct file is loaded youll have to change some configurations with that daemon so it creates the device you need upon bootup. Now if I had a 5.4 system running I would beable to look into it further and supply you with more information. But thats a good start at least somewhere so your not left hanging. Good luck. - -- Msg-Id: 20050427 20:43 UTC ( When in doubt, use brute force. -- Ken Thompson 1998 ) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF7DF979F Comment: Fingerprint = D1DC 0AA4 1C4E EAD4 24EB 7E77 B261 50BA F7DF 979F iD8DBQFCb/ppsmFQuvffl58RAl01AJ9eejenQrkwraTp6+gteKStgXEXdgCZAZbN E/Yek/MU0J2xbPC1WbpJh2U= =WTo0 -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 20:56:00 2005 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 53C5216A4CE for ; Wed, 27 Apr 2005 20:56:00 +0000 (GMT) Received: from mx1.z-axis.com (mx1.z-axis.com [66.77.193.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id D32E743D49 for ; Wed, 27 Apr 2005 20:55:57 +0000 (GMT) (envelope-from justin@z-axis.com) Received: (qmail 96947 invoked by uid 89); 27 Apr 2005 20:55:57 -0000 Received: from unknown (HELO ?127.0.0.1?) (justin@10.140.4.32) by mx1.z-axis.com with SMTP; 27 Apr 2005 20:55:57 -0000 Message-ID: <426FFC58.6010307@z-axis.com> Date: Wed, 27 Apr 2005 13:55:52 -0700 From: Justin Bennett Organization: Z-Axis, Ltd. User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Hackers X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Two password prompts with 'su' 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, 27 Apr 2005 20:56:00 -0000 All, Recently my machine (FreeBSD) started showing 2 password prompts when using su. The first password seems to suffice, then hitting 'enter' on the second one lets me in. Any ideas what is going on? While I was writing this, it occurred to me that it may have something to do with Winbindd and nsswitch.conf.(?) ### Contents of nsswitch.conf ### passwd: files winbind group: files winbind ### End ### Thanks, Justin From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 20:59:02 2005 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 0D1C516A4CF for ; Wed, 27 Apr 2005 20:59:02 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B66C43D49 for ; Wed, 27 Apr 2005 20:59:01 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 4C965514C9; Wed, 27 Apr 2005 13:59:00 -0700 (PDT) Date: Wed, 27 Apr 2005 13:59:00 -0700 From: Kris Kennaway To: Justin Bennett Message-ID: <20050427205900.GA53141@xor.obsecurity.org> References: <426FFC58.6010307@z-axis.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline In-Reply-To: <426FFC58.6010307@z-axis.com> User-Agent: Mutt/1.4.2.1i cc: FreeBSD Hackers Subject: Re: Two password prompts with 'su' 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, 27 Apr 2005 20:59:02 -0000 --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 27, 2005 at 01:55:52PM -0700, Justin Bennett wrote: > All, >=20 > Recently my machine (FreeBSD) started showing 2 password prompts when=20 > using su. >=20 > The first password seems to suffice, then hitting 'enter' on the second= =20 > one lets me in. >=20 > Any ideas what is going on? Check your pam config (/etc/pam.conf on 4.x or /etc/pam.d/* on 5.x) Kris --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCb/0TWry0BWjoQKURAmziAKC+E7FFn9VquTPPxgd5FiahjDV7fgCeP0mD RzEjqD4vDtZjFCoeKdRfJWk= =tY66 -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+-- From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 21:03:12 2005 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 691D316A4CE for ; Wed, 27 Apr 2005 21:03:12 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id A314443D3F for ; Wed, 27 Apr 2005 21:03:11 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.1.R) with ESMTP id md50001365215.msg for ; Wed, 27 Apr 2005 21:59:09 +0100 Message-ID: <004501c54b6c$6e41bbc0$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: Date: Wed, 27 Apr 2005 22:02:28 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Wed, 27 Apr 2005 21:59:09 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Wed, 27 Apr 2005 21:59:10 +0100 Subject: kern.module_path missing kernel boot dir 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, 27 Apr 2005 21:03:12 -0000 I have a 5.3-RELEASE machine here which refuses to load things like nfsd erroring about kernel module doesnt exist. I've been tracking it down and it looks like: kern.module_path is at fault on the broken machine its: sysctl -a |grep modules kern.module_path: /boot/modules where as on a working machine its: sysctl -a |grep modules kern.module_path: /boot/kernel;/boot/modules Anyone got any ideas where I can look next to see why module_path is not been set correctly? Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 21:08:02 2005 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 6AD0216A4CE for ; Wed, 27 Apr 2005 21:08:02 +0000 (GMT) Received: from dbmail-mx2.orcon.net.nz (loadbalancer1.orcon.net.nz [219.88.242.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8045143D3F for ; Wed, 27 Apr 2005 21:08:01 +0000 (GMT) (envelope-from thompsa@fud.org.nz) Received: from heff.fud.org.nz (60-234-149-201.bitstream.orcon.net.nz [60.234.149.201] (may be forged))j3RLBgC2031307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 28 Apr 2005 09:11:44 +1200 Received: from thompsa by heff.fud.org.nz with local (Exim 4.50 (FreeBSD)) id 1DQtlF-0000yh-OW; Thu, 28 Apr 2005 09:07:57 +1200 Date: Thu, 28 Apr 2005 09:07:57 +1200 From: Andrew Thompson To: Steven Hartland Message-ID: <20050427210757.GA3625@heff.fud.org.nz> References: <004501c54b6c$6e41bbc0$b3db87d4@multiplay.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004501c54b6c$6e41bbc0$b3db87d4@multiplay.co.uk> User-Agent: Mutt/1.4.2.1i Sender: Andrew Thompson X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on dbmail-mx2.orcon.net.nz X-Virus-Status: Clean cc: freebsd-hackers@freebsd.org Subject: Re: kern.module_path missing kernel boot dir 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, 27 Apr 2005 21:08:02 -0000 On Wed, Apr 27, 2005 at 10:02:28PM +0100, Steven Hartland wrote: > I have a 5.3-RELEASE machine here which refuses to load things like > nfsd erroring about kernel module doesnt exist. I've been tracking it > down and it looks like: kern.module_path is at fault on the broken > machine its: > sysctl -a |grep modules > kern.module_path: /boot/modules > > where as on a working machine its: > sysctl -a |grep modules > kern.module_path: /boot/kernel;/boot/modules > > Anyone got any ideas where I can look next to see why module_path > is not been set correctly? > You may want to check this out from UPDATING 20040806: Module loading has been fixed. Some older installations will drop proper module_path initialization and modules will fail to load properly. If you have a line in /boot/loader.rc that says: "initialize drop", do (i386 only): cp /usr/src/sys/boot/i386/loader/loader.rc /boot/loader.rc chown root:wheel /boot/loader.rc chmod 444 /boot/loader.rc Andrew From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 22:05:40 2005 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 571F616A4CE for ; Wed, 27 Apr 2005 22:05:40 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFEDB43D4C for ; Wed, 27 Apr 2005 22:05:39 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 9D1655132F; Wed, 27 Apr 2005 15:05:38 -0700 (PDT) Date: Wed, 27 Apr 2005 15:05:38 -0700 From: Kris Kennaway To: Adi Pircalabu Message-ID: <20050427220538.GA71046@xor.obsecurity.org> References: <20050427182850.3056f9f6@apircalabu.dsd.ro> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: <20050427182850.3056f9f6@apircalabu.dsd.ro> User-Agent: Mutt/1.4.2.1i cc: freebsd-hackers@freebsd.org Subject: Re: Multithreaded program crashes on SMP (HT enabled) machine 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, 27 Apr 2005 22:05:40 -0000 --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Apr 27, 2005 at 06:28:50PM +0300, Adi Pircalabu wrote: > Hello, > I have a multithreaded application ported on FreeBSD 5.3 which crashes > in a minute or less if hyperthreading in enabled. Without HT there is no > problem. > How and where should I start to investigate the problem? If it's a small application, post the source to an appropriate mailing list (hackers; no need for the excessive cross-posting) If not, try to come up with a simple test case that exhibits the failure. Note that it's possibly a coding error in your application and not a bug in FreeBSD. Kris --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCcAyxWry0BWjoQKURAlApAKDlGEFDUMSRPM65BI3SMm7eEMI3ywCeKCd5 uMyOGBYm6KIqyYklbybmKn8= =+ead -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM-- From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 22:06:03 2005 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 1919A16A4CE for ; Wed, 27 Apr 2005 22:06:03 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7484E43D31 for ; Wed, 27 Apr 2005 22:06:02 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.1.R) with ESMTP id md50001365303.msg for ; Wed, 27 Apr 2005 23:01:57 +0100 Message-ID: <001701c54b75$33950c30$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Andrew Thompson" References: <004501c54b6c$6e41bbc0$b3db87d4@multiplay.co.uk> <20050427210757.GA3625@heff.fud.org.nz> Date: Wed, 27 Apr 2005 23:05:16 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Wed, 27 Apr 2005 23:01:57 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Wed, 27 Apr 2005 23:01:58 +0100 cc: freebsd-hackers@freebsd.org Subject: Re: kern.module_path missing kernel boot dir 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, 27 Apr 2005 22:06:03 -0000 Cheers andrew obviously be broken for quite a while then :) Good to know I asked in the write place searched for ages turned up nothing. Thanks again Steve ----- Original Message ----- From: "Andrew Thompson" To: "Steven Hartland" > You may want to check this out from UPDATING > > 20040806: > Module loading has been fixed. Some older installations will > drop proper module_path initialization and modules will fail to > load properly. If you have a line in /boot/loader.rc that says: > "initialize drop", do (i386 only): > cp /usr/src/sys/boot/i386/loader/loader.rc /boot/loader.rc > chown root:wheel /boot/loader.rc > chmod 444 /boot/loader.rc ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 27 22:09:35 2005 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 85AC416A4CE for ; Wed, 27 Apr 2005 22:09:35 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B67043D53 for ; Wed, 27 Apr 2005 22:09:35 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 157C15132F; Wed, 27 Apr 2005 15:09:34 -0700 (PDT) Date: Wed, 27 Apr 2005 15:09:33 -0700 From: Kris Kennaway To: Kris Kennaway Message-ID: <20050427220933.GA74018@xor.obsecurity.org> References: <20050427182850.3056f9f6@apircalabu.dsd.ro> <20050427220538.GA71046@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline In-Reply-To: <20050427220538.GA71046@xor.obsecurity.org> User-Agent: Mutt/1.4.2.1i cc: freebsd-hackers@freebsd.org cc: Adi Pircalabu Subject: Re: Multithreaded program crashes on SMP (HT enabled) machine 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, 27 Apr 2005 22:09:35 -0000 --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 27, 2005 at 03:05:38PM -0700, Kris Kennaway wrote: >=20 > On Wed, Apr 27, 2005 at 06:28:50PM +0300, Adi Pircalabu wrote: > > Hello, > > I have a multithreaded application ported on FreeBSD 5.3 which crashes > > in a minute or less if hyperthreading in enabled. Without HT there is no > > problem. > > How and where should I start to investigate the problem? >=20 > If it's a small application, post the source to an appropriate mailing > list (hackers; no need for the excessive cross-posting) Rather, unless it's a very small application, post a URL to obtain the source so you don't spam the list with it. Thanks, Kris --LZvS9be/3tNcYl/X Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCcA2dWry0BWjoQKURAv1VAKCLz3IDA9e8s/rQQIqT9UPuWegt/ACgin6i 3DTn31XIRFhNR8jGB28h96k= =SUan -----END PGP SIGNATURE----- --LZvS9be/3tNcYl/X-- From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 00:46:35 2005 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 E640E16A4CE for ; Thu, 28 Apr 2005 00:46:35 +0000 (GMT) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B50943D31 for ; Thu, 28 Apr 2005 00:46:34 +0000 (GMT) (envelope-from keramida@linux.gr) Received: from gothmog.gr (patr530-a201.otenet.gr [212.205.215.201]) j3S0jC5F021318; Thu, 28 Apr 2005 03:45:12 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j3S0kPGJ013324; Thu, 28 Apr 2005 03:46:25 +0300 (EEST) (envelope-from keramida@linux.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j3S0kNDR013267; Thu, 28 Apr 2005 03:46:23 +0300 (EEST) (envelope-from keramida@linux.gr) Date: Thu, 28 Apr 2005 03:46:23 +0300 From: Giorgos Keramidas To: c0ldbyte , Brian Rudy Message-ID: <20050428004622.GC1156@gothmog.gr> References: <426F75B5.2070502@earthlink.net> <20050427204317.T89426@eleanor.us1.wmi.uvac.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050427204317.T89426@eleanor.us1.wmi.uvac.net> cc: freebsd-hackers@freebsd.org Subject: Re: Problems with Display 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, 28 Apr 2005 00:46:36 -0000 On 2005-04-27 20:47, c0ldbyte wrote: >On Wed, 27 Apr 2005, Brian Rudy wrote: >> Apr 19 06:02:37 sun getty[423]: open /dev/screen: No such file or directory >> >> There is no /dev/screen file but, there is a >> /dev/screen:r1280x1024x60 file >> >> I tried making a link to this file in hopes it would fix it but, >> after a reboot, my link was gone. > > What your going to be looking into is devd/devfs somewhere in "/etc/*" > in order to make sure [...] Right. /etc/devfs.conf is the file you mean: link screen:r1280x1024x60 screen own screen:r1280x1024x60 root:wheel perm screen:r1280x1024x60 0600 From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 08:19:49 2005 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 7E66216A4CE; Thu, 28 Apr 2005 08:19:49 +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 20C9B43D45; Thu, 28 Apr 2005 08:19:49 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1DR4FP-0003oy-Rv; Thu, 28 Apr 2005 11:19:47 +0300 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 28 Apr 2005 11:19:47 +0300 From: Danny Braniss Message-ID: cc: freebsd-hackers@freebsd.org Subject: how to set dumpdev 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, 28 Apr 2005 08:19:49 -0000 hi, i can't use dumpon, since the kernel is panicking on boot, so tried in loader.conf: dumpdev="/dev/ar0s1b" but getting: db> call doadump Cannot dump. No dump device defined. 0x25 i need this is for current 6.0 thanks, danny From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 09:27:19 2005 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 74DC416A4CE for ; Thu, 28 Apr 2005 09:27:19 +0000 (GMT) Received: from mail.bitdefender.com (ns.bitdefender.com [217.156.83.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60CC543D31 for ; Thu, 28 Apr 2005 09:27:18 +0000 (GMT) (envelope-from apircalabu@bitdefender.com) Received: (qmail 8378 invoked by uid 1010); 28 Apr 2005 12:21:11 +0300 Received: from apircalabu.dsd.ro (10.10.15.22) by mail.bitdefender.com with AES256-SHA encrypted SMTP; 28 Apr 2005 12:21:11 +0300 Date: Thu, 28 Apr 2005 12:28:11 +0300 From: Adi Pircalabu To: Kris Kennaway Message-ID: <20050428122811.60315014@apircalabu.dsd.ro> In-Reply-To: <20050427220933.GA74018@xor.obsecurity.org> References: <20050427182850.3056f9f6@apircalabu.dsd.ro> <20050427220538.GA71046@xor.obsecurity.org> <20050427220933.GA74018@xor.obsecurity.org> Organization: BitDefender X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BitDefender-SpamStamp: 1.1.3 044000040111AAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ X-BitDefender-Scanner: Clean, Agent: BitDefender Qmail 1.6.1 on mail.bitdefender.com X-BitDefender-Spam: No (13) cc: freebsd-hackers@freebsd.org Subject: Re: Multithreaded program crashes on SMP (HT enabled) machine 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, 28 Apr 2005 09:27:19 -0000 On Wed, 27 Apr 2005 15:09:33 -0700 Kris Kennaway wrote: > > > I have a multithreaded application ported on FreeBSD 5.3 which > > > crashes in a minute or less if hyperthreading in enabled. Without > > > HT there is no problem. > > > How and where should I start to investigate the problem? > > > > If it's a small application, post the source to an appropriate > > mailing list (hackers; no need for the excessive cross-posting) > > Rather, unless it's a very small application, post a URL to obtain the > source so you don't spam the list with it. Hello, unfortunately I can not post the code due to source code's license. But I'll try to come up with a small but similar example. Thank you -- Adrian Pircalabu Public KeyID = 0x04329F5E -- This message was scanned for spam and viruses by BitDefender. For more information please visit http://linux.bitdefender.com/ From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 10:13:04 2005 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 06FCE16A4CE; Thu, 28 Apr 2005 10:13:04 +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 ADE8343D2F; Thu, 28 Apr 2005 10:13:03 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1DR610-0005gJ-RZ; Thu, 28 Apr 2005 13:13:02 +0300 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: Andre Guibert de Bruet In-Reply-To: Message from Andre Guibert de Bruet <20050428053528.G59099@lexi.siliconlandmark.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 28 Apr 2005 13:13:02 +0300 From: Danny Braniss Message-ID: cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: how to set dumpdev 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, 28 Apr 2005 10:13:04 -0000 > > On Thu, 28 Apr 2005, Danny Braniss wrote: > > > i can't use dumpon, since the kernel is panicking on boot, so > > tried in loader.conf: > > dumpdev="/dev/ar0s1b" > > but getting: > > db> call doadump > > Cannot dump. No dump device defined. > > 0x25 > > > > i need this is for current 6.0 > > thanks, > > danny > > > > That directive, along with dumpdir, would be set in /etc/rc.conf. no cookies, i can't, since the kernel panics before it can call /sbin/init From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 09:37:30 2005 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 5105D16A4CE; Thu, 28 Apr 2005 09:37:30 +0000 (GMT) Received: from lexi.siliconlandmark.com (lexi.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC45743D41; Thu, 28 Apr 2005 09:37:29 +0000 (GMT) (envelope-from andy@siliconlandmark.com) Received: from lexi.siliconlandmark.com (localhost [127.0.0.1]) j3S9bHt0077738; Thu, 28 Apr 2005 05:37:17 -0400 (EDT) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost)j3S9bGd8077735; Thu, 28 Apr 2005 05:37:16 -0400 (EDT) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: lexi.siliconlandmark.com: andy owned process doing -bs Date: Thu, 28 Apr 2005 05:37:16 -0400 (EDT) From: Andre Guibert de Bruet To: Danny Braniss In-Reply-To: Message-ID: <20050428053528.G59099@lexi.siliconlandmark.com> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Information: Please contact the ISP for more information X-SL-MailScanner: Found to be clean X-SL-SpamCheck: not spam, SpamAssassin (score=-2.551, required 6, autolearn=not spam, AWL 0.05, BAYES_00 -2.60) X-MailScanner-From: andy@siliconlandmark.com X-Mailman-Approved-At: Thu, 28 Apr 2005 12:18:52 +0000 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: how to set dumpdev 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, 28 Apr 2005 09:37:30 -0000 On Thu, 28 Apr 2005, Danny Braniss wrote: > i can't use dumpon, since the kernel is panicking on boot, so > tried in loader.conf: > dumpdev="/dev/ar0s1b" > but getting: > db> call doadump > Cannot dump. No dump device defined. > 0x25 > > i need this is for current 6.0 > thanks, > danny > That directive, along with dumpdir, would be set in /etc/rc.conf. Andy | Andre Guibert de Bruet | Enterprise Software Consultant > | Silicon Landmark, LLC. | http://siliconlandmark.com/ > From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 10:29:56 2005 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 D523F16A4CE; Thu, 28 Apr 2005 10:29:56 +0000 (GMT) Received: from orb.pobox.com (orb.pobox.com [207.8.226.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 909EA43D39; Thu, 28 Apr 2005 10:29:56 +0000 (GMT) (envelope-from discussion-lists@linnet.org) Received: from orb (localhost [127.0.0.1]) by orb.pobox.com (Postfix) with ESMTP id EA4F173F; Thu, 28 Apr 2005 06:29:52 -0400 (EDT) Received: from thinkdog.local.linnet.org (host217-40-157-153.in-addr.btopenworld.com [217.40.157.153]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by orb.sasl.smtp.pobox.com (Postfix) with ESMTP id 87D8987; Thu, 28 Apr 2005 06:29:49 -0400 (EDT) Received: from lists by thinkdog.local.linnet.org with local (Exim 4.43 (FreeBSD)) id 1DR6H2-000NPN-8k; Thu, 28 Apr 2005 11:29:36 +0100 Date: Thu, 28 Apr 2005 11:29:36 +0100 From: Brian Candler To: Andre Guibert de Bruet Message-ID: <20050428102936.GA89935@uk.tiscali.com> References: <20050428053528.G59099@lexi.siliconlandmark.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050428053528.G59099@lexi.siliconlandmark.com> User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Thu, 28 Apr 2005 12:18:52 +0000 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: how to set dumpdev 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, 28 Apr 2005 10:29:57 -0000 On Thu, Apr 28, 2005 at 05:37:16AM -0400, Andre Guibert de Bruet wrote: > > i can't use dumpon, since the kernel is panicking on boot, so > >tried in loader.conf: > > dumpdev="/dev/ar0s1b" > >but getting: > >db> call doadump > >Cannot dump. No dump device defined. > >0x25 > > > >i need this is for current 6.0 > >thanks, > > danny > > > > That directive, along with dumpdir, would be set in /etc/rc.conf. According to `man dumpon` (on a 5-STABLE system): Since dumpon cannot be used during kernel initialization, the dumpdev variable of loader(8) must be used to enable dumps for system panics which occur during kernel initialization. But I don't find 'dumpdev' referenced anywhere under /usr/src/sys/boot/. Is the documentation wrong? Regards, Brian. From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 14:19:23 2005 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 7362F16A4CE; Thu, 28 Apr 2005 14:19:23 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64EA343D5D; Thu, 28 Apr 2005 14:19:22 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from stevenp4 ([193.123.241.40]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.1.R) with ESMTP id md50001366620.msg; Thu, 28 Apr 2005 15:15:08 +0100 Message-ID: <069901c54bfd$2967ba40$7f06000a@int.mediasurface.com> From: "Steven Hartland" To: , Date: Thu, 28 Apr 2005 15:18:33 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Thu, 28 Apr 2005 15:15:08 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 193.123.241.40 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Thu, 28 Apr 2005 15:15:08 +0100 Subject: Very low disk performance Highpoint 1820a 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, 28 Apr 2005 14:19:23 -0000 I've just finished putting together a new server box spec: Dual AMD 244, 2GB ram, 5 * Seagate SATA 400GB on a Highpoint 1820a RAID 5 array. The machine is currently running 5.4-STABLE ( from the weekend ) After install I did some basic tests and the disk is return very poor performance low in fact than a single disk on a bog standard ATA 100 controller: 5.4-STABLE Highpoint 1820a RAID 5 ( 5 disk ) dd if=/dev/da0 of=/dev/null bs=64k count=10000 10000+0 records in 10000+0 records out 655360000 bytes transferred in 13.348032 secs (49097875 bytes/sec) 5.3-RELEASE Highpoint 454 RAID 5 ( 4 disk ) dd if=/dev/da0 of=/dev/null bs=64k count=10000 10000+0 records in 10000+0 records out 655360000 bytes transferred in 20.410034 secs (32109697 bytes/sec) 5.2.1-RELEASE Intel ICH3 UDMA100 ( 1 disk ) dd if=/dev/ad0 of=/dev/null bs=64k count=10000 10000+0 records in 10000+0 records out 655360000 bytes transferred in 11.142405 secs (58816745 bytes/sec) Obviously something is seriously a miss here somewhere as both the RAID 5 arrays a producing less throughput than a single disk. Where do I start looking? Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 14:35:44 2005 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 DAA4916A4CE; Thu, 28 Apr 2005 14:35:44 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F38143D49; Thu, 28 Apr 2005 14:35:44 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from stevenp4 ([193.123.241.40]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.1.R) with ESMTP id md50001366665.msg; Thu, 28 Apr 2005 15:32:14 +0100 Message-ID: <06ba01c54bff$8c5aed00$7f06000a@int.mediasurface.com> From: "Steven Hartland" To: , Date: Thu, 28 Apr 2005 15:35:39 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Thu, 28 Apr 2005 15:32:14 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 193.123.241.40 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Thu, 28 Apr 2005 15:32:15 +0100 Subject: Re: Very low disk performance Highpoint 1820a 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, 28 Apr 2005 14:35:45 -0000 Sorry wanted to send to performance not current :) Steve ----- Original Message ----- > I've just finished putting together a new server box spec: > Dual AMD 244, 2GB ram, 5 * Seagate SATA 400GB on a > Highpoint 1820a RAID 5 array. > The machine is currently running 5.4-STABLE ( from the > weekend ) After install I did some basic tests and the > disk is return very poor performance low in fact than a > single disk on a bog standard ATA 100 controller: > > 5.4-STABLE Highpoint 1820a RAID 5 ( 5 disk ) > dd if=/dev/da0 of=/dev/null bs=64k count=10000 > 10000+0 records in > 10000+0 records out > 655360000 bytes transferred in 13.348032 secs (49097875 bytes/sec) > > 5.3-RELEASE Highpoint 454 RAID 5 ( 4 disk ) > dd if=/dev/da0 of=/dev/null bs=64k count=10000 > 10000+0 records in > 10000+0 records out > 655360000 bytes transferred in 20.410034 secs (32109697 bytes/sec) > > 5.2.1-RELEASE Intel ICH3 UDMA100 ( 1 disk ) > dd if=/dev/ad0 of=/dev/null bs=64k count=10000 > 10000+0 records in > 10000+0 records out > 655360000 bytes transferred in 11.142405 secs (58816745 bytes/sec) > > Obviously something is seriously a miss here somewhere as > both the RAID 5 arrays a producing less throughput than > a single disk. > > Where do I start looking? ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 15:00:37 2005 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 D776316A4CE for ; Thu, 28 Apr 2005 15:00:37 +0000 (GMT) Received: from mail.qubesoft.com (gate.qubesoft.com [217.169.36.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id C706C43D45 for ; Thu, 28 Apr 2005 15:00:34 +0000 (GMT) (envelope-from dfr@nlsystems.com) Received: from [192.168.1.254] (dhcp254.qubesoft.com [192.168.1.254]) by mail.qubesoft.com (8.13.3/8.13.3) with ESMTP id j3SF0XVp049584; Thu, 28 Apr 2005 16:00:33 +0100 (BST) (envelope-from dfr@nlsystems.com) In-Reply-To: <426FE38D.2070300@verio.net> References: <426FE38D.2070300@verio.net> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <22bb85dd31ec6faad306db831e53c7de@nlsystems.com> Content-Transfer-Encoding: 7bit From: Doug Rabson Date: Thu, 28 Apr 2005 16:00:33 +0100 To: Fred Clift X-Mailer: Apple Mail (2.622) X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on mail.qubesoft.com cc: freebsd-hackers@freebsd.org Subject: Re: EFI network boot loader for ia32? 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, 28 Apr 2005 15:00:38 -0000 On 27 Apr 2005, at 20:10, Fred Clift wrote: > This might better belong on -questions, this isn't the most technical > question, but it is obscure... > > I've recently been loaned an eval server indirectly from intel. It is > an SR-2400. We've been using SR-2300s for a while now and have been > doing custom network installs via PXE. > > I note that these new servers have ia32 EFI support and that the only > net-booting they support is via EFI. I can DHCP boot the box via the > EFI boot manager menu that comes up, I get an address and it tftp's a > file from the right server but of course the pxeboot bootfile doesn't > work. I downloaded the indel EFI SDK and it has some sample EFI > binaries (a test binary, one that draws some cute little boxes on the > screen etc) and I can boot and run those just fine... > > I understand that EFI netbooting works fine on (was designed to work > on?) ia64 boxes - is there support for netbooting via EFI on ia32? > > I see /usr/src/sys/boot/EFI - can I somehow build a loader.efi that > would work via netboot for ia32? > > Thanks in advance for any help... The EFI boot loader does not support ia32 in its current state. It would be possible to port it to an ia32 EFI environment with some effort. It would be quite an advanced level project though. From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 17:33:02 2005 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 E377C16A4CE for ; Thu, 28 Apr 2005 17:33:02 +0000 (GMT) Received: from kalypso.opteqint.net (kalypso.opteqint.net [160.124.112.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id D424D43D60 for ; Thu, 28 Apr 2005 17:33:00 +0000 (GMT) (envelope-from cole@opteqint.net) Received: from rrba-165-36-21.telkomadsl.co.za ([165.165.36.21] helo=deadmind) by kalypso.opteqint.net with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.43 (FreeBSD)) id 1DRCsf-000K2s-B1 for freebsd-hackers@freebsd.org; Thu, 28 Apr 2005 19:32:59 +0200 Message-ID: <000901c54c19$3dba2570$4206000a@deadmind> From: "Cole" To: Date: Thu, 28 Apr 2005 19:39:33 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4922.1500 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4939.300 X-Spam-Score: -100.0 (---------------------------------------------------) X-Spam-Report: Spam detection software, running on the system "kalypso.opteqint.net", hasmessagelabel similar future email. If you have any questions, see the administrator of that system for details.driver to FreeBSD code. But im running into a problem. Its using a function that I cant seem to find the equivalent of for FreeBSD. Heres the function up to the point where im getting stuck. [...] Content analysis details: (-100.0 points, 4.2 required) pts rule name description -------------------------------------------------- -100 USER_IN_WHITELIST From: address is in the user's white-list Subject: PCI Programming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Cole List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 17:33:03 -0000 Hey Im currently trying to port some linux pci driver to FreeBSD code. But im running into a problem. Its using a function that I cant seem to find the equivalent of for FreeBSD. Heres the function up to the point where im getting stuck. int FindDevice( void ) { static struct pci_dev *pciptr; int pci_info_index = 0; U16 wDev; unsigned int tmp_addr; /*-----------------------------------------*/ #ifdef CONFIG_PCI // find the specified device and its configuration if( pcibios_present() ){ pci_for_each_dev( pciptr ){ if ((pciptr->vendor == VENDOR_ID) && \ (pciptr->device == DEVICE_ID) && \ (pciptr->subsystem_vendor == SUBSYSTEM_VID) && \ (pciptr->subsystem_device == SUBSYSTEM_DID) && \ (PCI_FUNC(pciptr->devfn) == 0) ) { DevExtension[pci_info_index].wBus= pciptr->bus->number; DevExtension[pci_info_index].wDevFunc= pciptr->devfn; DevExtension[pci_info_index].wCard = pci_info_index; tmp_addr = pci_resource_start( pciptr, 4 ); DevExtension[pci_info_index].func0_bar = (tmp_addr & ~0x03); now the function im getting stuck at, is the "tmp_addr = pci_resource_start(pciptr, 4). I was wondering if anyone knows of an equivalent under FreeBSD. Or if there is a way to obtain that value with some other method in FreeBSD. I am pretty much fine up until that point. If anyone has any sample code or anything that I could read to proceed any further, it would be greatly appreciated. Regards /Cole From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 17:56:22 2005 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 8A99916A4CE for ; Thu, 28 Apr 2005 17:56:22 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A052243D1F for ; Thu, 28 Apr 2005 17:56:21 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 57CD46538E; Thu, 28 Apr 2005 18:55:32 +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 28418-05-2; Thu, 28 Apr 2005 18:55:32 +0100 (BST) Received: from empiric.dek.spc.org (host81-134-198-100.in-addr.btopenworld.com [81.134.198.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 7B9EB65213; Thu, 28 Apr 2005 18:55:31 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id EB3A9623B; Thu, 28 Apr 2005 18:56:17 +0100 (BST) Date: Thu, 28 Apr 2005 18:56:17 +0100 From: Bruce M Simpson To: Cole Message-ID: <20050428175617.GC1619@empiric.icir.org> Mail-Followup-To: Cole , freebsd-hackers@freebsd.org References: <000901c54c19$3dba2570$4206000a@deadmind> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000901c54c19$3dba2570$4206000a@deadmind> cc: freebsd-hackers@freebsd.org Subject: Re: PCI Programming 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, 28 Apr 2005 17:56:22 -0000 On Thu, Apr 28, 2005 at 07:39:33PM +0200, Cole wrote: > If anyone has any sample code or anything that I could read to proceed any further, it would be greatly appreciated. Have a look at the man page in section 9 for pci. You should be able to find most of what you need there. You should probably also look at one of the simpler PCI drivers in the kernel tree to see how similar things are done in FreeBSD land. Though it looks like the idiom you're trying to port may not be needed (you can just match the IDs in your driver's probe or attach routine, when the pci bus parent driver calls them through NEWBUS). Regards, BMS From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 20:19:16 2005 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 A12A616A4CE for ; Thu, 28 Apr 2005 20:19:16 +0000 (GMT) Received: from coe.ufrj.br (roma.coe.ufrj.br [146.164.53.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6325043D53 for ; Thu, 28 Apr 2005 20:19:13 +0000 (GMT) (envelope-from jonny@jonny.eng.br) Received: from localhost (localhost [127.0.0.1]) by coe.ufrj.br (Postfix) with ESMTP id 685A017019 for ; Thu, 28 Apr 2005 17:19:11 -0300 (BRT) Received: from coe.ufrj.br ([146.164.53.65]) by localhost (roma.coe.ufrj.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 64149-06 for ; Thu, 28 Apr 2005 17:19:04 -0300 (BRT) Received: from [10.0.8.17] (nat.int.gov.br [200.20.196.226]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by coe.ufrj.br (Postfix) with ESMTP id B7CC217015 for ; Thu, 28 Apr 2005 17:19:03 -0300 (BRT) Message-ID: <42714536.4020703@jonny.eng.br> Date: Thu, 28 Apr 2005 17:19:02 -0300 From: =?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?= User-Agent: Mozilla Thunderbird 1.0+ (Windows/20050315) MIME-Version: 1.0 To: hackers@freebsd.org References: <426D6087.7080908@jonny.eng.br> In-Reply-To: <426D6087.7080908@jonny.eng.br> X-Enigmail-Version: 0.90.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at coe.ufrj.br Subject: Re: Trouble with ataraid (was: 250G SATA drive?) 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, 28 Apr 2005 20:19:16 -0000 Followup to my message with more news. It is not a problem with mount_ntfs. Indeed, it seems to be a problem with the ataraid code. Today I booted from 5.3RC4 install CD, and mounted NO partition on the problem disk. But this was enough to corrupt the partition again. How can I know if the ATA RAID code is LBA48 compatible? The chipset is a Promise 20378, which is supported, in theory. João Carlos Mendes Luís wrote: > Hi all, > > I've just bought a Seagate 250G SATA drive to run in a shared > desktop at home. It should have 3 boot partitions: 16M FreeBSD 5, 16M > linux, 32M NTFS for Windows XP. The remaining wil be formatted with > FAT32 to be used as a common data for the 3 operating systems. > > Well, everything seemed to be fine. I copied the FreeBSD partition > from the previous installed disk with dump(8), and installed XP from > CDs. But suddenly, the data and NTFS partitions began to disappear. I > don't know exactly what were the steps used to crash the disk, but it > happened at least 3 times, after 3 full windows installs (which are not > quick, for my sadness). In the last one I could almost detect it. > > I finished the initial windows instalation, and booted into FreeBSD > to make sure the NTFS and FAT partitions were available. They seemed to > be. Then I reboot into windows, and it crashed, with a missing HAL.DLL. > Boot again into FreeBSD, and the NTFS partition still seemed ok. But I > gone into the \WINDOWS\system32, and did an ls. The kernel pushed some > errors with "bad magic" or something like that, and the file system > locked. Also, the boot information for the first FAT32 partition has > been completely destroyed, leaving it unreadable. > > The mainboard is an ASUS K8V, with 1G RAM. I'm running the 32 bit > version of FreeBSD, although it is an AMD64 machine. The 250G SATA disk > is on the promise RAID, and I have another PATA 120G on the promise > RAID, and a 40G PATA on standard IDE. > > I already had a problem with a previous ASUS board in which the > promise raid could not deal with disks bigger than 120G. The symptons > were very similar. Could this be the problem? Does somebody know if > FreeBSD or mount_ntfs has any kind of disk size limitation in this hardware? > > Oh, I did remember now that I was using mount_ntfs -o noatime, if > that matters. > > Thanks for any help, > > Jonny > > PS: Now it has been fully reformatted with no NTFS, using FAT32 instead. > But I'm afraid of getting into FreeBSD again in this machine. Please > help! :-( > _______________________________________________ > 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 - Mon From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 21:00:00 2005 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 81BD416A4CE; Thu, 28 Apr 2005 21:00:00 +0000 (GMT) Received: from coe.ufrj.br (roma.coe.ufrj.br [146.164.53.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E00D43D68; Thu, 28 Apr 2005 20:59:59 +0000 (GMT) (envelope-from jonny@jonny.eng.br) Received: from localhost (localhost [127.0.0.1]) by coe.ufrj.br (Postfix) with ESMTP id 58D1917019; Thu, 28 Apr 2005 17:59:58 -0300 (BRT) Received: from coe.ufrj.br ([146.164.53.65]) by localhost (roma.coe.ufrj.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 69048-06; Thu, 28 Apr 2005 17:59:52 -0300 (BRT) Received: from [10.0.8.17] (nat.int.gov.br [200.20.196.226]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by coe.ufrj.br (Postfix) with ESMTP id 1B4AE17015; Thu, 28 Apr 2005 17:59:52 -0300 (BRT) Message-ID: <42714EC6.9030105@jonny.eng.br> Date: Thu, 28 Apr 2005 17:59:50 -0300 From: =?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?= User-Agent: Mozilla Thunderbird 1.0+ (Windows/20050315) MIME-Version: 1.0 To: sos@FreeBSD.org, hackers@freebsd.org References: <426D6087.7080908@jonny.eng.br> <42714536.4020703@jonny.eng.br> In-Reply-To: <42714536.4020703@jonny.eng.br> X-Enigmail-Version: 0.90.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at coe.ufrj.br Subject: URGENT for 5.4-R: ATA meister, read this now - 64/32 bits errorfound - Trouble with ataraid 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, 28 Apr 2005 21:00:00 -0000 I think I may have found the problem!!! Looking at the source code for arstrategy, we can find this: ----------------------------- static void arstrategy(struct bio *bp) { struct ar_softc *rdp = bp->bio_disk->d_drv1; int blkno, count, chunk, lba, lbs, tmplba; int drv = 0, change = 0; caddr_t data; ----------------------------- That is, lba is an int, 32 bits! Right below, this variable is used into a bio_pblkno, which is defined at as (daddrt_t): ----------------------------- buf1->bp.bio_pblkno = lba; if ((buf1->drive = drv) > 0) buf1->bp.bio_pblkno += rdp->offset; ----------------------------- But note that at the /sys/dev/ata/ata-all.h file, the ata_request.u.ata.lba is defined as (u_int64_t). Also, at , (daddr_t) is defined as (__int64_t). These are the data types used at ata-disk.c BTW: While searching for this bug, I found that a type (u_daddr_t) is defined at as (u_int32_t). I did not care for it right now, but maybe this should be checked also. Hope I am wrong, but if not, this may be the bug I´ve been chasing since 5.2-R. To probe further: Should the ata-raid driver be allowed to write the disk at will? I did not even try to mount any partition, but it did overwrote my data. Maybe to update the raid information. I'm not sure, I did not search for this yet. João Carlos Mendes Luís wrote: > Followup to my message with more news. > > It is not a problem with mount_ntfs. Indeed, it seems to be a problem > with the ataraid code. > > Today I booted from 5.3RC4 install CD, and mounted NO partition on the > problem disk. But this was enough to corrupt the partition again. > > How can I know if the ATA RAID code is LBA48 compatible? The chipset is > a Promise 20378, which is supported, in theory. > > João Carlos Mendes Luís wrote: > >>Hi all, >> >> I've just bought a Seagate 250G SATA drive to run in a shared >>desktop at home. It should have 3 boot partitions: 16M FreeBSD 5, 16M >>linux, 32M NTFS for Windows XP. The remaining wil be formatted with >>FAT32 to be used as a common data for the 3 operating systems. >> >> Well, everything seemed to be fine. I copied the FreeBSD partition >>from the previous installed disk with dump(8), and installed XP from >>CDs. But suddenly, the data and NTFS partitions began to disappear. I >>don't know exactly what were the steps used to crash the disk, but it >>happened at least 3 times, after 3 full windows installs (which are not >>quick, for my sadness). In the last one I could almost detect it. >> >> I finished the initial windows instalation, and booted into FreeBSD >>to make sure the NTFS and FAT partitions were available. They seemed to >>be. Then I reboot into windows, and it crashed, with a missing HAL.DLL. >> Boot again into FreeBSD, and the NTFS partition still seemed ok. But I >>gone into the \WINDOWS\system32, and did an ls. The kernel pushed some >>errors with "bad magic" or something like that, and the file system >>locked. Also, the boot information for the first FAT32 partition has >>been completely destroyed, leaving it unreadable. >> >> The mainboard is an ASUS K8V, with 1G RAM. I'm running the 32 bit >>version of FreeBSD, although it is an AMD64 machine. The 250G SATA disk >>is on the promise RAID, and I have another PATA 120G on the promise >>RAID, and a 40G PATA on standard IDE. >> >> I already had a problem with a previous ASUS board in which the >>promise raid could not deal with disks bigger than 120G. The symptons >>were very similar. Could this be the problem? Does somebody know if >>FreeBSD or mount_ntfs has any kind of disk size limitation in this hardware? >> >> Oh, I did remember now that I was using mount_ntfs -o noatime, if >>that matters. >> >> Thanks for any help, >> >> Jonny >> >>PS: Now it has been fully reformatted with no NTFS, using FAT32 instead. >> But I'm afraid of getting into FreeBSD again in this machine. Please >>help! :-( >>_______________________________________________ >>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 - Mon > > _______________________________________________ > 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 Thu Apr 28 21:31:20 2005 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 2569B16A4CE for ; Thu, 28 Apr 2005 21:31:20 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30F2943D2F for ; Thu, 28 Apr 2005 21:31:17 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j3SLZRlk025447; Thu, 28 Apr 2005 15:35:28 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <42715553.6050704@samsco.org> Date: Thu, 28 Apr 2005 15:27:47 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Cole References: <000901c54c19$3dba2570$4206000a@deadmind> In-Reply-To: <000901c54c19$3dba2570$4206000a@deadmind> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: freebsd-hackers@freebsd.org Subject: Re: PCI Programming 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, 28 Apr 2005 21:31:20 -0000 Cole wrote: > Hey > > Im currently trying to port some linux pci driver to FreeBSD code. But im running into a problem. Its using a function that I cant > seem to find the equivalent of for FreeBSD. > > Heres the function up to the point where im getting stuck. > > int FindDevice( void ) > { > > static struct pci_dev *pciptr; > int pci_info_index = 0; > U16 wDev; > unsigned int tmp_addr; > > /*-----------------------------------------*/ > #ifdef CONFIG_PCI // find the specified device and its configuration > if( pcibios_present() ){ > > pci_for_each_dev( pciptr ){ > if ((pciptr->vendor == VENDOR_ID) && \ > (pciptr->device == DEVICE_ID) && \ > (pciptr->subsystem_vendor == SUBSYSTEM_VID) && \ > (pciptr->subsystem_device == SUBSYSTEM_DID) && \ > (PCI_FUNC(pciptr->devfn) == 0) ) > { > DevExtension[pci_info_index].wBus= pciptr->bus->number; > DevExtension[pci_info_index].wDevFunc= pciptr->devfn; > DevExtension[pci_info_index].wCard = pci_info_index; > tmp_addr = pci_resource_start( pciptr, 4 ); > DevExtension[pci_info_index].func0_bar = (tmp_addr & ~0x03); > > now the function im getting stuck at, is the "tmp_addr = pci_resource_start(pciptr, 4). I was wondering if anyone knows of an > equivalent under FreeBSD. Or if there is a way to obtain that value with some other method in FreeBSD. I am pretty much fine up > until that point. > > If anyone has any sample code or anything that I could read to proceed any further, it would be greatly appreciated. > > Regards > /Cole > I think that you're going to have to ignore trying to do a literal transation of this linux code. It looks like the code in question is trying to snarf the memory mapped I/O base address at register 0x14 (0x10 is where the BARs start, so this is 0x10 + 4) in the config space. Linux likes to pretend that these addresses are coherent (which they are on i386 and amd64, but not neccesarily for other platforms), so it treats them like regular memory. Why is wants to save the physical address of the BAR is a mystery, so you might want to track down the other places where this structure member is used. It's likely only used for informational purposes, in which can you can likely ignore dealing with it. The correct way to access the BAR memory in FreeBSD is: int rid; bus_handle_t handle; bus_tag_t tag; rid = 0x14; res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); tag = rman_get_btag(res); handle = rman_get_handle(res); /* Write a DWORD */ bus_space_write_4(tag, handle, offset, val); /*read a DWORD */ tmp = bus_space_read_4(tag, handle, offset); This assumes the linux example of wanting BAR1 at offset 0x14. Scott From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 21:54:40 2005 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 8A57716A4CE; Thu, 28 Apr 2005 21:54:40 +0000 (GMT) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E7FB43D1F; Thu, 28 Apr 2005 21:54:39 +0000 (GMT) (envelope-from sos@DeepCore.dk) Received: from [194.192.25.143] (laptop.deepcore.dk [194.192.25.143]) by spider.deepcore.dk (8.13.3/8.13.3) with ESMTP id j3SLrGX6022186; Thu, 28 Apr 2005 23:53:17 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <42715B29.3000905@DeepCore.dk> Date: Thu, 28 Apr 2005 23:52:41 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= User-Agent: Mozilla Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?= References: <426D6087.7080908@jonny.eng.br> <42714536.4020703@jonny.eng.br> <42714EC6.9030105@jonny.eng.br> In-Reply-To: <42714EC6.9030105@jonny.eng.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-mail-scanned: by DeepCore Virus & Spam killer v1.12 cc: hackers@FreeBSD.ORG cc: sos@FreeBSD.ORG Subject: Re: URGENT for 5.4-R: ATA meister, read this now - 64/32 bits error found - Trouble with ataraid 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, 28 Apr 2005 21:54:40 -0000 Jo=E3o Carlos Mendes Lu=EDs wrote: > I think I may have found the problem!!! >=20 > Looking at the source code for arstrategy, we can find this: >=20 > ----------------------------- > static void > arstrategy(struct bio *bp) > { > struct ar_softc *rdp =3D bp->bio_disk->d_drv1; > int blkno, count, chunk, lba, lbs, tmplba; > int drv =3D 0, change =3D 0; > caddr_t data; > ----------------------------- >=20 > That is, lba is an int, 32 bits! >=20 > Right below, this variable is used into a bio_pblkno, which is defined > at as (daddrt_t): >=20 > ----------------------------- > buf1->bp.bio_pblkno =3D lba; > if ((buf1->drive =3D drv) > 0) > buf1->bp.bio_pblkno +=3D rdp->offset; > ----------------------------- >=20 > But note that at the /sys/dev/ata/ata-all.h file, the > ata_request.u.ata.lba is defined as (u_int64_t). Also, at > , (daddr_t) is defined as (__int64_t). These are the data= > types used at ata-disk.c >=20 > BTW: While searching for this bug, I found that a type (u_daddr_t) is > defined at as (u_int32_t). I did not care for it right > now, but maybe this should be checked also. >=20 >=20 >=20 > Hope I am wrong, but if not, this may be the bug I=B4ve been chasing si= nce > 5.2-R. >=20 > To probe further: Should the ata-raid driver be allowed to write the > disk at will? I did not even try to mount any partition, but it did > overwrote my data. Maybe to update the raid information. I'm not sure= , > I did not search for this yet. With a 250G disk you are not even close to using 32bits of LBA space, so = thats not your problem. You could just leave ataraid out of your kernel=20 to test if thats whats hurting you. If you want to take this further you should try out the ATA mkIII=20 patches on http://people.freebsd.org/~sos/ATA as that is my corrections=20 to whats in RELENG_5... --=20 -S=F8ren From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 22:29:59 2005 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 F010216A4CE; Thu, 28 Apr 2005 22:29:59 +0000 (GMT) Received: from coe.ufrj.br (roma.coe.ufrj.br [146.164.53.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FEEA43D5A; Thu, 28 Apr 2005 22:29:59 +0000 (GMT) (envelope-from jonny@jonny.eng.br) Received: from localhost (localhost [127.0.0.1]) by coe.ufrj.br (Postfix) with ESMTP id 64CF217019; Thu, 28 Apr 2005 19:29:58 -0300 (BRT) Received: from coe.ufrj.br ([146.164.53.65]) by localhost (roma.coe.ufrj.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 74467-08; Thu, 28 Apr 2005 19:29:54 -0300 (BRT) Received: from [10.0.8.17] (nat.int.gov.br [200.20.196.226]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by coe.ufrj.br (Postfix) with ESMTP id 8B8CE17015; Thu, 28 Apr 2005 19:29:54 -0300 (BRT) Message-ID: <427163E2.6060209@jonny.eng.br> Date: Thu, 28 Apr 2005 19:29:54 -0300 From: =?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?= User-Agent: Mozilla Thunderbird 1.0+ (Windows/20050315) MIME-Version: 1.0 To: =?ISO-8859-1?Q?S=F8ren_Schmidt?= References: <426D6087.7080908@jonny.eng.br> <42714536.4020703@jonny.eng.br> <42714EC6.9030105@jonny.eng.br> <42715B29.3000905@DeepCore.dk> In-Reply-To: <42715B29.3000905@DeepCore.dk> X-Enigmail-Version: 0.90.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at coe.ufrj.br cc: hackers@FreeBSD.ORG cc: sos@FreeBSD.ORG Subject: Re: URGENT for 5.4-R: ATA meister, read this now - 64/32 bits error found - Trouble with ataraid 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, 28 Apr 2005 22:30:00 -0000 > With a 250G disk you are not even close to using 32bits of LBA space, so Sorry if I am mistaken here. I know that 250G is not above 32 bits, but it is above 28, so lba48 domain should be used. Isn't it possible that this domain change is causing some trouble? That why I went probing sources for this problem, and found those differences. They may not be the source for my trouble, but they are surely wrong. You know that, you fixed it in your patches. ;-) > thats not your problem. You could just leave ataraid out of your kernel > to test if thats whats hurting you. Can I do that with a standard install CD? I don't think so. Note that I did only boot the 5.4-RC3 cd to use the commands: "atacontrol list" and "atacontrol status 0", and this was enough to corrupt. Now I am very afraid of using this again. BTW, this remembers me of another bug. My motherboard does not allow for JBOD/SPAN disks, so this disk is configured for STRIPE, with only one disk in the array. I was trying to change it to JBOD/SPAN with atacontrol, to see if any diference would come, but found that "atacontrol create" must receive two disks, and does not allow for stripes of one single disk. This one seems to be still in your patches. Oh, please also add online help to atacontrol, like scsicontrol. I needed to boot my notebook just to get the atacontrol manual. > If you want to take this further you should try out the ATA mkIII > patches on http://people.freebsd.org/~sos/ATA as that is my corrections > to whats in RELENG_5... I took a quick look in it, but need to create a boot disk with them first. This may take some time. If you have a boot disk available, please tell me. From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 29 03:21:53 2005 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 5210E16A4CE for ; Fri, 29 Apr 2005 03:21:53 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6B6743D31 for ; Fri, 29 Apr 2005 03:21:52 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j3T3IsMF014841; Thu, 28 Apr 2005 21:18:54 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 28 Apr 2005 21:19:33 -0600 (MDT) Message-Id: <20050428.211933.27777590.imp@bsdimp.com> To: cole@opteqint.net From: "M. Warner Losh" In-Reply-To: <000901c54c19$3dba2570$4206000a@deadmind> References: <000901c54c19$3dba2570$4206000a@deadmind> 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 Programming 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, 29 Apr 2005 03:21:53 -0000 In message: <000901c54c19$3dba2570$4206000a@deadmind> "Cole" writes: : now the function im getting stuck at, is the "tmp_addr = : pci_resource_start(pciptr, 4). I was wondering if anyone knows of an : equivalent under FreeBSD. Or if there is a way to obtain that value : with some other method in FreeBSD. I am pretty much fine up until : that point. : : If anyone has any sample code or anything that I could read to : proceed any further, it would be greatly appreciated. FreeBSD's driver enumeration differs in several fundamental ways from Linux. In FreeBSD, the PCI bus code will enumerate (which means find) all the devices on the PCI bus. For each each of these devices, each pci driver is presented with the device for its consideration. The drivers compete for the device by bidding on it. Then, in the attach routine, the resources are allocated. bus_alloc_resource(9) is how you get resources on FreeBSD. All the appropriate masking, etc is done in the pci bus code so you don't have to know much of anything about bars and the like. Just pass the offset of the BAR that describes the resoruce that you want to allocate (for I/O and Memory, IRQ's aren't described by BARs, but instead have a dedicated register). here's a sample driver (it happens to be a slightly edited 'ed' pci attachment) that should help some. ed_pci_probe checks to see if this device's ID matches. ed_pci_attach (in this example) allocates resources, and calls the MI part of the driver to do the attachment. On error, it releases the resoruces, using a standard routine. The ed_attach routine also sets up the ifnet and prints some mostly useless information about the card. Warner static struct _pcsid { uint32_t type; const char *desc; } pci_ids[] = { { 0x802910ec, "NE2000 PCI Ethernet (RealTek 8029)" }, { 0x00000000, NULL } }; static int ed_pci_probe(device_t); static int ed_pci_attach(device_t); static int ed_pci_probe(device_t dev) { uint32_t type = pci_get_devid(dev); struct _pcsid *ep =pci_ids; while (ep->type && ep->type != type) ++ep; if (ep->desc == NULL) return (ENXIO); device_set_desc(dev, ep->desc); return (BUS_PROBE_DEFAULT); } static int ed_pci_attach(device_t dev) { struct ed_softc *sc = device_get_softc(dev); struct resource *res; int error; res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0ul, ~0ul, size, RF_ACTIVE); if (res == NULL) return (ENOMEM); sc->port_rid = rid; sc->port_res = res; sc->port_used = size; sc->port_bst = rman_get_bustag(res); sc->port_bsh = rman_get_bushandle(res); res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE | RF_SHAREABLE); if (res == NULL) { ed_release_resources(dev); return (ENOMEM); } error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET, edintr, sc, &sc->irq_handle); if (error) { ed_release_resources(dev); return (error); } error = ed_attach(dev); if (error) ed_release_resources(dev); return (error); } static device_method_t ed_pci_methods[] = { /* Device interface */ DEVMETHOD(device_probe, ed_pci_probe), DEVMETHOD(device_attach, ed_pci_attach), DEVMETHOD(device_attach, ed_detach), { 0, 0 } }; static driver_t ed_pci_driver = { "ed", ed_pci_methods, sizeof(struct ed_softc), }; DRIVER_MODULE(ed, pci, ed_pci_driver, ed_devclass, 0, 0); MODULE_DEPEND(ed, pci, 1, 1, 1); MODULE_DEPEND(ed, ether, 1, 1, 1); From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 29 03:45:30 2005 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 E148A16A4CE; Fri, 29 Apr 2005 03:45:30 +0000 (GMT) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF28743D54; Fri, 29 Apr 2005 03:45:29 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.51.77] ([192.168.51.77]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id j3T3jSWZ041344; Thu, 28 Apr 2005 22:45:28 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <4271ADA0.2070000@centtech.com> Date: Thu, 28 Apr 2005 22:44:32 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050325 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Losher References: <06ba01c54bff$8c5aed00$7f06000a@int.mediasurface.com> <4271812F.4060808@isc.org> In-Reply-To: <4271812F.4060808@isc.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: freebsd-performance@freebsd.org cc: Steven Hartland Subject: Re: Very low disk performance Highpoint 1820a 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, 29 Apr 2005 03:45:31 -0000 Peter Losher wrote: > Steven Hartland wrote: > > >>5.4-STABLE Highpoint 1820a RAID 5 ( 5 disk ) >>dd if=/dev/da0 of=/dev/null bs=64k count=10000 >>10000+0 records in >>10000+0 records out >>655360000 bytes transferred in 13.348032 secs (49097875 bytes/sec) > > > Have you tried the driver supplied by Highpoint as a pre-compiled kernel > module? I have a 1820A with 4x400GB Hitachi SATA disks (RAID5 + 1 Hot > Spare) in a system running 5.3-RC3/amd64, where I have to use the kernel > module, and I get almost double the speed that you have: > > -=- > % dd if=/dev/da0 of=/dev/null bs=64k count=10000 > 10000+0 records in > 10000+0 records out > 655360000 bytes transferred in 7.775190 secs (84288614 bytes/sec) I'm using fiber channel SATA, and I get 2x write as I do read, which doesn't make sense to me. What kind of write speeds do you get? My tiny brain tells me that reads should be faster than writes with a RAID5. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology A lost ounce of gold may be found, a lost moment of time never. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 29 09:47:13 2005 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 25D6516A4CE for ; Fri, 29 Apr 2005 09:47:13 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CFF843D2D for ; Fri, 29 Apr 2005 09:47:12 +0000 (GMT) (envelope-from dipjyoti.saikia@gmail.com) Received: by zproxy.gmail.com with SMTP id 34so1297381nzf for ; Fri, 29 Apr 2005 02:47:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ukGoX2Eex7njPEG7EpdXOZviV+IGyvcpsD1oBSoH8YmPy4I34TmG0Z0KA7MDf4jQuVypcuZWmePy7zvpJg7v4b2UkybtISxr4hZNkV1xzIjLy2fI5EsFjgQ2RbzbVsWcKpElbCQeN2NNhMU2fXAe5uWun/fRrQyGrgiaWBophC4= Received: by 10.36.8.17 with SMTP id 17mr168981nzh; Fri, 29 Apr 2005 02:47:11 -0700 (PDT) Received: by 10.36.75.15 with HTTP; Fri, 29 Apr 2005 02:47:11 -0700 (PDT) Message-ID: Date: Fri, 29 Apr 2005 15:17:11 +0530 From: Dipjyoti Saikia To: Cole In-Reply-To: <000901c54c19$3dba2570$4206000a@deadmind> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <000901c54c19$3dba2570$4206000a@deadmind> cc: freebsd-hackers@freebsd.org Subject: Re: PCI Programming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dipjyoti Saikia List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 09:47:13 -0000 Hi, The normal usage of pci_resource_start() in Linux is to get the base address of the BAR for further reads/writes using inb/outb etc. In Free BSD you can use the following : bus_alloc_resource(); =20 rman_get_bustag(); rman_get_bushandle(); Usually the ret value of rman_get_bushandle() gives the starting address of the resource (of the BAR for which you called bus_alloc_resource) . Normally we use bus_space_* api's to read/write in FreeBSD. The use of bus_space_ functions need us to only specify the offset rather than the Linux like usage inb(base+offset) etc. Thanks Dip On 4/28/05, Cole wrote: > Hey >=20 > Im currently trying to port some linux pci driver to FreeBSD code. But im= running into a problem. Its using a function that I cant > seem to find the equivalent of for FreeBSD. >=20 > Heres the function up to the point where im getting stuck. >=20 > int FindDevice( void ) > { >=20 > static struct pci_dev *pciptr; > int pci_info_index =3D 0; > U16 wDev; > unsigned int tmp_addr; >=20 > /*-----------------------------------------*/ > #ifdef CONFIG_PCI // find the specified device and its configuration > if( pcibios_present() ){ >=20 > pci_for_each_dev( pciptr ){ > if ((pciptr->vendor =3D=3D VENDOR_ID) && \ > (pciptr->device =3D=3D DEVICE_ID) && \ > (pciptr->subsystem_vendor =3D=3D SUBSYSTEM_VID) && \ > (pciptr->subsystem_device =3D=3D SUBSYSTEM_DID) && \ > (PCI_FUNC(pciptr->devfn) =3D=3D 0) ) > { > DevExtension[pci_info_index].wBus=3D pciptr->bus->numb= er; > DevExtension[pci_info_index].wDevFunc=3D pciptr->devfn= ; > DevExtension[pci_info_index].wCard =3D pci_info_index; > tmp_addr =3D pci_resource_start( pciptr, 4 ); > DevExtension[pci_info_index].func0_bar =3D (tmp_addr &= ~0x03); >=20 > now the function im getting stuck at, is the "tmp_addr =3D pci_resource_s= tart(pciptr, 4). I was wondering if anyone knows of an > equivalent under FreeBSD. Or if there is a way to obtain that value with = some other method in FreeBSD. I am pretty much fine up > until that point. >=20 > If anyone has any sample code or anything that I could read to proceed an= y further, it would be greatly appreciated. >=20 > Regards > /Cole >=20 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " > From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 29 10:18:27 2005 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 000AC16A4CE; Fri, 29 Apr 2005 10:18:26 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FA6743D2D; Fri, 29 Apr 2005 10:18:26 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from stevenp4 ([193.123.241.40]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.1.R) with ESMTP id md50001368651.msg; Fri, 29 Apr 2005 11:14:53 +0100 Message-ID: <08a501c54ca4$c3e80f00$7f06000a@int.mediasurface.com> From: "Steven Hartland" To: "Peter Losher" References: <06ba01c54bff$8c5aed00$7f06000a@int.mediasurface.com> <4271812F.4060808@isc.org> Date: Fri, 29 Apr 2005 11:18:19 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Fri, 29 Apr 2005 11:14:53 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 193.123.241.40 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Fri, 29 Apr 2005 11:14:53 +0100 cc: freebsd-hackers@freebsd.org cc: freebsd-performance@freebsd.org Subject: Re: Very low disk performance Highpoint 1820a 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, 29 Apr 2005 10:18:27 -0000 There is no precompiled version for 5.3 but looking at the openbuild version its the same driver as the built in. 80MB/s is still terrible should be looking closer to 200MB/s. Steven Hartland wrote: > 5.4-STABLE Highpoint 1820a RAID 5 ( 5 disk ) > dd if=/dev/da0 of=/dev/null bs=64k count=10000 > 10000+0 records in > 10000+0 records out > 655360000 bytes transferred in 13.348032 secs (49097875 bytes/sec) Have you tried the driver supplied by Highpoint as a pre-compiled kernel module? I have a 1820A with 4x400GB Hitachi SATA disks (RAID5 + 1 Hot Spare) in a system running 5.3-RC3/amd64, where I have to use the kernel module, and I get almost double the speed that you have: -=- % dd if=/dev/da0 of=/dev/null bs=64k count=10000 10000+0 records in 10000+0 records out 655360000 bytes transferred in 7.775190 secs (84288614 bytes/sec) ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 29 11:23:29 2005 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 6754E16A4CE for ; Fri, 29 Apr 2005 11:23:29 +0000 (GMT) Received: from dgap-gw.mipt.ru (dgap-gw.mipt.ru [194.85.81.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC0B943D49 for ; Fri, 29 Apr 2005 11:23:28 +0000 (GMT) (envelope-from nepal@nas.dgap.mipt.ru) Received: from localhost (unknown [127.0.0.1]) by dgap-gw.mipt.ru (Postfix) with ESMTP id D24CC608138E for ; Fri, 29 Apr 2005 11:23:26 +0000 (UTC) Received: from dgap-gw.mipt.ru ([127.0.0.1]) by localhost (dgap-gw.mipt.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25966-65 for ; Fri, 29 Apr 2005 15:23:18 +0400 (MSD) Received: from nas.dgap.mipt.ru (nas.dgap.mipt.ru [194.85.81.203]) by dgap-gw.mipt.ru (Postfix) with ESMTP id 3E6286186B84 for ; Fri, 29 Apr 2005 15:23:18 +0400 (MSD) Received: from nas.dgap.mipt.ru (localhost [127.0.0.1]) by nas.dgap.mipt.ru (8.12.9p2/8.12.9) with ESMTP id j3TBQZma063359 for ; Fri, 29 Apr 2005 15:26:35 +0400 (MSD) (envelope-from nepal@nas.dgap.mipt.ru) Received: (from nepal@localhost) by nas.dgap.mipt.ru (8.12.9p2/8.12.9/Submit) id j3TBQYuj063358 for freebsd-hackers@freebsd.org; Fri, 29 Apr 2005 15:26:34 +0400 (MSD) (envelope-from nepal) Date: Fri, 29 Apr 2005 15:26:34 +0400 From: "Andrew L. Neporada" To: freebsd-hackers@freebsd.org Message-ID: <20050429112634.GA63285@nas.dgap.mipt.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new-20030616-p8 (Gentoo) at dgap.mipt.ru X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=7.5 tests= X-Spam-Level: Subject: open("/dev/cuaaX") is slow 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, 29 Apr 2005 11:23:29 -0000 --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, hackers! It seems that reopening /dev/cuaaX devices after close() takes exactly 3 seconds on FreeBSD 4.10 (sorry, I've no 5.x systems available at the moment). Here is output of attached program: open() time: 155 us open() time: 2995729 us open() time: 2999811 us open() time: 2999608 us open() time: 2999711 us open() time: 2999720 us open() time: 2999713 us open() time: 2999744 us open() time: 2999673 us open() time: 2999706 us Is this 3 second delay necessary? Can I get rid of it? Andrew. --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="siotest.c" #include #include #include int main(void) { int fd, i; long us; struct timeval tv1, tv2; for (i = 0; i < 10; i++) { gettimeofday(&tv1, NULL); fd = open("/dev/cuaa0", O_RDWR); gettimeofday(&tv2, NULL); us = (tv2.tv_sec - tv1.tv_sec) * 1000000 + (tv2.tv_usec - tv1.tv_usec); printf("open() time: %d us\n", us); if (fd == -1) { perror("open"); exit(1); } close(fd); } } --W/nzBZO5zC0uMSeA-- From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 29 00:34:53 2005 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 AEED016A4CE; Fri, 29 Apr 2005 00:34:53 +0000 (GMT) Received: from farside.isc.org (farside.isc.org [204.152.187.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AB3543D60; Fri, 29 Apr 2005 00:34:53 +0000 (GMT) (envelope-from Peter_Losher@isc.org) Received: from [IPv6:2001:4f8:3:bb::37] (tardis.isc.org [IPv6:2001:4f8:3:bb::37]) by farside.isc.org (Postfix) with ESMTP id 67C74677FA; Fri, 29 Apr 2005 00:34:53 +0000 (UTC) (envelope-from Peter_Losher@isc.org) Message-ID: <4271812F.4060808@isc.org> Date: Thu, 28 Apr 2005 17:34:55 -0700 From: Peter Losher User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050325) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Hartland References: <06ba01c54bff$8c5aed00$7f06000a@int.mediasurface.com> In-Reply-To: <06ba01c54bff$8c5aed00$7f06000a@int.mediasurface.com> X-Enigmail-Version: 0.91.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFA6731D71D705328E94F2D22" X-Mailman-Approved-At: Fri, 29 Apr 2005 12:35:55 +0000 cc: freebsd-hackers@freebsd.org cc: freebsd-performance@freebsd.org Subject: Re: Very low disk performance Highpoint 1820a 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, 29 Apr 2005 00:34:53 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFA6731D71D705328E94F2D22 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Steven Hartland wrote: > 5.4-STABLE Highpoint 1820a RAID 5 ( 5 disk ) > dd if=/dev/da0 of=/dev/null bs=64k count=10000 > 10000+0 records in > 10000+0 records out > 655360000 bytes transferred in 13.348032 secs (49097875 bytes/sec) Have you tried the driver supplied by Highpoint as a pre-compiled kernel module? I have a 1820A with 4x400GB Hitachi SATA disks (RAID5 + 1 Hot Spare) in a system running 5.3-RC3/amd64, where I have to use the kernel module, and I get almost double the speed that you have: -=- % dd if=/dev/da0 of=/dev/null bs=64k count=10000 10000+0 records in 10000+0 records out 655360000 bytes transferred in 7.775190 secs (84288614 bytes/sec) -=- Best Wishes - Peter -- Peter_Losher@isc.org | ISC | OpenPGP 0xE8048D08 | "The bits must flow" --------------enigFA6731D71D705328E94F2D22 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCcYEvPtVx9OgEjQgRAlF+AKCQT6REpmtZFXzBE2jJnaRLJcyxHwCgsmVS NXe3yLTwG2fg2KAwK7+41HE= =MoJJ -----END PGP SIGNATURE----- --------------enigFA6731D71D705328E94F2D22-- From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 29 04:09:04 2005 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 8F6FE16A4CE; Fri, 29 Apr 2005 04:09:04 +0000 (GMT) Received: from silver.he.iki.fi (helenius.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEB3143D54; Fri, 29 Apr 2005 04:09:03 +0000 (GMT) (envelope-from pete@he.iki.fi) Received: from [193.64.42.134] (h86.vuokselantie10.fi [193.64.42.134]) by silver.he.iki.fi (8.13.1/8.11.4) with ESMTP id j3T48sdE097207; Fri, 29 Apr 2005 07:08:54 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <4271B378.5050100@he.iki.fi> Date: Fri, 29 Apr 2005 07:09:28 +0300 From: Petri Helenius User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Anderson References: <06ba01c54bff$8c5aed00$7f06000a@int.mediasurface.com> <4271812F.4060808@isc.org> <4271ADA0.2070000@centtech.com> In-Reply-To: <4271ADA0.2070000@centtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 29 Apr 2005 12:35:55 +0000 cc: freebsd-hackers@freebsd.org cc: freebsd-performance@freebsd.org cc: Steven Hartland cc: Peter Losher Subject: Re: Very low disk performance Highpoint 1820a 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, 29 Apr 2005 04:09:04 -0000 Eric Anderson wrote: > > I'm using fiber channel SATA, and I get 2x write as I do read, which > doesn't make sense to me. What kind of write speeds do you get? My > tiny brain tells me that reads should be faster than writes with a RAID5. > I'm seeing similar sequential performance on RELENG_5_3 and RELENG_5_4 on dual-Xeons using 3ware controllers so it does not seem to be a driver issue but somewhere else in the architechture. Depending on the array configuration, 40-60MB/s reads and 100-160MB/s writes. The write performance is as expected but the read performance should be above the write performance. Pete From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 29 13:01:10 2005 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 E059216A4CE for ; Fri, 29 Apr 2005 13:01:10 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A562843D31 for ; Fri, 29 Apr 2005 13:01:09 +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 j3TD0m1I096806; Fri, 29 Apr 2005 22:30:50 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 29 Apr 2005 22:30:32 +0930 User-Agent: KMail/1.8 References: <20050429112634.GA63285@nas.dgap.mipt.ru> In-Reply-To: <20050429112634.GA63285@nas.dgap.mipt.ru> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1469801.0Aq9nvMhEH"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200504292230.40795.doconnor@gsoft.com.au> X-Spam-Score: -2.5 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Subject: Re: open("/dev/cuaaX") is slow 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, 29 Apr 2005 13:01:11 -0000 --nextPart1469801.0Aq9nvMhEH Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 29 Apr 2005 20:56, Andrew L. Neporada wrote: > It seems that reopening /dev/cuaaX devices after close() takes exactly > 3 seconds on FreeBSD 4.10 (sorry, I've no 5.x systems available at the > moment). > > Here is output of attached program: > open() time: 155 us > open() time: 2995729 us > open() time: 2999811 us > open() time: 2999608 us > open() time: 2999711 us > open() time: 2999720 us > open() time: 2999713 us > open() time: 2999744 us > open() time: 2999673 us > open() time: 2999706 us > > Is this 3 second delay necessary? Can I get rid of it? man comcontrol Try trimming the dtrwait value back and see how it goes. (Although I'm not sure why you want to open/close a serial port so frequent= ly) =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 --nextPart1469801.0Aq9nvMhEH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCci/45ZPcIHs/zowRAn0ZAJ468ZmvJQnUUPReBdDt5UkJ/ck7PQCeMG+B IA/ZyxqpOOziZHLgnDLUwv4= =KmtW -----END PGP SIGNATURE----- --nextPart1469801.0Aq9nvMhEH-- From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 29 13:48:11 2005 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 B38EB16A4CF for ; Fri, 29 Apr 2005 13:48:11 +0000 (GMT) Received: from dgap-gw.mipt.ru (dgap-gw.mipt.ru [194.85.81.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E96F43D2F for ; Fri, 29 Apr 2005 13:48:09 +0000 (GMT) (envelope-from nepal@nas.dgap.mipt.ru) Received: from localhost (unknown [127.0.0.1]) by dgap-gw.mipt.ru (Postfix) with ESMTP id 804EB60A6720; Fri, 29 Apr 2005 13:48:08 +0000 (UTC) Received: from dgap-gw.mipt.ru ([127.0.0.1]) by localhost (dgap-gw.mipt.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21542-49; Fri, 29 Apr 2005 17:47:59 +0400 (MSD) Received: from nas.dgap.mipt.ru (nas.dgap.mipt.ru [194.85.81.203]) by dgap-gw.mipt.ru (Postfix) with ESMTP id D13C460811BC; Fri, 29 Apr 2005 17:47:59 +0400 (MSD) Received: from nas.dgap.mipt.ru (localhost [127.0.0.1]) by nas.dgap.mipt.ru (8.12.9p2/8.12.9) with ESMTP id j3TDpHma063774; Fri, 29 Apr 2005 17:51:17 +0400 (MSD) (envelope-from nepal@nas.dgap.mipt.ru) Received: (from nepal@localhost) by nas.dgap.mipt.ru (8.12.9p2/8.12.9/Submit) id j3TDpHYV063773; Fri, 29 Apr 2005 17:51:17 +0400 (MSD) (envelope-from nepal) Date: Fri, 29 Apr 2005 17:51:17 +0400 From: "Andrew L. Neporada" To: "Daniel O'Connor" Message-ID: <20050429135117.GA63735@nas.dgap.mipt.ru> References: <20050429112634.GA63285@nas.dgap.mipt.ru> <200504292230.40795.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200504292230.40795.doconnor@gsoft.com.au> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new-20030616-p8 (Gentoo) at dgap.mipt.ru X-Spam-Status: No, hits=1.0 tagged_above=0.0 required=7.5 tests=HTTP_COM X-Spam-Level: * cc: freebsd-hackers@freebsd.org Subject: Re: open("/dev/cuaaX") is slow 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, 29 Apr 2005 13:48:11 -0000 On Fri, Apr 29, 2005 at 10:30:32PM +0930, Daniel O'Connor wrote: > > open() time: 2999673 us > > open() time: 2999706 us > > > > Is this 3 second delay necessary? Can I get rid of it? > > man comcontrol > Try trimming the dtrwait value back and see how it goes. Thanks you, it does help. I've thought that DTR signal and associated parameters are ignored while working with cuaa devices, they are used only with ttyd. > > (Although I'm not sure why you want to open/close a serial port so frequently) Some special software I am using works this way :-( > > -- > 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 Andrew. From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 29 14:00:31 2005 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 D857616A4CE for ; Fri, 29 Apr 2005 14:00:31 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05CED43D1D for ; Fri, 29 Apr 2005 14:00:31 +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 j3TE0KHE097427; Fri, 29 Apr 2005 23:30:20 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: "Andrew L. Neporada" Date: Fri, 29 Apr 2005 23:30:04 +0930 User-Agent: KMail/1.8 References: <20050429112634.GA63285@nas.dgap.mipt.ru> <200504292230.40795.doconnor@gsoft.com.au> <20050429135117.GA63735@nas.dgap.mipt.ru> In-Reply-To: <20050429135117.GA63735@nas.dgap.mipt.ru> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1690119.zd9LJXxYLv"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200504292330.14252.doconnor@gsoft.com.au> X-Spam-Score: -2.2 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_03_05,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: freebsd-hackers@freebsd.org Subject: Re: open("/dev/cuaaX") is slow 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, 29 Apr 2005 14:00:32 -0000 --nextPart1690119.zd9LJXxYLv Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 29 Apr 2005 23:21, Andrew L. Neporada wrote: > I've thought that DTR signal and associated parameters are ignored while > working with cuaa devices, they are used only with ttyd. The only signal cuaa devices ignore is carrier detect I believe. > > (Although I'm not sure why you want to open/close a serial port so > > frequently) > > Some special software I am using works this way :-( Ahh, got to hate that :( You might find the initial state devices handy in conjunction with stty to= =20 turn hardware flow control off although I'm not sure if it would make=20 much/any difference. =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 --nextPart1690119.zd9LJXxYLv Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCcj3u5ZPcIHs/zowRAhH/AJ46gxr83vfDHdJBRcbnwLrYkIeeqQCfc3xo 3U7jK28gKgxK9lhby+ebmRU= =1chl -----END PGP SIGNATURE----- --nextPart1690119.zd9LJXxYLv-- From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 30 04:37:23 2005 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 051C016A4CE; Sat, 30 Apr 2005 04:37:23 +0000 (GMT) Received: from april.chuckr.org (april.chuckr.org [66.92.151.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8FEC43D46; Sat, 30 Apr 2005 04:37:22 +0000 (GMT) (envelope-from chuckr@chuckr.org) Received: from [66.92.151.195] (july.chuckr.org [66.92.151.195]) by april.chuckr.org (Postfix) with ESMTP id 72511114FC; Sat, 30 Apr 2005 00:32:23 -0400 (EDT) Message-ID: <42730B4F.1020000@chuckr.org> Date: Sat, 30 Apr 2005 04:36:31 +0000 From: Chuck Robey User-Agent: Mozilla Thunderbird 1.0 (X11/20050316) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel O'Connor References: <426AC21B.2080205@chuckr.org> <17005.5342.260402.241779@canoe.dclg.ca> <426ECF7C.8060003@chuckr.org> <200504271416.05216.doconnor@gsoft.com.au> In-Reply-To: <200504271416.05216.doconnor@gsoft.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: Tim Kientzle cc: David Gilbert cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= Subject: Re: region code in cdrecord 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, 30 Apr 2005 04:37:23 -0000 Daniel O'Connor wrote: > On Wed, 27 Apr 2005 09:02, Chuck Robey wrote: > >>and growisofs instead. The both have large man pages, but nothing in >>them regarding the setting of region codes. > > > Not at all suprising given that the ISO metdata (ie what mkisofs makes) > doesn't contain the region information.. > Just thought I'd add, finally, that I'm putting together a rather large list of data about dvd's, and I have finally answered all of my quesrtions. I might even put together a web page on it. In fact, if one of you geeks will recommend a useable web page editor (one that allows me to integrate java) then I'll do just that. From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 30 08:10:32 2005 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 3573C16A4CE; Sat, 30 Apr 2005 08:10:31 +0000 (GMT) Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D7D543D2D; Sat, 30 Apr 2005 08:10:31 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtp-vbr6.xs4all.nl (8.12.11/8.12.11) with ESMTP id j3U8AHkx072044; Sat, 30 Apr 2005 10:10:17 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.13.3/8.13.1) with ESMTP id j3U8AH57038099; Sat, 30 Apr 2005 10:10:17 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.3/8.13.1/Submit) id j3U8ADxn037705; Sat, 30 Apr 2005 10:10:13 +0200 (CEST) (envelope-from wb) Date: Sat, 30 Apr 2005 10:10:13 +0200 From: Wilko Bulte To: Chuck Robey Message-ID: <20050430081012.GA275@freebie.xs4all.nl> References: <426AC21B.2080205@chuckr.org> <17005.5342.260402.241779@canoe.dclg.ca> <426ECF7C.8060003@chuckr.org> <200504271416.05216.doconnor@gsoft.com.au> <42730B4F.1020000@chuckr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42730B4F.1020000@chuckr.org> X-OS: FreeBSD 5.4-STABLE User-Agent: Mutt/1.5.9i X-Virus-Scanned: by XS4ALL Virus Scanner cc: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= cc: Tim Kientzle cc: David Gilbert cc: freebsd-hackers@freebsd.org Subject: Re: region code in cdrecord 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, 30 Apr 2005 08:10:32 -0000 On Sat, Apr 30, 2005 at 04:36:31AM +0000, Chuck Robey wrote.. > Daniel O'Connor wrote: > >On Wed, 27 Apr 2005 09:02, Chuck Robey wrote: > > > >>and growisofs instead. The both have large man pages, but nothing in > >>them regarding the setting of region codes. > > > > > >Not at all suprising given that the ISO metdata (ie what mkisofs makes) > >doesn't contain the region information.. > > > Just thought I'd add, finally, that I'm putting together a rather large > list of data about dvd's, and I have finally answered all of my > quesrtions. I might even put together a web page on it. In fact, if Why don't you integrate it into the FreeBSD handbook page's on creating DVDs/CDs? That would allow people to find everything in one place. > one of you geeks will recommend a useable web page editor (one that > allows me to integrate java) then I'll do just that. Yuck.. -- Wilko Bulte wilko@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 30 02:18:08 2005 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 3F47D16A4CE; Sat, 30 Apr 2005 02:18:07 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 145D843D3F; Sat, 30 Apr 2005 02:18:07 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 05D0472DEB; Fri, 29 Apr 2005 19:18:06 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 000DA72DEA; Fri, 29 Apr 2005 19:18:06 -0700 (PDT) Date: Fri, 29 Apr 2005 19:18:06 -0700 (PDT) From: Doug White To: Brian Candler In-Reply-To: <20050428102936.GA89935@uk.tiscali.com> Message-ID: <20050429190711.P85282@carver.gumbysoft.com> References: <20050428053528.G59099@lexi.siliconlandmark.com> <20050428102936.GA89935@uk.tiscali.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Mailman-Approved-At: Sat, 30 Apr 2005 13:03:53 +0000 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: Andre Guibert de Bruet Subject: Re: how to set dumpdev 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, 30 Apr 2005 02:18:09 -0000 On Thu, 28 Apr 2005, Brian Candler wrote: > On Thu, Apr 28, 2005 at 05:37:16AM -0400, Andre Guibert de Bruet wrote: > > > i can't use dumpon, since the kernel is panicking on boot, so > > >tried in loader.conf: > > > dumpdev="/dev/ar0s1b" > > >but getting: > > >db> call doadump > > >Cannot dump. No dump device defined. > > >0x25 > > > > > >i need this is for current 6.0 > > >thanks, > > > danny > > > > > > > That directive, along with dumpdir, would be set in /etc/rc.conf. > > According to `man dumpon` (on a 5-STABLE system): > > Since dumpon cannot be used during kernel initialization, the dumpdev > variable of loader(8) must be used to enable dumps for system panics > which occur during kernel initialization. > > But I don't find 'dumpdev' referenced anywhere under /usr/src/sys/boot/. Is > the documentation wrong? It wouldn't be there, but it alos loks like that tunable has gone away when GEOM took over definign the dump device. Now it needs a struct to specify the target, and you wouldn't be able to set it until way late in the boot anyway (when GEOM attaches the disks). -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 30 16:28:50 2005 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 D45C316A4EF; Sat, 30 Apr 2005 16:28:49 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.3/8.13.1) with ESMTP id j3UGSk7x063267; Sat, 30 Apr 2005 12:28:46 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.3/8.13.1/Submit) id j3UGSjO5063266; Sat, 30 Apr 2005 12:28:45 -0400 (EDT) (envelope-from green) Date: Sat, 30 Apr 2005 12:28:45 -0400 From: Brian Fundakowski Feldman To: Doug White Message-ID: <20050430162845.GJ39270@green.homeunix.org> References: <20050428053528.G59099@lexi.siliconlandmark.com> <20050428102936.GA89935@uk.tiscali.com> <20050429190711.P85282@carver.gumbysoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050429190711.P85282@carver.gumbysoft.com> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: Brian Candler Subject: Re: how to set dumpdev 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, 30 Apr 2005 16:28:50 -0000 On Fri, Apr 29, 2005 at 07:18:06PM -0700, Doug White wrote: > On Thu, 28 Apr 2005, Brian Candler wrote: > > > On Thu, Apr 28, 2005 at 05:37:16AM -0400, Andre Guibert de Bruet wrote: > > > > i can't use dumpon, since the kernel is panicking on boot, so > > > >tried in loader.conf: > > > > dumpdev="/dev/ar0s1b" > > > >but getting: > > > >db> call doadump > > > >Cannot dump. No dump device defined. > > > >0x25 > > > > > > > >i need this is for current 6.0 > > > >thanks, > > > > danny > > > > > > > > > > That directive, along with dumpdir, would be set in /etc/rc.conf. > > > > According to `man dumpon` (on a 5-STABLE system): > > > > Since dumpon cannot be used during kernel initialization, the dumpdev > > variable of loader(8) must be used to enable dumps for system panics > > which occur during kernel initialization. > > > > But I don't find 'dumpdev' referenced anywhere under /usr/src/sys/boot/. Is > > the documentation wrong? > > It wouldn't be there, but it alos loks like that tunable has gone away > when GEOM took over definign the dump device. Now it needs a struct to > specify the target, and you wouldn't be able to set it until way late in > the boot anyway (when GEOM attaches the disks). Once that point has been reached there's little technical reason that it couldn't automagically pick up a loader environment variable, or by adjustable by a DDB command. Way back when, you could, after having reached the appropriate part of the boot sequence, do something much like: db> show disk/ad0s1b struct cdev *=0xc2f00000 db> w dumpdev In this case, you would presumably be able to do this by booting into DDB early and setting "break execve" to stop right before init is executed. Of course, this method wouldn't be particularly useful if the problem is occurring even before that. The easiest potential location I can think of to stick a tunable would be just before the vfs_mountroot() in start_init(), but then after moving the g_waitidle() from vfs_mountroot() to just before this check in start_init(). -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\