From owner-freebsd-hackers@FreeBSD.ORG Sun May 1 08:46: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 B1E4316A4CE for ; Sun, 1 May 2005 08:46:47 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 626CA43D31 for ; Sun, 1 May 2005 08:46:47 +0000 (GMT) (envelope-from guomingyan@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so1238264wri for ; Sun, 01 May 2005 01:46:46 -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=kc7p0NHkvj751maXwPckId5NVouj0jRkwMGON18RW3Gnn/w9AcNH9/QfUawjfmV4i10pA+fff1Bjy9W5w/wIRTbCvQvWQhcAfEZLR3EepJqGFp5aL9iMQAqLxGlo1ldPNGSrCfDBJ4Nqlm8BA8BtHNzJ2idGvcWwjvvWBlSwOJo= Received: by 10.54.3.42 with SMTP id 42mr57502wrc; Sun, 01 May 2005 01:46:46 -0700 (PDT) Received: by 10.54.34.46 with HTTP; Sun, 1 May 2005 01:46:46 -0700 (PDT) Message-ID: <1fa17f8105050101464489a09@mail.gmail.com> Date: Sun, 1 May 2005 16:46:46 +0800 From: prime 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 Subject: A question about /sys/kern/link_elf.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: prime List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2005 08:46:47 -0000 There is a "#ifdef SPARSE_MAPPING" at line 701,and again a "#ifdef SPARSE_MAPPING" at line 713.I just can't understand the second one.Does it have any special mean ? thanks . From owner-freebsd-hackers@FreeBSD.ORG Sun May 1 18:49: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 4A1EE16A4CE for ; Sun, 1 May 2005 18:49:11 +0000 (GMT) Received: from bgo1smout1.broadpark.no (bgo1smout1.broadpark.no [217.13.4.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC06443D1F for ; Sun, 1 May 2005 18:49:10 +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 <0IFT006MQQNVL620@bgo1smout1.broadpark.no> for hackers@freebsd.org; Sun, 01 May 2005 20:43:07 +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 <0IFT00GYZQZ0YUE0@bgo1sminn1.broadpark.no> for hackers@freebsd.org; Sun, 01 May 2005 20:49:48 +0200 (CEST) Received: by dsa.des.no (Pony Express, from userid 666) id 8A66E45535; Sun, 01 May 2005 20:48:53 +0200 (CEST) Received: from xps.des.no (xps.des.no [10.0.0.12]) by dsa.des.no (Pony Express) with ESMTP id E5717453D1 for ; Sun, 01 May 2005 20:48:48 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id D678733C39; Sun, 01 May 2005 20:48:48 +0200 (CEST) Date: Sun, 01 May 2005 20:48:48 +0200 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) To: hackers@freebsd.org Message-id: <86zmve93zj.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 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: Subject: /etc/rc.d/nfslocking 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, 01 May 2005 18:49:11 -0000 ...only checks if nfs_server_enable *or* nfs_client_enable is true before trying to start rpc.statd and rpc.lockd; but rpc.lockd won't work if the nfsclient module compiled in or loaded. I can't make up my mind whether to hack rpc.lockd to kldload nfsclient, hack /etc/rc.d/nfslocking to require nfs_client_enable for rpc.lockd, or hack /etc/rc.d/nfslocking to silently load it when needed. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Sun May 1 20:59: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 90CD316A4CE; Sun, 1 May 2005 20:59:21 +0000 (GMT) Received: from outgoing.redshift.com (outgoing.redshift.com [207.177.231.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B9E143D1F; Sun, 1 May 2005 20:59:21 +0000 (GMT) (envelope-from ray@redshift.com) Received: from workstation (216-228-19-21.dsl.redshift.com [216.228.19.21]) by outgoing.redshift.com (Postfix) with SMTP id 1E1D79709E; Sun, 1 May 2005 13:59:21 -0700 (PDT) Message-Id: <3.0.1.32.20050501135931.00b23ee0@pop.redshift.com> X-Mailer: na X-Sender: redshift.com Date: Sun, 01 May 2005 13:59:31 -0700 To: freebsd-amd64@freebsd.org From: ray@redshift.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" cc: freebsd-hackers@freebsd.org Subject: AMD64 / EM64T 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, 01 May 2005 20:59:21 -0000 Hi List, I'm running a cluster over here (15 Xeon's) and need to put a couple of new master database servers on line. I've done some testing with FreeBSD/amd64 but aside from a small increase in performance, haven't really seen anything too dramatic (this is a single Supermicro Xeon 2.40 Ghz vs. a Dual Opteron 246 with a Tyan board). I guess my questions is two fold: 1. Does anyone have any feedback/experience as far as running FreeBSD/amd64 on a dual the Intel Xeon 64 bit EM64T setup? I have tried amd64 on the Opteron machine we have here and it seems to work okay, but it has not been in a production environment yet. I've also never tried it on the EM64T CPU's. Are the EM64T cpu's just as compatible with it as the AMD Opteron's? And are there any pros/cons vs. one or the other? 2. Is the AMD64 branch stable enough for production use or would it make more since to stick to i386 and run that on a faster (although probably not as fast) machine, and avoid 64 bit for the time being. I've heard mixed reviews from our hardware vendor regarding enterprise sites which have jumped on the 64 bit bandwagon too soon and regretted it. If anyone has any feelings or comments as far as if the amd64 works well on the EM64T CPU's and/or if the general consensus is that the AMD64 branch is as stable and production ready as the i386 branch - I would certainly enjoy hearing comments/suggestions from members of the list. For me, I'm not looking to squeeze every possible ounce of performance out of the machines - stability is the first priority, then speed (as much as possible while staying with something fairly standard and tested) is the next concern. Thanks! Ray cc: cross post to hackers as well... I know, I know... :) From owner-freebsd-hackers@FreeBSD.ORG Mon May 2 02:39: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 ED88216A4CE for ; Mon, 2 May 2005 02:39:26 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5892D43D3F for ; Mon, 2 May 2005 02:39:26 +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 md50001374823.msg for ; Mon, 02 May 2005 03:35:20 +0100 Message-ID: <007901c54ec0$14bb3e30$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: Date: Mon, 2 May 2005 03:38:49 +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, Mon, 02 May 2005 03:35:20 +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, Mon, 02 May 2005 03:35:22 +0100 Subject: 5.4-STABLE corrupting fs on shutdown -p now? 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, 02 May 2005 02:39:27 -0000 Seems like doing a shutdown -p now on the current 5.4-STABLE branch is resulting in FS corruption. I've done this 4 times now and all but 1 time the machine has failed to boot with a panic: mod=0100600, inum=1271817, fs=/var panic: ffs_valloc: dup alloc cpuid = 0 boot() called on cpu#0 The only way to fix is single user mode and manually run fsck. Even the one time it didn't cause a panic I still got a warning about / not being clean which it should have been as the machine shutdown cleanly no outstanding buffers. I notice in UPDATING: 20050228: The responsibility of recomputing the file system summary of a SoftUpdates-enabled dirty volume has been transferred to the background fsck. A rebuild of fsck(8) utility is recommended if you have updated the kernel. To get the old behavior (recompute file system summary at mount time), you can set vfs.ffs.compute_summary_at_mount=1 before mounting the new volume. Could this change have something to do with the panic happening instead of just recovering? Why would FS's be being corrupted by "shutdown -p now" where as "reboot" doesnt seem to? 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 Mon May 2 02:53: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 2B9CD16A4CE for ; Mon, 2 May 2005 02:53:07 +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 E27CD43D1D for ; Mon, 2 May 2005 02:53:06 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 2E773513B1; Sun, 1 May 2005 19:53:06 -0700 (PDT) Date: Sun, 1 May 2005 19:53:06 -0700 From: Kris Kennaway To: Steven Hartland Message-ID: <20050502025305.GA29984@xor.obsecurity.org> References: <007901c54ec0$14bb3e30$b3db87d4@multiplay.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline In-Reply-To: <007901c54ec0$14bb3e30$b3db87d4@multiplay.co.uk> User-Agent: Mutt/1.4.2.1i cc: freebsd-hackers@freebsd.org Subject: Re: 5.4-STABLE corrupting fs on shutdown -p now? 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, 02 May 2005 02:53:07 -0000 --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 02, 2005 at 03:38:49AM +0100, Steven Hartland wrote: > Seems like doing a shutdown -p now on the current > 5.4-STABLE branch is resulting in FS corruption. > I've done this 4 times now and all but 1 time the > machine has failed to boot with a panic: > mod=3D0100600, inum=3D1271817, fs=3D/var > panic: ffs_valloc: dup alloc > cpuid =3D 0 > boot() called on cpu#0 >=20 > The only way to fix is single user mode and manually > run fsck. Even the one time it didn't cause a panic I > still got a warning about / not being clean which it > should have been as the machine shutdown cleanly > no outstanding buffers. In some cases fsck will not repair all corruption in one pass. Rerun it until it stops finding new things to fix. > Could this change have something to do with the panic > happening instead of just recovering? Doesn't seem likely to me. > Why would FS's be being corrupted by "shutdown -p now" where > as "reboot" doesnt seem to? Maybe the machine is being powered down before your disks have finished writing their data to disk. Kris --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCdZYRWry0BWjoQKURApy+AKD7O8Wj6afnRrLdqQj+k7zDHk9sNQCeIoXv MXLJUg/8UxbWjBqKRbCFTCI= =re3X -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24-- From owner-freebsd-hackers@FreeBSD.ORG Mon May 2 03:01: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 936B816A4CE for ; Mon, 2 May 2005 03:01:18 +0000 (GMT) Received: from julesburg.uits.indiana.edu (julesburg.uits.indiana.edu [129.79.1.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 083BC43D3F for ; Mon, 2 May 2005 03:01:18 +0000 (GMT) (envelope-from dmschei@attglobal.net) Received: from mail-relay.iu.edu (logchain.uits.indiana.edu [129.79.1.77]) j4231FaN011985; Sun, 1 May 2005 22:01:15 -0500 (EST) Received: from [149.161.16.37] (viper-037-client.iusb.edu [149.161.16.37]) (authenticated bits=0)j4231EsY026770; Sun, 1 May 2005 22:01:14 -0500 (EST) Message-ID: <427597F9.7000608@attglobal.net> Date: Sun, 01 May 2005 22:01:13 -0500 From: David Scheidt User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050426) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Kennaway References: <007901c54ec0$14bb3e30$b3db87d4@multiplay.co.uk> <20050502025305.GA29984@xor.obsecurity.org> In-Reply-To: <20050502025305.GA29984@xor.obsecurity.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: Steven Hartland Subject: Re: 5.4-STABLE corrupting fs on shutdown -p now? 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, 02 May 2005 03:01:18 -0000 Kris Kennaway wrote: > On Mon, May 02, 2005 at 03:38:49AM +0100, Steven Hartland wrote: >>Why would FS's be being corrupted by "shutdown -p now" where >>as "reboot" doesnt seem to? > > > Maybe the machine is being powered down before your disks have > finished writing their data to disk. > My ThinkPad has done this several times. It normally boots, but complains that filesystems aren't clean. I can't reliably reproduce it. As I'm not normally beating on the disk before I power it off, I can't see that it wouldn't have time to write the data. (The buffer counts are always less than 5). It didn't do this on the mid-feb. stable I was running until recently. > Kris From owner-freebsd-hackers@FreeBSD.ORG Mon May 2 04:09:25 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 BC84B16A4CE for ; Mon, 2 May 2005 04:09:25 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id C363443D1D for ; Mon, 2 May 2005 04:09:24 +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 md50001374898.msg for ; Mon, 02 May 2005 05:04:48 +0100 Message-ID: <001701c54ecc$921546d0$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Kris Kennaway" References: <007901c54ec0$14bb3e30$b3db87d4@multiplay.co.uk> <20050502025305.GA29984@xor.obsecurity.org> <001c01c54ec4$1f58d880$b3db87d4@multiplay.co.uk> <20050502031444.GA40715@xor.obsecurity.org> Date: Mon, 2 May 2005 05:08:14 +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, Mon, 02 May 2005 05:04:48 +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, Mon, 02 May 2005 05:04:49 +0100 cc: freebsd-hackers@freebsd.org Subject: Re: 5.4-STABLE corrupting fs on shutdown -p now? 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, 02 May 2005 04:09:25 -0000 Kris Kennaway wrote:: >> Surely thats what the buffer sync is doing. Watching the console both >> these actions appear to be doing identical things but the end results >> are quite different :( buffers are always under 5 usually 2 and its not >> like there's been a great deal of activity. The last test I did was just a >> boot, login, shutdown ( result was / not clean but all the others ok ). > > Modern IDE drives sometimes lie about having finished writing out the > data, when in fact it's still only in cache. You should be able to > disable this behaviour to test (try the BIOS). I have a "HDD Post Write Buffer" in the BIOS according to the MB manual although the disks aren't connected to the MB controllers they are on RAID 5 set off a PCI-X card. Will give it a go tomorrow ( drag the monitor back to the rack ). Will this have any performance penalties? I could just avoid using shutdown -p but it seems a bit dodgy what its doing. If this machine where miles away without remote console it would have caused major amounts of pain. 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 Mon May 2 10:13:57 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 4A1D316A4CE for ; Mon, 2 May 2005 10:13:57 +0000 (GMT) Received: from mrx.co.zahav.net.il (mrx.wan.inter.net.il [192.117.191.51]) by mx1.FreeBSD.org (Postfix) with SMTP id BF02C43D5A for ; Mon, 2 May 2005 10:13:54 +0000 (GMT) (envelope-from imriz@co.zahav.net.il) Received: from igfe.InetGold ([172.33.1.137]) by mrx.co.zahav.net.il (SAVSMTP 3.1.0.29) with SMTP id M2005050212165332424 for ; Mon, 02 May 2005 12:16:53 +0200 Received: from IGMAIL.InetGold ([172.31.100.164]) by igfe.InetGold with Microsoft SMTPSVC(6.0.3790.0); Mon, 2 May 2005 13:13:52 +0300 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Mon, 2 May 2005 13:20:43 +0300 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ipfw causing panic 4.11-RELEASE-p4 Thread-Index: AcVO/1vIlvJWM8frRay1dTQXilBQxw== From: "Imri Zvik" To: X-OriginalArrivalTime: 02 May 2005 10:13:52.0536 (UTC) FILETIME=[A4053980:01C54EFF] X-Mailman-Approved-At: Mon, 02 May 2005 12:08:53 +0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: ipfw causing panic 4.11-RELEASE-p4 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, 02 May 2005 10:13:57 -0000 Hi, =20 I was playing around with ipfw, and when I tried something like: /sbin/ipfw disable firewall /sbin/ipfw flush && sysctl net.inet.ip.fw.dyn_buckets=3D600 /sbin/ipfw enable firewall =20 The machine paniced: =20 #0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487 #1 0xc023d88b in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:316 #2 0xc023dcb0 in poweroff_wait (junk=3D0xc043e66c, howto=3D-1069293201) = at /usr/src/sys/kern/kern_shutdown.c:595 #3 0xc03b06ca in trap_fatal (frame=3D0xc044783c, eva=3D48) at /usr/src/sys/i386/i386/trap.c:974 #4 0xc03b039d in trap_pfault (frame=3D0xc044783c, usermode=3D0, = eva=3D48) at /usr/src/sys/i386/i386/trap.c:867 #5 0xc03aff5b in trap (frame=3D{tf_fs =3D 16, tf_es =3D -1069285360, = tf_ds =3D 16, tf_edi =3D 0, tf_esi =3D -1056902912, tf_ebp =3D -1069254524, tf_isp =3D -1069254552, tf_ebx =3D = -1069019524, tf_edx =3D 6864928, tf_ecx =3D -862463232, tf_eax =3D 0, tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -1070304340, tf_cs =3D = 8, tf_eflags =3D 66050, tf_esp =3D -1056902912, tf_ss =3D -1056902912}) at /usr/src/sys/i386/i386/trap.c:466 #6 0xc03473ac in acquire_lock (lk=3D0xc0480e7c) at /usr/src/sys/ufs/ffs/ffs_softdep.c:266 #7 0xc034b4ac in softdep_update_inodeblock (ip=3D0xc100f100, bp=3D0xc380314c, waitfor=3D0) at /usr/src/sys/ufs/ffs/ffs_softdep.c:3813 #8 0xc03464d5 in ffs_update (vp=3D0xcc97db00, waitfor=3D0) at /usr/src/sys/ufs/ffs/ffs_inode.c:106 #9 0xc034e81a in ffs_sync (mp=3D0xc1010a00, waitfor=3D2, = cred=3D0xc0b33880, p=3D0xc04c09a0) at /usr/src/sys/ufs/ffs/ffs_vfsops.c:1027 #10 0xc026e72f in sync (p=3D0xc04c09a0, uap=3D0x0) at /usr/src/sys/kern/vfs_syscalls.c:583 #11 0xc023d626 in boot (howto=3D256) at /usr/src/sys/kern/kern_shutdown.c:235 #12 0xc023dcb0 in poweroff_wait (junk=3D0xc043e66c, howto=3D-1069293201) = at /usr/src/sys/kern/kern_shutdown.c:595 #13 0xc03b06ca in trap_fatal (frame=3D0xc0447a1c, eva=3D92) at /usr/src/sys/i386/i386/trap.c:974 #14 0xc03b039d in trap_pfault (frame=3D0xc0447a1c, usermode=3D0, = eva=3D92) at /usr/src/sys/i386/i386/trap.c:867 #15 0xc03aff5b in trap (frame=3D{tf_fs =3D -1069088752, tf_es =3D = -1071448048, tf_ds =3D -1056178160, tf_edi =3D -1056134400, tf_esi =3D -1069253728, tf_ebp =3D -1069254036, tf_isp =3D = -1069254072, tf_ebx =3D 23, tf_edx =3D 0, tf_ecx =3D -1056147712, tf_eax =3D 1114963968, tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -1071032826, tf_cs =3D 8, tf_eflags =3D 66066, tf_esp =3D -1056134400, tf_ss =3D -1069253760}) at /usr/src/sys/i386/i386/trap.c:466 #16 0xc0295606 in add_dyn_rule (id=3D0xc0447ba0, dyn_type=3D0 '\000', rule=3D0xc10cab00) at /usr/src/sys/netinet/ip_fw.c:880 #17 0xc0295854 in install_state (rule=3D0xc10cab00, args=3D0xc0447b80) = at /usr/src/sys/netinet/ip_fw.c:1007 #18 0xc02961d8 in ip_fw_chk (args=3D0xc0447b80) at /usr/src/sys/netinet/ip_fw.c:1467 #19 0xc0299b7e in ip_output (m0=3D0xc0b38b00, opt=3D0x0, = ro=3D0xc0447c20, flags=3D0, imo=3D0x0, inp=3D0x0) at /usr/src/sys/netinet/ip_output.c:733 #20 0xc02979af in icmp_send (m=3D0xc0b38b00, opts=3D0x0, = rt=3D0xc0447c20) at /usr/src/sys/netinet/ip_icmp.c:774 #21 0xc0297918 in icmp_reflect (m=3D0xc0b38b00) at /usr/src/sys/netinet/ip_icmp.c:735 #22 0xc0297519 in icmp_input (m=3D0xc0b38b00, off=3D20, proto=3D1) at /usr/src/sys/netinet/ip_icmp.c:525 #23 0xc0298494 in ip_input (m=3D0xc0b38b00) at /usr/src/sys/netinet/ip_input.c:950 #24 0xc02984f3 in ipintr () at /usr/src/sys/netinet/ip_input.c:971 #25 0xc03a2df9 in swi_net_next () =20 Uname -a output: =20 FreeBSD countzero.inter.net.il 4.11-RELEASE-p4 FreeBSD 4.11-RELEASE-p4 #2: Mon May 2 12:10:50 IDT 2005 root@countzero.inter.net.il:/usr/obj/usr/src/sys/IGLD i386 =20 =20 =20 =20 -- Imri Zvik PGP (2.6.3ia) Public Key: http://mariska.inter.net.il/~imriz/imriz.pgp =20 =20 From owner-freebsd-hackers@FreeBSD.ORG Mon May 2 12:31: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 7218516A4CF for ; Mon, 2 May 2005 12:31:35 +0000 (GMT) Received: from mxsf19.cluster1.charter.net (mxsf19.cluster1.charter.net [209.225.28.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2DB543D39 for ; Mon, 2 May 2005 12:31:34 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip13.cluster1.charter.net (mxip13a.cluster1.charter.net [209.225.28.143])j42CVXci028195 for ; Mon, 2 May 2005 08:31:33 -0400 Received: from 24-247-253-134.dhcp.aldl.mi.charter.com (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip13.cluster1.charter.net with ESMTP; 02 May 2005 08:31:33 -0400 X-Ironport-AV: i="3.92,144,1112587200"; d="scan'208"; a="1061122819:sNHT95806176" Date: Mon, 2 May 2005 12:31:28 +0000 (UTC) From: c0ldbyte To: Steven Hartland In-Reply-To: <001701c54ecc$921546d0$b3db87d4@multiplay.co.uk> Message-ID: <20050502123018.U72118@eleanor.us1.wmi.uvac.net> References: <007901c54ec0$14bb3e30$b3db87d4@multiplay.co.uk> <001c01c54ec4$1f58d880$b3db87d4@multiplay.co.uk> <001701c54ecc$921546d0$b3db87d4@multiplay.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-hackers@freebsd.org cc: Kris Kennaway Subject: Re: 5.4-STABLE corrupting fs on shutdown -p now? 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, 02 May 2005 12:31:35 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 2 May 2005, Steven Hartland wrote: > Kris Kennaway wrote:: >>> Surely thats what the buffer sync is doing. Watching the console both >>> these actions appear to be doing identical things but the end results >>> are quite different :( buffers are always under 5 usually 2 and its not >>> like there's been a great deal of activity. The last test I did was just a >>> boot, login, shutdown ( result was / not clean but all the others ok ). >> >> Modern IDE drives sometimes lie about having finished writing out the >> data, when in fact it's still only in cache. You should be able to >> disable this behaviour to test (try the BIOS). > > I have a "HDD Post Write Buffer" in the BIOS according to the MB manual > although the disks aren't connected to the MB controllers they are on RAID 5 > set off a PCI-X card. Will give it a go tomorrow ( drag the monitor > back to the rack ). Will this have any performance penalties? I could > just avoid using shutdown -p but it seems a bit dodgy what its doing. > If this machine where miles away without remote console it would have > caused major amounts of pain. > > Steve > Why would you use shutdown -p on a remote machine anyway. I could see possibly a shutdown -r but -p come on. - -- ( 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 iD8DBQFCdh2ksmFQuvffl58RAmIGAJ9vc33q+QOAf8dSQvGB4bb5fMIB3QCdElTv 0Ih2mcy2eOMAEvb+ObhX2Pw= =N5SZ -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Mon May 2 12:35:45 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 2628316A4D0 for ; Mon, 2 May 2005 12:35:45 +0000 (GMT) Received: from vsmtp2.tin.it (vsmtp2alice.tin.it [212.216.176.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3764D43D3F for ; Mon, 2 May 2005 12:35:44 +0000 (GMT) (envelope-from gerarra@tin.it) Received: from ims3a.cp.tin.it (192.168.70.103) by vsmtp2.tin.it (7.0.027) id 4272A050000C4C70 for freebsd-hackers@freebsd.org; Mon, 2 May 2005 14:35:42 +0200 Received: from [192.168.70.181] by ims3a.cp.tin.it with HTTP; Mon, 2 May 2005 14:35:41 +0200 Date: Mon, 2 May 2005 14:35:41 +0200 Message-ID: <427195400000512D@ims3a.cp.tin.it> In-Reply-To: <1fa17f8105050101464489a09@mail.gmail.com> From: gerarra@tin.it To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable X-Originating-IP: 151.100.38.110 Subject: RE: A question about /sys/kern/link_elf.c 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, 02 May 2005 12:35:45 -0000 >There is a "#ifdef SPARSE_MAPPING" at line 701,and again a "#ifdef >SPARSE_MAPPING" at line 713.I just can't understand the second >one.Does it have any special mean ? > >thanks . It's just conditional compiling construct...however as you can see in the= tag "For whatever reason, SPARSE_MAPPING is not even a config option, so this is dead code." bye, rookie From owner-freebsd-hackers@FreeBSD.ORG Mon May 2 13:42: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 29C0016A4CE for ; Mon, 2 May 2005 13:42:17 +0000 (GMT) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id D695143D45 for ; Mon, 2 May 2005 13:42:16 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with ESMTP id 6BCFF46B06; Mon, 2 May 2005 09:42:16 -0400 (EDT) Date: Mon, 2 May 2005 14:45:24 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: c0ldbyte In-Reply-To: <20050502123018.U72118@eleanor.us1.wmi.uvac.net> Message-ID: <20050502143619.C87351@fledge.watson.org> References: <007901c54ec0$14bb3e30$b3db87d4@multiplay.co.uk> <001701c54ecc$921546d0$b3db87d4@multiplay.co.uk> <20050502123018.U72118@eleanor.us1.wmi.uvac.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-hackers@freebsd.org cc: Steven Hartland cc: Kris Kennaway Subject: Re: 5.4-STABLE corrupting fs on shutdown -p now? 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, 02 May 2005 13:42:17 -0000 On Mon, 2 May 2005, c0ldbyte wrote: >> I have a "HDD Post Write Buffer" in the BIOS according to the MB manual >> although the disks aren't connected to the MB controllers they are on RAID >> 5 set off a PCI-X card. Will give it a go tomorrow ( drag the monitor >> back to the rack ). Will this have any performance penalties? I could >> just avoid using shutdown -p but it seems a bit dodgy what its doing. >> If this machine where miles away without remote console it would have >> caused major amounts of pain. > > Why would you use shutdown -p on a remote machine anyway. I could see > possibly a shutdown -r but -p come on. I use it regularly -- for remote boxes that are in someone else's facility, I'd much rather I was the one who powered them off and told them when they were ready to unplug than having them do it. Life is a bit better with the advent of soft power via case power buttons, but still... Robert N M Watson From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 01:54: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 5B6E416A4CF for ; Tue, 3 May 2005 01:54:31 +0000 (GMT) Received: from smtp.io.com (smtp.io.com [209.198.128.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id B874443D73 for ; Tue, 3 May 2005 01:54:30 +0000 (GMT) (envelope-from eighner@io.com) Received: from io.com (206-224-83-62-dialup.io.com [206.224.83.62]) by smtp.io.com (8.13.3/8.13.1) with SMTP id j431sSpd046949 for ; Mon, 2 May 2005 20:54:28 -0500 (CDT) (envelope-from eighner@io.com) Received: by io.com (nbSMTP-0.98) for uid 1001 for ; Mon, 2 May 2005 20:53:48 -0500 (CDT) Date: Mon, 2 May 2005 20:53:06 -0500 (CDT) From: Lars Eighner To: freebsd-hackers@freebsd.org Message-ID: <20050502204557.B17348@goodwill.io.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: ClamAV 0.83/865/Mon May 2 18:16:49 2005 on smtp.io.com X-Virus-Status: Clean Subject: HP PSC 1350 and hpoj and usb 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, 03 May 2005 01:54:31 -0000 I am trying to enable the scanning functions on an HP PSC 1350 all-in-one printer. The print functions work with hpijs/cups/foomatic-filters. I have installed hpoj, but ptal-init cannot find the scanner. The problem seems to be that the scan functions get improperly attached at boot time. This is my system (uname -a output) FreeBSD goodwill.io.com 5.4-STABLE FreeBSD 5.4-STABLE #5:\ Mon Apr 25 09:39:03 CDT 2005\ toor@goodwill.io.com:/usr/obj/usr/src/sys/GENERIC i386 The kernel is generic with USB 2.0 enabled These appear to be the relevant parts of dmesg usb2: EHCI version 1.0 usb2: companion controllers, 2 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 4 ports with 4 removable, self powered ulpt0: hp psc 1300 series, rev 2.00/1.00, addr 2, iclass 255/204 ulpt0: using bi-directional mode ### printer function found umass0: hp psc 1300 series, rev 2.00/1.00, addr 2 ### evidently umass identifies the scanner functions as a mass storage ### device (which is the right answer for the photo card when in the ### camera, but evidently is not correct for the psc. da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 ### attached as a mass storage device at da0, umass continues to ### get wrong answers for the psc 1350 Any help would be appreciated. -- Lars Eighner eighner@io.com http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 08:21:34 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 073FB16A4CF for ; Tue, 3 May 2005 08:21:34 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88E0743D79 for ; Tue, 3 May 2005 08:21:33 +0000 (GMT) (envelope-from fbsd.hackers@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so1018825rnf for ; Tue, 03 May 2005 01:21:33 -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=TkW09sY9QnT8VXPnZw2r5/qfurG645y60WlRUHe/rcS4e97ugM3SFMdDvfnzzejr5FtxoFcOD3IZ+CqEQjG0rHrh0aWpwlmIHmQ39O8kClrRC4s3fE0tudGcS9yc8avP1IDaBVCgaLVKTQn6l17swp8e7mljxy1bVPWYo5NOtMw= Received: by 10.38.75.26 with SMTP id x26mr7283619rna; Tue, 03 May 2005 01:21:33 -0700 (PDT) Received: by 10.38.11.43 with HTTP; Tue, 3 May 2005 01:21:33 -0700 (PDT) Message-ID: Date: Tue, 3 May 2005 04:21:33 -0400 From: Pablo Mora 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 Subject: Files in C. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pablo Mora List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2005 08:21:34 -0000 I know that this is not the place to consult on programming C. But I am so enthusiastic in FreeBSD that I want to learn more on the language C and someday coming to be a small part of which you already are. It wanted that they recommended to me some webpage where to be able to obtain information on files in C. I want to learn well to work with Files. I need to know the best place where to obtain information and I know that you know it. Bye and very very thanks. PD. thousand excuses by my terrible English. "they say that more idiot is the one than does not ask." "Dicen que m=E1s tonto es aqu=E9l que no pregunta." --=20 Concepci=F3n, Chile. From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 08:58: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 9CEC516A4CF for ; Tue, 3 May 2005 08:58:13 +0000 (GMT) Received: from wattres.watt.com (wattres.watt.com [66.93.133.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2809E43D1F for ; Tue, 3 May 2005 08:58:13 +0000 (GMT) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (localhost.watt.com [127.0.0.1]) by wattres.watt.com (8.13.3/8.13.3) with ESMTP id j438wAiX038865 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 3 May 2005 01:58:10 -0700 (PDT) (envelope-from steve@wattres.watt.com) Received: (from steve@localhost) by wattres.watt.com (8.13.3/8.13.3/Submit) id j438wA1q038864 for hackers@freebsd.org; Tue, 3 May 2005 01:58:10 -0700 (PDT) (envelope-from steve) Message-Id: <200505030858.j438wA1q038864@wattres.watt.com> From: steve@Watt.COM (Steve Watt) Date: Tue, 3 May 2005 01:58:10 -0700 X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: hackers@freebsd.org X-Archived: 1115110690.563900822@wattres.Watt.COM X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on wattres.Watt.COM X-Virus-Status: Clean Subject: EPERM from write() 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, 03 May 2005 08:58:13 -0000 I'm down in the bowels of chasing a weird bug that is being presented by sendmail when doing TLS. For *some* clients it works, but for the ones that fail, they fail hard. There are various weird things in my analyses. The proximate symptom is that the call to write() to put out the ServerHello message returns -1, errno 1 (EPERM), but I can see from the tcpdump trace that most (all?) of it got out. Looking backwards through the ktrace reveals that the fd that is being written to (fd 4) is the fd that the "Ready to start TLS" message went out on, and that (previous) write completed successfully. Here's the ktrace from that successful write to the one that blew up, sans numerous calls to gettimeofday and getpid: 35388 sendmail GIO fd 4 wrote 30 bytes "220 2.0.0 Ready to start TLS\r " 35388 sendmail RET write 30/0x1e 35388 sendmail CALL fcntl(0x8,0x3,0) 35388 sendmail RET fcntl 2 (get flags on fd 8) 35388 sendmail CALL fcntl(0x8,0x4,0x6) 35388 sendmail RET fcntl 0 (set O_NONBLOCK on fd 8) 35388 sendmail CALL break(0x8191000) 35388 sendmail RET break 0 35388 sendmail CALL break(0x8196000) 35388 sendmail RET break 0 35388 sendmail CALL read(0x8,0x8188000,0xb) 35388 sendmail RET read -1 errno 35 Resource temporarily unavailable 35388 sendmail CALL select(0x9,0xbfbfbe00,0,0xbfbfb850,0xbfbfb648) 35388 sendmail RET select 1 35388 sendmail CALL read(0x8,0x8188000,0xb) (Here's the ClientHello) 35388 sendmail GIO fd 8 read 11 bytes 0x0000 807c 0103 0100 6300 0000 10 |.|....c....| 35388 sendmail RET read 11/0xb 35388 sendmail CALL read(0x8,0x818800b,0x73) (and the rest of the ClientHello, with all the cipher suites) 35388 sendmail GIO fd 8 read 115 bytes 0x0000 0000 3900 0038 0000 3500 0016 0000 1300 000a 0700 |..9..8..5...........| 0x0014 c000 0033 0000 3200 002f 0300 8000 0066 0000 0500 |...3..2../.....f....| 0x0028 0004 0100 8008 0080 0000 6300 0062 0000 6100 0015 |..........c..b..a...| 0x003c 0000 1200 0009 0600 4000 0065 0000 6400 0060 0000 |........@..e..d..`..| 0x0050 1400 0011 0000 0800 0006 0400 8000 0003 0200 804d |...................M| 0x0064 57e4 2a11 c967 1804 e745 7cfc a991 93 |W.*..g...E|....| 35388 sendmail RET read 115/0x73 35388 sendmail CALL break(0x8197000) 35388 sendmail RET break 0 35388 sendmail CALL break(0x8198000) 35388 sendmail RET break 0 (here's the write that fails, but I see all 0xa59 bytes on the wire!) 35388 sendmail CALL write(0x4,0x8174000,0xa59) 35388 sendmail RET write -1 errno 1 Operation not permitted (And just for fun the syslog that comes out, too.) 35388 sendmail CALL sendto(0x3,0xbfbfa4d0,0x6d,0,0,0) 35388 sendmail GIO fd 3 wrote 109 bytes "<20>May 2 23:16:25 sm-mta[35388]: STARTTLS=server, error: accept failed=-1, SSL\ _error=5, timedout=0, errno=1" 35388 sendmail RET sendto 109/0x6d I'm really kind of puzzled at this point. Why would I get -1/EPERM on an apparently completed write? The box is 5.4-STABLE, fresh cvsup as of 2 May 05 17:47 GMT. I forced a rebuild of the SASL stuff (cyrus-sasl-2.1.20_1 and cyrus-sasl-saslauthd-2.1.20_1) , and then rebuilt sendmail again. I've got the following in my make.conf re: sendmail building: SENDMAIL_CFLAGS+=-I/usr/local/include -DSASL=2 SENDMAIL_CFLAGS+=-D_FFR_SMTP_SSL SENDMAIL_LDFLAGS+=-L/usr/local/lib SENDMAIL_LDADD+=-lsasl2 The client machine appears to be running 8.13.1. What I see in the tcpdump disassembly (thanks to Ethereal!) is (paraphrased) {client} {mybox} TCP S {mybox} {client} TCP SA {client} {mybox} TCP A {mybox} {client} TCP A seq=1 ack=1 len=89 "220 {mybox} ESMTP Sendmail 8.13.3/8.13.3" (+date) {client} {mybox} TCP A seq=1 ack=90 len=0 {client} {mybox} TCP A seq=1 ack=90 len=24 "EHLO {client}\r\n" {mybox} {client} TCP A seq=90 ack=25 len=226 ESMTP options menu, includes STARTTLS {client} {mybox} TCP A seq=25 ack=316 len=0 {client} {mybox} TCP A seq=25 ack=316 len=10 "STARTTLS\r\n" {mybox} {client} TCP A seq=316 ack=35 len=30 "220 Ready to start TLS\r\n" {client} {mybox} TCP A seq=35 ack=346 len=0 {client} {mybox} TCP A seq=35 ack=346 len=126 SSLv2 Record len 124 Handshake: ClientHello, TLS 1.0, gaggle of cipher suites, no resume session, 16 byte challenge {mybox} {client} TCP A seq=346 ack=161 len=1448 TLS Record Handshake (22) TLS 1.0 (0x0301) len 74 Handshake: ServerHello (2), random, cipher suite TLS_DHE_RSA_WITH_AES256_CBC_SHA, no compression TLS Record Handshake (22) TLS 1.0 len 2184 Handshake: Certificate pile (first segment) {client} {mybox} TCP A seq=161 ack=1794 len=0 {mybox} {client} TCP FPA seq=1796 ack=161 len=1199 Continuation of certificate pile TLS Record Handshake (22) TLS 1.0 (0x0301) len 205 Handshake: ServerKeyExchange TLS Record Handshake (22) TLS 1.0 (0x0301) len 166 Handshake: CertificateRequest {client} {mybox} TCP A seq=161 ack=1794 len=0 {mybox} {client} TCP FPA seq=1794 ack=161 len=1201 Continuation of certificate pile TLS Record Handshake (22) TLS 1.0 (0x0301) len 205 Handshake: ServerKeyExchange TLS Record Handshake (22) TLS 1.0 (0x0301) len 166 Handshake: CertificateRequest {client} {mybox} TCP A seq=161 ack=2996 len=146 TLS Record Handshake (22) TLS 1.0 (0x0301) len 7 Handshake: Certificate (0 certificates) TLS Record Handshake (22) TLS 1.0 (0x0301) len 70 Handshake: ClientKeyExchange (len 66) TLS Record ChangeCipherSpec TLS 1.0 (0x0301) len 1 TLS Record Handshake (22) TLS 1.0 (0x0301) len 48 Handshake: Encrypted {mybox} {client} TCP RST seq=2996 ack={0} len=0 The offset sequence number in the first FIN segment from my FreeBSD box (sequence 1796, when 1794 is the next expected) is reproduceable. Another odd thing is that the client responded to the SSL record from my server, which I find mildly unexpected since there's no ServerHelloDone message. I suppose that could be because the data got pushed up the SSL stack because of the FIN, and it didn't notice. Extra intriguingly, the ISC server that's running the DHCP mailing list can successfully transfer mail, and it uses TLS. As can any number of other servers... This appears to have broken sometime between late February and mid April, but enough sites work that I didn't notice it until recently. I'm pretty stumped, and looking for ideas... Solving the TLS handshake problem is first, but that 2 byte skip in sequence numbers is _weird_. I suppose it could be related somehow. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" / 37N 20' 14.9" Internet: steve @ Watt.COM Whois: SW32 Free time? There's no such thing. It just comes in varying prices... From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 09:18: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 24A7516A4CE for ; Tue, 3 May 2005 09:18:18 +0000 (GMT) Received: from itchy.rabson.org (mailgate.nlsystems.com [80.177.232.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6FCE43D6A for ; Tue, 3 May 2005 09:18:14 +0000 (GMT) (envelope-from dfr@nlsystems.com) Received: from herring.rabson.org (herring [10.0.0.2]) by itchy.rabson.org (8.13.3/8.12.11) with ESMTP id j439I6k7028836; Tue, 3 May 2005 10:18:09 +0100 (BST) (envelope-from dfr@nlsystems.com) From: Doug Rabson To: freebsd-hackers@freebsd.org Date: Tue, 3 May 2005 10:18:05 +0100 User-Agent: KMail/1.8 References: <427195400000512D@ims3a.cp.tin.it> In-Reply-To: <427195400000512D@ims3a.cp.tin.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505031018.06023.dfr@nlsystems.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on itchy.rabson.org X-Virus-Scanned: ClamAV 0.83/865/Tue May 3 00:16:49 2005 on itchy.rabson.org X-Virus-Status: Clean cc: gerarra@tin.it Subject: Re: A question about /sys/kern/link_elf.c 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, 03 May 2005 09:18:18 -0000 On Monday 02 May 2005 13:35, gerarra@tin.it wrote: > >There is a "#ifdef SPARSE_MAPPING" at line 701,and again a "#ifdef > >SPARSE_MAPPING" at line 713.I just can't understand the second > >one.Does it have any special mean ? > > > >thanks . > > It's just conditional compiling construct...however as you can see in > the tag "For whatever reason, SPARSE_MAPPING is not even a config > option, so this is dead code." It dates back to a tools problem that I had on the alpha where the linker would round up the size of the text segment to the next megabyte boundary. From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 09:27: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 97A0A16A4CE for ; Tue, 3 May 2005 09:27:47 +0000 (GMT) Received: from volginfo.ru (ns.volginfo.ru [217.23.84.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CC5443D76 for ; Tue, 3 May 2005 09:27:46 +0000 (GMT) (envelope-from den@FreeBSD.org) Received: from volginfo.ru (localhost.volginfo.ru [127.0.0.1]) by volginfo.ru (Postfix) with ESMTP id 59AE02012 for ; Tue, 3 May 2005 13:28:11 +0400 (MSD) Received: from [192.168.1.32] (llp-13.vistcom.ru [217.23.84.68]) by volginfo.ru (Postfix) with ESMTP id C4347200F for ; Tue, 3 May 2005 13:28:10 +0400 (MSD) Message-ID: <427743ED.6020200@FreeBSD.org> Date: Tue, 03 May 2005 13:27:09 +0400 From: Denis Peplin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@FreeBSD.org X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------010305040000020703030509" X-Virus-Scanned: ClamAV using ClamSMTP Subject: mergemaster improvement (auto-update for not modified files) 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, 03 May 2005 09:27:47 -0000 This is a multi-part message in MIME format. --------------010305040000020703030509 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Hello! The mergemaster with this is test patch (attached) can auto-update files that was not modified. It do this by compairing each file with it's CVS copy. If file was not modified, it can be rewritten. This dramatically redices amount of files that require admin's attention. There is one major problem here: This can be done in single-user mode only if your have local CVS repository, because if local CVS is not exist, anoncvs is used. Possible solutions: 1. Pre-checkout files in pre-buildworld mode. 2. Setup CVSup collection for subset of required files (is it possible?), and then keep this small collection up-to-date locally. 3. Store checksum for every config file installed, then compare with this checksum on updating. BTW, tracking checksums can be very useful for base system too, because checksums can help to do clean updates (with removal of old files that was not overwritten). --------------010305040000020703030509 Content-Type: text/plain; name="merge3.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="merge3.diff" Index: mergemaster.sh =================================================================== RCS file: /home/ncvs/src/usr.sbin/mergemaster/mergemaster.sh,v retrieving revision 1.51 diff -u -r1.51 mergemaster.sh --- mergemaster.sh 7 Mar 2004 10:10:19 -0000 1.51 +++ mergemaster.sh 3 May 2005 09:21:38 -0000 @@ -224,6 +224,15 @@ # TEMPROOT='/var/tmp/temproot' +TEMPCVS=`mktemp -q -d -t $(basename $0)` +CVS_SKIP='' + +# Only one variable for the list of sites. Should be improved. +CVS_LOGGED_IN=0 + +CVSLIST=":pserver:anoncvs@anoncvs.jp.FreeBSD.org:/home/ncvs + :pserver:anoncvs@anoncvs.fr.FreeBSD.org:/home/ncvs" + # Read /etc/mergemaster.rc first so the one in $HOME can override # if [ -r /etc/mergemaster.rc ]; then @@ -871,7 +880,7 @@ # If the files have the same $Id, delete the one in temproot so the # user will have less to wade through if files are left to merge by hand. # - CVSID1=`grep "[$]${CVS_ID_TAG}:" ${DESTDIR}${COMPFILE#.} 2>/dev/null` + CVSID1=`grep "[$]${CVS_ID_TAG}:" ${DESTDIR}${COMPFILE#.} 2>/dev/null` || CVSID1='' CVSID2=`grep "[$]${CVS_ID_TAG}:" ${COMPFILE} 2>/dev/null` || CVSID2=none case "${CVSID2}" in @@ -879,6 +888,60 @@ echo " *** Temp ${COMPFILE} and installed have the same CVS Id, deleting" rm "${COMPFILE}" ;; + *) + # Checking file for changes against CVS + if [ ! -z "${CVSID1}" -a -z "${CVS_SKIP}" ] + then + CVSFILE=`echo ${CVSID1} | awk '{print $3}' | sed 's/,v$//'` + CVSVERSION=`echo ${CVSID1} | awk '{print $4}'` + + echo " *** Checking ${COMPFILE#.} against CVS" + (cd ${TEMPCVS} && cvs -Rq co -r ${CVSVERSION} ${CVSFILE} > /dev/null 2>&1) || \ + for CVSROOT in ${CVSLIST} + do + if [ ${CVS_LOGGED_IN} -eq 0 ]; then + echo " *** Enter 'anoncvs' password below" + cvs -Rqd ${CVSROOT} login && CVS_LOGGED_IN=1 + fi + (cd ${TEMPCVS} && cvs -Rqd ${CVSROOT} co -r ${CVSVERSION} ${CVSFILE} > /dev/null 2>&1 && continue) + done + case "${AUTO_RUN}" in + '') + if [ $? -ne 0 ]; then + echo "${COMPFILE} can't be checked against CVS" + echo -n "Do you wish skip CVS checking for remaining files? y or n [y] " + read CVS_SKIP + + echo "1 $CVS_SKIP 1" + + case $CVS_SKIP in + [Nn]) + CVS_SKIP='' + ;; + *) + CVS_SKIP='y' + echo " *** Skip CVS checking for remaining files" + ;; + esac + fi + ;; + *) + echo " *** Skip CVS checking for remaining files" + ;; + esac + + + if diff -q ${DIFF_OPTIONS} "${DESTDIR}${COMPFILE#.}" "${TEMPCVS}/${CVSFILE}" > \ + /dev/null 2>&1; then + if mm_install "${COMPFILE}"; then + echo " *** ${COMPFILE} installed successfully" + else + echo " *** Problem installing ${COMPFILE}, it will remain to merge by hand" + fi + fi + rm -f ${TEMPCVS}/${CVSFILE} + fi + ;; esac ;; esac @@ -926,6 +989,9 @@ echo '' fi +# How safe it is? +rm -rf ${TEMPCVS} + case "${AUTO_RUN}" in '') echo -n "Do you wish to delete what is left of ${TEMPROOT}? [no] " --------------010305040000020703030509-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 09:44: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 AEC4C16A4CE; Tue, 3 May 2005 09:44:54 +0000 (GMT) Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19D9743D5C; Tue, 3 May 2005 09:44:51 +0000 (GMT) (envelope-from jhay@icomtek.csir.co.za) Received: from zibbi.icomtek.csir.co.za (localhost [127.0.0.1]) j439icEm044321; Tue, 3 May 2005 11:44:40 +0200 (SAST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: (from jhay@localhost)j439icHZ044320; Tue, 3 May 2005 11:44:38 +0200 (SAST) (envelope-from jhay) Date: Tue, 3 May 2005 11:44:38 +0200 From: John Hay To: Denis Peplin Message-ID: <20050503094438.GA44097@zibbi.icomtek.csir.co.za> References: <427743ED.6020200@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427743ED.6020200@FreeBSD.org> User-Agent: Mutt/1.4.1i cc: hackers@freebsd.org Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 03 May 2005 09:44:54 -0000 On Tue, May 03, 2005 at 01:27:09PM +0400, Denis Peplin wrote: > > The mergemaster with this is test patch (attached) > can auto-update files that was not modified. > > It do this by compairing each file with it's CVS > copy. If file was not modified, it can be rewritten. > > This dramatically redices amount of files that require > admin's attention. > > There is one major problem here: > This can be done in single-user mode only if your > have local CVS repository, because if local CVS is > not exist, anoncvs is used. > > Possible solutions: What about mergemaster storing a copy of the original somewhere on disk for usage next time? Then the first run may still be slow, but following runs will be able to use it. John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 10:34: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 2867F16A4CE for ; Tue, 3 May 2005 10:34:29 +0000 (GMT) Received: from volginfo.ru (ns.volginfo.ru [217.23.84.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF28F43D64 for ; Tue, 3 May 2005 10:34:28 +0000 (GMT) (envelope-from den@FreeBSD.org) Received: from volginfo.ru (localhost.volginfo.ru [127.0.0.1]) by volginfo.ru (Postfix) with ESMTP id 574BF208B; Tue, 3 May 2005 14:34:49 +0400 (MSD) Received: from [192.168.1.32] (llp-13.vistcom.ru [217.23.84.68]) by volginfo.ru (Postfix) with ESMTP id 3E0CC208A; Tue, 3 May 2005 14:34:48 +0400 (MSD) Message-ID: <4277538F.40204@FreeBSD.org> Date: Tue, 03 May 2005 14:33:51 +0400 From: Denis Peplin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Hay References: <427743ED.6020200@FreeBSD.org> <20050503094438.GA44097@zibbi.icomtek.csir.co.za> In-Reply-To: <20050503094438.GA44097@zibbi.icomtek.csir.co.za> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP cc: hackers@freebsd.org Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 03 May 2005 10:34:29 -0000 John Hay wrote: > On Tue, May 03, 2005 at 01:27:09PM +0400, Denis Peplin wrote: >>There is one major problem here: >>This can be done in single-user mode only if your >>have local CVS repository, because if local CVS is >>not exist, anoncvs is used. >> >>Possible solutions: > > > What about mergemaster storing a copy of the original somewhere on disk > for usage next time? Then the first run may still be slow, but following > runs will be able to use it. Every variant based on storing some files somewhere. I'm just don't know wich variant is best (but it seems that improving mergemaster -p is easiest way). From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 11: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 9881D16A4CE for ; Tue, 3 May 2005 11:29:58 +0000 (GMT) Received: from sarajevo.pacific.net.sg (sarajevo.pacific.net.sg [203.120.90.134]) by mx1.FreeBSD.org (Postfix) with SMTP id 9489543D2F for ; Tue, 3 May 2005 11:29:57 +0000 (GMT) (envelope-from oceanare@pacific.net.sg) Received: (qmail 7119 invoked from network); 3 May 2005 11:29:51 -0000 Received: from unknown (HELO maxwell2.pacific.net.sg) (203.120.90.192) by sarajevo with SMTP; 3 May 2005 11:29:51 -0000 Received: from [192.168.0.107] ([210.24.122.249]) by maxwell2.pacific.net.sg with ESMTP <20050503112951.ZOGJ1191.maxwell2.pacific.net.sg@[192.168.0.107]>; Tue, 3 May 2005 19:29:51 +0800 Message-ID: <42776096.7000008@pacific.net.sg> Date: Tue, 03 May 2005 19:29:26 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050415) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pablo Mora References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Files in C. 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, 03 May 2005 11:29:58 -0000 Hi, Pablo Mora wrote: > I know that this is not the place to consult on programming C. But I > am so enthusiastic in FreeBSD that I want to learn more on the > language C and someday coming to be a small part of which you already To get this a bit in line with FreeBSD: FreeBSD comes with the GNU compiler which also has a C frontend. Just get more information from www.gnu.org for their gcc. Erich From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 11:39: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 D577616A4D0; Tue, 3 May 2005 11:39:54 +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 520E443D70; Tue, 3 May 2005 11:39:54 +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 1DSvkg-000Fvt-Kn; Tue, 03 May 2005 14:39:46 +0300 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: Robert Watson In-Reply-To: Message from Robert Watson <20050502143619.C87351@fledge.watson.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 03 May 2005 14:39:46 +0300 From: Danny Braniss Message-ID: cc: c0ldbyte cc: Kris Kennaway cc: Steven Hartland cc: freebsd-hackers@freebsd.org Subject: Re: 5.4-STABLE corrupting fs on shutdown -p now? 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, 03 May 2005 11:39:55 -0000 > On Mon, 2 May 2005, c0ldbyte wrote: > > >> I have a "HDD Post Write Buffer" in the BIOS according to the MB manual > >> although the disks aren't connected to the MB controllers they are on RAID > >> 5 set off a PCI-X card. Will give it a go tomorrow ( drag the monitor > >> back to the rack ). Will this have any performance penalties? I could > >> just avoid using shutdown -p but it seems a bit dodgy what its doing. > >> If this machine where miles away without remote console it would have > >> caused major amounts of pain. > > > > Why would you use shutdown -p on a remote machine anyway. I could see > > possibly a shutdown -r but -p come on. > > I use it regularly -- for remote boxes that are in someone else's > facility, I'd much rather I was the one who powered them off and told them > when they were ready to unplug than having them do it. Life is a bit > better with the advent of soft power via case power buttons, but still... > > Robert N M Watson I _always_ use it, specialy when the box in question is headless, or via KVM, or im too lazy to get up and switch the power off :-) danny From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 11:41: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 974F416A4D0 for ; Tue, 3 May 2005 11:41:59 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1827E43D7D for ; Tue, 3 May 2005 11:41:59 +0000 (GMT) (envelope-from guomingyan@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so1723320wri for ; Tue, 03 May 2005 04:41:58 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fSollhBTZVj9q5p6pzfHswTOEruQXffhDgjgjn/tTkUOLd9Xo6R+Iu9djRLqKzbUd1+X7uZUy0B2DK+WMwaneJfCAnY8fXoeqF42i1tIovmwp6EZmZ3BjW1Yevuk0QaoX13O0C+q6gd9d8y89xA1JLu4gf7ZhHFyXMeRTMFWu3Y= Received: by 10.54.3.48 with SMTP id 48mr1014691wrc; Tue, 03 May 2005 04:41:58 -0700 (PDT) Received: by 10.54.34.46 with HTTP; Tue, 3 May 2005 04:41:58 -0700 (PDT) Message-ID: <1fa17f810505030441763d96c9@mail.gmail.com> Date: Tue, 3 May 2005 19:41:58 +0800 From: prime To: freebsd-hackers@freebsd.org In-Reply-To: <20050502120044.9E08816A54D@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050502120044.9E08816A54D@hub.freebsd.org> Subject: Re: A question about /sys/kern/link_elf.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: prime List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2005 11:41:59 -0000 thanks for all your responses.I know that it is just conditional compiling construct,but I just can't understand the nested *test* of SPARSE_MAPPING( the 2nd "#ifdef ..." is nested in the 1st one). Thanks .I think I get it now. On Monday 02 May 2005 13:35, gerarra at tin.it wrote: >> >There is a "#ifdef SPARSE_MAPPING" at line 701,and again a "#ifdef >> >SPARSE_MAPPING" at line 713.I just can't understand the second > >>one.Does it have any special mean ? > >> > >>thanks . >> > >It's just conditional compiling construct...however as you can see in > >the tag "For whatever reason, SPARSE_MAPPING is not even a config > >option, so this is dead code." >It dates back to a tools problem that I had on the alpha where the=20 >linker would round up the size of the text segment to the next megabyte=20 >boundary. From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 12:25: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 A2BB116A4CE; Tue, 3 May 2005 12:25:30 +0000 (GMT) Received: from mxsf06.cluster1.charter.net (mxsf06.cluster1.charter.net [209.225.28.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C63543D77; Tue, 3 May 2005 12:25:30 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip08.cluster1.charter.net (mxip08a.cluster1.charter.net [209.225.28.138])j43CPSwY014702; Tue, 3 May 2005 08:25:28 -0400 Received: from 24-247-253-134.dhcp.aldl.mi.charter.com (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip08.cluster1.charter.net with ESMTP; 03 May 2005 08:25:28 -0400 X-Ironport-AV: i="3.92,148,1112587200"; d="scan'208"; a="895558091:sNHT13385492" Date: Tue, 3 May 2005 12:25:24 +0000 (UTC) From: c0ldbyte To: Denis Peplin In-Reply-To: <427743ED.6020200@FreeBSD.org> Message-ID: <20050503120958.Y42342@eleanor.us1.wmi.uvac.net> References: <427743ED.6020200@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: hackers@freebsd.org Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 03 May 2005 12:25:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 3 May 2005, Denis Peplin wrote: > Hello! > > The mergemaster with this is test patch (attached) > can auto-update files that was not modified. > > It do this by compairing each file with it's CVS > copy. If file was not modified, it can be rewritten. > > This dramatically redices amount of files that require > admin's attention. > > There is one major problem here: > This can be done in single-user mode only if your > have local CVS repository, because if local CVS is > not exist, anoncvs is used. > > Possible solutions: > 1. Pre-checkout files in pre-buildworld mode. > 2. Setup CVSup collection for subset of required files > (is it possible?), and then keep this small collection > up-to-date locally. > 3. Store checksum for every config file installed, > then compare with this checksum on updating. > > BTW, tracking checksums can be very useful for > base system too, because checksums can help to do > clean updates (with removal of old files that was not > overwritten). > IMHO this isnt something that should be included with mergemaster due to the following things. 1). It should upgrade a file if the files cvs id doesnt match and provide you with a merge option, which it allready does both of those as it is now. 2). Only upgrading files that havent been changed is going to result in a positive false situation where the user actually thinks that his/her system has been fully upgraded and when in fact it hasnt, leaving added lines to files out where they should have been merged in. Preferably also IMHO this patch to mergemaster should be or would be better off renamed to another project and/or an option for people to compile into the system if they wish to have that kind of functionality. E.g: System/Addon for world through the use of a set variable in /etc/make.conf.local or something similiar. But with all due respect, This just seems like another case of a "Bike Shed" incident. Best regards to humor. --c0ldbyte - -- ( 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 iD8DBQFCd223smFQuvffl58RAtAXAJ4+2oKEilJOWvOY2IncqbX3sjTYSwCfXe8b 5UCgbuWk6dsHkJBZb+t8YtA= =070g -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 12:38:09 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 AED5F16A4D4 for ; Tue, 3 May 2005 12:38:09 +0000 (GMT) Received: from mxsf10.cluster1.charter.net (mxsf10.cluster1.charter.net [209.225.28.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32E5743D5C for ; Tue, 3 May 2005 12:38:09 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip02.cluster1.charter.net (mxip02a.cluster1.charter.net [209.225.28.132])j43Cc58r004743 for ; Tue, 3 May 2005 08:38:05 -0400 Received: from 24-247-253-134.dhcp.aldl.mi.charter.com (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip02.cluster1.charter.net with ESMTP; 03 May 2005 08:38:06 -0400 X-Ironport-AV: i="3.92,148,1112587200"; d="scan'208"; a="891790765:sNHT99750848" Date: Tue, 3 May 2005 12:38:02 +0000 (UTC) From: c0ldbyte To: Pablo Mora In-Reply-To: Message-ID: <20050503122958.S42342@eleanor.us1.wmi.uvac.net> References: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1165296270-1115123882=:42342" cc: freebsd-hackers@freebsd.org Subject: Re: Files in C. 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, 03 May 2005 12:38:09 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1165296270-1115123882=:42342 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 3 May 2005, Pablo Mora wrote: > I know that this is not the place to consult on programming C. But I > am so enthusiastic in FreeBSD that I want to learn more on the > language C and someday coming to be a small part of which you already > are. It wanted that they recommended to me some webpage where to be > able to obtain information on files in C. I want to learn well to > work with Files. > > I need to know the best place where to obtain information and I know > that you know it. > > Bye and very very thanks. > > PD. thousand excuses by my terrible English. > > "they say that more idiot is the one than does not ask." > "Dicen que más tonto es aquél que no pregunta." > Also check out ( http://www.accu.org/ ) they have great documentation and book reviews and a pretty strong orginization as well with mailing lists and as well stuff for disabled people. Plus Plus a mentored developer projects section that you may want to become involved in. http://www.freenode.net/ as well as http://www.dal.net/ is home to a pretty well respectable IRC group of participating channels that may also beable to help you more on this subject. Ofcourse youll prolly find tons of IRC channels on many networks that are roughly about the very same thing but Im not going to go through the trouble of listing them all. Best of luck, --c0ldbyte - -- ( 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 iD8DBQFCd3CssmFQuvffl58RAtteAJ4p05jcT4XlaZNb1cn9h3zs+A2QoQCfZc+w v1byU8lBg62QVNZomG86zsA= =fC4e -----END PGP SIGNATURE----- --0-1165296270-1115123882=:42342-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 12:39: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 CE82B16A4CF; Tue, 3 May 2005 12:39:47 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDE6543D77; Tue, 3 May 2005 12:39:46 +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 md50001377765.msg; Tue, 03 May 2005 13:35:52 +0100 Message-ID: <00ba01c54fdd$24ad96d0$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Robert Watson" , "Danny Braniss" References: Date: Tue, 3 May 2005 13:39:23 +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, Tue, 03 May 2005 13:35:52 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Tue, 03 May 2005 13:35:54 +0100 cc: c0ldbyte cc: freebsd-hackers@freebsd.org cc: Kris Kennaway Subject: Re: 5.4-STABLE corrupting fs on shutdown -p now? 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, 03 May 2005 12:39:48 -0000 So sounds like this does need a bit of looking at. The key thing is both reboot and halt always leave the machine FS in a good state where as shutdown -p doesnt so is there something that -p skips? Or is it simply the fact that it powers down? Steve ----- Original Message ----- From: "Danny Braniss" >> >> I have a "HDD Post Write Buffer" in the BIOS according to the MB manual >> >> although the disks aren't connected to the MB controllers they are on RAID >> >> 5 set off a PCI-X card. Will give it a go tomorrow ( drag the monitor >> >> back to the rack ). Will this have any performance penalties? I could >> >> just avoid using shutdown -p but it seems a bit dodgy what its doing. >> >> If this machine where miles away without remote console it would have >> >> caused major amounts of pain. >> > >> > Why would you use shutdown -p on a remote machine anyway. I could see >> > possibly a shutdown -r but -p come on. >> >> I use it regularly -- for remote boxes that are in someone else's >> facility, I'd much rather I was the one who powered them off and told them >> when they were ready to unplug than having them do it. Life is a bit >> better with the advent of soft power via case power buttons, but still... >> >> Robert N M Watson > > I _always_ use it, specialy when the box in question is headless, or via KVM, > or im too lazy to get up and switch the power off :-) ================================================ 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 Tue May 3 14:29: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 453FD16A4CE for ; Tue, 3 May 2005 14:29:17 +0000 (GMT) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B8C943D8A for ; Tue, 3 May 2005 14:29:16 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received-SPF: pass (mp2.macomnet.net: domain of maxim@macomnet.ru designates 127.0.0.1 as permitted sender) receiver=mp2.macomnet.net; client_ip=127.0.0.1; envelope-from=maxim@macomnet.ru; Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.12.11/8.12.11) with ESMTP id j43ETAj3027174; Tue, 3 May 2005 18:29:11 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Tue, 3 May 2005 18:29:10 +0400 (MSD) From: Maxim Konovalov To: Imri Zvik In-Reply-To: Message-ID: <20050503182746.H26834@mp2.macomnet.net> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: ipfw causing panic 4.11-RELEASE-p4 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, 03 May 2005 14:29:17 -0000 On Mon, 2 May 2005, 13:20+0300, Imri Zvik wrote: > Hi, > > I was playing around with ipfw, and when I tried something like: > > /sbin/ipfw disable firewall > > /sbin/ipfw flush && sysctl net.inet.ip.fw.dyn_buckets=600 > > > > /sbin/ipfw enable firewall > > > > The machine paniced: Mine doesn't: shy# uname -a FreeBSD shy.macomnet.ru 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu Apr 21 05:48:09 MSD 2005 maxim@shy.macomnet.ru:/usr/obj/usr/src/sys/GENERIC i386 shy# /sbin/ipfw disable firewall shy# /sbin/ipfw flush && sysctl net.inet.ip.fw.dyn_buckets=600 Are you sure? [yn] y Flushed all rules. net.inet.ip.fw.dyn_buckets: 256 -> 600 shy# ipfw add 1 allow all from any to any 00001 allow ip from any to any shy# /sbin/ipfw enable firewall Could you show your rules? -- Maxim Konovalov From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 14:51: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 EEF0D16A4CE for ; Tue, 3 May 2005 14:51:24 +0000 (GMT) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CE1C43D77 for ; Tue, 3 May 2005 14:51:24 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received-SPF: pass (mp2.macomnet.net: domain of maxim@macomnet.ru designates 127.0.0.1 as permitted sender) receiver=mp2.macomnet.net; client_ip=127.0.0.1; envelope-from=maxim@macomnet.ru; Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.12.11/8.12.11) with ESMTP id j43EpGir027423; Tue, 3 May 2005 18:51:16 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Tue, 3 May 2005 18:51:16 +0400 (MSD) From: Maxim Konovalov To: Imri Zvik In-Reply-To: Message-ID: <20050503185034.I27403@mp2.macomnet.net> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: RE: ipfw causing panic 4.11-RELEASE-p4 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, 03 May 2005 14:51:25 -0000 On Tue, 3 May 2005, 17:49+0300, Imri Zvik wrote: > I forgot to mention I was using ipfw1. > > When I upgraded to ipfw2 it didn't happen again. [...] > Mine doesn't: > > shy# uname -a > FreeBSD shy.macomnet.ru 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu Apr 21 > 05:48:09 MSD 2005 maxim@shy.macomnet.ru:/usr/obj/usr/src/sys/GENERIC > i386 > shy# /sbin/ipfw disable firewall > shy# /sbin/ipfw flush && sysctl net.inet.ip.fw.dyn_buckets=600 > Are you sure? [yn] y > > Flushed all rules. > net.inet.ip.fw.dyn_buckets: 256 -> 600 > shy# ipfw add 1 allow all from any to any > 00001 allow ip from any to any > shy# /sbin/ipfw enable firewall > > Could you show your rules? That's ipfw1. -- Maxim Konovalov From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 15:39: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 CC92716A4CE for ; Tue, 3 May 2005 15:39:35 +0000 (GMT) Received: from mail.intercollab.net (javaserver.intercollab.net [195.78.59.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id C500543D6E for ; Tue, 3 May 2005 15:39:34 +0000 (GMT) (envelope-from fenix@intercollab.net) Received: from server.webinfo.int (ip.82.144.202.143.stat-9.volia.net [82.144.202.143]) by mail.intercollab.net (Postfix) with ESMTP id 09DC8366E34 for ; Tue, 3 May 2005 18:39:11 +0300 (EEST) Date: Tue, 3 May 2005 18:39:10 +0300 From: Sergey X-Mailer: The Bat! (v3.0.1.33) Professional X-Priority: 3 (Normal) Message-ID: <1908103559.20050503183910@intercollab.net> To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Can't get correct address in string form X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sergey List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2005 15:39:35 -0000 Hello freebsd-hackers I have a question related to the simple code below: #include #include #include #include #include #include #include #include #include #include int main(int argc, char **argv) { struct addrinfo hints, *la, *localaddr; char buf[31]; int gaierr=0; bzero (buf, sizeof(buf)); //get local address - local address is 192.168.0.250 if ((gaierr = getaddrinfo(argv[1], argv[2], &hints, &localaddr)) != 0) errx(1, "%s port %s: %s", argv[1], argv[2], gai_strerror(gaierr)); for (la = localaddr; ail; la = la->ai_next) { inet_ntop(la->ai_family, la->ai_addr->sa_data, buf, sizeof(struct sockaddr)); fprintf(stderr, "Address: %s\n", buf); } return 0; } result - something like: Address: 232.101.192.168 but must be - 192.168.0.250 ??? What i'm doing wrong !? From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 16:32: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 5D7E916A4CE for ; Tue, 3 May 2005 16:32:30 +0000 (GMT) Received: from cheer.mahoroba.org (gw4.mahoroba.org [218.45.22.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id D197243D78 for ; Tue, 3 May 2005 16:32:26 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from lyrics.mahoroba.org (ume@lyrics.mahoroba.org [IPv6:3ffe:501:185b:8010:280:88ff:fe03:4841]) (user=ume mech=CRAM-MD5 bits=0)j43GW4L7029034 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 4 May 2005 01:32:08 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Wed, 04 May 2005 01:32:04 +0900 Message-ID: From: Hajimu UMEMOTO To: Sergey In-Reply-To: <1908103559.20050503183910@intercollab.net> References: <1908103559.20050503183910@intercollab.net> User-Agent: xcite1.38> Wanderlust/2.15.1 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/22.0.50 (i386-unknown-freebsd5.4) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 5.4-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-2.0b5 (cheer.mahoroba.org [IPv6:3ffe:501:185b:8010::1]); Wed, 04 May 2005 01:32:08 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-5.7 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 cheer.mahoroba.org cc: freebsd-hackers@freebsd.org Subject: Re: Can't get correct address in string form 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, 03 May 2005 16:32:30 -0000 Hi, >>>>> On Tue, 3 May 2005 18:39:10 +0300 >>>>> Sergey said: fenix> //get local address - local address is 192.168.0.250 fenix> if ((gaierr = getaddrinfo(argv[1], argv[2], &hints, &localaddr)) != 0) fenix> errx(1, "%s port %s: %s", argv[1], argv[2], gai_strerror(gaierr)); You need to initialize hints before calling getaddrinfo(3). fenix> inet_ntop(la->ai_family, la->ai_addr->sa_data, buf, sizeof(struct sockaddr)); The usage of inet_ntop(3) is wrong. It should be something like: #include #include #include #include #include #include #include #include int main(int argc, char **argv) { struct addrinfo hints, *la, *localaddr; char buf[46]; int gaierr=0; //get local address - local address is 192.168.0.250 bzero(&hints, sizeof(hints)); hints.ai_flags = AI_PASSIVE; hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; if ((gaierr = getaddrinfo(argv[1], argv[2], &hints, &localaddr)) != 0) errx(1, "%s port %s: %s", argv[1], argv[2], gai_strerror(gaierr)); for (la = localaddr; la; la = la->ai_next) { switch (la->ai_family) { case AF_INET: inet_ntop(la->ai_family, &((struct sockaddr_in *)la->ai_addr)->sin_addr, buf, sizeof(buf)); break; case AF_INET6: inet_ntop(la->ai_family, &((struct sockaddr_in6 *)la->ai_addr)->sin6_addr, buf, sizeof(buf)); break; default: continue; } fprintf(stderr, "Address: %s\n", buf); } return 0; } You can use getnameinfo(3) to simplify usage of inet_ntop(3). Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 18:13: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 B177E16A4CE; Tue, 3 May 2005 18:13:43 +0000 (GMT) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 850F443D7C; Tue, 3 May 2005 18:13:43 +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 5953A1D0B7D; Tue, 3 May 2005 11:13:37 -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 j43IDYCs054760; Tue, 3 May 2005 11:13:37 -0700 (PDT) (envelope-from julian@elischer.org) Message-ID: <4277BF4D.3060507@elischer.org> Date: Tue, 03 May 2005 11:13:33 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050424 X-Accept-Language: en, hu MIME-Version: 1.0 To: John Hay References: <427743ED.6020200@FreeBSD.org> <20050503094438.GA44097@zibbi.icomtek.csir.co.za> In-Reply-To: <20050503094438.GA44097@zibbi.icomtek.csir.co.za> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org cc: Denis Peplin Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 03 May 2005 18:13:43 -0000 John Hay wrote: > On Tue, May 03, 2005 at 01:27:09PM +0400, Denis Peplin wrote: > >>The mergemaster with this is test patch (attached) >>can auto-update files that was not modified. >> >>It do this by compairing each file with it's CVS >>copy. If file was not modified, it can be rewritten. >> >>This dramatically redices amount of files that require >>admin's attention. >> >>There is one major problem here: >>This can be done in single-user mode only if your >>have local CVS repository, because if local CVS is >>not exist, anoncvs is used. >> >>Possible solutions: > > > What about mergemaster storing a copy of the original somewhere on disk > for usage next time? Then the first run may still be slow, but following > runs will be able to use it. > > John Mergemaster could keep checksums of known revisions. it wouldn't take much to have just one file with the last 35 checksums of each file. (maybe with the $FreeBSD$ line removed if it differs..) From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 18:15:57 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 774F416A4D3; Tue, 3 May 2005 18:15:57 +0000 (GMT) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DC2B43D46; Tue, 3 May 2005 18:15:57 +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 A866D1E115B; Tue, 3 May 2005 11:15:52 -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 j43IFqqR058326; Tue, 3 May 2005 11:15:52 -0700 (PDT) (envelope-from julian@elischer.org) Message-ID: <4277BFD7.2000508@elischer.org> Date: Tue, 03 May 2005 11:15:51 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050424 X-Accept-Language: en, hu MIME-Version: 1.0 To: c0ldbyte References: <427743ED.6020200@FreeBSD.org> <20050503120958.Y42342@eleanor.us1.wmi.uvac.net> In-Reply-To: <20050503120958.Y42342@eleanor.us1.wmi.uvac.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org cc: Denis Peplin Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 03 May 2005 18:15:57 -0000 c0ldbyte wrote: >> > > IMHO this isnt something that should be included with mergemaster due > to the following things. 1). It should upgrade a file if the files cvs > id doesnt match and provide you with a merge option, which it allready > does both of those as it is now. 2). Only upgrading files that havent > been changed is going to result in a positive false situation where > the user actually thinks that his/her system has been fully upgraded > and when in fact it hasnt, leaving added lines to files out where they > should have been merged in. Preferably also IMHO this patch to > mergemaster should be or would be better off renamed to another > project and/or an option for people to compile into the system if they > wish to have that kind of functionality. E.g: System/Addon for world > through the use of a set variable in /etc/make.conf.local or something > similiar. > > But with all due respect, This just seems like another case of a > "Bike Shed" incident. not at all. I've wanted this for a long time.. files that I have not touched are at default state and I wnat them to move to teh new default state. Files I have touched, I want to look at by hand. > > Best regards to humor. > --c0ldbyte > From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 20:06: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 072D816A4CE; Tue, 3 May 2005 20:06:05 +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 A160643D2F; Tue, 3 May 2005 20:06:04 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 2F7CB513B2; Tue, 3 May 2005 13:05:49 -0700 (PDT) Date: Tue, 3 May 2005 13:05:49 -0700 From: Kris Kennaway To: Steven Hartland Message-ID: <20050503200548.GA99492@xor.obsecurity.org> References: <00ba01c54fdd$24ad96d0$b3db87d4@multiplay.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline In-Reply-To: <00ba01c54fdd$24ad96d0$b3db87d4@multiplay.co.uk> User-Agent: Mutt/1.4.2.1i cc: c0ldbyte cc: Robert Watson cc: freebsd-hackers@freebsd.org cc: Kris Kennaway Subject: Re: 5.4-STABLE corrupting fs on shutdown -p now? 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, 03 May 2005 20:06:05 -0000 --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, May 03, 2005 at 01:39:23PM +0100, Steven Hartland wrote: > So sounds like this does need a bit of looking at. The key thing is > both reboot and halt always leave the machine FS in a good state > where as shutdown -p doesnt so is there something that -p skips? > Or is it simply the fact that it powers down? If it's indeed dropping power on your disks before they're ready, that would explain the difference. Kris --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCd9mcWry0BWjoQKURAh1tAKDemxo9ek0T7IeOcEzc60KSAwTjEACff1wY z8FPQJQqVFPTPQQmgBczr2E= =jalz -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 22:25: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 A1AB016A4CF; Tue, 3 May 2005 22:25:53 +0000 (GMT) Received: from crow.addict.de (raven.addict.de [80.86.187.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7463643D49; Tue, 3 May 2005 22:25:52 +0000 (GMT) (envelope-from j.unger@addict.de) Received: from crow.addict.de (raven.addict.de [80.86.187.141]) by crow.addict.de (8.12.9/8.12.6) with ESMTP id j43MPD3H054056; Wed, 4 May 2005 00:25:13 +0200 (CEST) (envelope-from j.unger@addict.de) Received: (from unger@localhost) by crow.addict.de (8.12.9/8.12.6/Submit) id j43MPCi8054055; Wed, 4 May 2005 00:25:12 +0200 (CEST) X-Authentication-Warning: crow.addict.de: unger set sender to j.unger@addict.de using -f Date: Wed, 4 May 2005 00:25:12 +0200 From: Juergen Unger To: Julian Elischer Message-ID: <20050503222512.GA53874@crow.addict.de> References: <427743ED.6020200@FreeBSD.org> <20050503120958.Y42342@eleanor.us1.wmi.uvac.net> <4277BFD7.2000508@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4277BFD7.2000508@elischer.org> User-Agent: Mutt/1.4i X-NCC-RegID: de.choin cc: c0ldbyte cc: hackers@freebsd.org cc: Denis Peplin Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 03 May 2005 22:25:53 -0000 On Tue, May 03, 2005 at 11:15:51AM -0700, Julian Elischer wrote: > c0ldbyte wrote: [...] > >But with all due respect, This just seems like another case of a > >"Bike Shed" incident. > not at all. > I've wanted this for a long time.. > files that I have not touched are at default state and I wnat them to move > to teh new default state. Files I have touched, I want to look at by hand. so do I. And to go a step further: why do we at all have to run this things in single-user mode ? Not that I am not aware of the technical reasons for it BUT: why don't we run both the installworld and the mergemaster jobs in a manner where they only _preparing_ the installation of the update ? ... maybe creating a jobfile which could be run automatically during reboot to make the update instantaneous happen without a long downtime to do it all manually in single-user mode over a slow serial console ? bye, Juergen From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 22:38: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 D5B1316A4CE for ; Tue, 3 May 2005 22:38:42 +0000 (GMT) Received: from mail.internet.is (xs.heimsnet.is [193.4.194.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46D1F43D82 for ; Tue, 3 May 2005 22:38:42 +0000 (GMT) (envelope-from thib@mi.is) Received: from caulfield (the.bastard.is [217.151.165.254]) by mail.internet.is (Postfix) with SMTP id 52B6E7AE59 for ; Tue, 3 May 2005 22:38:37 +0000 (GMT) Date: Tue, 3 May 2005 22:38:37 +0000 From: "Thordur I. Bjornsson" To: hackers@freebsd.org Message-Id: <20050503223837.7d8c884f.thib@mi.is> Organization: n/a X-Mailer: Sylpheed version 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 Subject: cleanup and diffs ? 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, 03 May 2005 22:38:43 -0000 Hello. I was surfing the dragonflybsd wiki site the other day and found out that they are doing a "base-cleanup". That is they are compiling the tools that come with the base system with WARNS?=6 ... Humm... This is something that I could do.. Minor cleanup (since I'm no C expert or a OS developer ;) this fits my skillset just fine. Now I have two questions is this something that will be appriciated by someone ? (that is would this clean-up if done properly find its way to the tree ?... nobody likes going through "trouble" like this when it will have no affect ;). If so.. what is the diff format that is expected (diff -crN ?) and should this be sent via send-pr(1) ? I know that a ,,clean-up'' like this is propably not high on the todo list for FreeBSD but.. for me this would be an easy way to contribute something back since I have no skill to work in the kernel &c. -- Thordur I. FreeBSD - Unix the way *I* like it. A man can do as he will, but not will as he will. From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 23:26: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 73BB516A4CE for ; Tue, 3 May 2005 23:26:48 +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 E030543D66 for ; Tue, 3 May 2005 23:26:47 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 2DF1E513B2; Tue, 3 May 2005 16:26:46 -0700 (PDT) Date: Tue, 3 May 2005 16:26:46 -0700 From: Kris Kennaway To: "Thordur I. Bjornsson" Message-ID: <20050503232646.GA63062@xor.obsecurity.org> References: <20050503223837.7d8c884f.thib@mi.is> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: <20050503223837.7d8c884f.thib@mi.is> User-Agent: Mutt/1.4.2.1i cc: hackers@freebsd.org Subject: Re: cleanup and diffs ? 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, 03 May 2005 23:26:48 -0000 --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 03, 2005 at 10:38:37PM +0000, Thordur I. Bjornsson wrote: > Hello. >=20 > I was surfing the dragonflybsd wiki site the other day and found out > that they are doing a "base-cleanup". That is they are compiling the > tools that come with the base system with WARNS?=3D6 ... >=20 > Humm... This is something that I could do.. Minor cleanup (since I'm no > C expert or a OS developer ;) this fits my skillset just fine. >=20 > Now I have two questions is this something that will be appriciated by > someone ? (that is would this clean-up if done properly find its way to > the tree ?... nobody likes going through "trouble" like this when it > will have no affect ;). If so.. what is the diff format that is expected > (diff -crN ?) and should this be sent via send-pr(1) ? >=20 > I know that a ,,clean-up'' like this is propably not high on the todo > list for FreeBSD but.. for me this would be an easy way to contribute > something back since I have no skill to work in the kernel &c. You need to understand how to fix the warnings properly..it isn't just a matter of making random changes until gcc stops complaining about it. This can be nontrivial. Also, Dragonfly doesn't have to worry about any other architectures than i386, so it's possible that they haven't "really" fixed many of these warnings (i.e. they might still be there on a 64-bit platform). Kris --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCeAi1Wry0BWjoQKURArrCAJ0ZH3ER/8tkVGkO/ISxl/3PKed4nwCffaDy ljsRkuQWyhaIu3z4pCWIr2s= =8Qwi -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV-- From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 02:53: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 D2FFF16A4CE for ; Wed, 4 May 2005 02:53:02 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 796A643D6B for ; Wed, 4 May 2005 02:53:02 +0000 (GMT) (envelope-from fbsd.hackers@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so29187rnf for ; Tue, 03 May 2005 19:52:58 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GeABDo7JtPkWzUjdq3ph6UxPAAV7qs/CWnOLHAiFmnTjDHGXST4fkXrY80+kq0spJnwx/AZxluLXcaK+BBRgfj3NbGCEd7DPdfB2JiC7fI5smayks9IgR1rlTr7HcPybpprcoHKt1AZ7oqv8ZF5emqwUpgjzwRkX0MLsF0Iy8vw= Received: by 10.39.3.56 with SMTP id f56mr352626rni; Tue, 03 May 2005 19:52:57 -0700 (PDT) Received: by 10.38.11.43 with HTTP; Tue, 3 May 2005 19:52:57 -0700 (PDT) Message-ID: Date: Tue, 3 May 2005 22:52:57 -0400 From: Pablo Mora To: freebsd-hackers@freebsd.org In-Reply-To: <200505041214.22044.murraytaylor@bytecraftsystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200505041214.22044.murraytaylor@bytecraftsystems.com> Subject: Re: Files in C. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pablo Mora List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2005 02:53:02 -0000 Thanks by responding me. I will revise each direction that have given me and truly I thank it a lot. --=20 Concepci=F3n, Chile. From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 05:26: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 8C79116A4CE for ; Wed, 4 May 2005 05:26:23 +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 A3ACB43D6A for ; Wed, 4 May 2005 05:26:22 +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 j445QBOZ036150; Tue, 3 May 2005 22:26:11 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <42785CF3.20009@freebsd.org> Date: Tue, 03 May 2005 22:26:11 -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: John Giacomoni References: <200504261456.52070.jhb@FreeBSD.org> In-Reply-To: <200504261456.52070.jhb@FreeBSD.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org 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: Wed, 04 May 2005 05:26:23 -0000 > On Wednesday 20 April 2005 04:39 pm, John Giacomoni wrote: > >>can someone give me an example of a situation where one needs to use >>memory barriers to ensure "correctness" when doing writes as above? One basic example: struct foo *p = malloc(sizeof(struct foo)); // Step 1 p->bar = 0; // Step 2 atomic(global_p = p); // Step 3 This is a pretty common idiom: Allocate a new data structure, initialize it, then assign the pointer to a shared global value so that the fully-initialized structure becomes visible all at once. Many people miss an important detail: A barrier is needed just before the final pointer assignment. Otherwise, the pointer might reach shared memory (Step 3) before the initialization in Step 2 happens. (This can happen because of compiler reordering or processor write caching.) Variations of this plagued the early attempts to correctly define Java's threading primitives. (It was possible to crash a lot of early JVMs by creating new objects in one thread and accessing them in another; every now and then the accessing thread would see an uninitialized vtable and crash the entire JVM.) Tim Kientzle From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 05:39: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 924C616A4CE; Wed, 4 May 2005 05:39:08 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id E91DA43D41; Wed, 4 May 2005 05:39:07 +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 j445c4Q3091208; Tue, 3 May 2005 23:38:05 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 03 May 2005 23:38:55 -0600 (MDT) Message-Id: <20050503.233855.116351361.imp@bsdimp.com> To: j.unger@addict.de From: "M. Warner Losh" In-Reply-To: <20050503222512.GA53874@crow.addict.de> References: <20050503120958.Y42342@eleanor.us1.wmi.uvac.net> <4277BFD7.2000508@elischer.org> <20050503222512.GA53874@crow.addict.de> 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: den@freebsd.org cc: c0ldbyte@myrealbox.com cc: hackers@freebsd.org cc: julian@elischer.org Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 04 May 2005 05:39:08 -0000 In message: <20050503222512.GA53874@crow.addict.de> Juergen Unger writes: : On Tue, May 03, 2005 at 11:15:51AM -0700, Julian Elischer wrote: : > c0ldbyte wrote: : [...] : > >But with all due respect, This just seems like another case of a : > >"Bike Shed" incident. : > not at all. : > I've wanted this for a long time.. : > files that I have not touched are at default state and I wnat them to move : > to teh new default state. Files I have touched, I want to look at by hand. : : so do I. And to go a step further: why do we at all have to run : this things in single-user mode ? : Not that I am not aware of the technical reasons for it The technical reasons are very simple. If a new system call is created, and programs use that new system call, then if you do an installworld before you boot the kernel, that can result in binaries not working. This has happened with important ones like /bin/sh in the past. In addition, if you aren't running single user, many different races exist in the installation process that can result in bad behavior. There are also potential problems with symbols in there's a large jump between the revisions being updated. Usually you can get away with it, but if you want to be safe, you must do the install in single user. Usually, however, has lead in the past to problems, which is why the project recommendations are conservative. Warner From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 05:43: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 0254816A4CE for ; Wed, 4 May 2005 05:43:23 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E58443D58 for ; Wed, 4 May 2005 05:43:22 +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 j445dC8A091211; Tue, 3 May 2005 23:39:13 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 03 May 2005 23:40:04 -0600 (MDT) Message-Id: <20050503.234004.34604268.imp@bsdimp.com> To: kris@obsecurity.org From: "M. Warner Losh" In-Reply-To: <20050503232646.GA63062@xor.obsecurity.org> References: <20050503223837.7d8c884f.thib@mi.is> <20050503232646.GA63062@xor.obsecurity.org> 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: hackers@freebsd.org Subject: Re: cleanup and diffs ? 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, 04 May 2005 05:43:23 -0000 In message: <20050503232646.GA63062@xor.obsecurity.org> Kris Kennaway writes: : it. This can be nontrivial. Also, Dragonfly doesn't have to worry : about any other architectures than i386, so it's possible that they : haven't "really" fixed many of these warnings (i.e. they might still : be there on a 64-bit platform). Lord knows in the past how many tinderbox breakages we've had in the tree because someone "fixed" all the warnings at level 6, but in fact broke 64 bit ports... Warner From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 08:34:33 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 8596B16A4CE; Wed, 4 May 2005 08:34:33 +0000 (GMT) Received: from 62-15-215-178.inversas.jazztel.es (62-15-215-178.inversas.jazztel.es [62.15.215.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9151B43D4C; Wed, 4 May 2005 08:34:32 +0000 (GMT) (envelope-from josemi@freebsd.jazztel.es) Received: from redesjm.local (orion.redesjm.local [192.168.254.16]) j448Y1jj006499; Wed, 4 May 2005 10:34:02 +0200 (CEST) (envelope-from josemi@redesjm.local) Received: from localhost (localhost [[UNIX: localhost]]) by redesjm.local (8.13.3/8.13.3/Submit) id j448Y1mW067263; Wed, 4 May 2005 10:34:01 +0200 (CEST) (envelope-from josemi@redesjm.local) From: Jose M Rodriguez To: current@FreeBSD.org Date: Wed, 4 May 2005 10:34:01 +0200 User-Agent: KMail/1.8 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200505041034.01712.josemi@redesjm.local> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-AntiVirus: checked by AntiVir Milter (version: 1.1.0-3; AVE: 6.30.0.7; VDF: 6.30.0.155; host: antares.redesjm.local) cc: hackers@FreeBSD.org Subject: Fwd: Re: MFC pxe fixes 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, 04 May 2005 08:34:33 -0000 I think this is really a current/hackers thread. =2D--------- Mensaje reenviado ---------- Subject: Re: MFC pxe fixes Date: Mi=E9rcoles, 4 de Mayo de 2005 10:30 =46rom: Jose M Rodriguez To: Danny Braniss Cc: Jose M Rodriguez , stable@freebsd.org El Mi=E9rcoles, 4 de Mayo de 2005 09:36, Danny Braniss escribi=F3: > sorry if this looks like im highjacking hte thread, but i've > submitted a PR http://www.freebsd.org/cgi/query-pr.cgi?pr=3D61239 > which among other things, places ALL the dhcp variables in the > environment. > > danny I can't see how this will be on FreeBSD-5.4 or -stable. If you're interested on this, open a thread on current. This is about making pxeboot compiled with LOADER_TFTP_SUPPORT defined works as documented. Also, point that your workplan makes a second bootp transaction needed. Try make the bootp/dhcp packet parser independent of bootp.c (At last, exportable), so we can parse the 'bootplayer' binary packet pxe allready have. ALso, I'm not sure we can redefine CLASSID without breaking PXE (not dhcp) compatibility. Remember that the PXE bios has allready do the bootp/dhcp transaction for us, and the correct path is only parse the 'bootplayer' (really a bootp/dhcp packet in binary form) than we get from the bios. =2D- josemi =2D- josemi =2D------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 09:14: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 EB3C816A4CE for ; Wed, 4 May 2005 09:14:29 +0000 (GMT) Received: from outgoing.redshift.com (outgoing.redshift.com [207.177.231.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCF0F43D6E for ; Wed, 4 May 2005 09:14:29 +0000 (GMT) (envelope-from ray@redshift.com) Received: from workstation (216-228-19-21.dsl.redshift.com [216.228.19.21]) by outgoing.redshift.com (Postfix) with SMTP id 021349711F for ; Wed, 4 May 2005 02:14:13 -0700 (PDT) Message-Id: <3.0.1.32.20050504021431.00b1c880@pop.redshift.com> X-Mailer: na X-Sender: redshift.com Date: Wed, 04 May 2005 02:14:31 -0700 To: hackers@freebsd.org From: ray@redshift.com In-Reply-To: <20050503.234004.34604268.imp@bsdimp.com> References: <20050503232646.GA63062@xor.obsecurity.org> <20050503223837.7d8c884f.thib@mi.is> <20050503232646.GA63062@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: Broadcom BCM95820 SSL encryption accelerator card 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, 04 May 2005 09:14:30 -0000 Does anyone know if FreeBSD and/or OpenSSL will support the Broadcom BCM95820 SSL acceleration cards? I have a few here and wanted to try to get OpenSSL to work - but I'm not sure if I need a driver in order for OpenSSL to off load it's encryption tasks to the CPU on the BCM95820. Does anyone have any experience with this (or other SSL) card and/or would anyone know where to start if attempting to get one of these cards to work? Any ideas, suggestions? Thanks. Ray From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 10:46: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 F3E2B16A4D0 for ; Wed, 4 May 2005 10:46:10 +0000 (GMT) Received: from postfix1-c.free.fr (postfix1-c.free.fr [213.228.0.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7545043D5C for ; Wed, 4 May 2005 10:46:10 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by postfix1-c.free.fr (Postfix) with ESMTP id DB75AEA544E for ; Wed, 4 May 2005 12:45:34 +0200 (CEST) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix4-2.free.fr (Postfix) with ESMTP id 2F6A0319318; Wed, 4 May 2005 12:45:04 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id 2B5474080; Wed, 4 May 2005 12:44:10 +0200 (CEST) Date: Wed, 4 May 2005 12:44:10 +0200 From: Jeremie Le Hen To: ray@redshift.com Message-ID: <20050504104410.GA91329@obiwan.tataz.chchile.org> References: <20050503232646.GA63062@xor.obsecurity.org> <20050503223837.7d8c884f.thib@mi.is> <20050503232646.GA63062@xor.obsecurity.org> <3.0.1.32.20050504021431.00b1c880@pop.redshift.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3.0.1.32.20050504021431.00b1c880@pop.redshift.com> User-Agent: Mutt/1.5.9i cc: hackers@freebsd.org Subject: Re: Broadcom BCM95820 SSL encryption accelerator card 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, 04 May 2005 10:46:11 -0000 Hi, On Wed, May 04, 2005 at 02:14:31AM -0700, ray@redshift.com wrote: > Does anyone know if FreeBSD and/or OpenSSL will support the Broadcom BCM95820 > SSL acceleration cards? I have a few here and wanted to try to get OpenSSL to > work - but I'm not sure if I need a driver in order for OpenSSL to off load it's > encryption tasks to the CPU on the BCM95820. Does anyone have any experience > with this (or other SSL) card and/or would anyone know where to start if > attempting to get one of these cards to work? > > Any ideas, suggestions? please do not reply to an existing thread when you want to create a new one, this confuses mail clients when sorting mails by thread. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 14:43:14 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 DC3E116A4CF for ; Tue, 3 May 2005 14:43:14 +0000 (GMT) Received: from mrx.wan.inter.net.il (mrx.wan.inter.net.il [192.117.191.51]) by mx1.FreeBSD.org (Postfix) with SMTP id E09E843D69 for ; Tue, 3 May 2005 14:43:12 +0000 (GMT) (envelope-from imriz@co.zahav.net.il) Received: from igfe.InetGold ([172.33.1.137]) by mrx.wan.inter.net.il (SAVSMTP 3.1.0.29) with SMTP id M2005050317454924021 ; Tue, 03 May 2005 17:45:49 +0200 Received: from IGMAIL.InetGold ([172.31.100.164]) by igfe.InetGold with Microsoft SMTPSVC(6.0.3790.0); Tue, 3 May 2005 17:42:56 +0300 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 3 May 2005 17:49:49 +0300 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ipfw causing panic 4.11-RELEASE-p4 Thread-Index: AcVP7XCPL3R6sG1WQwagw2uu6wD1gQAAJ5Mw From: "Imri Zvik" To: "Maxim Konovalov" X-OriginalArrivalTime: 03 May 2005 14:42:56.0676 (UTC) FILETIME=[65173E40:01C54FEE] X-Mailman-Approved-At: Wed, 04 May 2005 12:04:11 +0000 cc: freebsd-hackers@freebsd.org Subject: RE: ipfw causing panic 4.11-RELEASE-p4 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, 03 May 2005 14:43:15 -0000 I forgot to mention I was using ipfw1. When I upgraded to ipfw2 it didn't happen again. -- Imri Zvik PGP (2.6.3ia) Public Key: http://mariska.inter.net.il/~imriz/imriz.pgp =20 -----Original Message----- From: Maxim Konovalov [mailto:maxim@macomnet.ru]=20 Sent: Tuesday, May 03, 2005 5:29 PM To: Imri Zvik Cc: freebsd-hackers@freebsd.org Subject: Re: ipfw causing panic 4.11-RELEASE-p4 On Mon, 2 May 2005, 13:20+0300, Imri Zvik wrote: > Hi, > > I was playing around with ipfw, and when I tried something like: > > /sbin/ipfw disable firewall > > /sbin/ipfw flush && sysctl net.inet.ip.fw.dyn_buckets=3D600 > > > > /sbin/ipfw enable firewall > > > > The machine paniced: Mine doesn't: shy# uname -a FreeBSD shy.macomnet.ru 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu Apr 21 05:48:09 MSD 2005 maxim@shy.macomnet.ru:/usr/obj/usr/src/sys/GENERIC i386 shy# /sbin/ipfw disable firewall shy# /sbin/ipfw flush && sysctl net.inet.ip.fw.dyn_buckets=3D600 Are you sure? [yn] y Flushed all rules. net.inet.ip.fw.dyn_buckets: 256 -> 600 shy# ipfw add 1 allow all from any to any 00001 allow ip from any to any shy# /sbin/ipfw enable firewall Could you show your rules? --=20 Maxim Konovalov From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 02:14: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 8D62C16A4CE for ; Wed, 4 May 2005 02:14:48 +0000 (GMT) Received: from wolf.bytecraft.au.com (wolf.bytecraft.au.com [203.39.118.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 305B843D1D for ; Wed, 4 May 2005 02:14:46 +0000 (GMT) (envelope-from MTaylor@bytecraft.com.au) Received: from localhost (localhost [127.0.0.1])j442EemM082835; Wed, 4 May 2005 12:14:40 +1000 (EST) (envelope-from MTaylor@bytecraft.com.au) Received: from wolf.bytecraft.au.com ([127.0.0.1]) by localhost (wolf.bytecraft.au.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 82380-03-2; Wed, 4 May 2005 12:14:39 +1000 (EST) Received: from svmarshal.bytecraft.au.com ([10.0.0.4])j442EMmu082820; Wed, 4 May 2005 12:14:22 +1000 (EST) (envelope-from MTaylor@bytecraft.com.au) Received: from svmailmel.bytecraft.internal (Not Verified[10.0.0.24]) by svmarshal.bytecraft.au.com with MailMarshal (v5,0,3,78) id ; Wed, 04 May 2005 12:14:22 +1000 Received: from [10.0.17.42] ([10.0.17.42]) by svmailmel.bytecraft.internal with Microsoft SMTPSVC(6.0.3790.211); Wed, 4 May 2005 12:14:22 +1000 From: Murray Taylor Organization: Bytecraft Systems To: freebsd-hackers@freebsd.org, Pablo Mora Date: Wed, 4 May 2005 12:14:21 +1000 User-Agent: KMail/1.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200505041214.22044.murraytaylor@bytecraftsystems.com> X-OriginalArrivalTime: 04 May 2005 02:14:22.0878 (UTC) FILETIME=[FCCB4BE0:01C5504E] X-Mailman-Approved-At: Wed, 04 May 2005 12:04:11 +0000 Subject: Re: Files in C. 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, 04 May 2005 02:14:48 -0000 On Tue, 3 May 2005 18:21, Pablo Mora wrote: > I know that this is not the place to consult on programming C. But I > am so enthusiastic in FreeBSD that I want to learn more on the > language C and someday coming to be a small part of which you already > are. It wanted that they recommended to me some webpage where to be > able to obtain information on files in C. I want to learn well to > work with Files. >=20 > I need to know the best place where to obtain information and I know > that you know it. >=20 > Bye and very very thanks. >=20 > PD. thousand excuses by my terrible English. >=20 > "they say that more idiot is the one than does not ask." > "Dicen que m=E1s tonto es aqu=E9l que no pregunta." >=20 > --=20 > Concepci=F3n, Chile. http://www.eskimo.com/~scs/cclass/ http://www.eskimo.com/~scs/ http://www.cs.cf.ac.uk/Dave/C/ more advanced topics - still simple C=20 http://beej.us/guide/ "Unix is user friendly. However, it isn't idiot friendly." Much the same thing can be said about C --=20 Murray Taylor Special Projects Engineer --------------------------------- Bytecraft Systems & Entertainment Phone: 61 3 8710 2555 Fax: 61 3 8710 2599 Direct: 61 3 9238 4275 Mobile: 61 0417 319 256 Email: murraytaylor@bytecraftsystems.com or visit us on the web http://www.bytecraftsystems.com http://www.bytecraftentertainment.com --------------------------------------------------------------- The information transmitted in this e-mail is for the exclusive use of the intended addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material.=20 E-mails may not be secure, may contain computer viruses and may be corrupted in transmission. Please carefully check this e-mail (and any attachment) accordingly. No warranties are given and no liability is accepted for any loss or damage caused by such matters. --------------------------------------------------------------- ***This Email has been scanned for Viruses by MailMarshal.*** From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 12:37: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 A47AA16A4CE for ; Wed, 4 May 2005 12:37:37 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BC4243D5E for ; Wed, 4 May 2005 12:37:37 +0000 (GMT) (envelope-from maslanbsd@gmail.com) Received: by wproxy.gmail.com with SMTP id 70so254773wra for ; Wed, 04 May 2005 05:37:00 -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=M7i1okP1nnDwssL1FWYLEVaUTeG9nnDauDazk2XJKAV5OTi1rhY2VejmsQw28w23YB0m5i93eNyY4+4kjoWDXLJnvDpcvzCf2H2YrxCvDQ2ran3XuCKr0NPsMafziznSCfHT7jm9JpP0TrNXj4CSZHKyuvVeVn0+KW+hjUlbCvw= Received: by 10.54.122.15 with SMTP id u15mr255366wrc; Wed, 04 May 2005 05:30:20 -0700 (PDT) Received: by 10.54.99.7 with HTTP; Wed, 4 May 2005 05:30:20 -0700 (PDT) Message-ID: <319cceca0505040530623245d7@mail.gmail.com> Date: Wed, 4 May 2005 14:30:20 +0200 From: Maslan To: FreeBSD Hackers Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: files refused to delete 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: Wed, 04 May 2005 12:37:37 -0000 when i've extract a bz2 file containing filenames in other encodings (arabi= c), the file names appears ??? and it refuses to delete , however i deleted them from linux but the fsck created a hard link to them in lost+found and this hard links refused to deleted, it also created a hard link to my home directory which also refused to delete. is this bug in bfs or in fsck ??? --=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 Wed May 4 12:57:14 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 8A0FE16A4CE; Wed, 4 May 2005 12:57:14 +0000 (GMT) Received: from mail.tacorp.net (mail.tacorp.net [64.246.111.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9F9E43D60; Wed, 4 May 2005 12:57:13 +0000 (GMT) (envelope-from raistlin@tacorp.net) Received: from mail.tacorp.net (raistlin@localhost [127.0.0.1]) by mail.tacorp.net (8.13.1/8.12.10) with ESMTP id j44D6mIw055419; Wed, 4 May 2005 09:06:48 -0400 (EDT) (envelope-from raistlin@tacorp.net) Received: from localhost (raistlin@localhost)j44D6li4055416; Wed, 4 May 2005 09:06:48 -0400 (EDT) (envelope-from raistlin@tacorp.net) X-Authentication-Warning: mail.tacorp.net: raistlin owned process doing -bs Date: Wed, 4 May 2005 09:06:47 -0400 (EDT) From: Jason Slagle To: c0ldbyte In-Reply-To: <20050503120958.Y42342@eleanor.us1.wmi.uvac.net> Message-ID: <20050504090413.S38366@mail.tacorp.net> References: <427743ED.6020200@FreeBSD.org> <20050503120958.Y42342@eleanor.us1.wmi.uvac.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: hackers@freebsd.org cc: Denis Peplin Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 04 May 2005 12:57:14 -0000 On Tue, 3 May 2005, c0ldbyte wrote: > IMHO this isnt something that should be included with mergemaster due > to the following things. 1). It should upgrade a file if the files cvs > id doesnt match and provide you with a merge option, which it allready > does both of those as it is now. 2). Only upgrading files that havent > been changed is going to result in a positive false situation where > the user actually thinks that his/her system has been fully upgraded > and when in fact it hasnt, leaving added lines to files out where they > should have been merged in. Preferably also IMHO this patch to > mergemaster should be or would be better off renamed to another > project and/or an option for people to compile into the system if they > wish to have that kind of functionality. E.g: System/Addon for world > through the use of a set variable in /etc/make.conf.local or something > similiar. > > But with all due respect, This just seems like another case of a > "Bike Shed" incident. First off, I'd like to introduce you to the concepts of paragraphs. When you change thoughts, it is customary to hit enter and start on a blank line. Sometimes, you can even leave a whole line between them. This tends to make your writing much more readable. In regards to your post, show me again where he said he was going to change the behavior of mergemaster OTHER then auto-updating non changed files? To me it looks like it will keep doing what it's doing now, with the exception of auto-updating files with no changes. This to me means I don't have to go approving a bunch of changes to files I've never touched. This is a good thing(tm). Jason -- Jason Slagle /"\ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . \ / ASCII Ribbon Campaign . X - NO HTML/RTF in e-mail . / \ - NO Word docs in e-mail . From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 18:52: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 4063916A4CE for ; Wed, 4 May 2005 18:52:06 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id D342143D68 for ; Wed, 4 May 2005 18:52:05 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id CE9E77A403; Wed, 4 May 2005 11:51:50 -0700 (PDT) Message-ID: <427919C6.5040100@elischer.org> Date: Wed, 04 May 2005 11:51:50 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050423 X-Accept-Language: en, hu MIME-Version: 1.0 To: Maslan References: <319cceca0505040530623245d7@mail.gmail.com> In-Reply-To: <319cceca0505040530623245d7@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD Hackers Subject: Re: files refused to delete 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, 04 May 2005 18:52:06 -0000 use ls -lo to see if there are any special flags set on the file. man chflags for more information on the flags. How did you delete if from linux? last I heard the linux ufs code was not very healthy. maybe they fixed it.. Maslan wrote: >when i've extract a bz2 file containing filenames in other encodings (arabic), >the file names appears ??? and it refuses to delete , however i >deleted them from linux >but the fsck created a hard link to them in lost+found and this hard >links refused to deleted, it also created a hard link to my home >directory which also refused to delete. >is this bug in bfs or in fsck ??? > > > From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 19:23: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 0E40916A4CE for ; Wed, 4 May 2005 19:23:30 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A61E43D6A for ; Wed, 4 May 2005 19:23:29 +0000 (GMT) (envelope-from fbsd.hackers@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so163057rnf for ; Wed, 04 May 2005 12:22:31 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XoiqXQw4g46cD90DvISJwZ417e1/yFLB4cnMYQIVtj/gdJd1RY3p/VPUVa2zR/KfOymDLpu2nKrEL1EeZ09fbIujJxu4cnj3JxN/ZSLfWPx7Yz1YidN6Qoo8BV+HI5Ph6OnDvs+9nrivSgXVU26YhfG/Wl4TD9BhY3AEJDIT4DA= Received: by 10.38.101.18 with SMTP id y18mr40082rnb; Wed, 04 May 2005 12:22:30 -0700 (PDT) Received: by 10.38.11.43 with HTTP; Wed, 4 May 2005 12:22:30 -0700 (PDT) Message-ID: Date: Wed, 4 May 2005 15:22:30 -0400 From: Pablo Mora To: freebsd-hackers@freebsd.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200505041214.22044.murraytaylor@bytecraftsystems.com> Subject: Re: Files in C. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pablo Mora List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2005 19:23:30 -0000 what do they think of the book: Advanced Programming In The Unix Environment (Richard Stevens) ?? is a good option to learn C on Unix ? --=20 Concepci=F3n, Chile. From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 20:22: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 9242116A4CE for ; Wed, 4 May 2005 20:22:21 +0000 (GMT) Received: from pinus.cc.fer.hr (pinus.cc.fer.hr [161.53.73.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79C5043D79 for ; Wed, 4 May 2005 20:22:20 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [161.53.72.113] (lara.cc.fer.hr [161.53.72.113]) by pinus.cc.fer.hr (8.12.2/8.12.2) with ESMTP id j44KMohE006732 for ; Wed, 4 May 2005 22:22:50 +0200 (MEST) Message-ID: <42792E98.7020706@fer.hr> Date: Wed, 04 May 2005 22:20:40 +0200 From: Ivan Voras User-Agent: Mozilla Thunderbird 1.0 (X11/20041213) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Subject: SSE in kernel? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2005 20:22:21 -0000 Can SSE instructions be used in kernel / kernel modules? Can floating point code? From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 20:22:45 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 9A22416A505 for ; Wed, 4 May 2005 20:22:42 +0000 (GMT) Received: from april.chuckr.org (april.chuckr.org [66.92.151.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F6D843D2D for ; Wed, 4 May 2005 20:22:42 +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 19D5D11FE2; Wed, 4 May 2005 16:15:41 -0400 (EDT) Message-ID: <42792E86.6050503@chuckr.org> Date: Wed, 04 May 2005 20:20:22 +0000 From: Chuck Robey User-Agent: Mozilla Thunderbird 1.0 (X11/20050316) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pablo Mora References: <200505041214.22044.murraytaylor@bytecraftsystems.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Files in C. 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, 04 May 2005 20:22:47 -0000 Pablo Mora wrote: > what do they think of the book: Advanced Programming In The Unix > Environment (Richard Stevens) ?? > > is a good option to learn C on Unix ? > It's one of the better ways, yes. Not the only way, certainly, but Stevens is extrermely well regarded for very good reasons. From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 20:34: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 813C016A4CE for ; Wed, 4 May 2005 20:34:00 +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 51E0A43D3F for ; Wed, 4 May 2005 20:34:00 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 08F8E5132A; Wed, 4 May 2005 13:32:51 -0700 (PDT) Date: Wed, 4 May 2005 13:32:50 -0700 From: Kris Kennaway To: Ivan Voras Message-ID: <20050504203250.GA8346@xor.obsecurity.org> References: <42792E98.7020706@fer.hr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline In-Reply-To: <42792E98.7020706@fer.hr> User-Agent: Mutt/1.4.2.1i cc: hackers@freebsd.org Subject: Re: SSE in kernel? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2005 20:34:00 -0000 --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 04, 2005 at 10:20:40PM +0200, Ivan Voras wrote: > Can SSE instructions be used in kernel / kernel modules? > Can floating point code? This question is asked quite often..please see the mailing list archives for discussion. Kris --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCeTFyWry0BWjoQKURAqRDAKCQ9eOSvgYWMZTYZf+eFLC1j+2rYACeLUr5 /IuZ+72Zno6EsUbM+abAGa4= =gxRk -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/-- From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 21:02:46 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 944AF16A4CE for ; Wed, 4 May 2005 21:02:46 +0000 (GMT) Received: from math.missouri.edu (math.missouri.edu [128.206.49.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32BF643D3F for ; Wed, 4 May 2005 21:02:46 +0000 (GMT) (envelope-from stephen@math.missouri.edu) Received: from [128.206.49.166] (cauchy.math.missouri.edu [128.206.49.166]) by math.missouri.edu (8.12.11/8.12.11) with ESMTP id j44K6YNS083880; Wed, 4 May 2005 15:06:34 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Message-ID: <42792B4A.8030609@math.missouri.edu> Date: Wed, 04 May 2005 15:06:34 -0500 From: Stephen Montgomery-Smith Organization: University of Missouri User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050427 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pablo Mora References: <200505041214.22044.murraytaylor@bytecraftsystems.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-100.0 required=4.0 tests=USER_IN_WHITELIST autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on math.missouri.edu X-Virus-Scanned: clamd / ClamAV version 0.71, clamav-milter version 0.71 X-Virus-Status: Clean cc: freebsd-hackers@freebsd.org Subject: Re: Files in C. 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, 04 May 2005 21:02:46 -0000 Pablo Mora wrote: > what do they think of the book: Advanced Programming In The Unix > Environment (Richard Stevens) ?? > > is a good option to learn C on Unix ? > I really liked his Unix Network Programming Vol 1, but this book and his Vol 2 are also very good, so I would suggest getting all three. I might have hesitation over Vol 2, but only because it covers stuff that you might not need. He writes extremely well. -- Stephen Montgomery-Smith stephen@math.missouri.edu http://www.math.missouri.edu/~stephen From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 21:07: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 E7B9C16A4CE for ; Wed, 4 May 2005 21:07:59 +0000 (GMT) Received: from outgoing.redshift.com (outgoing.redshift.com [207.177.231.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBD3443D67 for ; Wed, 4 May 2005 21:07:59 +0000 (GMT) (envelope-from ray@redshift.com) Received: from workstation (216-228-19-21.dsl.redshift.com [216.228.19.21]) by outgoing.redshift.com (Postfix) with SMTP id A247D97191; Wed, 4 May 2005 14:07:23 -0700 (PDT) Message-Id: <3.0.1.32.20050504140741.00be7330@pop.redshift.com> X-Mailer: na X-Sender: redshift.com Date: Wed, 04 May 2005 14:07:41 -0700 To: Jeremie Le Hen From: ray@redshift.com In-Reply-To: <20050504104410.GA91329@obiwan.tataz.chchile.org> References: <3.0.1.32.20050504021431.00b1c880@pop.redshift.com> <20050503232646.GA63062@xor.obsecurity.org> <20050503223837.7d8c884f.thib@mi.is> <20050503232646.GA63062@xor.obsecurity.org> <3.0.1.32.20050504021431.00b1c880@pop.redshift.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" cc: hackers@freebsd.org Subject: Re: Broadcom BCM95820 SSL encryption accelerator card 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, 04 May 2005 21:08:00 -0000 Thanks. I didn't realize it did that. Ray At 12:44 PM 5/4/2005 +0200, Jeremie Le Hen wrote: | Hi, | | On Wed, May 04, 2005 at 02:14:31AM -0700, ray@redshift.com wrote: | > Does anyone know if FreeBSD and/or OpenSSL will support the Broadcom BCM95820 | > SSL acceleration cards? I have a few here and wanted to try to get OpenSSL to | > work - but I'm not sure if I need a driver in order for OpenSSL to off load it's | > encryption tasks to the CPU on the BCM95820. Does anyone have any experience | > with this (or other SSL) card and/or would anyone know where to start if | > attempting to get one of these cards to work? | > | > Any ideas, suggestions? | | please do not reply to an existing thread when you want to create | a new one, this confuses mail clients when sorting mails by thread. | | Regards, | -- | Jeremie Le Hen | < jeremie at le-hen dot org >< ttz at chchile dot org > | _______________________________________________ | freebsd-hackers@freebsd.org mailing list | http://lists.freebsd.org/mailman/listinfo/freebsd-hackers | To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" | | From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 21:16: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 0E76A16A4CE for ; Wed, 4 May 2005 21:16:23 +0000 (GMT) Received: from smtp813.mail.ukl.yahoo.com (smtp813.mail.ukl.yahoo.com [217.12.12.203]) by mx1.FreeBSD.org (Postfix) with SMTP id 3E48043D70 for ; Wed, 4 May 2005 21:16:22 +0000 (GMT) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from unknown (HELO w2fzz0vc01.aah-go-on.com) (thomas.sparrevohn@hg1.btinternet.com@81.157.225.3 with plain) by smtp813.mail.ukl.yahoo.com with SMTP; 4 May 2005 21:15:30 -0000 From: Thomas Sparrevohn To: freebsd-hackers@freebsd.org Date: Wed, 4 May 2005 22:15:25 +0100 User-Agent: KMail/1.8 References: <20050503120958.Y42342@eleanor.us1.wmi.uvac.net> <20050503222512.GA53874@crow.addict.de> <20050503.233855.116351361.imp@bsdimp.com> In-Reply-To: <20050503.233855.116351361.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505042215.26426.Thomas.Sparrevohn@btinternet.com> Subject: Re: mergemaster improvement (auto-update for not modified files) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Thomas.Sparrevohn@btinternet.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2005 21:16:23 -0000 On Wednesday 04 May 2005 06:38, M. Warner Losh wrote: > > The technical reasons are very simple. If a new system call is > created, and programs use that new system call, then if you do an > installworld before you boot the kernel, that can result in binaries > not working. This has happened with important ones like /bin/sh in > the past. In addition, if you aren't running single user, many > different races exist in the installation process that can result in > bad behavior. There are also potential problems with symbols in > there's a large jump between the revisions being updated. > > Usually you can get away with it, but if you want to be safe, you must > do the install in single user. Usually, however, has lead in the past > to problems, which is why the project recommendations are > conservative. > A auto-scripted install directly run from rc.d in single-user mode would cover both requirements - I seem to recall that Solaris had something like it at a point. Somewhat along the lines of nextboot would be nice. From owner-freebsd-hackers@FreeBSD.ORG Wed May 4 21:24: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 17CC616A4CE for ; Wed, 4 May 2005 21:24:37 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75B0443D7F for ; Wed, 4 May 2005 21:24:36 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j44LNOiR003643; Wed, 4 May 2005 15:23:24 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 04 May 2005 15:23:24 -0600 (MDT) Message-Id: <20050504.152324.41637276.imp@bsdimp.com> To: Thomas.Sparrevohn@btinternet.com From: Warner Losh In-Reply-To: <200505042215.26426.Thomas.Sparrevohn@btinternet.com> References: <20050503222512.GA53874@crow.addict.de> <20050503.233855.116351361.imp@bsdimp.com> <200505042215.26426.Thomas.Sparrevohn@btinternet.com> 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: mergemaster improvement (auto-update for not modified files) 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, 04 May 2005 21:24:37 -0000 > On Wednesday 04 May 2005 06:38, M. Warner Losh wrote: > > > > The technical reasons are very simple. If a new system call is > > created, and programs use that new system call, then if you do an > > installworld before you boot the kernel, that can result in binaries > > not working. This has happened with important ones like /bin/sh in > > the past. In addition, if you aren't running single user, many > > different races exist in the installation process that can result in > > bad behavior. There are also potential problems with symbols in > > there's a large jump between the revisions being updated. > > > > Usually you can get away with it, but if you want to be safe, you must > > do the install in single user. Usually, however, has lead in the past > > to problems, which is why the project recommendations are > > conservative. > > > > A auto-scripted install directly run from rc.d in single-user mode would cover > both requirements - I seem to recall that Solaris had something like it at a > point. Somewhat along the lines of nextboot would be nice. How do you know where to get the sources from? What environment to build them from? However, if you could cover those issues, I'd love to see a script to deal. Maybe you could implement something that would be robust enough for the project to recommend... Warner From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 02:14: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 8124D16A4CE for ; Thu, 5 May 2005 02:14:49 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E3C243D60 for ; Thu, 5 May 2005 02:14:49 +0000 (GMT) (envelope-from fbsd.hackers@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so204031rnf for ; Wed, 04 May 2005 19:13:13 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=g7j9ZynRzZgpTTzXUW51rbZ0DgbHLxrNpC5FTl7EGqQUCejsCwAlQuumrtfjtJ2llznno1iBOKZh+eonKxq9G3bjoKwh7VRf2dPH/BXTKRFvTbRHpr6JVTpdWu6dHkdoFWhGwRXyZumITKzhWxYcclY/15bb7RmpEHcY2X4S3P4= Received: by 10.38.181.77 with SMTP id d77mr1288073rnf; Wed, 04 May 2005 17:26:33 -0700 (PDT) Received: by 10.38.11.43 with HTTP; Wed, 4 May 2005 17:26:33 -0700 (PDT) Message-ID: Date: Wed, 4 May 2005 20:26:33 -0400 From: Pablo Mora To: freebsd-hackers@freebsd.org In-Reply-To: <20050504224207.2e444ff1.molter@tin.it> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200505041214.22044.murraytaylor@bytecraftsystems.com> <20050504224207.2e444ff1.molter@tin.it> Subject: Re: Files in C. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pablo Mora List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 02:14:49 -0000 thanks to all by responding me, I will have present each one of its mail PD. I thank to the community of FreeBSD by facilitating me its aid. =20 TnX from Chile. --=20 Concepci=F3n, Chile. From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 02:36: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 B9A3516A4CE for ; Thu, 5 May 2005 02:36:13 +0000 (GMT) Received: from gw.gbch.net (gw.gbch.net [203.143.238.93]) by mx1.FreeBSD.org (Postfix) with SMTP id 05FE143D6E for ; Thu, 5 May 2005 02:36:12 +0000 (GMT) (envelope-from gjb@gbch.net) Received: (qmail 27206 invoked from network); 5 May 2005 12:35:18 +1000 Received: from gecko.gbch.net (172.16.1.7) by bambi.gbch.net with SMTP; 5 May 2005 12:35:18 +1000 Received: (qmail 95756 invoked by uid 1001); 5 May 2005 12:35:18 +1000 Message-ID: Date: Thu, 5 May 2005 12:35:18 +1000 From: Greg Black To: Pablo Mora References: <200505041214.22044.murraytaylor@bytecraftsystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i; gjb-muttsend.sh 1.7 2004-10-05 X-Uptime: 75 days X-Operating-System: FreeBSD 4.10-RELEASE i386 X-Location: Brisbane, Australia; 27.49841S 152.98439E X-URL: http://www.gbch.net/gjb.html X-Blog: http://www.gbch.net/gjb/blog/ X-Image-URL: http://www.gbch.net/gjb/gjb-auug048.gif X-PGP-Key-Fingerprint: EBB2 2A92 A79D 1533 AC00 3C46 5D83 B6FB 4B04 B7D6 X-Request-PGP: http://www.gbch.net/keys/4B04B7D6.asc cc: freebsd-hackers@freebsd.org Subject: Re: Files in C. 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, 05 May 2005 02:36:13 -0000 On 2005-05-04, Pablo Mora wrote: > what do they think of the book: Advanced Programming In The Unix > Environment (Richard Stevens) ?? > > is a good option to learn C on Unix ? Stevens was a (justifiably) respected author on the topics he covered in that book (and his other books), and it will be a useful source of information for you. Just don't fall into the trap of thinking that all the material you will find there is correct. He had a tendency to make mistakes in quite important areas (e.g., most signal handlers in his books are plain wrong), perhaps in the interest of making things shorter for pedagogical purposes or perhaps through simple carelessness. At any rate, take nothing as gospel, even though the book is a useful tool. Greg From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 06:43: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 59C9616A4CE for ; Thu, 5 May 2005 06:43:06 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05C6343DA1 for ; Thu, 5 May 2005 06:43:06 +0000 (GMT) (envelope-from fbsd.hackers@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so233647rnf for ; Wed, 04 May 2005 23:43:05 -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=ljvA3k7E01bpBV0i0Qr78M9ify8q8AU0GbHzg1HV1E4zsgpj+wKkQRdm6RUFmDU8wxNRDMrKEyW0shGs3X+xar3xdqBpDtXikiWCV9Em5ZL3jmnpA6kczzt8ZYQg58xK/t4nTegR+6Oob40f3P02jIneWy/XlysGCPapxlnBipI= Received: by 10.38.126.67 with SMTP id y67mr172258rnc; Wed, 04 May 2005 23:43:05 -0700 (PDT) Received: by 10.38.11.43 with HTTP; Wed, 4 May 2005 23:43:05 -0700 (PDT) Message-ID: Date: Thu, 5 May 2005 02:43:05 -0400 From: Pablo Mora To: Greg Black In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200505041214.22044.murraytaylor@bytecraftsystems.com> cc: freebsd-hackers@freebsd.org Subject: Re: Files in C. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pablo Mora List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 06:43:06 -0000 Greg, i am going to keep in mind your words. In fact I expect to guide me for more than an opinion. Hopefully they accept occasionally some my code written in C so that they help me to perfect it and i hope be not an inconvenience. PD. Any objection with the previous thing tell it to me please. =20 --=20 Concepci=F3n, Chile. From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 09:06: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 4CA5316A4CE for ; Thu, 5 May 2005 09:06:24 +0000 (GMT) Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id B63DD43D8F for ; Thu, 5 May 2005 09:06:16 +0000 (GMT) (envelope-from jhay@icomtek.csir.co.za) Received: from zibbi.icomtek.csir.co.za (localhost [127.0.0.1]) j4595VEm031698; Thu, 5 May 2005 11:05:31 +0200 (SAST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: (from jhay@localhost)j4595Lpb031697; Thu, 5 May 2005 11:05:21 +0200 (SAST) (envelope-from jhay) Date: Thu, 5 May 2005 11:05:21 +0200 From: John Hay To: Warner Losh Message-ID: <20050505090521.GA25752@zibbi.icomtek.csir.co.za> References: <20050503222512.GA53874@crow.addict.de> <20050503.233855.116351361.imp@bsdimp.com> <200505042215.26426.Thomas.Sparrevohn@btinternet.com> <20050504.152324.41637276.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050504.152324.41637276.imp@bsdimp.com> User-Agent: Mutt/1.4.1i cc: freebsd-hackers@freebsd.org cc: Thomas.Sparrevohn@btinternet.com Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 05 May 2005 09:06:24 -0000 > > > > > > The technical reasons are very simple. If a new system call is > > > created, and programs use that new system call, then if you do an > > > installworld before you boot the kernel, that can result in binaries > > > not working. This has happened with important ones like /bin/sh in > > > the past. In addition, if you aren't running single user, many > > > different races exist in the installation process that can result in > > > bad behavior. There are also potential problems with symbols in > > > there's a large jump between the revisions being updated. > > > > > > Usually you can get away with it, but if you want to be safe, you must > > > do the install in single user. Usually, however, has lead in the past > > > to problems, which is why the project recommendations are > > > conservative. > > > > > > > A auto-scripted install directly run from rc.d in single-user mode would cover > > both requirements - I seem to recall that Solaris had something like it at a > > point. Somewhat along the lines of nextboot would be nice. > > How do you know where to get the sources from? What environment to > build them from? > > However, if you could cover those issues, I'd love to see a script to > deal. Maybe you could implement something that would be robust enough > for the project to recommend... What I do sometimes is to (in multiuser mode) make a copy of /etc to say /etc.new, the run mergmaster and stop it after it created /var/tmp/temproot and then rename the etc inside it also to etc.new and then run mergemaster -r. Then go to single user mode and rename /etc.new to /etc and reboot. This still does have all the work, but it does minimize the downtime in single user mode. John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 09:58: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 9CCB716A4CE for ; Thu, 5 May 2005 09:58:02 +0000 (GMT) Received: from kalypso.opteqint.net (kalypso.opteqint.net [160.124.112.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E2D343D4C for ; Thu, 5 May 2005 09:58:02 +0000 (GMT) (envelope-from cole@opteqint.net) Received: from rrba-165-32-77.telkomadsl.co.za ([165.165.32.77] helo=deadmind) by kalypso.opteqint.net with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.43 (FreeBSD)) id 1DTd71-000Lms-At for freebsd-hackers@freebsd.org; Thu, 05 May 2005 11:57:46 +0200 Message-ID: <000901c55159$da7fe080$4206000a@deadmind> From: "Cole" To: Date: Thu, 5 May 2005 12:04:37 +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.writes to the IOPORT BAR's of a pci card. I can find the card and all that would [...] 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 Question 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, 05 May 2005 09:58:02 -0000 Hi Im trying to write a userland program that writes to the IOPORT BAR's of a pci card. I can find the card and all that fine. But im a bit lost on exactly what address the IOPORT BAR's would be then? Im using the /dev/pci and pci(4) functions to find the card. Ive seen in the linux version of those code, that they take the base_address's and then & ~0x03 them, and use that value for reading and writing with inb_l and outb_l. Ive tried using that on FreeBSD, but with outl and inl, as well as writel and readl, but I keep getting "Bus error". Is there perhaps something that I am missing or forgetting, also im running the program as root. If anyone has any suggestions, they would be most welcome. Thanks /Cole From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 10:32: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 4E9BC16A4CE for ; Thu, 5 May 2005 10:32:22 +0000 (GMT) Received: from kalypso.opteqint.net (kalypso.opteqint.net [160.124.112.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAF0243D6A for ; Thu, 5 May 2005 10:32:21 +0000 (GMT) (envelope-from cole@opteqint.net) Received: from rrba-165-32-77.telkomadsl.co.za ([165.165.32.77] helo=deadmind) by kalypso.opteqint.net with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.43 (FreeBSD)) id 1DTdeM-000N5x-T2 for freebsd-hackers@freebsd.org; Thu, 05 May 2005 12:32:15 +0200 Message-ID: <000701c5515e$aaf00700$4206000a@deadmind> From: "Cole" To: References: <000901c55159$da7fe080$4206000a@deadmind> Date: Thu, 5 May 2005 12:39:07 +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.using outl_p to communicate with the device, and write the values. /Cole [...] 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: Re: Pci Question 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, 05 May 2005 10:32:22 -0000 Err, sorry. I meant the linux version of this is using outl_p to communicate with the device, and write the values. /Cole ----- Original Message ----- From: "Cole" To: Sent: Thursday, May 05, 2005 12:04 PM Subject: Pci Question > Hi > > Im trying to write a userland program that writes to the IOPORT BAR's of a pci card. I can find the card and all that fine. But im a > bit lost on exactly what address the IOPORT BAR's would be then? Im using the /dev/pci and pci(4) functions to find the card. > > Ive seen in the linux version of those code, that they take the base_address's and then & ~0x03 them, and use that value for reading > and writing with inb_l and outb_l. Ive tried using that on FreeBSD, but with outl and inl, as well as writel and readl, but I keep > getting "Bus error". > > Is there perhaps something that I am missing or forgetting, also im running the program as root. > > If anyone has any suggestions, they would be most welcome. > > Thanks > /Cole > > _______________________________________________ > 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 May 5 10:36: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 CF58716A4CE for ; Thu, 5 May 2005 10:36:04 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2146A43DA8 for ; Thu, 5 May 2005 10:36:04 +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 md50001383315.msg for ; Thu, 05 May 2005 11:31:39 +0100 Message-ID: <016301c5515e$215c4d00$7f06000a@int.mediasurface.com> From: "Steven Hartland" To: Date: Thu, 5 May 2005 11:35:17 +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, 05 May 2005 11:31:39 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 193.123.241.40 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Thu, 05 May 2005 11:31:41 +0100 Subject: Determining PCI-X speed from FreeBSD? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 10:36:04 -0000 Is there anyway to determine what speed a PCI-X card is running at from FreeBSD? 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 May 5 11:19: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 ECD1516A4CE for ; Thu, 5 May 2005 11:19:44 +0000 (GMT) Received: from smtp2.dnainternet.net (smtp2.dnainternet.net [62.240.72.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2502643D82 for ; Thu, 5 May 2005 11:19:44 +0000 (GMT) (envelope-from erik.u@dnainternet.net) Received: from b-184-46.dsl.kpy.customers.dnainternet.fi ([212.149.184.46]:57782smtp2.dnainternet.net with ESMTP id S1228802AbVEELTm (ORCPT ); Thu, 5 May 2005 14:19:42 +0300 Message-ID: <427A014D.6020809@dnainternet.net> Date: Thu, 05 May 2005 14:19:41 +0300 From: Erik Udo User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050430) 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: req: New feature to rm? Remove file by the inode number X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 11:19:45 -0000 I couldn't find a way to remove files that had scandic/non-printable letters, then i remembered ls showed inode number of the file. Is it possible to remove the file by the inode number? It would be a useful feature :) I bet there is a way to remove those files, but only third party programs came to my mind. Cheers, Erik. From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 11:21: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 0D17016A4D0 for ; Thu, 5 May 2005 11:21:02 +0000 (GMT) Received: from mail06.abv.bg (mail06.abv.bg [194.153.145.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D9EC43DB5 for ; Thu, 5 May 2005 11:21:01 +0000 (GMT) (envelope-from trepach13@abv.bg) Received: from app6.ni.bg (app6.ni.bg [192.168.151.23]) by mail06.abv.bg (Postfix) with ESMTP id 0D0244678A for ; Thu, 5 May 2005 14:21:00 +0300 (EEST) Message-ID: <2022833763.1115292059417.JavaMail.nobody@app6.ni.bg> Date: Thu, 5 May 2005 14:20:59 +0300 (EEST) From: trepach13@abv.bg To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 7bit Subject: =?windows-1251?b?QUJWLkJHIODi8u7s4PLo9+XtIO7y4+7i7vA=?= 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, 05 May 2005 11:21:02 -0000 blagodarq za izpratenoto ot Vas pismo nai skoro shte vi otgovorq!! From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 11:34:34 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 B543A16A4CE for ; Thu, 5 May 2005 11:34:34 +0000 (GMT) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AD8843DBF for ; Thu, 5 May 2005 11:34:34 +0000 (GMT) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (210.50.36.13) by smtp01.syd.iprimus.net.au (7.0.036) id 4263F6DC005AA314 for freebsd-hackers@freebsd.org; Thu, 5 May 2005 21:34:33 +1000 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 95A8F42A1; Thu, 5 May 2005 21:35:34 +1000 (EST) Date: Thu, 5 May 2005 21:35:34 +1000 From: Tim Robbins To: freebsd-hackers@freebsd.org Message-ID: <20050505113534.GA13080@cat.robbins.dropbear.id.au> References: <427A014D.6020809@dnainternet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427A014D.6020809@dnainternet.net> User-Agent: Mutt/1.4.1i Subject: Re: req: New feature to rm? Remove file by the inode number 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, 05 May 2005 11:34:34 -0000 On Thu, May 05, 2005 at 02:19:41PM +0300, Erik Udo wrote: > I couldn't find a way to remove files that had scandic/non-printable > letters, then i remembered ls showed inode number of the file. Is it > possible to remove the file by the inode number? It would be a > useful feature :) > > I bet there is a way to remove those files, but only > third party programs came to my mind. find(1) with -inum and -delete would do the trick. Tim From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 11:42: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 ECFF916A4CE for ; Thu, 5 May 2005 11:42:08 +0000 (GMT) Received: from smtp-vbr8.xs4all.nl (smtp-vbr8.xs4all.nl [194.109.24.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33E1343DB5 for ; Thu, 5 May 2005 11:42:08 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtp-vbr8.xs4all.nl (8.12.11/8.12.11) with ESMTP id j45Bg60n048477 for ; Thu, 5 May 2005 13:42:06 +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 j45Bg6nE086066 for ; Thu, 5 May 2005 13:42:06 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.3/8.13.1/Submit) id j45Bg6Ug086065 for freebsd-hackers@freebsd.org; Thu, 5 May 2005 13:42:06 +0200 (CEST) (envelope-from wb) Date: Thu, 5 May 2005 13:42:06 +0200 From: Wilko Bulte To: freebsd-hackers@freebsd.org Message-ID: <20050505114206.GA86050@freebie.xs4all.nl> References: <427A014D.6020809@dnainternet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427A014D.6020809@dnainternet.net> X-OS: FreeBSD 5.4-STABLE User-Agent: Mutt/1.5.9i X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: req: New feature to rm? Remove file by the inode number 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, 05 May 2005 11:42:09 -0000 On Thu, May 05, 2005 at 02:19:41PM +0300, Erik Udo wrote.. > I couldn't find a way to remove files that had scandic/non-printable > letters, then i remembered ls showed inode number of the file. Is it > possible to remove the file by the inode number? It would be a > useful feature :) > > I bet there is a way to remove those files, but only > third party programs came to my mind. If you want do to it the hard way: clri(8) :-) -- Wilko Bulte wilko@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 11:46: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 2AEA116A4D7 for ; Thu, 5 May 2005 11:46:15 +0000 (GMT) Received: from smtp.thilelli.net (smtp.thilelli.net [213.41.129.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEB7843DBF for ; Thu, 5 May 2005 11:46:13 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 55A747300C for ; Thu, 5 May 2005 13:46:12 +0200 (CEST) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 76185-05 for ; Thu, 5 May 2005 13:46:08 +0200 (CEST) Received: from webmail.thilelli.net (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id DE1E47300B for ; Thu, 5 May 2005 13:46:07 +0200 (CEST) Received: from 192.168.1.20 (SquirrelMail authenticated user jgabel) by webmail.thilelli.net with HTTP; Thu, 5 May 2005 13:46:07 +0200 (CEST) Message-ID: <59863.192.168.1.20.1115293567.squirrel@webmail.thilelli.net> In-Reply-To: <20050505114206.GA86050@freebie.xs4all.nl> References: <427A014D.6020809@dnainternet.net> <20050505114206.GA86050@freebie.xs4all.nl> Date: Thu, 5 May 2005 13:46:07 +0200 (CEST) From: "Julien Gabel" To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at thilelli.net Subject: Re: req: New feature to rm? Remove file by the inode number X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jpeg@thilelli.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 11:46:15 -0000 >> I couldn't find a way to remove files that had scandic/non-printable >> letters, then i remembered ls showed inode number of the file. Is it >> possible to remove the file by the inode number? It would be a >> useful feature :) >> >> I bet there is a way to remove those files, but only >> third party programs came to my mind. I think the -inum option of the find(1) utility can do the trick. -- -jpeg. From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 11:47: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 E0E2016A4CE for ; Thu, 5 May 2005 11:47:56 +0000 (GMT) Received: from smtp2.dnainternet.net (smtp2.dnainternet.net [62.240.72.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85F8543D1D for ; Thu, 5 May 2005 11:47:56 +0000 (GMT) (envelope-from erik.u@dnainternet.net) Received: from b-184-46.dsl.kpy.customers.dnainternet.fi ([212.149.184.46]:51339smtp2.dnainternet.net with ESMTP id S1228787AbVEELrz (ORCPT ); Thu, 5 May 2005 14:47:55 +0300 Message-ID: <427A07EB.6060405@dnainternet.net> Date: Thu, 05 May 2005 14:47:55 +0300 From: Erik Udo User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050430) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <427A014D.6020809@dnainternet.net> <20050505114206.GA86050@freebie.xs4all.nl> In-Reply-To: <20050505114206.GA86050@freebie.xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: req: New feature to rm? Remove file by the inode number X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 11:47:57 -0000 Wilko Bulte wrote: > On Thu, May 05, 2005 at 02:19:41PM +0300, Erik Udo wrote.. > >>I couldn't find a way to remove files that had scandic/non-printable >>letters, then i remembered ls showed inode number of the file. Is it >>possible to remove the file by the inode number? It would be a >>useful feature :) >> >>I bet there is a way to remove those files, but only >>third party programs came to my mind. > > > If you want do to it the hard way: clri(8) > > :-) > Thanks! I'll use clri for this. It would still be a nice feature in rm, after all, i dont think it's that hard to make. From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 11:53: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 1FAAE16A4D3 for ; Thu, 5 May 2005 11:53:49 +0000 (GMT) Received: from smtp2.dnainternet.net (smtp2.dnainternet.net [62.240.72.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEEFA43D3F for ; Thu, 5 May 2005 11:53:48 +0000 (GMT) (envelope-from erik.u@dnainternet.net) Received: from b-184-46.dsl.kpy.customers.dnainternet.fi ([212.149.184.46]:59923smtp2.dnainternet.net with ESMTP id S1228777AbVEELxs (ORCPT ); Thu, 5 May 2005 14:53:48 +0300 Message-ID: <427A094B.8040009@dnainternet.net> Date: Thu, 05 May 2005 14:53:47 +0300 From: Erik Udo User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050430) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <427A014D.6020809@dnainternet.net> <20050505114206.GA86050@freebie.xs4all.nl> <59863.192.168.1.20.1115293567.squirrel@webmail.thilelli.net> In-Reply-To: <59863.192.168.1.20.1115293567.squirrel@webmail.thilelli.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: req: New feature to rm? Remove file by the inode number X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 11:53:49 -0000 Julien Gabel wrote: >>>I couldn't find a way to remove files that had scandic/non-printable >>>letters, then i remembered ls showed inode number of the file. Is it >>>possible to remove the file by the inode number? It would be a >>>useful feature :) >>> >>>I bet there is a way to remove those files, but only >>>third party programs came to my mind. > > > I think the -inum option of the find(1) utility can do the trick. > After trying clri, maybe find(1) is a better way :). I can imagine what would happen when i would use clri on wrong slice :) From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 12:04: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 DCD8C16A4CE for ; Thu, 5 May 2005 12:04:19 +0000 (GMT) Received: from pinus.cc.fer.hr (pinus.cc.fer.hr [161.53.73.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23C1D43DA4 for ; Thu, 5 May 2005 12:04:19 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [161.53.72.113] (lara.cc.fer.hr [161.53.72.113]) by pinus.cc.fer.hr (8.12.2/8.12.2) with ESMTP id j45C5hhE023927; Thu, 5 May 2005 14:05:43 +0200 (MEST) Message-ID: <427A0B92.4020206@fer.hr> Date: Thu, 05 May 2005 14:03:30 +0200 From: Ivan Voras User-Agent: Mozilla Thunderbird 1.0 (X11/20041213) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Kennaway References: <42792E98.7020706@fer.hr> <20050504203250.GA8346@xor.obsecurity.org> In-Reply-To: <20050504203250.GA8346@xor.obsecurity.org> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: SSE in kernel? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 12:04:20 -0000 Kris Kennaway wrote: > This question is asked quite often..please see the mailing list > archives for discussion. I've searched -hackers and -current lists for "sse" and "sse kernel" search strings without explicit findings. From what I can discern from various discussions, the answer is "probably not"? From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 12:24: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 4D5D116A4CE for ; Thu, 5 May 2005 12:24:27 +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 F28D843DBA for ; Thu, 5 May 2005 12:24:26 +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 1DTfOz-0005Sw-OS for freebsd-hackers@freebsd.org; Thu, 05 May 2005 15:24:25 +0300 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: freebsd-hackers@freebsd.org In-Reply-To: Message from Erik Udo of "Thu, 05 May 2005 14:53:47 +0300." <427A094B.8040009@dnainternet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 05 May 2005 15:24:25 +0300 From: Danny Braniss Message-ID: Subject: Re: req: New feature to rm? Remove file by the inode number 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, 05 May 2005 12:24:27 -0000 > Julien Gabel wrote: > >>>I couldn't find a way to remove files that had scandic/non-printable > >>>letters, then i remembered ls showed inode number of the file. Is it > >>>possible to remove the file by the inode number? It would be a > >>>useful feature :) > >>> > >>>I bet there is a way to remove those files, but only > >>>third party programs came to my mind. > > > > > > I think the -inum option of the find(1) utility can do the trick. > > > > After trying clri, maybe find(1) is a better way :). I can imagine what > would happen when i would use clri on wrong slice :) i haven't seen/used clri in years (maybe decades), but if memory doesn't fail, clri just zeroes the inode, the blocks are not returned to the freelist! and if it's a directory things can get nasty. my .5$ danny From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 12:24: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 21AE016A4D9 for ; Thu, 5 May 2005 12:24:55 +0000 (GMT) Received: from kalypso.opteqint.net (kalypso.opteqint.net [160.124.112.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id A18FF43D90 for ; Thu, 5 May 2005 12:24:54 +0000 (GMT) (envelope-from cole@opteqint.net) Received: from rrba-165-32-77.telkomadsl.co.za ([165.165.32.77] helo=deadmind) by kalypso.opteqint.net with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.43 (FreeBSD)) id 1DTfPF-0002iw-B4 for freebsd-hackers@freebsd.org; Thu, 05 May 2005 14:24:47 +0200 Message-ID: <000b01c5516e$62a1f200$4206000a@deadmind> From: "Cole" To: References: <000901c55159$da7fe080$4206000a@deadmind> <000701c5515e$aaf00700$4206000a@deadmind> Date: Thu, 5 May 2005 14:31:38 +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.Thanks [...] 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: Re: Pci Question 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, 05 May 2005 12:24:55 -0000 Nevermind, I figured it out and got it working. Thanks ----- Original Message ----- From: "Cole" To: Sent: Thursday, May 05, 2005 12:39 PM Subject: Re: Pci Question > Err, sorry. > > I meant the linux version of this is using outl_p to communicate with the device, and write the values. > > /Cole > > > ----- Original Message ----- > From: "Cole" > To: > Sent: Thursday, May 05, 2005 12:04 PM > Subject: Pci Question > > > > Hi > > > > Im trying to write a userland program that writes to the IOPORT BAR's of a pci card. I can find the card and all that fine. But im > a > > bit lost on exactly what address the IOPORT BAR's would be then? Im using the /dev/pci and pci(4) functions to find the card. > > > > Ive seen in the linux version of those code, that they take the base_address's and then & ~0x03 them, and use that value for > reading > > and writing with inb_l and outb_l. Ive tried using that on FreeBSD, but with outl and inl, as well as writel and readl, but I keep > > getting "Bus error". > > > > Is there perhaps something that I am missing or forgetting, also im running the program as root. > > > > If anyone has any suggestions, they would be most welcome. > > > > Thanks > > /Cole > > > > _______________________________________________ > > 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" > > _______________________________________________ > 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 May 5 12:32: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 50A0316A4CE for ; Thu, 5 May 2005 12:32:27 +0000 (GMT) Received: from smtp-vbr13.xs4all.nl (smtp-vbr13.xs4all.nl [194.109.24.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id B393743D7C for ; Thu, 5 May 2005 12:32:26 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) j45CWKmY062371; Thu, 5 May 2005 14:32:20 +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 j45CWJdk001055; Thu, 5 May 2005 14:32:19 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.3/8.13.1/Submit) id j45CWJgw001054; Thu, 5 May 2005 14:32:19 +0200 (CEST) (envelope-from wb) Date: Thu, 5 May 2005 14:32:19 +0200 From: Wilko Bulte To: Danny Braniss Message-ID: <20050505123219.GA1039@freebie.xs4all.nl> References: <427A094B.8040009@dnainternet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.4-STABLE User-Agent: Mutt/1.5.9i X-Virus-Scanned: by XS4ALL Virus Scanner cc: freebsd-hackers@freebsd.org Subject: Re: req: New feature to rm? Remove file by the inode number 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, 05 May 2005 12:32:27 -0000 On Thu, May 05, 2005 at 03:24:25PM +0300, Danny Braniss wrote.. > > Julien Gabel wrote: > > >>>I couldn't find a way to remove files that had scandic/non-printable > > >>>letters, then i remembered ls showed inode number of the file. Is it > > >>>possible to remove the file by the inode number? It would be a > > >>>useful feature :) > > >>> > > >>>I bet there is a way to remove those files, but only > > >>>third party programs came to my mind. > > > > > > > > > I think the -inum option of the find(1) utility can do the trick. > > > > > > > After trying clri, maybe find(1) is a better way :). I can imagine what > > would happen when i would use clri on wrong slice :) > > i haven't seen/used clri in years (maybe decades), but if memory doesn't fail, > clri just zeroes the inode, the blocks are not returned to the freelist! > and if it's a directory things can get nasty. man clri(8) tells you all about that.. -- Wilko Bulte wilko@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 13:08: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 D650416A4CE for ; Thu, 5 May 2005 13:08:50 +0000 (GMT) Received: from oslex.fast.no (pat-gw.osl.fast.no [217.144.235.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AF4E43D8C for ; Thu, 5 May 2005 13:08:49 +0000 (GMT) (envelope-from Raymond.Wiker@fast.no) Received: from oslex01.ad.fast.no ([192.168.0.70]) by oslex.fast.no with Microsoft SMTPSVC(6.0.3790.211); Thu, 5 May 2005 15:08:47 +0200 Received: from raw.grenland.fast.no.fast.no ([192.168.48.104]) by oslex01.ad.fast.no with Microsoft SMTPSVC(6.0.3790.211); Thu, 5 May 2005 15:08:46 +0200 From: Raymond Wiker MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17018.6878.21762.443678@raw.grenland.fast.no> Date: Thu, 5 May 2005 15:08:46 +0200 To: freebsd-hackers@freebsd.org In-Reply-To: <427A014D.6020809@dnainternet.net> References: <427A014D.6020809@dnainternet.net> X-Mailer: VM 7.17 under 21.4 (patch 16) "Corporate Culture" XEmacs Lucid X-OriginalArrivalTime: 05 May 2005 13:08:47.0201 (UTC) FILETIME=[92914510:01C55173] Subject: Re: req: New feature to rm? Remove file by the inode number 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, 05 May 2005 13:08:50 -0000 Erik Udo writes: > I couldn't find a way to remove files that had scandic/non-printable > letters, then i remembered ls showed inode number of the file. Is it > possible to remove the file by the inode number? It would be a > useful feature :) > > I bet there is a way to remove those files, but only > third party programs came to my mind. How about rm -i ./*? From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 13:34:19 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 4E2A516A4CF for ; Thu, 5 May 2005 13:34:19 +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 j45DYFOB010840 for ; Thu, 5 May 2005 09:34:15 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.3/8.13.1/Submit) id j45DYFEf010839 for freebsd-hackers@freebsd.org; Thu, 5 May 2005 09:34:15 -0400 (EDT) (envelope-from green) Date: Thu, 5 May 2005 09:34:15 -0400 From: Brian Fundakowski Feldman To: freebsd-hackers@freebsd.org Message-ID: <20050505133415.GC77223@green.homeunix.org> References: <427A014D.6020809@dnainternet.net> <20050505114206.GA86050@freebie.xs4all.nl> <427A07EB.6060405@dnainternet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427A07EB.6060405@dnainternet.net> User-Agent: Mutt/1.5.6i Subject: Re: req: New feature to rm? Remove file by the inode number 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, 05 May 2005 13:34:19 -0000 On Thu, May 05, 2005 at 02:47:55PM +0300, Erik Udo wrote: > Wilko Bulte wrote: > >On Thu, May 05, 2005 at 02:19:41PM +0300, Erik Udo wrote.. > > > >>I couldn't find a way to remove files that had scandic/non-printable > >>letters, then i remembered ls showed inode number of the file. Is it > >>possible to remove the file by the inode number? It would be a > >>useful feature :) > >> > >>I bet there is a way to remove those files, but only > >>third party programs came to my mind. > > > > > >If you want do to it the hard way: clri(8) > > > >:-) > > > > Thanks! I'll use clri for this. It would still be a nice > feature in rm, after all, i dont think it's that hard to > make. Way overkill. find . -mindepth 1 -maxdepth 1 -inum -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\ From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 15:27: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 6DBCA16A4CE for ; Thu, 5 May 2005 15:27:23 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id B57D443DA6 for ; Thu, 5 May 2005 15:27:22 +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 j45FR4FV089737; Thu, 5 May 2005 09:27:04 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 05 May 2005 09:27:58 -0600 (MDT) Message-Id: <20050505.092758.44156389.imp@bsdimp.com> To: cole@opteqint.net From: "M. Warner Losh" In-Reply-To: <000701c5515e$aaf00700$4206000a@deadmind> References: <000901c55159$da7fe080$4206000a@deadmind> <000701c5515e$aaf00700$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 Question 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, 05 May 2005 15:27:23 -0000 Open /dev/io to use out*/in* functions. Warner From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 16:00:34 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 B4A6F16A4CE for ; Thu, 5 May 2005 16:00:34 +0000 (GMT) Received: from web52704.mail.yahoo.com (web52704.mail.yahoo.com [206.190.39.155]) by mx1.FreeBSD.org (Postfix) with SMTP id 4CCB043D5F for ; Thu, 5 May 2005 16:00:34 +0000 (GMT) (envelope-from thorpflyer@yahoo.com) Received: (qmail 6891 invoked by uid 60001); 5 May 2005 16:00:29 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=nQBx9n55waTps4avXzqx2TWMDFJlr+43DvGQAuZU0BLDxhgaABsDFheYbfVnDIjf0ttY1MjnKOjzCVkssmBGyjuy8U2BvN5YeggK0oa2iFhzkZGCcboNS1hiOHJn95Or5mibO/2EQRoMR4EtbARGZHXA+cfEVO38YmgGOstyD+E= ; Message-ID: <20050505160029.6889.qmail@web52704.mail.yahoo.com> Received: from [67.166.15.143] by web52704.mail.yahoo.com via HTTP; Thu, 05 May 2005 09:00:29 PDT Date: Thu, 5 May 2005 09:00:29 -0700 (PDT) From: Simon Roberts To: freebsd-hackers@freebsd.org In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: req: New feature to rm? Remove file by the inode number X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: simon.roberts@earthlink.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 16:00:34 -0000 A couple of observations: 1) Implicit in most people's answers is the fact that a single inode can have many directory entries. That's why find is used. That's also why the solution below won't work, as it doesn't check the entire file system (nor would you want to answer y/n for all those files :) 2) The same inode number can exist for multiple files in a system. This occurs if multiple file systems exist. So, if you use find to achieve the desired effect, be very sure that you run it from the root of the target file system and that you tell it not to traverse onto other file systems. If you run it from the root directory, you're very likely to delete one or more files you didn't mean to delete. Point 2, likely as not, might explain why there's no simple mechanism for doing this from rm. At the very least you'd have to specify the file system you're referring to, and many "plain" users couldn't do that safely. Those that can are probably able to use find anyway. Cheers, Simon --- Raymond Wiker wrote: > Erik Udo writes: > > I couldn't find a way to remove files that had > scandic/non-printable > > letters, then i remembered ls showed inode number > of the file. Is it > > possible to remove the file by the inode number? > It would be a > > useful feature :) > > > > I bet there is a way to remove those files, but > only > > third party programs came to my mind. > > How about rm -i ./*? > > _______________________________________________ > 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" > __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 16:30: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 C0CEE16A4CE for ; Thu, 5 May 2005 16:30:58 +0000 (GMT) Received: from web52709.mail.yahoo.com (web52709.mail.yahoo.com [206.190.39.160]) by mx1.FreeBSD.org (Postfix) with SMTP id 4DBA043D8D for ; Thu, 5 May 2005 16:30:58 +0000 (GMT) (envelope-from kamalpr@yahoo.com) Received: (qmail 27319 invoked by uid 60001); 5 May 2005 16:30:54 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=DgnZ60jRRUCtD6ePEgWIRz/wd1z7euAdRJSLfUC4WD4eeLwpjhKwyx4w2n24Diz1VugWpCtQ87nCndMDldBr9vbILsoCZqUqudPhJ3TKRaOpqEXm9KXloDG3OgIEVBKOG6iA25NpVfPPASUT/btAt6isveQRifr6MhNLWLliGzI= ; Message-ID: <20050505163054.27317.qmail@web52709.mail.yahoo.com> Received: from [64.186.168.226] by web52709.mail.yahoo.com via HTTP; Thu, 05 May 2005 09:30:54 PDT Date: Thu, 5 May 2005 09:30:54 -0700 (PDT) From: "Kamal R. Prasad" To: simon.roberts@earthlink.net, freebsd-hackers@freebsd.org In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: req: New feature to rm? Remove file by the inode number X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kamalp@acm.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 16:30:58 -0000 --- Simon Roberts wrote: > A couple of observations: > [snip] [snip] > > Point 2, likely as not, might explain why there's no > simple mechanism for doing this from rm. At the very > least you'd have to specify the file system you're > referring to, and many "plain" users couldn't do > that > safely. Those that can are probably able to use find > anyway. > A (device no, inode no) can uniquely identify a file -but then it requires the same amt of traversals (from the root directory's inode) that any other utility does. Im not sure rm can optimize anything that a find .. -exec rm {} \; would. > Cheers, > Simon > > > --- Raymond Wiker wrote: > > Erik Udo writes: > > > I couldn't find a way to remove files that had > > scandic/non-printable > > > letters, then i remembered ls showed inode > number > > of the file. Is it > > > possible to remove the file by the inode > number? > > It would be a > > > useful feature :) > > > > > > I bet there is a way to remove those files, but > > only > > > third party programs came to my mind. > > > > How about rm -i ./*? > > The POSIX std requires -i to be used for 'interactive' (and even if it didn't that is already the case on most unix systems). regards -kamal > > _______________________________________________ > > 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" > > > > > > __________________________________ > Yahoo! Mail Mobile > Take Yahoo! Mail with you! Check email on your > mobile phone. > http://mobile.yahoo.com/learn/mail > _______________________________________________ > 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" > ------------------------------------------------------------ Kamal R. Prasad UNIX systems consultant kamalp@acm.org In theory, there is no difference between theory and practice. In practice, there is:-). ------------------------------------------------------------ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 16:39: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 C88FA16A4CE for ; Thu, 5 May 2005 16:39:24 +0000 (GMT) Received: from oslex.fast.no (pat-gw.osl.fast.no [217.144.235.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1C5D43DBC for ; Thu, 5 May 2005 16:39:23 +0000 (GMT) (envelope-from Raymond.Wiker@fast.no) Received: from oslex01.ad.fast.no ([192.168.0.70]) by oslex.fast.no with Microsoft SMTPSVC(6.0.3790.211); Thu, 5 May 2005 18:39:22 +0200 Received: from raw.grenland.fast.no.fast.no ([192.168.48.104]) by oslex01.ad.fast.no with Microsoft SMTPSVC(6.0.3790.211); Thu, 5 May 2005 18:39:21 +0200 From: Raymond Wiker MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17018.19512.466180.930081@raw.grenland.fast.no> Date: Thu, 5 May 2005 18:39:20 +0200 To: kamalp@acm.org In-Reply-To: <20050505163054.27317.qmail@web52709.mail.yahoo.com> References: <20050505163054.27317.qmail@web52709.mail.yahoo.com> X-Mailer: VM 7.17 under 21.4 (patch 16) "Corporate Culture" XEmacs Lucid X-OriginalArrivalTime: 05 May 2005 16:39:21.0854 (UTC) FILETIME=[FD6851E0:01C55190] cc: freebsd-hackers@freebsd.org cc: simon.roberts@earthlink.net Subject: Re: req: New feature to rm? Remove file by the inode number 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, 05 May 2005 16:39:24 -0000 Kamal R. Prasad writes: > > > --- Raymond Wiker wrote: > > > Erik Udo writes: > > > > I couldn't find a way to remove files that had > > > scandic/non-printable > > > > letters, then i remembered ls showed inode > > number > > > of the file. Is it > > > > possible to remove the file by the inode > > number? > > > It would be a > > > > useful feature :) > > > > > > > > I bet there is a way to remove those files, but > > > only > > > > third party programs came to my mind. > > > > > > How about rm -i ./*? > > > > The POSIX std requires -i to be used for 'interactive' > (and even if it didn't that is already the case on > most unix systems). That's exactly the way I meant this to be used... if you use the command "rm -i ./*" you will be asked for each file whether you want to remove it (except for files beginning with ".", of course). I don't see this as more cumbersome than using "ls -i" to get a list of inodes, and then using clri or whatever to remove the inode; which operation is probably the wrong solution anyway, as there may be other directory entries that point to the same inode, and which should be allowed to do so even after the unwanted directory entries have been removed. From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 16:55: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 B9F9E16A4CE for ; Thu, 5 May 2005 16:55:37 +0000 (GMT) Received: from smtp.thilelli.net (smtp.thilelli.net [213.41.129.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id C702A43D8D for ; Thu, 5 May 2005 16:55:36 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id BCF4C7300D for ; Thu, 5 May 2005 18:55:31 +0200 (CEST) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 84064-01 for ; Thu, 5 May 2005 18:55:27 +0200 (CEST) Received: from webmail.thilelli.net (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 3D2877300C for ; Thu, 5 May 2005 18:55:27 +0200 (CEST) Received: from 192.168.1.20 (SquirrelMail authenticated user jgabel) by webmail.thilelli.net with HTTP; Thu, 5 May 2005 18:55:27 +0200 (CEST) Message-ID: <64693.192.168.1.20.1115312127.squirrel@webmail.thilelli.net> In-Reply-To: <20050505163054.27317.qmail@web52709.mail.yahoo.com> References: 6667 <20050505163054.27317.qmail@web52709.mail.yahoo.com> Date: Thu, 5 May 2005 18:55:27 +0200 (CEST) From: "Julien Gabel" To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at thilelli.net Subject: Re: req: New feature to rm? Remove file by the inode number X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jpeg@thilelli.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 16:55:37 -0000 >> Point 2, likely as not, might explain why there's no >> simple mechanism for doing this from rm. At the very >> least you'd have to specify the file system you're >> referring to, and many "plain" users couldn't do >> that safely. Those that can are probably able to use >> find anyway. > A (device no, inode no) can uniquely identify a file > -but then it requires the same amt of traversals (from > the root directory's inode) that any other utility > does. Im not sure rm can optimize anything that a find > .. -exec rm {} \; would. Or "find [...] -print | xargs \rm" to bypass some problem with a very long list of files to delete. -- -jpeg. From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 17:59:14 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 8239516A4CE for ; Thu, 5 May 2005 17:59:14 +0000 (GMT) Received: from biltens.etika.net (mail.etikaweb.net [65.75.141.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45AB443D9B for ; Thu, 5 May 2005 17:59:14 +0000 (GMT) (envelope-from halil@enderunix.org) Received: from [81.213.121.187] (helo=[192.168.7.100]) by biltens.etika.net with esmtp (Exim 4.44) id 1DTkcf-0002gb-KE; Thu, 05 May 2005 20:58:59 +0300 From: Halil Demirezen Organization: Enderunix To: freebsd-hackers@freebsd.org, jpeg@thilelli.net Date: Thu, 5 May 2005 20:58:11 +0000 User-Agent: KMail/1.7 References: <20050505163054.27317.qmail@web52709.mail.yahoo.com> <64693.192.168.1.20.1115312127.squirrel@webmail.thilelli.net> In-Reply-To: <64693.192.168.1.20.1115312127.squirrel@webmail.thilelli.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505052058.12220.halil@enderunix.org> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - biltens.etika.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - enderunix.org X-Source: X-Source-Args: X-Source-Dir: Subject: Re: req: New feature to rm? Remove file by the inode number 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, 05 May 2005 17:59:14 -0000 My point of view is if you add inode removing option to the rm you'll have to add en extra parameter, that is on which *filesystem*. For example, rm -x 2 /var, ---- i am supposing -x as the option for removing inodes ---- is removing inode number 2 on file system /var So the pattern seems to be a little confusing since, at a first glance, it looks like you are removing /var directory. Some dummy users may or may not be confused. Because of general purpose of rm is basically removing directory entries, Adding an extra inode option and specifying a pattern as above is a little misaiming of rm. No necessasity. We'd better let third programs achieve such a will. "clri" and "find" will be sufficient. Sincerely. P.S: What i've written above is not related to the replied message. I only replied to be in the thread. On Thursday 05 May 2005 16:55, Julien Gabel wrote: > >> Point 2, likely as not, might explain why there's no > >> simple mechanism for doing this from rm. At the very > >> least you'd have to specify the file system you're > >> referring to, and many "plain" users couldn't do > >> that safely. Those that can are probably able to use > >> find anyway. > > > > A (device no, inode no) can uniquely identify a file > > -but then it requires the same amt of traversals (from > > the root directory's inode) that any other utility > > does. Im not sure rm can optimize anything that a find > > .. -exec rm {} \; would. > > Or "find [...] -print | xargs \rm" to bypass some problem > with a very long list of files to delete. From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 20:02: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 4F76716A4CE for ; Thu, 5 May 2005 20:02:06 +0000 (GMT) Received: from smtp4.server.rpi.edu (smtp4.server.rpi.edu [128.113.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id C71FD43D55 for ; Thu, 5 May 2005 20:02:05 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp4.server.rpi.edu (8.13.0/8.13.0) with ESMTP id j45K23c0010661 for ; Thu, 5 May 2005 16:02:04 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <427A014D.6020809@dnainternet.net> References: <427A014D.6020809@dnainternet.net> Date: Thu, 5 May 2005 16:02:02 -0400 To: freebsd-hackers@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) on 128.113.2.4 Subject: Re: req: New feature to rm? Remove file by the inode number 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, 05 May 2005 20:02:06 -0000 At 2:19 PM +0300 5/5/05, Erik Udo wrote: >I couldn't find a way to remove files that had scandic/non-printable >letters, then i remembered ls showed inode number of the file. Is it >possible to remove the file by the inode number? It would be a >useful feature :) It would be a bad feature, at least for the problem you are trying to solve. You are trying to remove one specific filename from one specific directory. It is possible to link multiple filenames to the exact same file (inode). If a file has multiple links to it, then you would want to remove only the filename you're looking at, and not all filenames in the filesystem which might have the same inode. Other solutions, with 'find' or 'rm -i ./*', are more correct for the situation you are looking at. Note that if a file only has *some* unprintable characters, and also has some standard characters, then you can use pattern-matching to reduce how many fines would be matched by 'rm -i'. Something like: rm -i ./*blah* I have been in similar situations to what you're describing, and I've never had to do more than pick a reasonable filename pattern and combine it with -i (-i for "interactive", so it prompts you for each file before removing it). -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 21:11: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 4134616A4CE for ; Thu, 5 May 2005 21:11:08 +0000 (GMT) Received: from biltens.etika.net (mail.etikaweb.net [65.75.141.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FD9543D7C for ; Thu, 5 May 2005 21:11:08 +0000 (GMT) (envelope-from halil@enderunix.org) Received: from [81.213.121.187] (helo=[192.168.7.100]) by biltens.etika.net with esmtp (Exim 4.44) id 1DTncZ-0001Ax-HC for freebsd-hackers@freebsd.org; Fri, 06 May 2005 00:11:05 +0300 From: Halil Demirezen Organization: Enderunix To: freebsd-hackers@freebsd.org Date: Fri, 6 May 2005 00:10:25 +0000 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505060010.26184.halil@enderunix.org> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - biltens.etika.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - enderunix.org X-Source: X-Source-Args: X-Source-Dir: Subject: A bit confused with the sched_4bsd.c code 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, 05 May 2005 21:11:08 -0000 Hello, First of all, I am not sure if this is the correct mail list with posting this mail. I apologize for that.. Second, I may seem to have little C knowledge, though I am using C for about 5 years and plus. Let's start with the question. I am digging the FreeBSD-5.3 kernel codes. Watson's Cross Reference is really helpful. In the schedcpu(void) function there is an assignment like "ke = td->td_kse;" on line 438 (see: http://fxr.watson.org/fxr/source/kern/sched_4bsd.c?v=RELENG53#L438"). When I look at the thread structure at sys/proc.h, I could not see such an entry td_kse in the "thread" structure. How has this structure been extended or this entry added to the thread structure? Although the kernel codes seem to be simply understandable, there still lies some difficulties to understand for an average C programmer: magic stuff done by professionals. :) Anyway, any help really will be appreciated... Thanks. From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 21:49: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 81CA116A4CE for ; Thu, 5 May 2005 21:49:47 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE30E43DB2 for ; Thu, 5 May 2005 21:49:44 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.21] (rat.samsco.home [192.168.254.21]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j45LtFNt002290; Thu, 5 May 2005 15:55:16 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <427A94C0.1020205@samsco.org> Date: Thu, 05 May 2005 15:48:48 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.5) Gecko/20050321 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Halil Demirezen References: <200505060010.26184.halil@enderunix.org> In-Reply-To: <200505060010.26184.halil@enderunix.org> 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: A bit confused with the sched_4bsd.c code 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, 05 May 2005 21:49:47 -0000 Halil Demirezen wrote: > Hello, > > First of all, I am not sure if this is the correct mail list with posting this > mail. I apologize for that.. Second, I may seem to have little > C knowledge, though I am using C for about 5 years and plus. > > Let's start with the question. I am digging the FreeBSD-5.3 kernel codes. > Watson's Cross Reference is really helpful. In the schedcpu(void) function > there is an assignment like "ke = td->td_kse;" on line 438 (see: > http://fxr.watson.org/fxr/source/kern/sched_4bsd.c?v=RELENG53#L438"). > When I look at the thread structure at sys/proc.h, I could not see such an > entry td_kse in the "thread" structure. How has this structure been extended > or this entry added to the thread structure? > > Although the kernel codes seem to be simply understandable, there still lies > some difficulties to understand for an average C programmer: magic stuff done > by professionals. :) > > Anyway, any help really will be appreciated... > > Thanks. Look near the top of the file for: #define td_kse td_sched That makes td->td_kse resolve to td->td_sched. Now, there is other magic associated with td_sched in each scheduler source file, but that's different matter =-) Scitt From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 22:04: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 0D79416A4CE for ; Thu, 5 May 2005 22:04:30 +0000 (GMT) Received: from biltens.etika.net (mail.etikaweb.net [65.75.141.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBDA943D8B for ; Thu, 5 May 2005 22:04:29 +0000 (GMT) (envelope-from halil@enderunix.org) Received: from [81.213.121.187] (helo=[192.168.7.100]) by biltens.etika.net with esmtp (Exim 4.44) id 1DToRz-0004GL-Rm; Fri, 06 May 2005 01:04:18 +0300 From: Halil Demirezen Organization: Enderunix To: Scott Long Date: Fri, 6 May 2005 01:03:38 +0000 User-Agent: KMail/1.7 References: <200505060010.26184.halil@enderunix.org> <427A94C0.1020205@samsco.org> In-Reply-To: <427A94C0.1020205@samsco.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505060103.38645.halil@enderunix.org> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - biltens.etika.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - enderunix.org X-Source: X-Source-Args: X-Source-Dir: cc: freebsd-hackers@freebsd.org Subject: Re: A bit confused with the sched_4bsd.c code 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, 05 May 2005 22:04:30 -0000 On Thursday 05 May 2005 21:48, Scott Long wrote: > #define td_kse td_sched Yes that is also a magical case since in the sys/proc.h file, only a single definition lies; struct td_sched; I could not understand anything from this. There is not body of the structure. Shouldn't there be a definitive structure for td_sched? if there is i really could not find the body :) hmm, what kind of a different matter is this ? :-) Halil From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 22:15:45 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 E62C416A4CE for ; Thu, 5 May 2005 22:15:45 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6446643D5E for ; Thu, 5 May 2005 22:15:45 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.21] (rat.samsco.home [192.168.254.21]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j45MLCp8002405; Thu, 5 May 2005 16:21:13 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <427A9AD5.6050201@samsco.org> Date: Thu, 05 May 2005 16:14:45 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.5) Gecko/20050321 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Halil Demirezen References: <200505060010.26184.halil@enderunix.org> <427A94C0.1020205@samsco.org> <200505060103.38645.halil@enderunix.org> In-Reply-To: <200505060103.38645.halil@enderunix.org> 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: A bit confused with the sched_4bsd.c code 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, 05 May 2005 22:15:46 -0000 Halil Demirezen wrote: > On Thursday 05 May 2005 21:48, Scott Long wrote: > >>#define td_kse td_sched > > > Yes that is also a magical case since in the sys/proc.h file, > only a single definition lies; > > struct td_sched; That's called a forward declaration. > > I could not understand anything from this. There is not body of the structure. > Shouldn't there be a definitive structure for td_sched? if there is i really > could not find the body :) > > hmm, what kind of a different matter is this ? :-) td_sched is defined within each scheduler source file. Since the schedulers are mutually exclusive, they don't collide. Scott From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 22:22: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 1DF7416A4CE for ; Thu, 5 May 2005 22:22:10 +0000 (GMT) Received: from mail25.sea5.speakeasy.net (mail25.sea5.speakeasy.net [69.17.117.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89D7843D83 for ; Thu, 5 May 2005 22:22:09 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 24733 invoked from network); 5 May 2005 22:22:08 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail25.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 5 May 2005 22:22:08 -0000 Received: from hydrogen.funkthat.com (hktgbs@localhost.funkthat.com [127.0.0.1])j45MM3mo028768; Thu, 5 May 2005 15:22:08 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id j45MM20s028767; Thu, 5 May 2005 15:22:02 -0700 (PDT) Date: Thu, 5 May 2005 15:22:01 -0700 From: John-Mark Gurney To: Julien Gabel Message-ID: <20050505222201.GB2670@funkthat.com> Mail-Followup-To: Julien Gabel , freebsd-hackers@freebsd.org References: <20050505163054.27317.qmail@web52709.mail.yahoo.com> <64693.192.168.1.20.1115312127.squirrel@webmail.thilelli.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64693.192.168.1.20.1115312127.squirrel@webmail.thilelli.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-hackers@freebsd.org Subject: Re: req: New feature to rm? Remove file by the inode number X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 22:22:10 -0000 Julien Gabel wrote this message on Thu, May 05, 2005 at 18:55 +0200: > >> Point 2, likely as not, might explain why there's no > >> simple mechanism for doing this from rm. At the very > >> least you'd have to specify the file system you're > >> referring to, and many "plain" users couldn't do > >> that safely. Those that can are probably able to use > >> find anyway. > > > A (device no, inode no) can uniquely identify a file > > -but then it requires the same amt of traversals (from > > the root directory's inode) that any other utility > > does. Im not sure rm can optimize anything that a find > > .. -exec rm {} \; would. > > Or "find [...] -print | xargs \rm" to bypass some problem > with a very long list of files to delete. Please make that: find [...] -print0 | xargs -0 rm otherwise whitespace characters can cause problems... of course find does have the -delete option which makes such mangling unnecessary.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Thu May 5 23:27: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 26C5F16A4CE for ; Thu, 5 May 2005 23:27:27 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0114243DC8 for ; Thu, 5 May 2005 23:27:27 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 1FB607A403; Thu, 5 May 2005 16:27:24 -0700 (PDT) Message-ID: <427AABDB.2090409@elischer.org> Date: Thu, 05 May 2005 16:27:23 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050423 X-Accept-Language: en, hu MIME-Version: 1.0 To: Scott Long References: <200505060010.26184.halil@enderunix.org> <427A94C0.1020205@samsco.org> In-Reply-To: <427A94C0.1020205@samsco.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: Halil Demirezen Subject: Re: A bit confused with the sched_4bsd.c code 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, 05 May 2005 23:27:27 -0000 Scott Long wrote: > Halil Demirezen wrote: > >> Hello, >> >> First of all, I am not sure if this is the correct mail list with >> posting this mail. I apologize for that.. Second, I may seem to have >> little C knowledge, though I am using C for about 5 years and plus. >> >> Let's start with the question. I am digging the FreeBSD-5.3 kernel >> codes. >> Watson's Cross Reference is really helpful. In the schedcpu(void) >> function >> there is an assignment like "ke = td->td_kse;" on line 438 (see: >> http://fxr.watson.org/fxr/source/kern/sched_4bsd.c?v=RELENG53#L438"). >> When I look at the thread structure at sys/proc.h, I could not see >> such an >> entry td_kse in the "thread" structure. How has this structure been >> extended or this entry added to the thread structure? >> >> Although the kernel codes seem to be simply understandable, there >> still lies >> some difficulties to understand for an average C programmer: magic >> stuff done >> by professionals. :) >> >> Anyway, any help really will be appreciated... >> >> Thanks. > > > Look near the top of the file for: > > #define td_kse td_sched > > That makes td->td_kse resolve to td->td_sched. Now, there is > other magic associated with td_sched in each scheduler source > file, but that's different matter =-) this is a "temporary" (for a coupe of years) :-) thing as teh two structures were merged, but I didn't want to change all the files references because that would make all the diffs to larde and obscure teh real differences. at some point in teh future I will commit a change that cleans this up but doesn't change anything else. > > Scitt > _______________________________________________ > 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 May 5 23:33:14 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 868AC16A4CE for ; Thu, 5 May 2005 23:33:14 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65C0C43DB9 for ; Thu, 5 May 2005 23:33:14 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 52B247A403; Thu, 5 May 2005 16:33:14 -0700 (PDT) Message-ID: <427AAD39.1000304@elischer.org> Date: Thu, 05 May 2005 16:33:13 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050423 X-Accept-Language: en, hu MIME-Version: 1.0 To: Halil Demirezen References: <200505060010.26184.halil@enderunix.org> In-Reply-To: <200505060010.26184.halil@enderunix.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: A bit confused with the sched_4bsd.c code 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, 05 May 2005 23:33:14 -0000 Halil Demirezen wrote: >Hello, > >First of all, I am not sure if this is the correct mail list with posting this >mail. I apologize for that.. Second, I may seem to have little >C knowledge, though I am using C for about 5 years and plus. > >Let's start with the question. I am digging the FreeBSD-5.3 kernel codes. >Watson's Cross Reference is really helpful. In the schedcpu(void) function >there is an assignment like "ke = td->td_kse;" on line 438 (see: >http://fxr.watson.org/fxr/source/kern/sched_4bsd.c?v=RELENG53#L438"). >When I look at the thread structure at sys/proc.h, I could not see such an >entry td_kse in the "thread" structure. How has this structure been extended >or this entry added to the thread structure? > >Although the kernel codes seem to be simply understandable, there still lies >some difficulties to understand for an average C programmer: magic stuff done >by professionals. :) > >Anyway, any help really will be appreciated... > > originally there were 2 structures the kse and the td_sched They were merged but the code was kept teh same so that edits would be not 'flooded' in the diffs. places that used to refer to ke->ke_xxx still do and places that used to refer to td->td_sched->tds_xxx still do but they are now the same thing. >Thanks. >_______________________________________________ >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 May 6 02:46: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 A36A116A4CE for ; Fri, 6 May 2005 02:46:55 +0000 (GMT) Received: from duchess.speedfactory.net (duchess.speedfactory.net [66.23.201.84]) by mx1.FreeBSD.org (Postfix) with SMTP id B13C143D8A for ; Fri, 6 May 2005 02:46:53 +0000 (GMT) (envelope-from ups@tree.com) Received: (qmail 902 invoked by uid 89); 5 May 2005 23:20:31 -0000 Received: from duchess.speedfactory.net (66.23.201.84) by duchess.speedfactory.net with SMTP; 5 May 2005 23:20:31 -0000 Received: (qmail 24351 invoked by uid 89); 5 May 2005 21:29:31 -0000 Received: from unknown (HELO palm.tree.com) (66.23.216.49) by duchess.speedfactory.net with SMTP; 5 May 2005 21:29:31 -0000 Received: from [127.0.0.1] (localhost.tree.com [127.0.0.1]) by palm.tree.com (8.12.10/8.12.10) with ESMTP id j45LIMw6021128; Thu, 5 May 2005 17:18:26 -0400 (EDT) (envelope-from ups@tree.com) From: Stephan Uphoff To: Halil Demirezen In-Reply-To: <200505060010.26184.halil@enderunix.org> References: <200505060010.26184.halil@enderunix.org> Content-Type: text/plain Message-Id: <1115327902.96600.6358.camel@palm> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 05 May 2005 17:18:22 -0400 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: A bit confused with the sched_4bsd.c code 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, 06 May 2005 02:46:55 -0000 On Thu, 2005-05-05 at 20:10, Halil Demirezen wrote: > Hello, > > First of all, I am not sure if this is the correct mail list with posting this > mail. I apologize for that.. Second, I may seem to have little > C knowledge, though I am using C for about 5 years and plus. > > Let's start with the question. I am digging the FreeBSD-5.3 kernel codes. > Watson's Cross Reference is really helpful. In the schedcpu(void) function > there is an assignment like "ke = td->td_kse;" on line 438 (see: > http://fxr.watson.org/fxr/source/kern/sched_4bsd.c?v=RELENG53#L438"). > When I look at the thread structure at sys/proc.h, I could not see such an > entry td_kse in the "thread" structure. How has this structure been extended > or this entry added to the thread structure? > > Although the kernel codes seem to be simply understandable, there still lies > some difficulties to understand for an average C programmer: magic stuff done > by professionals. :) > > Anyway, any help really will be appreciated... > > Thanks. #define td_kse td_sched http://fxr.watson.org/fxr/source/kern/sched_4bsd.c?v=RELENG53#L95 From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 07:39:25 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 CD6AA16A4CE for ; Fri, 6 May 2005 07:39:25 +0000 (GMT) Received: from vsmtp14.tin.it (vsmtp14.tin.it [212.216.176.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 874C543DA6 for ; Fri, 6 May 2005 07:39:25 +0000 (GMT) (envelope-from gerarra@tin.it) Received: from ims3a.cp.tin.it (192.168.70.103) by vsmtp14.tin.it (7.0.027) id 425FE878007F4BB8 for freebsd-hackers@freebsd.org; Fri, 6 May 2005 09:39:23 +0200 Received: from [192.168.70.181] by ims3a.cp.tin.it with HTTP; Fri, 6 May 2005 09:39:21 +0200 Date: Fri, 6 May 2005 09:39:21 +0200 Message-ID: <427AE2F700000446@ims3a.cp.tin.it> In-Reply-To: <427A94C0.1020205@samsco.org> From: gerarra@tin.it To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable X-Originating-IP: 151.100.38.110 Subject: Re: A bit confused with the sched_4bsd.c code 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, 06 May 2005 07:39:25 -0000 >Halil Demirezen wrote: >> Hello, >> >> First of all, I am not sure if this is the correct mail list with post= ing >this >> mail. I apologize for that.. Second, I may seem to have little >> C knowledge, though I am using C for about 5 years and plus. >> >> Let's start with the question. I am digging the FreeBSD-5.3 kernel cod= es. >> Watson's Cross Reference is really helpful. In the schedcpu(void) func= tion >> there is an assignment like "ke =3D td->td_kse;" on line 438 (see: >> http://fxr.watson.org/fxr/source/kern/sched_4bsd.c?v=3DRELENG53#L438")= . >> When I look at the thread structure at sys/proc.h, I could not see suc= h >an >> entry td_kse in the "thread" structure. How has this structure been ex= tended > >> or this entry added to the thread structure? >> >> Although the kernel codes seem to be simply understandable, there stil= l >lies >> some difficulties to understand for an average C programmer: magic stu= ff >done >> by professionals. :) >> >> Anyway, any help really will be appreciated... >> >> Thanks. > >Look near the top of the file for: > >#define td_kse td_sched > >That makes td->td_kse resolve to td->td_sched. Now, there is >other magic associated with td_sched in each scheduler source >file, but that's different matter =3D-) If you *really* want to dig inside sources remind that grep is your frien= d rookie From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 09:24: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 D728C16A4CE for ; Fri, 6 May 2005 09:24:24 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7256543DA5 for ; Fri, 6 May 2005 09:24:24 +0000 (GMT) (envelope-from maslanbsd@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so429096wra for ; Fri, 06 May 2005 02:24:18 -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=pXaYDS2xWNR82m1UI1rN008plL3ykUYdterTzAdoeYh6YLNed6V9jj1C9TofsBajAYgBallF4H7MM7V05ZWstB2kK7e6lh4pRNWYj9tWvfZl2q9S9KotaSQjlu/oJYDl0xdQ3FSdXdVuSCcCZER/OZlqYfZ5reDuJ1HRqkYVwaY= Received: by 10.54.13.50 with SMTP id 50mr342346wrm; Fri, 06 May 2005 02:24:18 -0700 (PDT) Received: by 10.54.99.7 with HTTP; Fri, 6 May 2005 02:24:18 -0700 (PDT) Message-ID: <319cceca050506022420a14e78@mail.gmail.com> Date: Fri, 6 May 2005 12:24:18 +0300 From: Maslan To: Julian Elischer In-Reply-To: <427919C6.5040100@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <319cceca0505040530623245d7@mail.gmail.com> <427919C6.5040100@elischer.org> cc: FreeBSD Hackers Subject: Re: files refused to delete 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: Fri, 06 May 2005 09:24:25 -0000 here is the output of fsck : ** /dev/ad0s3a (NO WRITE) ** Last Mounted on / ** Root file system ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 2671 files, 44960 used, 1937879 free (703 frags, 242147 blocks, 0.0% fragmentation) ** /dev/ad0s3e (NO WRITE) ** Last Mounted on /usr ** Phase 1 - Check Blocks and Sizes INCORRECT BLOCK COUNT I=3D196742 (4 should be 0) CORRECT? no ** Phase 2 - Check Pathnames MISSING '.' I=3D197304 OWNER=3Dmaslan MODE=3D40755 SIZE=3D512 MTIME=3DMay 5 17:30 2005=20 DIR=3D? UNEXPECTED SOFT UPDATE INCONSISTENCY CANNOT FIX, FIRST ENTRY IN DIRECTORY CONTAINS koko UNEXPECTED SOFT UPDATE INCONSISTENCY MISSING '..' I=3D197304 OWNER=3Dmaslan MODE=3D40755 SIZE=3D512 MTIME=3DMay 5 17:30 2005=20 DIR=3D/home/maslan/.Trash/XY/Final/$YREX~1/trrt UNEXPECTED SOFT UPDATE INCONSISTENCY CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS f UNEXPECTED SOFT UPDATE INCONSISTENCY ?/fd IS AN EXTRANEOUS HARD LINK TO DIRECTORY /lost+found/#197140 REMOVE? no BAD INODE NUMBER FOR '..' I=3D197140 OWNER=3Dmaslan MODE=3D40755 SIZE=3D512 MTIME=3DApr 11 17:32 2005=20 DIR=3D?/fd UNEXPECTED SOFT UPDATE INCONSISTENCY FIX? no ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? no SUMMARY INFORMATION BAD SALVAGE? no BLK(S) MISSING IN BIT MAPS SALVAGE? no 223330 files, 1470245 used, 553153 free (21905 frags, 66406 blocks, 1.1% fragmentation) ** /dev/ad0s3d (NO WRITE) ** Last Mounted on /var ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 2271 files, 8379 used, 485820 free (2028 frags, 60474 blocks, 0.4% fragmentation) On 5/4/05, Julian Elischer wrote: > use ls -lo to see if there are any special flags set on the file. > man chflags for more information on the flags. >=20 > How did you delete if from linux? last I heard the linux ufs code was > not very healthy. > maybe they fixed it.. >=20 >=20 > Maslan wrote: >=20 > >when i've extract a bz2 file containing filenames in other encodings (ar= abic), > >the file names appears ??? and it refuses to delete , however i > >deleted them from linux > >but the fsck created a hard link to them in lost+found and this hard > >links refused to deleted, it also created a hard link to my home > >directory which also refused to delete. > >is this bug in bfs or in fsck ??? > > > > > > >=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 Fri May 6 10:49: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 C775816A4CE for ; Fri, 6 May 2005 10:49:03 +0000 (GMT) Received: from volginfo.ru (ns.volginfo.ru [217.23.84.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECC0843D64 for ; Fri, 6 May 2005 10:49:02 +0000 (GMT) (envelope-from den@FreeBSD.org) Received: from volginfo.ru (localhost.volginfo.ru [127.0.0.1]) by volginfo.ru (Postfix) with ESMTP id 2CBB12090; Fri, 6 May 2005 14:48:56 +0400 (MSD) Received: from [192.168.1.32] (llp-13.vistcom.ru [217.23.84.68]) by volginfo.ru (Postfix) with ESMTP id 98FD3208E; Fri, 6 May 2005 14:48:54 +0400 (MSD) Message-ID: <427B4B7E.5070801@FreeBSD.org> Date: Fri, 06 May 2005 14:48:30 +0400 From: Denis Peplin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: <427743ED.6020200@FreeBSD.org> <20050503094438.GA44097@zibbi.icomtek.csir.co.za> <4277BF4D.3060507@elischer.org> In-Reply-To: <4277BF4D.3060507@elischer.org> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP cc: hackers@freebsd.org Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 06 May 2005 10:49:03 -0000 Hello! Julian Elischer wrote: > Mergemaster could keep checksums of known revisions. > > it wouldn't take much to have just one file with the last 35 checksums > of each file. (maybe with the $FreeBSD$ line removed if it differs..) Just implemented both variants (but second is not by count) 1. Full checksum story for every file (~ 650k). 2. Separated by date checksums (year 2000 was taken for example). New patch to mergemaster: http://people.freebsd.org/~den/scripts/mergemaster/mergemaster-checksum.diff Script to collect checksums: http://people.freebsd.org/~den/scripts/mergemaster/etc_collect_checksums-splitted.sh This script takes few hours to complete, but checksums list available too. Checksums, other links, TODO and full story here: http://people.freebsd.org/~den/scripts/mergemaster/ From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 11:05: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 949F016A4CE for ; Fri, 6 May 2005 11:05:04 +0000 (GMT) Received: from volginfo.ru (ns.volginfo.ru [217.23.84.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 391C843D9E for ; Fri, 6 May 2005 11:05:04 +0000 (GMT) (envelope-from den@FreeBSD.org) Received: from volginfo.ru (localhost.volginfo.ru [127.0.0.1]) by volginfo.ru (Postfix) with ESMTP id BDED4208D; Fri, 6 May 2005 15:05:06 +0400 (MSD) Received: from [192.168.1.32] (llp-13.vistcom.ru [217.23.84.68]) by volginfo.ru (Postfix) with ESMTP id 1C3CF2018; Fri, 6 May 2005 15:05:06 +0400 (MSD) Message-ID: <427B4F49.9070705@FreeBSD.org> Date: Fri, 06 May 2005 15:04:41 +0400 From: Denis Peplin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Juergen Unger References: <427743ED.6020200@FreeBSD.org> <20050503120958.Y42342@eleanor.us1.wmi.uvac.net> <4277BFD7.2000508@elischer.org> <20050503222512.GA53874@crow.addict.de> In-Reply-To: <20050503222512.GA53874@crow.addict.de> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP cc: c0ldbyte cc: hackers@freebsd.org cc: Julian Elischer Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 06 May 2005 11:05:04 -0000 Hello! Juergen Unger wrote: > On Tue, May 03, 2005 at 11:15:51AM -0700, Julian Elischer wrote: >>files that I have not touched are at default state and I wnat them to move >>to teh new default state. Files I have touched, I want to look at by hand. > > > so do I. And to go a step further: why do we at all have to run > this things in single-user mode ? > Not that I am not aware of the technical reasons for it > BUT: why don't we run both the installworld and the mergemaster > jobs in a manner where they only _preparing_ the installation of > the update ? ... maybe creating a jobfile which could be > run automatically during reboot to make the update instantaneous > happen without a long downtime to do it all manually in > single-user mode over a slow serial console ? Ideas like this are definitely flying around. In addition I can say that it will be good to recieve control back even if something goes wrong on such auto-update. Maybe statically-linked sshd in root directory would help in such (and many other) situations. From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 12:40: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 5D06816A4D0 for ; Fri, 6 May 2005 12:40:26 +0000 (GMT) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2697A43D92 for ; Fri, 6 May 2005 12:40:25 +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 j46CeMSY052260 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 6 May 2005 14:40:22 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.4/8.13.3/Submit) id j46CeMHu052259 for freebsd-hackers@freebsd.org; Fri, 6 May 2005 14:40:22 +0200 (CEST) Date: Fri, 6 May 2005 14:40:22 +0200 From: Divacky Roman To: freebsd-hackers@freebsd.org Message-ID: <20050506124022.GA51077@stud.fit.vutbr.cz> References: <427A94C0.1020205@samsco.org> <427AE2F700000446@ims3a.cp.tin.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427AE2F700000446@ims3a.cp.tin.it> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.49 on 147.229.10.14 Subject: Re: A bit confused with the sched_4bsd.c code 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, 06 May 2005 12:40:26 -0000 On Fri, May 06, 2005 at 09:39:21AM +0200, gerarra@tin.it wrote: > > > >Halil Demirezen wrote: > >> Hello, > >> > >> First of all, I am not sure if this is the correct mail list with posting > >this > >> mail. I apologize for that.. Second, I may seem to have little > >> C knowledge, though I am using C for about 5 years and plus. > >> > >> Let's start with the question. I am digging the FreeBSD-5.3 kernel codes. > >> Watson's Cross Reference is really helpful. In the schedcpu(void) function > >> there is an assignment like "ke = td->td_kse;" on line 438 (see: > >> http://fxr.watson.org/fxr/source/kern/sched_4bsd.c?v=RELENG53#L438"). > >> When I look at the thread structure at sys/proc.h, I could not see such > >an > >> entry td_kse in the "thread" structure. How has this structure been extended > > > >> or this entry added to the thread structure? > >> > >> Although the kernel codes seem to be simply understandable, there still > >lies > >> some difficulties to understand for an average C programmer: magic stuff > >done > >> by professionals. :) > >> > >> Anyway, any help really will be appreciated... > >> > >> Thanks. > > > >Look near the top of the file for: > > > >#define td_kse td_sched > > > >That makes td->td_kse resolve to td->td_sched. Now, there is > >other magic associated with td_sched in each scheduler source > >file, but that's different matter =-) > > If you *really* want to dig inside sources remind that grep is your friend I'd go with cscsope (ports/devel/cscope) instead of grep... ;) From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 12:51: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 0C4D516A4D0; Fri, 6 May 2005 12:51:03 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC8E443D86; Fri, 6 May 2005 12:51:01 +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 j46CooWi043236; Fri, 6 May 2005 22:20:50 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 6 May 2005 22:20:43 +0930 User-Agent: KMail/1.8 References: <427743ED.6020200@FreeBSD.org> <4277BF4D.3060507@elischer.org> <427B4B7E.5070801@FreeBSD.org> In-Reply-To: <427B4B7E.5070801@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1847702.MJjLLhZ6ae"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505062220.43840.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: hackers@freebsd.org cc: Denis Peplin cc: Julian Elischer Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 06 May 2005 12:51:03 -0000 --nextPart1847702.MJjLLhZ6ae Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 6 May 2005 20:18, Denis Peplin wrote: > Hello! > > Julian Elischer wrote: > > Mergemaster could keep checksums of known revisions. > > > > it wouldn't take much to have just one file with the last 35 checksums > > of each file. (maybe with the $FreeBSD$ line removed if it differs..) > > Just implemented both variants (but second is not by count) > 1. Full checksum story for every file (~ 650k). > 2. Separated by date checksums (year 2000 was taken for example). > > New patch to mergemaster: > http://people.freebsd.org/~den/scripts/mergemaster/mergemaster-checksum.d= if >f Script to collect checksums: > http://people.freebsd.org/~den/scripts/mergemaster/etc_collect_checksums-= sp >litted.sh You know you can just use etcmerge to do this.. It does a 3 way merge between your files and the old and new revisions. The only down side is that it's UI is totally unlike mergemaster so it can = be=20 a bit strange to get used to. =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 --nextPart1847702.MJjLLhZ6ae Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCe2gj5ZPcIHs/zowRAnxPAJ4oKiYA5I8FoMZ0ffoMulbES8jusQCePfpI 81VXtGhUCNlN6of+YBrSgHs= =SmYZ -----END PGP SIGNATURE----- --nextPart1847702.MJjLLhZ6ae-- From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 12:51: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 0C4D516A4D0; Fri, 6 May 2005 12:51:03 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC8E443D86; Fri, 6 May 2005 12:51:01 +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 j46CooWi043236; Fri, 6 May 2005 22:20:50 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 6 May 2005 22:20:43 +0930 User-Agent: KMail/1.8 References: <427743ED.6020200@FreeBSD.org> <4277BF4D.3060507@elischer.org> <427B4B7E.5070801@FreeBSD.org> In-Reply-To: <427B4B7E.5070801@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1847702.MJjLLhZ6ae"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505062220.43840.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: hackers@freebsd.org cc: Denis Peplin cc: Julian Elischer Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 06 May 2005 12:51:03 -0000 --nextPart1847702.MJjLLhZ6ae Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 6 May 2005 20:18, Denis Peplin wrote: > Hello! > > Julian Elischer wrote: > > Mergemaster could keep checksums of known revisions. > > > > it wouldn't take much to have just one file with the last 35 checksums > > of each file. (maybe with the $FreeBSD$ line removed if it differs..) > > Just implemented both variants (but second is not by count) > 1. Full checksum story for every file (~ 650k). > 2. Separated by date checksums (year 2000 was taken for example). > > New patch to mergemaster: > http://people.freebsd.org/~den/scripts/mergemaster/mergemaster-checksum.d= if >f Script to collect checksums: > http://people.freebsd.org/~den/scripts/mergemaster/etc_collect_checksums-= sp >litted.sh You know you can just use etcmerge to do this.. It does a 3 way merge between your files and the old and new revisions. The only down side is that it's UI is totally unlike mergemaster so it can = be=20 a bit strange to get used to. =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 --nextPart1847702.MJjLLhZ6ae Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCe2gj5ZPcIHs/zowRAnxPAJ4oKiYA5I8FoMZ0ffoMulbES8jusQCePfpI 81VXtGhUCNlN6of+YBrSgHs= =SmYZ -----END PGP SIGNATURE----- --nextPart1847702.MJjLLhZ6ae-- From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 13:49: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 A10E716A4D3; Fri, 6 May 2005 13:49:20 +0000 (GMT) Received: from volginfo.ru (ns.volginfo.ru [217.23.84.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id D636E43D6A; Fri, 6 May 2005 13:49:19 +0000 (GMT) (envelope-from den@FreeBSD.org) Received: from volginfo.ru (localhost.volginfo.ru [127.0.0.1]) by volginfo.ru (Postfix) with ESMTP id C9CFB2090; Fri, 6 May 2005 17:49:22 +0400 (MSD) Received: from [192.168.1.32] (llp-13.vistcom.ru [217.23.84.68]) by volginfo.ru (Postfix) with ESMTP id 1613B208E; Fri, 6 May 2005 17:49:22 +0400 (MSD) Message-ID: <427B75C8.9060100@FreeBSD.org> Date: Fri, 06 May 2005 17:48:56 +0400 From: Denis Peplin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel O'Connor References: <427743ED.6020200@FreeBSD.org> <4277BF4D.3060507@elischer.org> <427B4B7E.5070801@FreeBSD.org> <200505062220.43840.doconnor@gsoft.com.au> In-Reply-To: <200505062220.43840.doconnor@gsoft.com.au> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP cc: freebsd-hackers@freebsd.org cc: hackers@freebsd.org cc: Julian Elischer Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 06 May 2005 13:49:20 -0000 Hello! Daniel O'Connor wrote: > On Fri, 6 May 2005 20:18, Denis Peplin wrote: > You know you can just use etcmerge to do this.. > It does a 3 way merge between your files and the old and new revisions. > > The only down side is that it's UI is totally unlike mergemaster so it can be > a bit strange to get used to. Thank for pointing me to this script, I will look into it for ideas related to merging files that was modified. But for not modified files etcmerge is too complicated. Updating for not modified files should be done in fully automated mode. And for comparision, this file http://people.freebsd.org/~den/scripts/mergemaster/sums-etc.list.gz is only 264 kB in size. Unlike etcmerge archives (from link in etcmerge manpage), it contain checksums, and checksums included for every revision, even if it was not included in official release. I think that checksums database can be even committed into CVS and will not bloat it. Ideally, this way of updating should be available even for those users who have no access to internet (distribution recieved on CDROM, etc.) From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 13:49: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 A10E716A4D3; Fri, 6 May 2005 13:49:20 +0000 (GMT) Received: from volginfo.ru (ns.volginfo.ru [217.23.84.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id D636E43D6A; Fri, 6 May 2005 13:49:19 +0000 (GMT) (envelope-from den@FreeBSD.org) Received: from volginfo.ru (localhost.volginfo.ru [127.0.0.1]) by volginfo.ru (Postfix) with ESMTP id C9CFB2090; Fri, 6 May 2005 17:49:22 +0400 (MSD) Received: from [192.168.1.32] (llp-13.vistcom.ru [217.23.84.68]) by volginfo.ru (Postfix) with ESMTP id 1613B208E; Fri, 6 May 2005 17:49:22 +0400 (MSD) Message-ID: <427B75C8.9060100@FreeBSD.org> Date: Fri, 06 May 2005 17:48:56 +0400 From: Denis Peplin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel O'Connor References: <427743ED.6020200@FreeBSD.org> <4277BF4D.3060507@elischer.org> <427B4B7E.5070801@FreeBSD.org> <200505062220.43840.doconnor@gsoft.com.au> In-Reply-To: <200505062220.43840.doconnor@gsoft.com.au> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP cc: freebsd-hackers@freebsd.org cc: hackers@freebsd.org cc: Julian Elischer Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 06 May 2005 13:49:20 -0000 Hello! Daniel O'Connor wrote: > On Fri, 6 May 2005 20:18, Denis Peplin wrote: > You know you can just use etcmerge to do this.. > It does a 3 way merge between your files and the old and new revisions. > > The only down side is that it's UI is totally unlike mergemaster so it can be > a bit strange to get used to. Thank for pointing me to this script, I will look into it for ideas related to merging files that was modified. But for not modified files etcmerge is too complicated. Updating for not modified files should be done in fully automated mode. And for comparision, this file http://people.freebsd.org/~den/scripts/mergemaster/sums-etc.list.gz is only 264 kB in size. Unlike etcmerge archives (from link in etcmerge manpage), it contain checksums, and checksums included for every revision, even if it was not included in official release. I think that checksums database can be even committed into CVS and will not bloat it. Ideally, this way of updating should be available even for those users who have no access to internet (distribution recieved on CDROM, etc.) From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 14: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 B653516A4D3; Fri, 6 May 2005 14:09:04 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E98443D99; Fri, 6 May 2005 14:09:03 +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 j46E8pga043982; Fri, 6 May 2005 23:38:51 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Denis Peplin Date: Fri, 6 May 2005 23:38:38 +0930 User-Agent: KMail/1.8 References: <427743ED.6020200@FreeBSD.org> <200505062220.43840.doconnor@gsoft.com.au> <427B75C8.9060100@FreeBSD.org> In-Reply-To: <427B75C8.9060100@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart13439456.VXEm5LbWIl"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505062338.45418.doconnor@gsoft.com.au> X-Spam-Score: -2.5 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: freebsd-hackers@FreeBSD.org cc: hackers@FreeBSD.org cc: Julian Elischer Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 06 May 2005 14:09:04 -0000 --nextPart13439456.VXEm5LbWIl Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 6 May 2005 23:18, Denis Peplin wrote: > But for not modified files etcmerge is too complicated. Updating > for not modified files should be done in fully automated mode. hmm, but for unmodified files etcmerge does nothing - you don't have to do= =20 anything unless you want to edit the new files so it IS automated. Like I said before etcmerge's UI is not like mergemaster - it is much more= =20 batch oriented. > And for comparision, this file > http://people.freebsd.org/~den/scripts/mergemaster/sums-etc.list.gz > is only 264 kB in size. Unlike etcmerge archives (from link in etcmerge > manpage), it contain checksums, and checksums included for every > revision, even if it was not included in official release. You don't need to download anything to start using etcmerge, you can just u= se=20 the files from your last mergemaster. > I think that checksums database can be even committed into > CVS and will not bloat it. Ideally, this way of updating should be > available even for those users who have no access to internet > (distribution recieved on CDROM, etc.) 264k is a pretty large file to commit to the repo.. =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 --nextPart13439456.VXEm5LbWIl Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCe3pt5ZPcIHs/zowRAvFkAJ9NgeCmqFvM1shJ/mY8TCB8kmxgGQCeJK/R jI2o72ViJxbspHj6s91tl8A= =a5Ls -----END PGP SIGNATURE----- --nextPart13439456.VXEm5LbWIl-- From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 14: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 B653516A4D3; Fri, 6 May 2005 14:09:04 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E98443D99; Fri, 6 May 2005 14:09:03 +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 j46E8pga043982; Fri, 6 May 2005 23:38:51 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Denis Peplin Date: Fri, 6 May 2005 23:38:38 +0930 User-Agent: KMail/1.8 References: <427743ED.6020200@FreeBSD.org> <200505062220.43840.doconnor@gsoft.com.au> <427B75C8.9060100@FreeBSD.org> In-Reply-To: <427B75C8.9060100@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart13439456.VXEm5LbWIl"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505062338.45418.doconnor@gsoft.com.au> X-Spam-Score: -2.5 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: freebsd-hackers@FreeBSD.org cc: hackers@FreeBSD.org cc: Julian Elischer Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 06 May 2005 14:09:04 -0000 --nextPart13439456.VXEm5LbWIl Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 6 May 2005 23:18, Denis Peplin wrote: > But for not modified files etcmerge is too complicated. Updating > for not modified files should be done in fully automated mode. hmm, but for unmodified files etcmerge does nothing - you don't have to do= =20 anything unless you want to edit the new files so it IS automated. Like I said before etcmerge's UI is not like mergemaster - it is much more= =20 batch oriented. > And for comparision, this file > http://people.freebsd.org/~den/scripts/mergemaster/sums-etc.list.gz > is only 264 kB in size. Unlike etcmerge archives (from link in etcmerge > manpage), it contain checksums, and checksums included for every > revision, even if it was not included in official release. You don't need to download anything to start using etcmerge, you can just u= se=20 the files from your last mergemaster. > I think that checksums database can be even committed into > CVS and will not bloat it. Ideally, this way of updating should be > available even for those users who have no access to internet > (distribution recieved on CDROM, etc.) 264k is a pretty large file to commit to the repo.. =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 --nextPart13439456.VXEm5LbWIl Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCe3pt5ZPcIHs/zowRAvFkAJ9NgeCmqFvM1shJ/mY8TCB8kmxgGQCeJK/R jI2o72ViJxbspHj6s91tl8A= =a5Ls -----END PGP SIGNATURE----- --nextPart13439456.VXEm5LbWIl-- From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 14:46: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 90B3D16A4D3; Fri, 6 May 2005 14:46:06 +0000 (GMT) Received: from volginfo.ru (ns.volginfo.ru [217.23.84.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07FC043D31; Fri, 6 May 2005 14:46:06 +0000 (GMT) (envelope-from den@FreeBSD.org) Received: from volginfo.ru (localhost.volginfo.ru [127.0.0.1]) by volginfo.ru (Postfix) with ESMTP id 7243D2090; Fri, 6 May 2005 18:46:10 +0400 (MSD) Received: from [192.168.1.32] (llp-13.vistcom.ru [217.23.84.68]) by volginfo.ru (Postfix) with ESMTP id DA1F1208E; Fri, 6 May 2005 18:46:09 +0400 (MSD) Message-ID: <427B8317.2030606@FreeBSD.org> Date: Fri, 06 May 2005 18:45:43 +0400 From: Denis Peplin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel O'Connor References: <427743ED.6020200@FreeBSD.org> <200505062220.43840.doconnor@gsoft.com.au> <427B75C8.9060100@FreeBSD.org> <200505062338.45418.doconnor@gsoft.com.au> In-Reply-To: <200505062338.45418.doconnor@gsoft.com.au> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP cc: freebsd-hackers@FreeBSD.org cc: hackers@FreeBSD.org cc: Julian Elischer Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 06 May 2005 14:46:06 -0000 Hello! Daniel O'Connor wrote: > On Fri, 6 May 2005 23:18, Denis Peplin wrote: > >>But for not modified files etcmerge is too complicated. Updating >>for not modified files should be done in fully automated mode. > > > hmm, but for unmodified files etcmerge does nothing - you don't have to do > anything unless you want to edit the new files so it IS automated. > > Like I said before etcmerge's UI is not like mergemaster - it is much more > batch oriented. It is complicated for end-user to move from mergemaster to etcmerge (need to install new tool, read manual, perform some additional work...) > > >>And for comparision, this file >>http://people.freebsd.org/~den/scripts/mergemaster/sums-etc.list.gz >>is only 264 kB in size. Unlike etcmerge archives (from link in etcmerge >>manpage), it contain checksums, and checksums included for every >>revision, even if it was not included in official release. > > > You don't need to download anything to start using etcmerge, you can just use > the files from your last mergemaster. For etcmerge it is need to run mergemaster "one last time", or use etc archive for some release. So if mergemaster will be improved, it will be better for etcmerge :) > > >>I think that checksums database can be even committed into >>CVS and will not bloat it. Ideally, this way of updating should be >>available even for those users who have no access to internet >>(distribution recieved on CDROM, etc.) > > > 264k is a pretty large file to commit to the repo.. > Yes, I know. And don't sure that it is some need to commit this file. Anyway, this file is less that INDEX, and unlike INDEX, will not rapidly changed. Checksum database will grow slowly. P.S. I will be away till 10.05. Bye! From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 14:46: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 90B3D16A4D3; Fri, 6 May 2005 14:46:06 +0000 (GMT) Received: from volginfo.ru (ns.volginfo.ru [217.23.84.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07FC043D31; Fri, 6 May 2005 14:46:06 +0000 (GMT) (envelope-from den@FreeBSD.org) Received: from volginfo.ru (localhost.volginfo.ru [127.0.0.1]) by volginfo.ru (Postfix) with ESMTP id 7243D2090; Fri, 6 May 2005 18:46:10 +0400 (MSD) Received: from [192.168.1.32] (llp-13.vistcom.ru [217.23.84.68]) by volginfo.ru (Postfix) with ESMTP id DA1F1208E; Fri, 6 May 2005 18:46:09 +0400 (MSD) Message-ID: <427B8317.2030606@FreeBSD.org> Date: Fri, 06 May 2005 18:45:43 +0400 From: Denis Peplin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel O'Connor References: <427743ED.6020200@FreeBSD.org> <200505062220.43840.doconnor@gsoft.com.au> <427B75C8.9060100@FreeBSD.org> <200505062338.45418.doconnor@gsoft.com.au> In-Reply-To: <200505062338.45418.doconnor@gsoft.com.au> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP cc: freebsd-hackers@FreeBSD.org cc: hackers@FreeBSD.org cc: Julian Elischer Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 06 May 2005 14:46:06 -0000 Hello! Daniel O'Connor wrote: > On Fri, 6 May 2005 23:18, Denis Peplin wrote: > >>But for not modified files etcmerge is too complicated. Updating >>for not modified files should be done in fully automated mode. > > > hmm, but for unmodified files etcmerge does nothing - you don't have to do > anything unless you want to edit the new files so it IS automated. > > Like I said before etcmerge's UI is not like mergemaster - it is much more > batch oriented. It is complicated for end-user to move from mergemaster to etcmerge (need to install new tool, read manual, perform some additional work...) > > >>And for comparision, this file >>http://people.freebsd.org/~den/scripts/mergemaster/sums-etc.list.gz >>is only 264 kB in size. Unlike etcmerge archives (from link in etcmerge >>manpage), it contain checksums, and checksums included for every >>revision, even if it was not included in official release. > > > You don't need to download anything to start using etcmerge, you can just use > the files from your last mergemaster. For etcmerge it is need to run mergemaster "one last time", or use etc archive for some release. So if mergemaster will be improved, it will be better for etcmerge :) > > >>I think that checksums database can be even committed into >>CVS and will not bloat it. Ideally, this way of updating should be >>available even for those users who have no access to internet >>(distribution recieved on CDROM, etc.) > > > 264k is a pretty large file to commit to the repo.. > Yes, I know. And don't sure that it is some need to commit this file. Anyway, this file is less that INDEX, and unlike INDEX, will not rapidly changed. Checksum database will grow slowly. P.S. I will be away till 10.05. Bye! From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 15:07: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 4A1A316A4D3; Fri, 6 May 2005 15:07:26 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E87143DB1; Fri, 6 May 2005 15:07:25 +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 j46F7FwO044703; Sat, 7 May 2005 00:37:16 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Denis Peplin Date: Sat, 7 May 2005 00:37:03 +0930 User-Agent: KMail/1.8 References: <427743ED.6020200@FreeBSD.org> <200505062338.45418.doconnor@gsoft.com.au> <427B8317.2030606@FreeBSD.org> In-Reply-To: <427B8317.2030606@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2101590.BxynF7KHYr"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505070037.10431.doconnor@gsoft.com.au> X-Spam-Score: -2.8 () IN_REP_TO,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: hackers@FreeBSD.org cc: Julian Elischer Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 06 May 2005 15:07:26 -0000 --nextPart2101590.BxynF7KHYr Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sat, 7 May 2005 00:15, Denis Peplin wrote: > > Like I said before etcmerge's UI is not like mergemaster - it is much > > more batch oriented. > > It is complicated for end-user to move from mergemaster to etcmerge > (need to install new tool, read manual, perform some additional work...) Maybe, I don't think it is that much effort. The gain is much less work and many fewer questions each update so it's nic= e. > > You don't need to download anything to start using etcmerge, you can ju= st > > use the files from your last mergemaster. > > For etcmerge it is need to run mergemaster "one last time", or use > etc archive for some release. So if mergemaster will be improved, > it will be better for etcmerge :) Well, you can use etcmerge if you haven't changed anything in /etc - ie on = a=20 fresh install. Even if the checksum test is added to mergemaster it only covers one of the= =20 cases etcmerge handles, it still doesn't do a 3 way merge. The merge etcmer= ge=20 does is very nice for removing changes to files you don't care about. > > 264k is a pretty large file to commit to the repo.. > > Yes, I know. And don't sure that it is some need to commit this file. > Anyway, this file is less that INDEX, and unlike INDEX, will not > rapidly changed. Checksum database will grow slowly. The INDEX file isn't in CVS anymore.. It probably won't grow very fast, but IMO it seems like a bit of a kludge. =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 --nextPart2101590.BxynF7KHYr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCe4ge5ZPcIHs/zowRAtamAJ9bualhT+E6zEf8oINUjqxPPCq1GQCfZdcq rwr70ID83+u0xce2h9KiKqs= =LzwS -----END PGP SIGNATURE----- --nextPart2101590.BxynF7KHYr-- From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 15:07: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 4A1A316A4D3; Fri, 6 May 2005 15:07:26 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E87143DB1; Fri, 6 May 2005 15:07:25 +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 j46F7FwO044703; Sat, 7 May 2005 00:37:16 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Denis Peplin Date: Sat, 7 May 2005 00:37:03 +0930 User-Agent: KMail/1.8 References: <427743ED.6020200@FreeBSD.org> <200505062338.45418.doconnor@gsoft.com.au> <427B8317.2030606@FreeBSD.org> In-Reply-To: <427B8317.2030606@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2101590.BxynF7KHYr"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505070037.10431.doconnor@gsoft.com.au> X-Spam-Score: -2.8 () IN_REP_TO,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: hackers@FreeBSD.org cc: Julian Elischer Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 06 May 2005 15:07:26 -0000 --nextPart2101590.BxynF7KHYr Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sat, 7 May 2005 00:15, Denis Peplin wrote: > > Like I said before etcmerge's UI is not like mergemaster - it is much > > more batch oriented. > > It is complicated for end-user to move from mergemaster to etcmerge > (need to install new tool, read manual, perform some additional work...) Maybe, I don't think it is that much effort. The gain is much less work and many fewer questions each update so it's nic= e. > > You don't need to download anything to start using etcmerge, you can ju= st > > use the files from your last mergemaster. > > For etcmerge it is need to run mergemaster "one last time", or use > etc archive for some release. So if mergemaster will be improved, > it will be better for etcmerge :) Well, you can use etcmerge if you haven't changed anything in /etc - ie on = a=20 fresh install. Even if the checksum test is added to mergemaster it only covers one of the= =20 cases etcmerge handles, it still doesn't do a 3 way merge. The merge etcmer= ge=20 does is very nice for removing changes to files you don't care about. > > 264k is a pretty large file to commit to the repo.. > > Yes, I know. And don't sure that it is some need to commit this file. > Anyway, this file is less that INDEX, and unlike INDEX, will not > rapidly changed. Checksum database will grow slowly. The INDEX file isn't in CVS anymore.. It probably won't grow very fast, but IMO it seems like a bit of a kludge. =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 --nextPart2101590.BxynF7KHYr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCe4ge5ZPcIHs/zowRAtamAJ9bualhT+E6zEf8oINUjqxPPCq1GQCfZdcq rwr70ID83+u0xce2h9KiKqs= =LzwS -----END PGP SIGNATURE----- --nextPart2101590.BxynF7KHYr-- From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 16:41: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 6676516A4D4; Fri, 6 May 2005 16:41:43 +0000 (GMT) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8810B43D9C; Fri, 6 May 2005 16:41:42 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.1/NinthNine) with SMTP id j46GfeS8016847; Sat, 7 May 2005 01:41:40 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sat, 7 May 2005 01:41:40 +0900 (JST) Message-Id: <200505061641.j46GfeS8016847@sakura.ninth-nine.com> From: Norikatsu Shigemura To: freebsd-database@FreeBSD.org X-Mailer: Sylpheed version 1.9.9 (GTK+ 2.6.7; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (sakura.ninth-nine.com [219.127.74.121]); Sat, 07 May 2005 01:41:40 +0900 (JST) cc: ports@FreeBSD.org cc: freebsd-hackers@FreeBSD.org Subject: How many people do you need Oracle Instant Client8 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: Fri, 06 May 2005 16:41:43 -0000 How many people do you need Oracle Instant Client a.k.a. OCI8 on FreeBSD native applications? I am tring to use FreeBSD native php5-oci8 with Linux Plugin Wrapper (LPW) technorogy. My attempt succeeded, but it doesn't work. Because there are many functions to have to convert Linux ones to FreeBSD ones. It is a deadlock in me. And so, anyone do you try to implement these ones? ------------------------------------------------------- Step 1-5: 1. Get experimental LPW from following URL(use net/cvsync). cvsync://cvsync.ninth-nine.com/LinuxPluginWrapper/ 2. Compile and install LPW and set /etc/libmap.conf. I confirmed on 6-current. I don't know [45]-stable. 3. Install following ports. ports/databases/linux-oracle-instantclient-sdk ports/databases/linux-oracle-instantclient-basic 4. Install following 000.oci8.sh script to /usr/local/etc/rc.d/ --------------------------------------------------------------- #!/bin/sh # PROVIDE: oci8 # REQUIRE: ldconfig # KEYWORD: FreeBSD . /etc/rc.subr name=oci8 start_cmd=oci8_start stop_cmd=: [ -z "$oci8_libdir" ] && oci8_libdir="/compat/linux/usr/lib/oracle/10.1.0.3/client/lib" oci8_start() { if [ -d "$oci8_libdir" ]; then /sbin/ldconfig -m "$oci8_libdir" fi } load_rc_config $name run_rc_command "$1" --------------------------------------------------------------- 5. Test, please follwoing port skelton. --------------------------------------------------------------- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # php5-oci8/Makefile # php5-oci8/files/patch-config.m4 # echo x - php5-oci8/Makefile sed 's/^X//' >php5-oci8/Makefile << 'END-of-php5-oci8/Makefile' X# New ports collection makefile for: php5-oci8 X# Date created: 2005-04-26 X# Whom: nork@FreeBSD.org X# X# $FreeBSD$ X# X XCATEGORIES= databases X XMASTERDIR= ${PORTSDIR}/lang/php5 X XPKGNAMESUFFIX= -oci8 X X.include "${MASTERDIR}/Makefile" X X.if ${PHP_MODNAME} == "oci8" XOCI8_VER= 10.1.0.3 XBUILD_DEPENDS+= ${LINUXBASE}/usr/include/oracle/${OCI8_VER}/client/oci.h:${PORTSDIR}/local/linux-oracle-instantclient-sdk XRUN_DEPENDS+= ${LINUXBASE}/usr/include/oracle/${OCI8_VER}/client/oci.h:${PORTSDIR}/local/linux-oracle-instantclient-sdk X XCONFIGURE_ARGS+=--with-oci8-instant-client=${LINUXBASE}/usr/lib/oracle/10.1.0.3/client/lib X.endif X X X X#CONFIGURE_ENV+= LDFLAGS=-R${LINUXBASE}/usr/lib/oracle/10.1.0.3/client/lib /bin/sh -x END-of-php5-oci8/Makefile echo x - php5-oci8/files/patch-config.m4 sed 's/^X//' >php5-oci8/files/patch-config.m4 << 'END-of-php5-oci8/files/patch-config.m4' X--- config.m4.orig Fri Feb 25 20:32:01 2005 X+++ config.m4 Sun May 1 23:48:55 2005 X@@ -18,31 +18,6 @@ X ]) X ]) X X-AC_DEFUN([AC_OCI8_VERSION],[ X- AC_MSG_CHECKING([Oracle version]) X- if test -s "$OCI8_DIR/orainst/unix.rgs"; then X- OCI8_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | sed 's/[ ][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4` X- test -z "$OCI8_VERSION" && OCI8_VERSION=7.3 X- elif test -f $OCI8_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.10.1; then X- OCI8_VERSION=10.1 X- elif test -f $OCI8_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then X- OCI8_VERSION=9.0 X- elif test -f $OCI8_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.8.0; then X- OCI8_VERSION=8.1 X- elif test -f $OCI8_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.1.0; then X- OCI8_VERSION=8.0 X- elif test -f $OCI8_DIR/lib/libclntsh.a; then X- if test -f $OCI8_DIR/lib/libcore4.a; then X- OCI8_VERSION=8.0 X- else X- OCI8_VERSION=8.1 X- fi X- else X- AC_MSG_ERROR([Oracle (OCI8) required libraries not found]) X- fi X- AC_MSG_RESULT($OCI8_VERSION) X-]) X- X AC_DEFUN([AC_OCI8IC_VERSION],[ X AC_MSG_CHECKING([Oracle Instant Client version]) X if test -f $PHP_OCI8_INSTANT_CLIENT/libociei.$SHLIB_SUFFIX_NAME; then X@@ -60,149 +35,15 @@ X AC_MSG_RESULT([$OCI8_VERSION]) X ]) X X-PHP_ARG_WITH(oci8, for Oracle (OCI8) support using ORACLE_HOME installation, X-[ --with-oci8[=DIR] Include Oracle (OCI8) support using an ORACLE_HOME X- install. The default DIR is ORACLE_HOME]) X- X-if test "$PHP_OCI8" = "no"; then X- PHP_ARG_WITH(oci8-instant-client, for Oracle (OCI8) support using Oracle Instant Client, X- [ --with-oci8-instant-client[=DIR] X- Include Oracle (OCI8) support using X- Oracle Instant Client. DIR is the directory with the X- Instant Client libraries. On Linux it will default to X- /usr/lib/oracle//client/lib X- Other platforms will need to have it explicitly specified.]) X-else X- PHP_OCI8_INSTANT_CLIENT="no"; X-fi X- X-if test "$PHP_OCI8" != "no"; then X- X- if test "$PHP_OCI8_INSTANT_CLIENT" != "no"; then X- AC_MSG_ERROR([--with-oci8 and --with-oci8-instant-client are mutually exclusive]) X- fi X- X- AC_MSG_CHECKING([Oracle Install Directory]) X- if test "$PHP_OCI8" = "yes"; then X- OCI8_DIR=$ORACLE_HOME X- else X- OCI8_DIR=$PHP_OCI8 X- fi X- AC_MSG_RESULT($OCI8_DIR) X- X- if test -d "$OCI8_DIR/rdbms/public"; then X- PHP_ADD_INCLUDE($OCI8_DIR/rdbms/public) X- OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/public" X- fi X- if test -d "$OCI8_DIR/rdbms/demo"; then X- PHP_ADD_INCLUDE($OCI8_DIR/rdbms/demo) X- OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/demo" X- fi X- if test -d "$OCI8_DIR/network/public"; then X- PHP_ADD_INCLUDE($OCI8_DIR/network/public) X- OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/network/public" X- fi X- if test -d "$OCI8_DIR/plsql/public"; then X- PHP_ADD_INCLUDE($OCI8_DIR/plsql/public) X- OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/plsql/public" X- fi X- X- if test -f "$OCI8_DIR/lib/sysliblist"; then X- PHP_EVAL_LIBLINE(`cat $OCI8_DIR/lib/sysliblist`, OCI8_SYSLIB) X- elif test -f "$OCI8_DIR/rdbms/lib/sysliblist"; then X- PHP_EVAL_LIBLINE(`cat $OCI8_DIR/rdbms/lib/sysliblist`, OCI8_SYSLIB) X- fi X- X- AC_OCI8_VERSION($OCI8_DIR) X- case $OCI8_VERSION in X- 8.0) X- PHP_ADD_LIBRARY_WITH_PATH(nlsrtl3, "", OCI8_SHARED_LIBADD) X- PHP_ADD_LIBRARY_WITH_PATH(core4, "", OCI8_SHARED_LIBADD) X- PHP_ADD_LIBRARY_WITH_PATH(psa, "", OCI8_SHARED_LIBADD) X- PHP_ADD_LIBRARY_WITH_PATH(clntsh, $OCI8_DIR/lib, OCI8_SHARED_LIBADD) X- ;; X- X- 8.1) X- PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD) X- PHP_ADD_LIBPATH($OCI8_DIR/lib, OCI8_SHARED_LIBADD) X- X- dnl X- dnl OCI_ATTR_STATEMENT is not available in all 8.1.x versions X- dnl X- PHP_OCI_IF_DEFINED(OCI_ATTR_STATEMENT, [AC_DEFINE(HAVE_OCI8_ATTR_STATEMENT,1,[ ])], $OCI8_INCLUDES) X- ;; X- X- 9.0) X- PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD) X- PHP_ADD_LIBPATH($OCI8_DIR/lib, OCI8_SHARED_LIBADD) X- AC_DEFINE(HAVE_OCI8_ATTR_STATEMENT,1,[ ]) X- X- dnl These functions are only available in version >= 9.2 X- PHP_CHECK_LIBRARY(clntsh, OCIEnvNlsCreate, X- [ X- PHP_CHECK_LIBRARY(clntsh, OCINlsCharSetNameToId, X- [ X- AC_DEFINE(HAVE_OCI_9_2,1,[ ]) X- OCI8_VERSION=9.2 X- ], [], [ X- -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD X- ]) X- ], [], [ X- -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD X- ]) X- ;; X- X- 10.1) X- PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD) X- PHP_ADD_LIBPATH($OCI8_DIR/lib, OCI8_SHARED_LIBADD) X- AC_DEFINE(HAVE_OCI8_ATTR_STATEMENT,1,[ ]) X- AC_DEFINE(HAVE_OCI_9_2,1,[ ]) X- AC_DEFINE(HAVE_OCI8_TEMP_LOB,1,[ ]) X- AC_DEFINE(PHP_OCI8_HAVE_COLLECTIONS,1,[ ]) X- ;; X- X- *) X- AC_MSG_ERROR([Unsupported Oracle version]) X- ;; X- esac X- X- dnl X- dnl Check if we need to add -locijdbc8 X- dnl X- PHP_CHECK_LIBRARY(clntsh, OCILobIsTemporary, X- [ X- AC_DEFINE(HAVE_OCI8_TEMP_LOB,1,[ ]) X- ], [ X- PHP_CHECK_LIBRARY(ocijdbc8, OCILobIsTemporary, X- [ X- PHP_ADD_LIBRARY(ocijdbc8, 1, OCI8_SHARED_LIBADD) X- AC_DEFINE(HAVE_OCI8_TEMP_LOB,1,[ ]) X- ], [], [ X- -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD X- ]) X- ], [ X- -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD X- ]) X- X- dnl X- dnl Check if we have collections X- dnl X- PHP_CHECK_LIBRARY(clntsh, OCICollAssign, X- [ X- AC_DEFINE(PHP_OCI8_HAVE_COLLECTIONS,1,[ ]) X- ], [], [ X- -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD X- ]) X- X- X- PHP_NEW_EXTENSION(oci8, oci8.c, $ext_shared) X- AC_DEFINE(HAVE_OCI8,1,[ ]) X- X- PHP_SUBST_OLD(OCI8_SHARED_LIBADD) X- PHP_SUBST_OLD(OCI8_DIR) X- PHP_SUBST_OLD(OCI8_VERSION) X+PHP_ARG_WITH(oci8-instant-client, for Oracle (OCI8) support using Oracle Instant Client, X+[ --with-oci8-instant-client[=DIR] X+ Include Oracle (OCI8) support using X+ Oracle Instant Client. DIR is the directory with the X+ Instant Client libraries. On Linux it will default to X+ /usr/lib/oracle//client/lib X+ Other platforms will need to have it explicitly specified.]) X X-elif test "$PHP_OCI8_INSTANT_CLIENT" != "no"; then X+if test "$PHP_OCI8_INSTANT_CLIENT" != "no"; then X X AC_MSG_CHECKING([Oracle Instant Client directory]) X if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then X@@ -221,7 +62,7 @@ X AC_MSG_CHECKING([Oracle Instant Client SDK header directory]) X X dnl Header directory for Instant Client SDK RPM install X- OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | sed -e 's!^/usr/lib/oracle/\(.*\)/client/lib[[/]]*$!/usr/include/oracle/\1/client!'` X+ OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | sed -e 's!lib/oracle/\(.*\)/client/lib[[/]]*$!include/oracle/\1/client!'` X X dnl Header directory for Instant Client SDK zip file install X OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include END-of-php5-oci8/files/patch-config.m4 exit --------------------------------------------------------------- From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 19:56: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 30C9116A4D4 for ; Fri, 6 May 2005 19:56:04 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3EA843D9F for ; Fri, 6 May 2005 19:56:03 +0000 (GMT) (envelope-from diparfitt@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so550378rng for ; Fri, 06 May 2005 12:56: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:mime-version:content-type:content-transfer-encoding:content-disposition; b=VbMn1Rwnls4w4YHJl7GgImw4RXPWOaCQJZrh5LAZ1wC4UqEnNGjqE3kTCt31kWE3LkJdwkHvkt9sof7XKoewmc6BAKLIUlCptNHZYU9hF9sK6fsEMWaSbV3jnXUq14ziRiQC8QrhUkopTzL92wHNppU6hWAuM+T4m3mQUKjeTHo= Received: by 10.38.74.31 with SMTP id w31mr189190rna; Fri, 06 May 2005 12:56:03 -0700 (PDT) Received: by 10.38.74.40 with HTTP; Fri, 6 May 2005 12:56:03 -0700 (PDT) Message-ID: <3c220db005050612561d05cefa@mail.gmail.com> Date: Fri, 6 May 2005 15:56:03 -0400 From: David Parfitt 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 Subject: FS impl. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David Parfitt List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2005 19:56:04 -0000 Hi - I have been trying to write my own UFS-like filesystem implementation for fun. I had read somewhere that UFS was developed in user space (correct me if I'm wrong on that one) and then moved over to kernel-space. I was wondering if there are any existing facilities in the kernel source tree that would allow me to develop an fs in user space easily or with a little tweaking? As of right now, I have to develop, compile, panic, reboot, debug etc. which is frustrating and time consuming. Thanks - David Parfitt From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 20:01:57 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 964BB16A4D4 for ; Fri, 6 May 2005 20:01:57 +0000 (GMT) Received: from mx1.netapp.com (mx1.netapp.com [216.240.18.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75A9C43D88 for ; Fri, 6 May 2005 20:01:57 +0000 (GMT) (envelope-from kmacy@netapp.com) Received: from frejya.corp.netapp.com (10.57.157.119) by mx1.netapp.com with ESMTP; 06 May 2005 13:01:58 -0700 X-IronPort-AV: i="3.92,162,1112598000"; d="scan'208"; a="168978757:sNHT16593600" Received: from barleywine-fe.eng.netapp.com (barleywine-fe.eng.netapp.com [10.56.10.124])j46K1v2D007967; Fri, 6 May 2005 13:01:57 -0700 (PDT) Date: Fri, 6 May 2005 13:01:56 -0700 (PDT) From: Kip Macy X-X-Sender: kmacy@barleywine.eng.netapp.com To: David Parfitt In-Reply-To: <3c220db005050612561d05cefa@mail.gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: FS impl. 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, 06 May 2005 20:01:57 -0000 On Fri, 6 May 2005, David Parfitt wrote: > Hi - > I have been trying to write my own UFS-like filesystem > implementation for fun. I had read somewhere that UFS was developed in > user space (correct me if I'm wrong on that one) and then moved over > to kernel-space. I was wondering if there are any existing facilities > in the kernel source tree that would allow me to develop an fs in user > space easily or with a little tweaking? As of right now, I have to > develop, compile, panic, reboot, debug etc. which is frustrating and > time consuming. I can't speak for user-space utilities, but using xen as a development environment would dramatically shorten the panic and reboot cycle. In addition, you don't require a 2nd machine to debug with GDB. Just a thought. If booting Linux makes you itch, NetBSD support for acting as the control plane is supposed to be stable. -Kip From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 20:03:45 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 8000316A4D4 for ; Fri, 6 May 2005 20:03:45 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DEC443D9C for ; Fri, 6 May 2005 20:03:45 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j46K1Zvv010145; Fri, 6 May 2005 14:01:35 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 06 May 2005 14:01:35 -0600 (MDT) Message-Id: <20050506.140135.85403237.imp@bsdimp.com> To: diparfitt@gmail.com From: Warner Losh In-Reply-To: <3c220db005050612561d05cefa@mail.gmail.com> References: <3c220db005050612561d05cefa@mail.gmail.com> 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: FS impl. 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, 06 May 2005 20:03:45 -0000 > I have been trying to write my own UFS-like filesystem > implementation for fun. I had read somewhere that UFS was developed in > user space (correct me if I'm wrong on that one) and then moved over > to kernel-space. I was wondering if there are any existing facilities > in the kernel source tree that would allow me to develop an fs in user > space easily or with a little tweaking? As of right now, I have to > develop, compile, panic, reboot, debug etc. which is frustrating and > time consuming. Maybe you are thinking of NFS :-). You can use the same hooks that amd and similar programs to implement your code in userland. Warner From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 20:35: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 0EE6C16A4D4 for ; Fri, 6 May 2005 20:35:32 +0000 (GMT) Received: from gate.bitblocks.com (bitblocks.com [209.204.185.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4B5443D97 for ; Fri, 6 May 2005 20:35:31 +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 j46KZVu0041406; Fri, 6 May 2005 13:35:31 -0700 (PDT) (envelope-from bakul@bitblocks.com) Message-Id: <200505062035.j46KZVu0041406@gate.bitblocks.com> To: David Parfitt In-reply-to: Your message of "Fri, 06 May 2005 15:56:03 EDT." <3c220db005050612561d05cefa@mail.gmail.com> Date: Fri, 06 May 2005 13:35:31 -0700 From: Bakul Shah cc: freebsd-hackers@freebsd.org Subject: Re: FS impl. 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, 06 May 2005 20:35:32 -0000 > I have been trying to write my own UFS-like filesystem > implementation for fun. I had read somewhere that UFS was developed in > user space (correct me if I'm wrong on that one) and then moved over > to kernel-space. I was wondering if there are any existing facilities > in the kernel source tree that would allow me to develop an fs in user > space easily or with a little tweaking? As of right now, I have to > develop, compile, panic, reboot, debug etc. which is frustrating and > time consuming. A stub FS that directs all vfs calls to userland would be a handy thing.... Similarly a stub disk -- one should be able to debug support for Petabyte size disk without having to buy one. As for shortening the compile/debug/panic/reboot cycle, you can use qemu. Once a guest os is installed on a disk-image, you can do this: # qemu -s disk-image # cd /usr/obj/usr/src/sys/ # gdb kernel.debug (gdb) target remote localhost:1234 That is it! No need to set up serial console or anything. I haven't tried this but I guess this should work: If you make the FS module a kernel module, and use qemu's snapshot feature, after a crash you can reload from your image right before FS module loading and go from there. Now with a kernel module `kqemu', qemu runs approx twice as slow as real h/w for usercode (as opposed to about 25 times slower without kqemu). From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 20:38: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 592D716A4D4 for ; Fri, 6 May 2005 20:38:04 +0000 (GMT) Received: from meketrex.pix.net (meketrex.pix.net [192.111.45.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59A9343D8B for ; Fri, 6 May 2005 20:38:03 +0000 (GMT) (envelope-from lidl@meketrex.pix.net) Received: (from lidl@localhost) by meketrex.pix.net (8.11.6/8.11.6) id j46KbU218057; Fri, 6 May 2005 16:37:30 -0400 (EDT) Date: Fri, 6 May 2005 16:37:30 -0400 From: "Kurt J. Lidl" To: Warner Losh Message-ID: <20050506203730.GB17588@pix.net> Mail-Followup-To: Warner Losh , freebsd-hackers@freebsd.org References: <3c220db005050612561d05cefa@mail.gmail.com> <20050506.140135.85403237.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050506.140135.85403237.imp@bsdimp.com> User-Agent: Mutt/1.5.9i cc: freebsd-hackers@freebsd.org Subject: Re: FS impl. 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, 06 May 2005 20:38:04 -0000 On Fri, May 06, 2005 at 02:01:35PM -0600, Warner Losh wrote: > > I have been trying to write my own UFS-like filesystem > > implementation for fun. I had read somewhere that UFS was developed in > > user space (correct me if I'm wrong on that one) and then moved over > > to kernel-space. I was wondering if there are any existing facilities > > in the kernel source tree that would allow me to develop an fs in user > > space easily or with a little tweaking? As of right now, I have to > > develop, compile, panic, reboot, debug etc. which is frustrating and > > time consuming. > > Maybe you are thinking of NFS :-). You can use the same hooks that > amd and similar programs to implement your code in userland. It's pretty well known that Kirk did the 4.2 FFS implementation as a user-mode process. This statement is made directly in Luke Mewburn's paper on cross-building NetBSD: http://www.usenix.org/events/bsdcon03/tech/full_papers/mewburn/mewburn.pdf (page 9). It doesn't say in the original 4.2 FFS paper. -Kurt From owner-freebsd-hackers@FreeBSD.ORG Sat May 7 03:42: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 DADB816A4D8 for ; Sat, 7 May 2005 03:42:35 +0000 (GMT) Received: from duchess.speedfactory.net (duchess.speedfactory.net [66.23.201.84]) by mx1.FreeBSD.org (Postfix) with SMTP id 160BB43D6B for ; Sat, 7 May 2005 03:42:35 +0000 (GMT) (envelope-from ups@tree.com) Received: (qmail 8493 invoked by uid 89); 6 May 2005 23:19:40 -0000 Received: from duchess.speedfactory.net (66.23.201.84) by duchess.speedfactory.net with SMTP; 6 May 2005 23:19:40 -0000 Received: (qmail 5031 invoked by uid 89); 6 May 2005 21:59:39 -0000 Received: from unknown (HELO palm.tree.com) (66.23.216.49) by duchess.speedfactory.net with SMTP; 6 May 2005 21:59:39 -0000 Received: from [127.0.0.1] (localhost.tree.com [127.0.0.1]) by palm.tree.com (8.12.10/8.12.10) with ESMTP id j46LxHw6027107; Fri, 6 May 2005 17:59:17 -0400 (EDT) (envelope-from ups@tree.com) From: Stephan Uphoff To: Kip Macy In-Reply-To: References: Content-Type: text/plain Message-Id: <1115416757.96600.9391.camel@palm> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 06 May 2005 17:59:17 -0400 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: David Parfitt Subject: Re: FS impl. 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, 07 May 2005 03:42:36 -0000 On Fri, 2005-05-06 at 16:01, Kip Macy wrote: > On Fri, 6 May 2005, David Parfitt wrote: > > > Hi - > > I have been trying to write my own UFS-like filesystem > > implementation for fun. I had read somewhere that UFS was developed in > > user space (correct me if I'm wrong on that one) and then moved over > > to kernel-space. I was wondering if there are any existing facilities > > in the kernel source tree that would allow me to develop an fs in user > > space easily or with a little tweaking? As of right now, I have to > > develop, compile, panic, reboot, debug etc. which is frustrating and > > time consuming. > > > I can't speak for user-space utilities, but using xen as a development > environment would dramatically shorten the panic and reboot cycle. In addition, > you don't require a 2nd machine to debug with GDB. Just a thought. If booting > Linux makes you itch, NetBSD support for acting as the control plane is supposed > to be stable. I agree. I used this approach with vmware a while ago and was more than happy. >From what I see xen reboots are even faster (I only tried Xen with NetBSD and linux so far). Hopefully Kip's work will make it into current before I need a setup like this for FreeBSD. An alternative would be a fast booting second machine with PXE (network) booting. (real server hardware takes forever to boot - use consumer boxes without ECC memory,SCSI, memory test,...) Things have changed a bit since UFS was developed making development in user space more difficult due to extra functionality that would need to be ported/emulated to/in user space. There is also no pressure to do this since development in kernel space is so much easier these days. This being said I highly recommend writing user space test applications that integrate modules/functions from your FS whenever possible. Stephan From owner-freebsd-hackers@FreeBSD.ORG Sat May 7 12:01: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 6832B16A4D9 for ; Sat, 7 May 2005 12:01:20 +0000 (GMT) Received: from mail.oltrelinux.com (krisma.oltrelinux.com [194.242.226.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7DF543D9F for ; Sat, 7 May 2005 12:01:19 +0000 (GMT) (envelope-from flag@oltrelinux.com) Received: from localhost (krisma [127.0.0.1]) by mail.oltrelinux.com (Postfix) with ESMTP id 2F4A211AE55 for ; Sat, 7 May 2005 14:01:20 +0200 (CEST) Received: from southcross.homeunix.org (host171-238.pool8256.interbusiness.it [82.56.238.171]) by mail.oltrelinux.com (Postfix) with ESMTP id C20FB11AE54 for ; Sat, 7 May 2005 14:01:17 +0200 (CEST) Received: by southcross.homeunix.org (Postfix, from userid 1001) id 53A632298; Sat, 7 May 2005 14:15:18 +0200 (CEST) Date: Sat, 7 May 2005 14:15:18 +0200 From: Paolo Pisati To: FreeBSD_Hackers Message-ID: <20050507121517.GA1463@tin.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at krisma.oltrelinux.com Subject: Spin down hard disk: any suggestions? 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, 07 May 2005 12:01:20 -0000 As the subject says i'm trying to spin down/turn off/ put in energy safe/etcetc automatically my usb disk. I'm running 5.x and the only way to reliably calm down my disk was to umount it. The 'trick' was to use automount and periodically check & umount it, but i thought there should be better ways to handle it (or at least i hope so :). (from: "Fun With Automounting on FreeBSD" - http://www.daemonnews.org/200202/automounting.html) Any other ideas/suggestions? How do you do it? Any help from the recent ATA/SCSI/CAM/etcetc driver? It's quite annoying when your brand new USB disk starts getting hotter and hotter cause the bloody usb case is too little and there's no air circulation/fan at all... Thanks. -- Paolo From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 15:21:25 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 4F8F616A4D3; Fri, 6 May 2005 15:21:25 +0000 (GMT) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9C1B43D7D; Fri, 6 May 2005 15:21:23 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])j46FJc6V013822; Fri, 6 May 2005 18:19:40 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) j46FL3mS046858; Fri, 6 May 2005 18:21:03 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost)j46FKtNq046857; Fri, 6 May 2005 18:20:55 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 6 May 2005 18:20:55 +0300 From: Giorgos Keramidas To: "Daniel O'Connor" Message-ID: <20050506152055.GB92197@orion.daedalusnetworks.priv> References: <427743ED.6020200@FreeBSD.org> <4277BF4D.3060507@elischer.org> <427B4B7E.5070801@FreeBSD.org> <200505062220.43840.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505062220.43840.doconnor@gsoft.com.au> X-Mailman-Approved-At: Sat, 07 May 2005 12:13:02 +0000 cc: freebsd-hackers@freebsd.org cc: Denis Peplin cc: Julian Elischer Subject: Re: mergemaster improvement (auto-update for not modified files) 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, 06 May 2005 15:21:25 -0000 Date: Fri, 6 May 2005 22:20:43 +0930 From: Daniel O'Connor Subject: Re: mergemaster improvement (auto-update for not modified files) To: freebsd-hackers@freebsd.org Cc: hackers@freebsd.org Cc: Denis Peplin Cc: Julian Elischer Guys, please, do not cross post to hackers@ *and* freebsd-hackers@ :-) From owner-freebsd-hackers@FreeBSD.ORG Sat May 7 12:14:01 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 4B5E016A4DA for ; Sat, 7 May 2005 12:14:01 +0000 (GMT) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B20643D6D for ; Sat, 7 May 2005 12:14:00 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.22] (andersonbox2.centtech.com [192.168.42.22]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id j47CDxDp033233; Sat, 7 May 2005 07:13:59 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <427CB103.807@centtech.com> Date: Sat, 07 May 2005 07:13:55 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050504 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Paolo Pisati References: <20050507121517.GA1463@tin.it> In-Reply-To: <20050507121517.GA1463@tin.it> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD_Hackers Subject: Re: Spin down hard disk: any suggestions? 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, 07 May 2005 12:14:01 -0000 Paolo Pisati wrote: > As the subject says i'm trying to spin down/turn off/ > put in energy safe/etcetc automatically > my usb disk. > > I'm running 5.x and the only way to reliably calm down > my disk was to umount it. > > The 'trick' was to use automount and periodically > check & umount it, but i thought there should be better > ways to handle it (or at least i hope so :). > (from: "Fun With Automounting on FreeBSD" - > http://www.daemonnews.org/200202/automounting.html) > > Any other ideas/suggestions? > How do you do it? > Any help from the recent ATA/SCSI/CAM/etcetc driver? > > It's quite annoying when your brand new USB disk starts getting > hotter and hotter cause the bloody usb case is too little and > there's no air circulation/fan at all... I know ataidle works well for ATA disks, but not sure about scsi-types like USB (I would bet it won't work out-of-the-box, but you might be able to modify it?). 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 Sat May 7 12:57:14 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 CEB4A16A4DA for ; Sat, 7 May 2005 12:57:14 +0000 (GMT) Received: from smtp2.dnainternet.net (smtp2.dnainternet.net [62.240.72.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id F126A43D96 for ; Sat, 7 May 2005 12:57:13 +0000 (GMT) (envelope-from erik.u@dnainternet.net) Received: from b-184-46.dsl.kpy.customers.dnainternet.fi ([212.149.184.46]:50736smtp2.dnainternet.net with ESMTP id S1228767AbVEGM5M (ORCPT ); Sat, 7 May 2005 15:57:12 +0300 Message-ID: <427CBB27.4000201@dnainternet.net> Date: Sat, 07 May 2005 15:57:11 +0300 From: Erik Udo User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050430) 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: Trouble with 5.4 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 May 2005 12:57:14 -0000 I've had this problem with the latest releng_5_4 and releng_5. They boot fine, but after kernel has loaded, it panics at the same moment i press any keyboard button. My memory and keyboard has been working fine and i dont they they are the cause. So if i boot to single user mode, keyboard wont work. If i boot normally, it starts all services etc.. at this point, before X is started(i have it in my ttys file) it panics if i press any button. After X has started, it wont panic. I've cvsupped couple of times from cvsup5.freebsd.org to make sure i didn't cvsup at a bad time. Then i proceeded to make buildworld, make buildkernel and make installkernel. Then i've booted. This happens on GENERIC kernel aswell my own. My current working system is: FreeBSD koti 5.3-STABLE FreeBSD 5.3-STABLE #3: Wed Jan 26 15:09:46 EET 2005 erik@koti:/usr/obj/usr/src/sys/bsdkernel i386 This kernel panic is reproducible. I have the memory dump and kernel.debug which i've tried to debug. Here is some output: Here is /etc/make.conf, i've tried with/without kernconf, cputype, and O2 optimization. KERNCONF=bsdkernel CPUTYPE?=athlon-xp CFLAGS+=-O -pipe CXXFLAGS+=-O -pipe COPTFLAGS+=-O -pipe INET6=no The panic: Fatal trap 12: page fault while in kernel mode fault virtual address = 0xae fault code = supervisor read, page not present instruction pointer = 0x8:0xae stack pointer = 0x10:0xd3f89ca4 frame pointer = 0x10:0xd3f89cc0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 12 (irq1: atkbd0) trap number = 12 panic: page fault Uptime: 5s Dumping 511 MB Here is my attempt to debug it: koti# kgdb kernel.debug vmcore.0 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". #0 doadump () at pcpu.h:159 159 pcpu.h: No such file or directory. in pcpu.h (kgdb) backtrace #0 doadump () at pcpu.h:159 #1 0xc04f4876 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:410 #2 0xc04f4b0c in panic (fmt=0xc0652f6a "%s") at /usr/src/sys/kern/kern_shutdown.c:566 #3 0xc062f5ac in trap_fatal (frame=0xd3f89c64, eva=174) at /usr/src/sys/i386/i386/trap.c:817 #4 0xc062f317 in trap_pfault (frame=0xd3f89c64, usermode=0, eva=174) at /usr/src/sys/i386/i386/trap.c:735 #5 0xc062ef59 in trap (frame= {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = 107, tf_esi = -1066574816, tf_ebp = -738681664, tf_isp = -738681712, tf_ebx = -1049888768, tf_edx = -1068366976, tf_ecx = -1066759068, tf_eax = 107, tf_trapno = 12, tf_err = 0, tf_eip = 174, tf_cs = 8, tf_eflags = 66050, tf_esp = -1067367967, tf_ss = 107}) at /usr/src/sys/i386/i386/trap.c:425 #6 0xc061f12a in calltrap () at /usr/src/sys/i386/i386/exception.s:140 #7 0x00000018 in ?? () #8 0x00000010 in ?? () #9 0x00000010 in ?? () #10 0x0000006b in ?? () #11 0xc06d5c20 in sc_devclass () #12 0xd3f89cc0 in ?? () #13 0xd3f89c90 in ?? () #14 0xc16bf800 in ?? () f_ebp = -738681664, tf_isp = -738681712, tf_ebx = -1049888768, tf_edx = -1068366976, tf_ecx = -1066759068, tf_eax = 107, tf_trapno = 12, tf_err = 0, tf_eip = 174, tf_cs = 8, tf_eflags = 66050, tf_esp = -1067367967, tf_ss = 107}) at /usr/src/sys/i386/i386/trap.c:425 #6 0xc061f12a in calltrap () at /usr/src/sys/i386/i386/exception.s:140 #7 0x00000018 in ?? () #8 0x00000010 in ?? () #9 0x00000010 in ?? () #10 0x0000006b in ?? () #11 0xc06d5c20 in sc_devclass () #12 0xd3f89cc0 in ?? () #13 0xd3f89c90 in ?? () #14 0xc16bf800 in ?? () #15 0xc0520380 in ttylclose () at /usr/src/sys/kern/tty.c:1567 #16 0xc0607a50 in atkbd_intr (kbd=0xc06d5c20, arg=0x0) at /usr/src/sys/dev/kbd/atkbd.c:461 #17 0xc06366b6 in atkbd_isa_intr (arg=0x0) at /usr/src/sys/isa/atkbd_isa.c:177 #18 0xc04e1189 in ithread_loop (arg=0xc1578c80) at /usr/src/sys/kern/kern_intr.c:547 #19 0xc04e041c in fork_exit (callout=0xc04e1038 , arg=0xc1578c80, frame=0xd3f89d48) at /usr/src/sys/kern/kern_fork.c:791 #20 0xc061f18c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:209 What should i do now? Cheers, Erik. From owner-freebsd-hackers@FreeBSD.ORG Sat May 7 13:11: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 7212916A4DA for ; Sat, 7 May 2005 13:11:24 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D5A843D72 for ; Sat, 7 May 2005 13:11:24 +0000 (GMT) (envelope-from diparfitt@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so614413rng for ; Sat, 07 May 2005 06:11:23 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hBZY0h3o/bej99tTnCo5pYp8N/O+Sm3BgpSiEEaApwO6wsSX6smjw/9lO4Sm7Z4Esdpg51b20HWnQ9NxBrpOeZIsso9ld4Bc2yJ5iDBdSF4sHlT0QOOq5YdRqy0ah5hzTXVp6IAsSTISpYhCN8ZiDSAPRbGIynF2CDH2+LynJ7Y= Received: by 10.38.12.30 with SMTP id 30mr588390rnl; Sat, 07 May 2005 06:11:23 -0700 (PDT) Received: by 10.38.74.40 with HTTP; Sat, 7 May 2005 06:11:23 -0700 (PDT) Message-ID: <3c220db00505070611753c7843@mail.gmail.com> Date: Sat, 7 May 2005 08:11:23 -0500 From: David Parfitt To: freebsd-hackers@freebsd.org In-Reply-To: <1115416757.96600.9391.camel@palm> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1115416757.96600.9391.camel@palm> Subject: Re: FS impl. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David Parfitt List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 May 2005 13:11:24 -0000 Hi - Thank you all for the suggestions - I have a long weekend of hacking ahead of me :-) Thanks again - David On 5/6/05, Stephan Uphoff wrote: > On Fri, 2005-05-06 at 16:01, Kip Macy wrote: > > On Fri, 6 May 2005, David Parfitt wrote: > > > > > Hi - > > > I have been trying to write my own UFS-like filesystem > > > implementation for fun. I had read somewhere that UFS was developed i= n > > > user space (correct me if I'm wrong on that one) and then moved over > > > to kernel-space. I was wondering if there are any existing facilities > > > in the kernel source tree that would allow me to develop an fs in use= r > > > space easily or with a little tweaking? As of right now, I have to > > > develop, compile, panic, reboot, debug etc. which is frustrating and > > > time consuming. > > > > > > I can't speak for user-space utilities, but using xen as a development > > environment would dramatically shorten the panic and reboot cycle. In a= ddition, > > you don't require a 2nd machine to debug with GDB. Just a thought. If b= ooting > > Linux makes you itch, NetBSD support for acting as the control plane is= supposed > > to be stable. >=20 > I agree. >=20 > I used this approach with vmware a while ago and was more than happy. > >From what I see xen reboots are even faster (I only tried Xen with > NetBSD and linux so far). Hopefully Kip's work will make it into current > before I need a setup like this for FreeBSD. >=20 > An alternative would be a fast booting second machine with PXE (network) > booting. (real server hardware takes forever to boot - use consumer > boxes without ECC memory,SCSI, memory test,...) >=20 > Things have changed a bit since UFS was developed making development in > user space more difficult due to extra functionality that would need to > be ported/emulated to/in user space. > There is also no pressure to do this since development in kernel space > is so much easier these days. >=20 > This being said I highly recommend writing user space test applications > that integrate modules/functions from your FS whenever possible. >=20 > Stephan >=20 > From owner-freebsd-hackers@FreeBSD.ORG Sat May 7 13:43: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 8640E16A4DB for ; Sat, 7 May 2005 13:43:54 +0000 (GMT) Received: from smtp-vbr3.xs4all.nl (smtp-vbr3.xs4all.nl [194.109.24.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC6EC43D82 for ; Sat, 7 May 2005 13:43:53 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtp-vbr3.xs4all.nl (8.12.11/8.12.11) with ESMTP id j47Dhqt5055826 for ; Sat, 7 May 2005 15:43:52 +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 j47DhqCO015955 for ; Sat, 7 May 2005 15:43:52 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.3/8.13.1/Submit) id j47DhqHL015954 for freebsd-hackers@freebsd.org; Sat, 7 May 2005 15:43:52 +0200 (CEST) (envelope-from wb) Date: Sat, 7 May 2005 15:43:52 +0200 From: Wilko Bulte To: freebsd-hackers@freebsd.org Message-ID: <20050507134352.GA15939@freebie.xs4all.nl> References: <427CBB27.4000201@dnainternet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427CBB27.4000201@dnainternet.net> X-OS: FreeBSD 5.4-STABLE User-Agent: Mutt/1.5.9i X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: Trouble with 5.4 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, 07 May 2005 13:43:54 -0000 On Sat, May 07, 2005 at 03:57:11PM +0300, Erik Udo wrote.. > I've had this problem with the latest releng_5_4 and releng_5. > They boot fine, but after kernel has loaded, it panics at the same > moment i press any keyboard button. My memory and keyboard has been > working fine and i dont they they are the cause. Known issue, this is seen as a showstopper and is the reason that 5.4-RELEASE builds have not been started yet. W/ -- Wilko Bulte wilko@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Sat May 7 13:53: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 C4CAB16A4DB for ; Sat, 7 May 2005 13:53:47 +0000 (GMT) Received: from smtp3-2-sn3.vrr.skanova.net (smtp3-2-sn3.vrr.skanova.net [81.228.9.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F26143D68 for ; Sat, 7 May 2005 13:53:47 +0000 (GMT) (envelope-from joel@automatvapen.se) Received: from t11o55p16.telia.com (t11o55p16.telia.com [81.225.222.16]) by smtp3-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 0DAB43838C for ; Sat, 7 May 2005 15:53:44 +0200 (CEST) From: Joel Dahl To: freebsd-hackers@freebsd.org In-Reply-To: <427CBB27.4000201@dnainternet.net> References: <427CBB27.4000201@dnainternet.net> Content-Type: text/plain Date: Sat, 07 May 2005 15:49:05 +0200 Message-Id: <1115473745.971.6.camel@dude.automatvapen.se> Mime-Version: 1.0 X-Mailer: Evolution 2.2.0 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: Re: Trouble with 5.4 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, 07 May 2005 13:53:47 -0000 On Sat, 2005-05-07 at 15:57 +0300, Erik Udo wrote: > I've had this problem with the latest releng_5_4 and releng_5. > They boot fine, but after kernel has loaded, it panics at the same > moment i press any keyboard button. My memory and keyboard has been > working fine and i dont they they are the cause. > > So if i boot to single user mode, keyboard wont work. > If i boot normally, it starts all services etc.. > at this point, before X is started(i have it in my ttys file) > it panics if i press any button. After X has started, it wont > panic. Check the stable@ archives. This panic has been reported several times during the last few days. :-) The commit that actually broke things should be: dwhite 2005-05-05 03:48:08 UTC 1.228.2.4 +12 -2 src/sys/kern/tty.c -- Joel From owner-freebsd-hackers@FreeBSD.ORG Sat May 7 14:35: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 46C6916A4DB for ; Sat, 7 May 2005 14:35:02 +0000 (GMT) Received: from mailout08.sul.t-online.com (mailout08.sul.t-online.com [194.25.134.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id B609B43D7F for ; Sat, 7 May 2005 14:35:01 +0000 (GMT) (envelope-from mike@reifenberger.com) Received: from fwd24.aul.t-online.de by mailout08.sul.t-online.com with smtp id 1DUQOR-0003rv-05; Sat, 07 May 2005 16:34:59 +0200 Received: from fw.reifenberger.com (ZkN3-OZege-Gbrzjt19VkZhaXkA1HlAq0Gv70Yi55guBGYS9S2A7Y9@[217.232.233.141]) by fwd24.sul.t-online.de with esmtp id 1DUQOL-0bqhNI0; Sat, 7 May 2005 16:34:53 +0200 Received: from localhost (mike@localhost)j47EYQBs085991; Sat, 7 May 2005 16:34:28 +0200 (CEST) (envelope-from mike@reifenberger.com) X-Authentication-Warning: fw.reifenberger.com: mike owned process doing -bs Date: Sat, 7 May 2005 16:34:26 +0200 (CEST) From: Michael Reifenberger To: Paolo Pisati In-Reply-To: <20050507121517.GA1463@tin.it> Message-ID: <20050507163206.J85970@fw.reifenberger.com> References: <20050507121517.GA1463@tin.it> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-ID: ZkN3-OZege-Gbrzjt19VkZhaXkA1HlAq0Gv70Yi55guBGYS9S2A7Y9@t-dialin.net X-TOI-MSGID: e2293c72-49c5-4feb-add9-edbab4e3d51c cc: FreeBSD_Hackers Subject: Re: Spin down hard disk: any suggestions? 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, 07 May 2005 14:35:02 -0000 On Sat, 7 May 2005, Paolo Pisati wrote: ... > As the subject says i'm trying to spin down/turn off/ > put in energy safe/etcetc automatically > my usb disk. Have a look on sysutils/gstopd Bye/2 --- Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com http://www.plaut.de | http://www.Reifenberger.com From owner-freebsd-hackers@FreeBSD.ORG Sat May 7 19:05: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 0CDC016A4DC for ; Sat, 7 May 2005 19:05:21 +0000 (GMT) Received: from core.staszic.eu.org (dialup03.1lo.lublin.pl [212.182.71.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0622743DBD for ; Sat, 7 May 2005 19:05:18 +0000 (GMT) (envelope-from marek@staszic.eu.org) Received: by core.staszic.eu.org (Postfix, from userid 1001) id 8A18E3E8A53; Sat, 7 May 2005 21:10:20 +0000 (UTC) Date: Sat, 7 May 2005 21:10:20 +0000 From: Marek Denis To: hackers@freebsd.org Message-ID: <20050507211020.GB32283@core.staszic.eu.org> References: <42628196.4070608@comcast.net> <42628E25.8010008@gmail.com> <20050418085137.U49866@eleanor.us1.wmi.uvac.net> <20050418151520.37329f12.albi@scii.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050418151520.37329f12.albi@scii.nl> User-Agent: Mutt/1.4.2.1i Subject: Re: Making multiple jails 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, 07 May 2005 19:05:21 -0000 On Mon, Apr 18, 2005 at 03:15:20PM +0200, albi@scii.nl wrote: > another option is to use cpdup to duplicate a fresh jail > > also quite interesting imho is this : > > http://www.the-labs.com/FreeBSD/JailTools/fbsd_jails.html > > this webmin-module offers "light-jails", read-only /usr mount, and > also jails installed in a single file > > if you have that file you can easily reproduce new jails with a simple > cp-command > wouldn't nullfs be better? it needs less disk space, and is more useful while upgrading soft...