From owner-freebsd-hackers Sun Mar 24 6:30:10 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.bsdhome.com (rdu25-2-113.nc.rr.com [24.25.2.113]) by hub.freebsd.org (Postfix) with ESMTP id 4CFBC37B420 for ; Sun, 24 Mar 2002 06:29:42 -0800 (PST) Received: from neutrino.bsdhome.com (jupiter [192.168.220.13]) by smtp.bsdhome.com (8.11.3nb1/8.11.4) with ESMTP id g2OETed04721 for ; Sun, 24 Mar 2002 09:29:41 -0500 (EST) Received: (from bsd@localhost) by neutrino.bsdhome.com (8.11.6/8.11.6) id g2OETZQ03440; Sun, 24 Mar 2002 09:29:35 -0500 (EST) (envelope-from bsd) Date: Sun, 24 Mar 2002 09:29:35 -0500 From: Brian Dean To: freebsd-hackers@freebsd.org Subject: odd ethernet frame Message-ID: <20020324092935.A464@neutrino.bsdhome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is probably not the best place to ask this, but I'm stumped. I've been seeing this ethernet frame via tcpdump: 04:11:13.433484 0:0:1:1:e3:69 45:0:0:24:15:c5 c0a8 36: 0x0000 2001 e000 0001 0900 8e4a 0102 0708 c0a8 .........J...... 0x0010 2001 8000 0001 ...... 04:18:50.926606 0:0:1:1:e2:f5 45:0:0:24:16:39 c0a8 36: 0x0000 2001 e000 0001 0900 8e4a 0102 0708 c0a8 .........J...... 0x0010 2001 8000 0001 ...... 04:27:33.502214 0:0:1:1:e2:23 45:0:0:24:17:b c0a8 36: 0x0000 2001 e000 0001 0900 8e4a 0102 0708 c0a8 .........J...... 0x0010 2001 8000 0001 ...... I can't find any reference to the frame type (c0a8), the link level addresses seem bogus and change with every occurance (both the source and the destination), and the packet arrives about every 9 minutes or so. This is on an interface (fxp1) that has a wireless access point attached, though I unplugged the access point and it the packet still shows up under tcpdump (even when the interface show "no carrier"!), so its not that. The system has another interface (fxp0) that connects it to the rest of my LAN and is set to forward between the interfaces. However, if I run a tcpdump on that interface, the mysterious packet never shows up there. I'm at a loss to find an explanation. Any ideas? Thanks, -Brian -- Brian Dean bsd@FreeBSD.org bsd@bsdhome.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Mar 24 9:28:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by hub.freebsd.org (Postfix) with ESMTP id D7A1D37B417; Sun, 24 Mar 2002 09:28:03 -0800 (PST) Received: from fwd02.sul.t-online.de by mailout03.sul.t-online.com with smtp id 16pBmh-0005uc-0U; Sun, 24 Mar 2002 18:27:59 +0100 Received: from there (320071886283-0001@[217.235.119.156]) by fmrl02.sul.t-online.com with smtp id 16pBme-0Kgn9UC; Sun, 24 Mar 2002 18:27:56 +0100 Content-Type: text/plain; charset="iso-8859-15" From: Thomas =?iso-8859-15?q?W=FCrfl?= To: freebsd-questions@freebsd.org Subject: Re: usb mass storage problems Date: Sun, 24 Mar 2002 18:29:00 +0100 X-Mailer: KMail [version 1.3.2] References: <16pAVo-1klfP6C@fmrl06.sul.t-online.com> In-Reply-To: <16pAVo-1klfP6C@fmrl06.sul.t-online.com> Cc: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: <16pBme-0Kgn9UC@fmrl02.sul.t-online.com> X-Sender: 320071886283-0001@t-dialin.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > umass0: Fujitsu Memorybird, rev 1.00/1.00, addr 2 > > da0 at umass-sim0 bus 0 target 0 lun 0 > > da0: Removable Direct Access SCSI-0 device > > da0: 650KB/s transfers > > da0: 15MB (32000 512 byte sectors: 64H 32S/T 15C)> try to mount: > > > > try to mount: > > snorry# mount -t msdos /dev/da0s1 /disk2 > > (da0:umass-sim0:0:0:0): READ(06). CDB: 8 0 0 0 1 0 > > (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:20,0 > > (da0:umass-sim0:0:0:0): Invalid command operation code > > da0: reading primary partition table: error reading fsbn 0 > > msdos: /dev/da0s1: Input/output error > > Mar 23 04:24:54 snorry /kernel: (da0:umass-sim0:0:0:0): READ(06). CDB: 8 > > 0 0 0 1 0 > > Mar 23 04:24:54 snorry /kernel: (da0:umass-sim0:0:0:0): ILLEGAL REQUEST > > asc:20,0 > > Mar 23 04:24:54 snorry /kernel: (da0:umass-sim0:0:0:0): Invalid command > > operation code > > Mar 23 04:24:54 snorry /kernel: da0: reading primary partition table: > > error reading fsbn 0 > > snorry# > > i have found something very similar at: > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34205 > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message I fixed the problem. I added following lines to /usr/src/sys/cam/scsi/scsi_da.c (FreeBSD-4.5RELEASE): /* Below a list of quirks for USB devices supported by umass. */ /* + * Fujitsu Siemens Memorybird + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "Fujitsu", "Memorybird", "*"}, + /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE + }, Maybe this is written in an unusual manner, but I'm an absolute newbie to freebsd and C. Sorry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Mar 24 15:13:59 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web11401.mail.yahoo.com (web11401.mail.yahoo.com [216.136.131.231]) by hub.freebsd.org (Postfix) with SMTP id 35C2E37B405 for ; Sun, 24 Mar 2002 15:13:56 -0800 (PST) Message-ID: <20020324231356.93877.qmail@web11401.mail.yahoo.com> Received: from [24.43.32.161] by web11401.mail.yahoo.com via HTTP; Sun, 24 Mar 2002 15:13:56 PST Date: Sun, 24 Mar 2002 15:13:56 -0800 (PST) From: Rayson Ho Subject: Thanks, and Distributed Folding Client for FreeBSD available!! To: hackers@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Thanks to the people on this list, the DistributedFolding client is available on FreeBSD. People with spare CPU cycles can install this (P2P seti@home like software) to help the world to fight/cure all kinds of diseases!! http://www.distributedfolding.org/Download.html Again, thanks for the great help. Rayson __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Mar 24 18:28:17 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from imr1.aus.deuba.com (bagheera.aus.deuba.com [203.0.62.7]) by hub.freebsd.org (Postfix) with ESMTP id 9E61A37B444 for ; Sun, 24 Mar 2002 18:28:11 -0800 (PST) Received: from imr1.aus.deuba.com by imr1.aus.deuba.com id g2P2S9HR021724; Mon, 25 Mar 2002 13:28:09 +1100 (EST) Received: from merton.aus.deuba.com by imr1.aus.deuba.com id g2P2S8n2021721; Mon, 25 Mar 2002 13:28:09 +1100 (EST) Received: (qmail 11750 invoked by uid 107); 25 Mar 2002 02:28:08 -0000 Message-ID: <20020325022808.11749.qmail@merton.aus.deuba.com> From: callum.gibson@db.com Subject: Re: Missing PT_READ_U To: hackers@FreeBSD.ORG Date: Mon, 25 Mar 2002 13:28:08 +1100 (EST) In-Reply-To: from "Bakul Shah" at Mar 01, 2002 11:22:47 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bakul Shah writes: }> As the culprit behind PT_READ_U's demise, I'm willing to dive in }> and help here if needed. }Thanks but Julian sent me a patch for 4.5 that seems to work }with no changes in ups. Would be nice if PT_READ_U is put }back in 4.x. As a followup to this old thread (and as the poster of the original question on the ups mailing list in late Feb) I note there has still been no change on the RELENG_4 branch to fix this. Could we have the patch posted here at least so other people can use ups again (with signals)? I'd just apply a reverse patch from kern/sys_process.c 1.51.2.2 to 1.51.2.1 except that I don't know if other files (apart from sys/ptrace.h) have been affected. Ta. C Callum Gibson callum.gibson@db.com Global Markets IT, Deutsche Bank, Australia 61 2 9258 1620 ### The opinions in this message are mine and not Deutsche's ### To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Mar 24 23:27:54 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 6B13D37B419 for ; Sun, 24 Mar 2002 23:27:49 -0800 (PST) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.2/8.12.2) with ESMTP id g2P7ReYm045444; Sun, 24 Mar 2002 23:27:40 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.2/8.12.2/Submit) id g2P7QObU045434; Sun, 24 Mar 2002 23:26:24 -0800 (PST) Date: Sun, 24 Mar 2002 23:26:23 -0800 From: "David O'Brien" To: Lucky Green Cc: freebsd-hackers@freebsd.org Subject: Re: D-Link device ste tx underrun Message-ID: <20020324232623.A45267@dragon.nuxi.com> Reply-To: obrien@freebsd.org References: <00b901c1d2b8$5d27f640$c33a080a@LUCKYVAIO> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <00b901c1d2b8$5d27f640$c33a080a@LUCKYVAIO>; from shamrock@cypherpunks.to on Sat, Mar 23, 2002 at 02:16:21PM -0800 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Mar 23, 2002 at 02:16:21PM -0800, Lucky Green wrote: > Hi there, > I just installed a new D-Link DFE-550TX NIC on my machine running > FreeBSD 4.5-RELEASE-p2. I am seeing the following errors in the log > file: > > Mar 23 15:01:05 pakastelohi /kernel: ste0: transmission error: 90 > Mar 23 15:01:05 pakastelohi /kernel: ste0: tx underrun, increasing tx > start threshold to 60 bytes > Mar 23 18:40:17 pakastelohi /kernel: ste0: transmission error: 90 > Mar 23 18:40:17 pakastelohi /kernel: ste0: tx underrun, increasing tx > start threshold to 120 bytes > > A Google search showed that at least one other person has reported what > looks like the same problem, but I have been unable to locate a cause or > fix. Suggestions are appreciated. Why do you think this is a problem vs. just a diagnostic? This not unusual. This really should be in the FAQ. > http://groups.google.com/groups?q=freebsd+ste+%22tx+underrun%22&hl=en&se > lm=3BCAF3D8.70B95C82%40gmx.net&rnum=1 Please ensure URL's are not wrapped by your MTA. In this case, there are 'watchdog timeouts'. Those are bad. But, you have not stated you are getting them. -- -- David (obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 2: 3:49 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.tvcom.ru (ns.tvcom.ru [80.246.64.2]) by hub.freebsd.org (Postfix) with ESMTP id 01CFB37B419 for ; Mon, 25 Mar 2002 02:03:32 -0800 (PST) Received: from niokr2 (niokr2.tvcom.ru [80.246.64.107]) by ns.tvcom.ru (8.11.6/8.11.6) with SMTP id g2PA3Ub51048 for ; Mon, 25 Mar 2002 13:03:31 +0300 (MSK) Message-ID: <002601c1d3e4$f448cae0$6b40f650@niokr2> From: "Victor Polyakov" To: Subject: jail + mount_union problem Date: Mon, 25 Mar 2002 13:08:04 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0023_01C1D3FE.1938EEC0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0023_01C1D3FE.1938EEC0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable We have a system with some jails. First jail's home directory is = /data/jails/ref. Then, we are running script "crash" under root: ----------- #! /usr/local/bin/bash SRC=3D/data/jails/ref DEST=3D/data/jails/$1 mkdir $DEST mkdir $DEST/usr mount_union -b $SRC/usr $DEST/usr mkdir $DEST/bin mount_union -b $SRC/bin $DEST/bin mkdir $DEST/root mount_union -b $SRC/root $DEST/root jail /data/jails/$1 jail$1 $2 /bin/csh /root/scripts/runjail mount_union -b $SRC/usr $DEST/usr mount_union -b $SRC/bin $DEST/bin mount_union -b $SRC/root $DEST/root -------------- Originally, this script was designed to make a clone of the first jail. = Contents of /root/scripts/runjail: ------------- sshd /usr/local/apache/bin/apachectl start cd /usr/local/mysql bin/safe_mysqld --user=3Dmysql & cron ------------- After this, system hangs up. When trying to reboot with "boot -sv" we = see: ... ... trying /sbin/init... and freebsd halts again. There is no way to boot up. Of course, fsck = reports "no problem" and checksum of /sbin/init is correct. The only way = to continue working is to run "upgrade" from the instalation CD. We are using freebsd 4.5. May be anybody knows solution for this problem? Victor Polyakov (victor@tvcom.ru) ------=_NextPart_000_0023_01C1D3FE.1938EEC0 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
 
    We have a system = with some=20 jails. First jail's home directory is /data/jails/ref. Then, we are = running=20 script "crash" under root:
 
-----------
 
#! /usr/local/bin/bash
 
SRC=3D/data/jails/ref
DEST=3D/data/jails/$1
mkdir $DEST
 
mkdir $DEST/usr
mount_union -b = $SRC/usr=20 $DEST/usr
 
mkdir $DEST/bin
mount_union -b = $SRC/bin=20 $DEST/bin
 
mkdir $DEST/root
mount_union -b = $SRC/root=20 $DEST/root
 
jail /data/jails/$1 jail$1 $2 /bin/csh=20 /root/scripts/runjail
 
mount_union -b $SRC/usr = $DEST/usr
 
mount_union -b $SRC/bin = $DEST/bin
 
mount_union -b $SRC/root=20 $DEST/root
--------------
 
Originally, this script was designed to = make a=20 clone of the first jail. Contents of /root/scripts/runjail:
 
-------------
 
sshd
/usr/local/apache/bin/apachectl = start
cd=20 /usr/local/mysql
bin/safe_mysqld --user=3Dmysql = &
cron
 
-------------
 
After this, system hangs up. When = trying to reboot=20 with "boot -sv" we see:
 
...
...
trying /sbin/init...
 
and freebsd halts again. There is no = way to boot=20 up. Of course, fsck reports "no problem" and checksum of /sbin/init = is=20 correct. The only way to continue working is to run=20 "upgrade" from the instalation CD.
 
We are using freebsd 4.5.
 
May be anybody knows solution for this=20 problem?
 
Victor Polyakov (victor@tvcom.ru)
 
------=_NextPart_000_0023_01C1D3FE.1938EEC0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 2:43:54 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by hub.freebsd.org (Postfix) with SMTP id 11C9837B430 for ; Mon, 25 Mar 2002 02:43:50 -0800 (PST) Received: (qmail 10685 invoked by uid 1000); 25 Mar 2002 10:44:44 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 25 Mar 2002 10:44:44 -0000 Date: Mon, 25 Mar 2002 11:44:44 +0100 (CET) From: Attila Nagy To: Victor Polyakov Cc: freebsd-hackers@freebsd.org Subject: Re: jail + mount_union problem In-Reply-To: <002601c1d3e4$f448cae0$6b40f650@niokr2> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, > We have a system with some jails. First jail's home directory is > /data/jails/ref. Then, we are running script "crash" under root: > May be anybody knows solution for this problem? Try NULLFS. It works for me. See my previous post on this. (NULLFS was in the subject) --------[ Free Software ISOs - ftp://ftp.fsn.hu/pub/CDROM-Images/ ]------- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone @work: +361 210 1415 (194) cell.: +3630 306 6758 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 7:28:53 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NetScum.dyndns.dk (dclient217-162-214-218.hispeed.ch [217.162.214.218]) by hub.freebsd.org (Postfix) with ESMTP id B953337B400 for ; Mon, 25 Mar 2002 07:28:42 -0800 (PST) Received: from beerswilling.netscum.dyndns.dk (dcf77-zeit.netscum.dyndns.dk [172.27.72.27] (may be forged)) by dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NetScum.dyndns.dk (8.11.6/8.11.6) with ESMTP id g2PFSbE00857 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified FAIL); Mon, 25 Mar 2002 16:28:40 +0100 (CET) (envelope-from bounce@netscum.dyndns.dk) Received: (from root@localhost) by beerswilling.netscum.dyndns.dk (8.11.6/8.11.6) id g2PFSaY00856; Mon, 25 Mar 2002 16:28:36 +0100 (CET) (envelope-from bounce@netscum.dyndns.dk) Date: Mon, 25 Mar 2002 16:28:36 +0100 (CET) Message-Id: <200203251528.g2PFSaY00856@beerswilling.netscum.dyndns.dk> From: BOUWSMA Beery Organization: Men not wearing any pants that dont shave Subject: Re: unionfs and getcwd problem. To: "Vladimir B. " Grebenschikov Cc: hackers@freebsd.org References: <200202251435.XAA91094@shidahara1.planet.sci.kobe-u.ac.jp> <1015415443.3157.2.camel@vbook.express.ru> <200203102147.g2ALlDw00249@beerswilling.netscum.dyndns.dk> <1016041015.748.56.camel@vbook.express.ru> X-Hacked: via telnet to your port 25, what else? X-Internet-Access-Provided-By: Electromagnetics and Technological Advancements X-NetScum: Yes X-One-And-Only-Real-True-Fluffy: No Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > The only obvious `problem' is when a non-r00t user attempts to > > access the union-mounted fs when the shadow directories have not > > yet been created, and `permission denied' is returned for all > > directories that exist below, but not in the unionfs fs. E.g.: > Yes, it is because of feature of unionfs to create shadow directories > with credentionals of proceses doing "rise" operation. > > And if process have no permissions to write into parent directory > operation fail. I have thought about what is best to do in a case like this. At first, I was thinking that if a directory like this does not presently exist in the upper (unionfs) layer, then for the case of a read-only operation like `ls', simply fall through to display what is present in the lower layer. This, if it is possible (I have no idea; I'm no hacker), would avoid the ``hey, why can't I do a simple `ls'?!?'' type of question. Of course, there would be a problem when some actual writes need to be performed in the unionfs layer. For example, suppose the ownerships in a directory path are something like mountpoint/root/r00t/user/FILE and the user is then able to `ls' all the directories down to the one s/he owns, seeing the contents of the lower layer, but then, due to being unable to create the r00t-owned directories in the path that do not yet exist in the upper unionfs layer, any attempt to do `work' in the user-owned directory will fail. So you just get the same sort of questions, only later. ``I have permission, why do I get permission denied?!?'' I do not know if this is even possible in the case of a command or operation that needs not modify the contents of the unionfs later, because I do not know the details of the internals of what happens, so I could be completely wrong to suggest this. > Another solution is to change behaviour of unionfs to use root-cred > while make shadows, and then put attributes/ownership from lower layer > to shadows. > (but this will take a bit of kernel hacking) This is another thing that I have wondered if it could be done. As it is, one of the `quirks' about the shadow directories, is that they get created with the timestamps of the first access which required their creation, and not the timestamps of the underlying filesystem. This can be both a bug and a feature, because it can be used to see immediately when a union-mounted directory was created when looking at a filesystem, when this is useful. On the other hand, the actual attributes of the underlying directory may easily change while the unionfs-mounted shadow gets unchanged, and this change may not be visible to the user. I will be quiet now, because I don't know of what I speak. Anyway, I just did a few more things on a slightly-older -current, built 07.Mar (sorry, I've had no time...), with a unionfs mount atop a read-only nullfs mount, and I do in fact see a problem with files present in both the upper and lower layer, just as I saw the duplicate directories shown by `ls'. Also, certain commands that work on a file only present in the lower layer fail until the file in question has been touched into the unionfs layer, with -current (I don't remember if this was a -stable problem too). This may be well-known and already-solved because I am almost three weeks out of date; if so, sorry. Here are the notes I made about this: unionfs mounted dir atop nullfs dir [10:06:25]root@dastardly.newsbastards.org:/usr/src/sys/modules/splash/bmp{535}# ls -lart total 52 -rw-r--r-- 1 root wheel 17634 Mar 6 2001 splash_bmp.c -rw-r--r-- 1 root wheel 17634 Mar 6 2001 splash_bmp.c-DIST -rw-r--r-- 1 root wheel 194 Jan 24 22:37 Makefile drwxr-xr-x 7 root wheel 512 Mar 25 10:03 .. drwxr-xr-x 7 root wheel 512 Mar 25 10:03 .. -rw-r--r-- 1 root wheel 4918 Mar 25 10:05 splash_bmp.c-patch drwxr-xr-x 4 root wheel 512 Mar 25 10:05 . drwxr-xr-x 4 root wheel 512 Mar 25 10:05 . contents of nullfs-remounted (original) dir: [10:08:19]root@dastardly.newsbastards.org:/usr/src/sys/modules/splash/bmp{543}# ls -lart /usr/local/system/src/sys/modules/splash/bmp/ total 24 -rw-r--r-- 1 root wheel 17634 Mar 6 2001 splash_bmp.c drwxr-xr-x 4 root wheel 512 Nov 23 00:21 .. drwxr-xr-x 2 root wheel 512 Jan 24 22:37 . -rw-r--r-- 1 root wheel 194 Jan 24 22:37 Makefile Contents of unionfs atop that: [10:05:59]root@dastardly.newsbastards.org:/usr/local/source-hacks/sys/modules/splash/bmp{533}# ls -lart total 28 -rw-r--r-- 1 root wheel 17634 Mar 6 2001 splash_bmp.c-DIST drwxr-xr-x 3 root wheel 512 Mar 25 10:03 .. -rw-r--r-- 1 root wheel 4918 Mar 25 10:05 splash_bmp.c-patch drwxr-xr-x 2 root wheel 512 Mar 25 10:05 . Attempt to use patch: [10:07:00]root@dastardly.newsbastards.org:/usr/src/sys/modules/splash/bmp{539}# patch < splash_bmp.c-patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- /FreeBSD-4/usr/local/source-hacks/sys/modules/splash/bmp/splash_bmp.c-DIST Tue Oct 31 09:00:06 2000 |+++ /FreeBSD-4/usr/local/source-hacks/sys/modules/splash/bmp/splash_bmp.c Mon Mar 18 12:48:48 2002 -------------------------- Patching file splash_bmp.c using Plan A... Hunk #1 succeeded at 73. Hunk #2 succeeded at 258. Hunk #3 succeeded at 274. Hunk #4 succeeded at 333. Hunk #5 succeeded at 635. Can't backup splash_bmp.c, output is in /tmp/patchor9qv12: Permission denied done Works after `touch' of file present in lower layer, but not yet in top layer: [10:07:10]root@dastardly.newsbastards.org:/usr/src/sys/modules/splash/bmp{541}# touch splash_bmp.c [10:08:17]root@dastardly.newsbastards.org:/usr/src/sys/modules/splash/bmp{542}# ls -lart total 70 -rw-r--r-- 1 root wheel 17634 Mar 6 2001 splash_bmp.c-DIST -rw-r--r-- 1 root wheel 194 Jan 24 22:37 Makefile drwxr-xr-x 7 root wheel 512 Mar 25 10:03 .. drwxr-xr-x 7 root wheel 512 Mar 25 10:03 .. -rw-r--r-- 1 root wheel 4918 Mar 25 10:05 splash_bmp.c-patch -rw-r--r-- 1 root wheel 17634 Mar 25 10:08 splash_bmp.c -rw-r--r-- 1 root wheel 17634 Mar 25 10:08 splash_bmp.c drwxr-xr-x 4 root wheel 512 Mar 25 10:08 . drwxr-xr-x 4 root wheel 512 Mar 25 10:08 . Note duplicated file too. thanks, barry bouwsma To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 9:30:19 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from damnhippie.dyndns.org (12-253-177-2.client.attbi.com [12.253.177.2]) by hub.freebsd.org (Postfix) with ESMTP id A063B37B404 for ; Mon, 25 Mar 2002 09:30:16 -0800 (PST) Received: from [172.22.42.2] (peace.hippie.lan [172.22.42.2]) by damnhippie.dyndns.org (8.11.6/8.11.6) with ESMTP id g2PHUFU01402 for ; Mon, 25 Mar 2002 10:30:16 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) User-Agent: Microsoft Outlook Express Macintosh Edition - 5.01 (1630) Date: Mon, 25 Mar 2002 10:30:25 -0700 Subject: Re: D-Link device ste tx underrun From: Ian To: freebsd-hackers Message-ID: In-Reply-To: <20020324232623.A45267@dragon.nuxi.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: "David O'Brien" > On Sat, Mar 23, 2002 at 02:16:21PM -0800, Lucky Green wrote: >> Hi there, >> I just installed a new D-Link DFE-550TX NIC on my machine running >> FreeBSD 4.5-RELEASE-p2. I am seeing the following errors in the log >> file: >> >> Mar 23 15:01:05 pakastelohi /kernel: ste0: transmission error: 90 >> Mar 23 15:01:05 pakastelohi /kernel: ste0: tx underrun, increasing tx >> start threshold to 60 bytes >> Mar 23 18:40:17 pakastelohi /kernel: ste0: transmission error: 90 >> Mar 23 18:40:17 pakastelohi /kernel: ste0: tx underrun, increasing tx >> start threshold to 120 bytes >> >> A Google search showed that at least one other person has reported what >> looks like the same problem, but I have been unable to locate a cause or >> fix. Suggestions are appreciated. > > Why do you think this is a problem vs. just a diagnostic? > This not unusual. This really should be in the FAQ. > Let's see... it's a release OS and it's spewing cryptic and somewhat dire-looking messages with the word "error" in them. Why would someone think this is a problem? Hmmmm.... IMO, if it's a release OS and it's an expected condition and there are no knobs that could or should be twiddled to change the situation, then messages containing the word "error" should not be spewed to the logs and console. Or the people who maintain the software that do the spewing should not adopt a condescending attitude when people ask what they should do to fix it. -- Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 9:34:57 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by hub.freebsd.org (Postfix) with SMTP id CD40737B400 for ; Mon, 25 Mar 2002 09:34:43 -0800 (PST) Received: from jogegabsd (AUTH login) at unknown (HELO anakin) (jogegabsd@216.230.149.145) by smtp.mail.vip.sc5.yahoo.com with SMTP; 25 Mar 2002 17:34:43 -0000 From: "jogegabsd" To: Cc: Subject: pcm unable to map IO port Date: Mon, 25 Mar 2002 11:35:20 -0600 Message-ID: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello all, I'm trying to make my sound card work on a compaq 1700 laptop with FreeBSD 4.5-RELEASE. AFAIK and from advice from people in this list my sound card uses the maestro3 module. I add the following lines to my kernel configuration. device pcm0 at isa? irq 10 drq 1 flags 0x0 # for non-PnP sound cards device pcm # for PnP/PCI sound cards I was following the instruction of the driver in this page http://www.cs.duke.edu/~anderson/freebsd/maestro3xxx/ I know that the maestro3 module is already build in, but checking out the source files from the webpage and my computer that I see that I do not have the following /usr/src/sys/dev/sound/pci/maestro3_dsp.h the other files are maestro3.c maestro3_reg.h So i thought it will be better to make the module again. But before all this maestro thing I recompile my kernel with the pcm lines that I already gave you, and I got this error in the dmesg after recompiling the kernel and rebooting. pcm0: irq 5 at device 31.5 on pci0 pcm0: unable to map IO port space device_probe_and_attach: pcm0 attach returned 6 I'm kind of lost right now. What could be the problem. In windoze, my sound card appear as a SoundMax Integrated Digital Audio with the following Interrupt Request 05 Input/Output Range 1400 - 14FF Input/Output Range 1080 - 10BF I'm only subscribe to the freebsd-questions list. I'll apreciate you help thanks Gerardo Amaya _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 11:45:33 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from renown.cnchost.com (renown.concentric.net [207.155.248.7]) by hub.freebsd.org (Postfix) with ESMTP id 8F87B37B404 for ; Mon, 25 Mar 2002 11:45:26 -0800 (PST) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by renown.cnchost.com id OAA08115; Mon, 25 Mar 2002 14:45:24 -0500 (EST) [ConcentricHost SMTP Relay 1.14] Message-ID: <200203251945.OAA08115@renown.cnchost.com> To: callum.gibson@db.com Cc: hackers@FreeBSD.ORG, Peter Wemm Subject: Re: Missing PT_READ_U In-reply-to: Your message of "Mon, 25 Mar 2002 13:28:08 +1100." <20020325022808.11749.qmail@merton.aus.deuba.com> Date: Mon, 25 Mar 2002 11:45:23 -0800 From: Bakul Shah Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > }> As the culprit behind PT_READ_U's demise, I'm willing to dive in > }> and help here if needed. > }Thanks but Julian sent me a patch for 4.5 that seems to work > }with no changes in ups. Would be nice if PT_READ_U is put > }back in 4.x. > > As a followup to this old thread (and as the poster of the original > question on the ups mailing list in late Feb) I note there has still > been no change on the RELENG_4 branch to fix this. Could we have the > patch posted here at least so other people can use ups again (with > signals)? I'd just apply a reverse patch from kern/sys_process.c 1.51.2.2 > to 1.51.2.1 except that I don't know if other files (apart from sys/ptrace.h) > have been affected. Julain Elischer's diff as applied to the 4.5-RELEASE included below. With this change ups-3.37-beta4 compiled unchanged. But note that you still can't change any registers. If PT_WRITE_U is added back to the FreeBSD-4.x branch, no change is necessary to ups. So how about it, Peter Wemm? The other alternative is to change ups to understand PT_{SET,GET}{REGS,FPREGS} -- this would be needed for FreeBSD-5 in any case. But this is not a quick change as ups uses PTRACE_{PEEK,POKE}USER for dealing with registers and signals and these need to be replaced something more discriminating. I took a quick look at it but then got distracted. Also, not every arch. has separate FP regs and I didn't look deep enough in ups to figure out how to add machine dependent code like this. -- bakul Index: sys/ptrace.h =================================================================== RCS file: /home/ncvs/src/sys/sys/ptrace.h,v retrieving revision 1.10.2.1 diff -u -r1.10.2.1 ptrace.h --- sys/ptrace.h 3 Oct 2001 06:55:43 -0000 1.10.2.1 +++ sys/ptrace.h 1 Mar 2002 21:52:57 -0000 @@ -40,7 +40,7 @@ #define PT_TRACE_ME 0 /* child declares it's being traced */ #define PT_READ_I 1 /* read word in child's I space */ #define PT_READ_D 2 /* read word in child's D space */ -/* was PT_READ_U 3 * read word in child's user structure */ +#define PT_READ_U 3 /* read word in child's user structure */ #define PT_WRITE_I 4 /* write word in child's I space */ #define PT_WRITE_D 5 /* write word in child's D space */ /* was PT_WRITE_U 6 * write word in child's user structure */ Index: kern/sys_process.c =================================================================== RCS file: /home/ncvs/src/sys/kern/sys_process.c,v retrieving revision 1.51.2.3 diff -u -r1.51.2.3 sys_process.c --- kern/sys_process.c 22 Jan 2002 17:22:59 -0000 1.51.2.3 +++ kern/sys_process.c 1 Mar 2002 23:45:18 -0000 @@ -257,6 +257,7 @@ case PT_READ_I: case PT_READ_D: + case PT_READ_U: case PT_WRITE_I: case PT_WRITE_D: case PT_CONTINUE: @@ -413,6 +417,33 @@ } return (error); + case PT_READ_U: + if ((uintptr_t)uap->addr > UPAGES * PAGE_SIZE - + sizeof(int)) { + return EFAULT; + } + if ((uintptr_t)uap->addr & (sizeof(int) - 1)) { + return EFAULT; + } + if (ptrace_read_u_check(p,(vm_offset_t) uap->addr, + sizeof(int))) { + return EFAULT; + } + error = 0; + PHOLD(p); /* user had damn well better be incore!*/ + if (p->p_flag & P_INMEM) { + p->p_addr->u_kproc.kp_proc = *p; + fill_eproc (p, &p->p_addr->u_kproc.kp_eproc); + curp->p_retval[0] = *(int *) + ((uintptr_t)p->p_addr + + (uintptr_t)uap->addr); + } else { + curp->p_retval[0] = 0; + error = EFAULT; + } + PRELE(p); + return error; + case PT_KILL: uap->data = SIGKILL; goto sendsig; /* in PT_CONTINUE above */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 12:10:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web21205.mail.yahoo.com (web21205.mail.yahoo.com [216.136.131.248]) by hub.freebsd.org (Postfix) with SMTP id A726A37B404 for ; Mon, 25 Mar 2002 12:10:16 -0800 (PST) Message-ID: <20020325201016.12256.qmail@web21205.mail.yahoo.com> Received: from [12.225.217.208] by web21205.mail.yahoo.com via HTTP; Mon, 25 Mar 2002 12:10:16 PST Date: Mon, 25 Mar 2002 12:10:16 -0800 (PST) From: Yo Yu Subject: Re: Thanks, and Distributed Folding Client for FreeBSD available!! To: hackers@freebsd.org In-Reply-To: <20020324231356.93877.qmail@web11401.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --- Rayson Ho wrote: > Hi, > > Thanks to the people on this list, the DistributedFolding client is > available on FreeBSD. People with spare CPU cycles can install this > (P2P seti@home like software) to help the world to fight/cure all kinds > of diseases!! > > http://www.distributedfolding.org/Download.html > > Again, thanks for the great help. > > Rayson Runs with nice +20 though. __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 12:19:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gray.impulse.net (gray.impulse.net [207.154.64.174]) by hub.freebsd.org (Postfix) with ESMTP id 1004237B405 for ; Mon, 25 Mar 2002 12:19:35 -0800 (PST) Received: from gray.impulse.net (localhost [127.0.0.1]) by gray.impulse.net (Postfix) with ESMTP id 78CB7375E7; Mon, 25 Mar 2002 12:19:34 -0800 (PST) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Matthew Dillon Cc: freebsd-hackers@FreeBSD.ORG From: Ted Cabeen Subject: Re: Open bug reports with no action? In-Reply-To: <200203230107.g2N17u864828@apollo.backplane.com> References: <200203230107.g2N17u864828@apollo.backplane.com> <20020322225901.E39C9375E7@gray.impulse.net> Date: Mon, 25 Mar 2002 12:19:34 -0800 Message-Id: <20020325201934.78CB7375E7@gray.impulse.net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Content-Type: text/plain; charset=us-ascii In message <200203230107.g2N17u864828@apollo.backplane.com>, Matthew Dillon wri tes: >:I submitted a bug report (PR# bin/31933) in November that's never been looked >:at. I even enclosed a patch that fixes the bug. Is there anything that I can >:do to get the bug looked at sooner rather than later? > > Sure. Hmm. I'm not sure I like the idea of using -- instead of -n. > It led to some confusion when I was reading the patch. The user should never use '--'. The code just assigns the initial username or uid to the '--' argument so that it is associated with an argument. I wanted an argument that wouldn't be accidentially tried by the user thus causing inconsistencies if they used both the '--' argument and a leading username or uid on the command line. Also, using the '--' allowed me to preserve almost all of the current code and make the change simpler. Would it help if there were some additional clarifying comments in the code? > What if we officially assigned an actual option letter like 'U' instead > of '-'? Another alternative would be to have a global ExactUser global > that defaults to 0 and gets set to 1 if either -n or -u are explicitly > specified. Those would work, but we might have problems we people using both an initial username/uid and a -U argument in the first solution. See the following sample command line: "pw userdel 10012 -U bob". What do you do in this situation if there's a user named "10012" and no user with uid 10012? Which user do you delete? What about if there is a user with uid 10012 but it's not bob? The current code is pretty clean WRT problems like this, and I wanted to make the patch as simple as possible. - -- Ted Cabeen http://www.pobox.com/~secabeen ted@impulse.net Check Website or Keyserver for PGP/GPG Key BA0349D2 secabeen@pobox.com "I have taken all knowledge to be my province." -F. Bacon secabeen@cabeen.org "Human kind cannot bear very much reality."-T.S.Eliot cabeen@netcom.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (OpenBSD) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8n4ZWoayJfLoDSdIRAj6jAKCRrJfsvIL+j8DlpLk/hPG7bBLjPQCbB8+z PGYs3qEayp8B3OGcqhswoyM= =3xuo -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 13: 0:17 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id 83B3337B400 for ; Mon, 25 Mar 2002 13:00:13 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020325210013.PVEM2626.rwcrmhc51.attbi.com@InterJet.elischer.org>; Mon, 25 Mar 2002 21:00:13 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA37772; Mon, 25 Mar 2002 12:59:23 -0800 (PST) Date: Mon, 25 Mar 2002 12:59:21 -0800 (PST) From: Julian Elischer To: Yo Yu Cc: hackers@freebsd.org Subject: Re: Thanks, and Distributed Folding Client for FreeBSD available!! In-Reply-To: <20020325201016.12256.qmail@web21205.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 25 Mar 2002, Yo Yu wrote: > > Runs with nice +20 though. Of course.. don't want it to interfere with real work.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 13:18:55 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from imr1.aus.deuba.com (bagheera.aus.deuba.com [203.0.62.7]) by hub.freebsd.org (Postfix) with ESMTP id 9820837B405 for ; Mon, 25 Mar 2002 13:18:49 -0800 (PST) Received: from imr1.aus.deuba.com by imr1.aus.deuba.com id g2PLIkHR022496; Tue, 26 Mar 2002 08:18:46 +1100 (EST) Received: from merton.aus.deuba.com by imr1.aus.deuba.com id g2PLIjn2022487; Tue, 26 Mar 2002 08:18:45 +1100 (EST) Received: (qmail 1504 invoked by uid 107); 25 Mar 2002 21:18:45 -0000 Message-ID: <20020325211845.1503.qmail@merton.aus.deuba.com> From: callum.gibson@db.com Subject: Re: Missing PT_READ_U To: bakul@bitblocks.com Date: Tue, 26 Mar 2002 08:18:45 +1100 (EST) Cc: hackers@FreeBSD.ORG, peter@wemm.org In-Reply-To: <200203251945.OAA08115@renown.cnchost.com> from "bakul@bitblocks.com" at Mar 25, 2002 11:45:23 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG bakul@bitblocks.com writes: }Julian Elischer's diff as applied to the 4.5-RELEASE included }below. With this change ups-3.37-beta4 compiled unchanged. } }But note that you still can't change any registers. If }PT_WRITE_U is added back to the FreeBSD-4.x branch, no change }is necessary to ups. So how about it, Peter Wemm? I'm actually getting crashes in ups (on 4.5, compiled on 4.4) whenever the debugged program receives a signal. I assume putting back PT_READ_U will be sufficient to fix this? }The other alternative is to change ups to understand }PT_{SET,GET}{REGS,FPREGS} -- this would be needed for }FreeBSD-5 in any case. But this is not a quick change as ups }uses PTRACE_{PEEK,POKE}USER for dealing with registers and }signals and these need to be replaced something more }discriminating. I took a quick look at it but then got }distracted. Also, not every arch. has separate FP regs and I }didn't look deep enough in ups to figure out how to add }machine dependent code like this. Hopefully some enterprising young programmer in the ups camp will be able to help out (when an alternate interface exists - is it in -current now?). Unfortunately, I don't have knowledge to hack inside ups to that degree. C Callum Gibson callum.gibson@db.com Global Markets IT, Deutsche Bank, Australia 61 2 9258 1620 ### The opinions in this message are mine and not Deutsche's ### To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 13:24:37 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web11405.mail.yahoo.com (web11405.mail.yahoo.com [216.136.131.235]) by hub.freebsd.org (Postfix) with SMTP id F3C7F37B405 for ; Mon, 25 Mar 2002 13:24:25 -0800 (PST) Message-ID: <20020325212425.2328.qmail@web11405.mail.yahoo.com> Received: from [199.246.40.54] by web11405.mail.yahoo.com via HTTP; Mon, 25 Mar 2002 13:24:25 PST Date: Mon, 25 Mar 2002 13:24:25 -0800 (PST) From: Rayson Ho Subject: Re: Thanks, and Distributed Folding Client for FreeBSD available!! To: hackers@freebsd.org Cc: hackers@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The client already has an option to control the priority: Distributed Foldtraj v2002.03.21 arguments: -f Input Trajectory Distribution File (NO EXTENSION) [File In] -n Native structure filename (NO EXTENSION) [File In] -q Quiet? [T/F] Optional default = FALSE -d Use small buffer? [T/F] Optional default = TRUE -p Priority (-20=aggressive, 20=passive) [Integer] Optional default = 20 range from -20 to 20 -g progress.txt update frequency (0=disable) [Integer] Optional default = 5 range from 0 to 100 -i Connect to internet? [T/F] Optional default = TRUE -u Upload and exit? [T/F] Optional default = FALSE Rayson --- Julian Elischer wrote: > On Mon, 25 Mar 2002, Yo Yu wrote: > > > > Runs with nice +20 though. > Of course.. > don't want it to interfere with real work.... __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 13:24:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web11405.mail.yahoo.com (web11405.mail.yahoo.com [216.136.131.235]) by hub.freebsd.org (Postfix) with SMTP id F392B37B400 for ; Mon, 25 Mar 2002 13:24:25 -0800 (PST) Message-ID: <20020325212425.2328.qmail@web11405.mail.yahoo.com> Received: from [199.246.40.54] by web11405.mail.yahoo.com via HTTP; Mon, 25 Mar 2002 13:24:25 PST Date: Mon, 25 Mar 2002 13:24:25 -0800 (PST) From: Rayson Ho Subject: Re: Thanks, and Distributed Folding Client for FreeBSD available!! To: hackers@freebsd.org Cc: hackers@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The client already has an option to control the priority: Distributed Foldtraj v2002.03.21 arguments: -f Input Trajectory Distribution File (NO EXTENSION) [File In] -n Native structure filename (NO EXTENSION) [File In] -q Quiet? [T/F] Optional default = FALSE -d Use small buffer? [T/F] Optional default = TRUE -p Priority (-20=aggressive, 20=passive) [Integer] Optional default = 20 range from -20 to 20 -g progress.txt update frequency (0=disable) [Integer] Optional default = 5 range from 0 to 100 -i Connect to internet? [T/F] Optional default = TRUE -u Upload and exit? [T/F] Optional default = FALSE Rayson --- Julian Elischer wrote: > On Mon, 25 Mar 2002, Yo Yu wrote: > > > > Runs with nice +20 though. > Of course.. > don't want it to interfere with real work.... __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 15:58:59 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id 178E937B417 for ; Mon, 25 Mar 2002 15:58:48 -0800 (PST) Received: from pool0459.cvx22-bradley.dialup.earthlink.net ([209.179.199.204] helo=mindspring.com) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16peM5-00009i-00; Mon, 25 Mar 2002 15:58:25 -0800 Message-ID: <3C9FB98C.BB0F4621@mindspring.com> Date: Mon, 25 Mar 2002 15:58:04 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Rayson Ho Cc: hackers@freebsd.org Subject: Re: Thanks, and Distributed Folding Client for FreeBSD available!! References: <20020325212425.2328.qmail@web11405.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Rayson Ho wrote: > > The client already has an option to control the priority: [ ... ] > -p Priority (-20=aggressive, 20=passive) [Integer] Optional > default = 20 > range from -20 to 20 You may also want to consider "idleprio". -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 16:32:53 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from damnhippie.dyndns.org (12-253-177-2.client.attbi.com [12.253.177.2]) by hub.freebsd.org (Postfix) with ESMTP id ED0E537B405 for ; Mon, 25 Mar 2002 16:32:48 -0800 (PST) Received: from [172.22.42.2] (peace.hippie.lan [172.22.42.2]) by damnhippie.dyndns.org (8.11.6/8.11.6) with ESMTP id g2Q0WmU06428 for ; Mon, 25 Mar 2002 17:32:48 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) User-Agent: Microsoft Outlook Express Macintosh Edition - 5.01 (1630) Date: Mon, 25 Mar 2002 17:32:59 -0700 Subject: Re: idprio From: Ian To: freebsd-hackers Message-ID: In-Reply-To: <3C9FB98C.BB0F4621@mindspring.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >> >> The client already has an option to control the priority: > [ ... ] >> -p Priority (-20=aggressive, 20=passive) [Integer] Optional >> default = 20 >> range from -20 to 20 > > You may also want to consider "idleprio". > Speaking of idprio... I liked the good old days (3.x) when you didn't have to be root to use the command. Given that idprio can be used to raise priorities as well as lower them, I can see the point of having some restrictions, but shouldn't it be possible to structure the code such that a non-root user can lower but not raise the priority on a process they own? I'll even volunteer to do the work unless there's some good reason (technical or policy-wise) why it can't be done. -- Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 16:33:54 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id B25FC37B41B for ; Mon, 25 Mar 2002 16:33:47 -0800 (PST) Received: (from dillon@localhost) by apollo.backplane.com (8.11.6/8.9.1) id g2Q0Xlp83034; Mon, 25 Mar 2002 16:33:47 -0800 (PST) (envelope-from dillon) Date: Mon, 25 Mar 2002 16:33:47 -0800 (PST) From: Matthew Dillon Message-Id: <200203260033.g2Q0Xlp83034@apollo.backplane.com> To: Ted Cabeen Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Open bug reports with no action? References: <200203230107.g2N17u864828@apollo.backplane.com> <20020322225901.E39C9375E7@gray.impulse.net> <20020325201934.78CB7375E7@gray.impulse.net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG : :The user should never use '--'. The code just assigns the initial username or :uid to the '--' argument so that it is associated with an argument. I wanted :an argument that wouldn't be accidentially tried by the user thus causing :inconsistencies if they used both the '--' argument and a leading username or :uid on the command line. Also, using the '--' allowed me to preserve almost :all of the current code and make the change simpler. Would it help if there :were some additional clarifying comments in the code? Well, I'm thinking more in regards to this hack only working once. i.e. if we had to do something similar to another parameter of pw we'd be stuck. :> What if we officially assigned an actual option letter like 'U' instead :> of '-'? Another alternative would be to have a global ExactUser global :> that defaults to 0 and gets set to 1 if either -n or -u are explicitly :> specified. : :Those would work, but we might have problems we people using both an initial :username/uid and a -U argument in the first solution. See the following :sample command line: :"pw userdel 10012 -U bob". :What do you do in this situation if there's a user named "10012" and no user :with uid 10012? Which user do you delete? What about if there is a user :with uid 10012 but it's not bob? The current code is pretty clean WRT :problems like this, and I wanted to make the patch as simple as possible. : :- -- :Ted Cabeen http://www.pobox.com/~secabeen ted@impulse.net I think there may be some confusion. I simply meant assigning an official option that represents the default state of affairs, not actually require that you USE the option. i.e. you could still use pw the way you've always used it for the fuzzy case. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 17:16:30 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web14703.mail.yahoo.com (web14703.mail.yahoo.com [216.136.224.120]) by hub.freebsd.org (Postfix) with SMTP id 1C6CD37B416 for ; Mon, 25 Mar 2002 17:16:27 -0800 (PST) Message-ID: <20020326011626.85427.qmail@web14703.mail.yahoo.com> Received: from [128.100.122.190] by web14703.mail.yahoo.com via HTTP; Mon, 25 Mar 2002 17:16:26 PST Date: Mon, 25 Mar 2002 17:16:26 -0800 (PST) From: Ron Chen Subject: Help with getting load information To: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, Is there a set of APIs that I can use to get the system information like the memory size, swap size, # of CPUs? Also, I want to get the information about the load, and also process information. thanks for your help in advance, -Ron __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 17:28:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 5445F37B41C for ; Mon, 25 Mar 2002 17:28:21 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id g2Q1SGG04013; Mon, 25 Mar 2002 17:28:16 -0800 Date: Mon, 25 Mar 2002 17:28:16 -0800 From: Brooks Davis To: Ron Chen Cc: hackers@FreeBSD.ORG Subject: Re: Help with getting load information Message-ID: <20020325172816.A2514@Odin.AC.HMC.Edu> References: <20020326011626.85427.qmail@web14703.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="zhXaljGHf11kAtnf" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020326011626.85427.qmail@web14703.mail.yahoo.com>; from ron_chen_123@yahoo.com on Mon, Mar 25, 2002 at 05:16:26PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 25, 2002 at 05:16:26PM -0800, Ron Chen wrote: > Hi all, >=20 > Is there a set of APIs that I can use to get the > system information like the memory size, swap size, # > of CPUs? For some globus GRIS scripts, I'm using the sysctls vm.stats.vm.v_page_size and vm.stats.vm.v_page_count to get memory size. I'm calculating free memory (a bogus concept in FreeBSD) as total-active-inactive-wired, all of which are available under vm.stats.vm. Swap information is available from the swapinfo command. If you really need it in an API you could just steal the code. The number of cpus is easy as it's just the hw.ncpu sysctl. Other information is currently difficult to obtain and I'm currently parsing the output of the cpuid port to obtain a fair bit of it. The only source of Mhz is /var/run/dmesg.boot. > Also, I want to get the information about the load, > and also process information. Load is available from the sysctl vm.loadavg. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --zhXaljGHf11kAtnf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8n86vXY6L6fI4GtQRAvezAJ9/MFpNfpZUCsN4JVdMH4WUiknXeQCfbEmt uw68UQz3I7jwKFvejBx95sU= =5b6/ -----END PGP SIGNATURE----- --zhXaljGHf11kAtnf-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 17:54:33 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web11407.mail.yahoo.com (web11407.mail.yahoo.com [216.136.131.237]) by hub.freebsd.org (Postfix) with SMTP id B643437B41D for ; Mon, 25 Mar 2002 17:54:27 -0800 (PST) Message-ID: <20020326015427.48101.qmail@web11407.mail.yahoo.com> Received: from [24.43.32.161] by web11407.mail.yahoo.com via HTTP; Mon, 25 Mar 2002 17:54:27 PST Date: Mon, 25 Mar 2002 17:54:27 -0800 (PST) From: Rayson Ho Subject: Re: Help with getting load information To: hackers@FreeBSD.ORG In-Reply-To: <20020325172816.A2514@Odin.AC.HMC.Edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Does "top" use those calls?? Rayson --- Brooks Davis wrote: > On Mon, Mar 25, 2002 at 05:16:26PM -0800, Ron Chen wrote: > > Hi all, > > > > Is there a set of APIs that I can use to get the > > system information like the memory size, swap size, # > > of CPUs? > > For some globus GRIS scripts, I'm using the sysctls > vm.stats.vm.v_page_size and vm.stats.vm.v_page_count to get memory > size. > I'm calculating free memory (a bogus concept in FreeBSD) as > total-active-inactive-wired, all of which are available under > vm.stats.vm. Swap information is available from the swapinfo > command. > If you really need it in an API you could just steal the code. > > The number of cpus is easy as it's just the hw.ncpu sysctl. Other > information is currently difficult to obtain and I'm currently > parsing > the output of the cpuid port to obtain a fair bit of it. The only > source of Mhz is /var/run/dmesg.boot. > > > Also, I want to get the information about the load, > > and also process information. > > Load is available from the sysctl vm.loadavg. > > -- Brooks > > -- > Any statement of the form "X is the one, true Y" is FALSE. > PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 > > ATTACHMENT part 2 application/pgp-signature __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 18:12:21 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from 12-234-96-171.client.attbi.com (12-234-96-171.client.attbi.com [12.234.96.171]) by hub.freebsd.org (Postfix) with ESMTP id D35EA37B400 for ; Mon, 25 Mar 2002 18:12:18 -0800 (PST) Received: by 12-234-96-171.client.attbi.com (Postfix, from userid 1000) id 8DA295E72; Thu, 25 Apr 2002 18:12:08 -0700 (PDT) Date: Thu, 25 Apr 2002 18:12:08 -0700 From: Jon Mini To: Rayson Ho Cc: hackers@FreeBSD.ORG Subject: Re: Help with getting load information Message-ID: <20020425181208.A42560@stylus.haikugeek.com> References: <20020325172816.A2514@Odin.AC.HMC.Edu> <20020326015427.48101.qmail@web11407.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <20020326015427.48101.qmail@web11407.mail.yahoo.com>; from raysonlogin@yahoo.com on Mon, Mar 25, 2002 at 05:54:27PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Rayson Ho [raysonlogin@yahoo.com] wrote : > Does "top" use those calls?? No. > Rayson > > --- Brooks Davis wrote: > > On Mon, Mar 25, 2002 at 05:16:26PM -0800, Ron Chen wrote: > > > Hi all, > > > > > > Is there a set of APIs that I can use to get the > > > system information like the memory size, swap size, # > > > of CPUs? > > > > For some globus GRIS scripts, I'm using the sysctls > > vm.stats.vm.v_page_size and vm.stats.vm.v_page_count to get memory > > size. > > I'm calculating free memory (a bogus concept in FreeBSD) as > > total-active-inactive-wired, all of which are available under > > vm.stats.vm. Swap information is available from the swapinfo > > command. > > If you really need it in an API you could just steal the code. > > > > The number of cpus is easy as it's just the hw.ncpu sysctl. Other > > information is currently difficult to obtain and I'm currently > > parsing > > the output of the cpuid port to obtain a fair bit of it. The only > > source of Mhz is /var/run/dmesg.boot. > > > > > Also, I want to get the information about the load, > > > and also process information. > > > > Load is available from the sysctl vm.loadavg. > > > > -- Brooks > > > > -- > > Any statement of the form "X is the one, true Y" is FALSE. > > PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 > > > > > ATTACHMENT part 2 application/pgp-signature > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Movies - coverage of the 74th Academy Awards® > http://movies.yahoo.com/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- Jonathan Mini mini@haikugeek.com Yersterday, I was ashamed of myself. Today, I am just hungry. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 20:36:18 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from warez.scriptkiddie.org (uswest-dsl-142-38.cortland.com [209.162.142.38]) by hub.freebsd.org (Postfix) with ESMTP id CD89837B416; Mon, 25 Mar 2002 20:36:13 -0800 (PST) Received: from [192.168.69.11] (unknown [192.168.69.11]) by warez.scriptkiddie.org (Postfix) with ESMTP id 7570462D1A; Mon, 25 Mar 2002 20:36:12 -0800 (PST) Date: Mon, 25 Mar 2002 20:36:50 -0800 (PST) From: Lamont Granquist To: , Subject: UDP jail bug patch (was Re: (PATCH) Re: jail bug with ircd-hybrid in_pcbconnect()?) Message-ID: <20020325202752.P5308-100000@coredump.scriptkiddie.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I previously posted a patch to fix this UDP-in-jail bug which I believe may have compromised the security of the jail. This patch shouldn't do that. It: 1. preserves the jail check in in_pcbconnect() 2. preserves the laddr+lport check in the beginning of in_pcbbind() 3. modifies no code outside of the jail path 4. only diddles with the PCB laddr which shouldn't have any side effects because that is exactly what udp_output() is doing to cause the problem in the first place Arguably the real fix should be to fix the hash table and the bogosity in udp_output(), but I don't have the time to commit to that. --- in_pcb.c.old Mon Mar 18 23:57:57 2002 +++ in_pcb.c Tue Mar 19 09:52:45 2002 @@ -501,6 +501,8 @@ int error; if (inp->inp_laddr.s_addr == INADDR_ANY && p->p_prison != NULL) { + if (inp->inp_lport != 0) + inp->inp_laddr.s_addr = htonl(p->p_prison->pr_ip); bzero(&sa, sizeof (sa)); sa.sin_addr.s_addr = htonl(p->p_prison->pr_ip); sa.sin_len=sizeof (sa); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 20:56:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from jupiter.linuxengine.net (jupiter.linuxengine.net [209.61.188.254]) by hub.freebsd.org (Postfix) with ESMTP id 11BD837B41B; Mon, 25 Mar 2002 20:56:19 -0800 (PST) Received: from jupiterweb.commercevault.com (jupiterweb.commercevault.com [209.61.179.16] (may be forged)) by jupiter.linuxengine.net (8.11.6/8.11.0) with ESMTP id g2Q4uHh17769; Mon, 25 Mar 2002 22:56:17 -0600 Date: Mon, 25 Mar 2002 22:56:17 -0600 (CST) From: John Utz X-X-Sender: john@jupiter.linuxengine.net To: tanimura@freebsd.org Cc: hackers@freebsd.org Subject: freebsd newmidi and microtimeout patches; is microtimeout needed anymore with 4.5-RELEASE and newer Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello; i am trying to pick up where http://www.r.dl.itc.u-tokyo.ac.jp/~tanimura/freebsd-serialmidi/ leaves off. can anyone tell me if the microtimeout patch is still required? i ask this because i understand that freebsd has made progress in terms of realtime behavior, so wouldnt it be possible to leverage those improvements? any suggestions would be greatly appreciated. tnx! johnu -- John L. Utz III john@utzweb.net Idiocy is the Impulse Function in the Convolution of Life To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Mar 25 23:54:17 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.tvcom.ru (ns.tvcom.ru [80.246.64.2]) by hub.freebsd.org (Postfix) with ESMTP id 37B0237B41D for ; Mon, 25 Mar 2002 23:53:37 -0800 (PST) Received: from niokr2 (niokr2.tvcom.ru [80.246.64.107]) by ns.tvcom.ru (8.11.6/8.11.6) with SMTP id g2Q7rZb06813 for ; Tue, 26 Mar 2002 10:53:35 +0300 (MSK) Message-ID: <008501c1d49b$fd2eb2c0$6b40f650@niokr2> From: "Victor Polyakov" To: References: Subject: Re: jail + mount_union problem Date: Tue, 26 Mar 2002 10:58:16 +0300 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 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Unfortunately, NULLFS filesystem does not permit users to modify files. We want do give each user a copy of /usr and to permit installation of software etc... Victor Polyakov (victor@tvcom.ru) > Hello, > > > We have a system with some jails. First jail's home directory is > > /data/jails/ref. Then, we are running script "crash" under root: > > May be anybody knows solution for this problem? > Try NULLFS. It works for me. > See my previous post on this. (NULLFS was in the subject) > > --------[ Free Software ISOs - ftp://ftp.fsn.hu/pub/CDROM-Images/ ]------- > Attila Nagy e-mail: Attila.Nagy@fsn.hu > Free Software Network (FSN.HU) phone @work: +361 210 1415 (194) > cell.: +3630 306 6758 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 0:34: 3 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from storage.ukr.net (storage.ukr.net [212.42.64.13]) by hub.freebsd.org (Postfix) with ESMTP id 0CD1C37B419 for ; Tue, 26 Mar 2002 00:34:00 -0800 (PST) Received: from UKR.NET's mail service, abuse contact: abuse@ukr.net for hackers@freebsd.org with local ID 16pmFN-0006U5-00 by storage.ukr.net; Tue, 26 Mar 2002 10:24:01 +0200 Received: from [213.154.192.35] by freemail.ukr.net with HTTP; Tue, 26 Mar 2002 08:24:01 +0000 (GMT) From: "Apache Man" To: hackers@freebsd.org Subject: kernel panic: vm_object_reference Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: unknown via proxy anna.comint.net [213.154.192.35] Reply-To: "Apache Man" Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Date: Tue, 26 Mar 2002 10:24:01 +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi. As i informed you earler the bug exists in freebsd 4.5. Kernel panics with `vm_object_reference: delay in getting object' when i copy files from a partition and at the same time dismount this partition (umount -f /cdrom). The sutuation is following. I mount /cdrom. Then start too many `cp' processes that copy some files from /cdrom. In other tty i umount -f /cdrom and kernel panics. Sorry if it's known bug. -- email: apache@ukr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 0:59:48 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 22F2937B41B for ; Tue, 26 Mar 2002 00:59:45 -0800 (PST) Received: from pool0107.cvx21-bradley.dialup.earthlink.net ([209.179.192.107] helo=mindspring.com) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16pmnt-0000fO-00; Tue, 26 Mar 2002 00:59:41 -0800 Message-ID: <3CA03865.A06A0D11@mindspring.com> Date: Tue, 26 Mar 2002 00:59:17 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Victor Polyakov Cc: freebsd-hackers@freebsd.org Subject: Re: jail + mount_union problem References: <008501c1d49b$fd2eb2c0$6b40f650@niokr2> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Victor Polyakov wrote: > Unfortunately, NULLFS filesystem does not permit users to modify files. > We want do give each user a copy of /usr and to permit installation of > software etc... You mean "on a per user basis". It permits modification. In general, you would mount / and /usr read-only, and mount some other area (e.g. /usr/local) as read/write, and they would install their private stuff there. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 1: 6: 7 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.tvcom.ru (ns.tvcom.ru [80.246.64.2]) by hub.freebsd.org (Postfix) with ESMTP id 055E037B417 for ; Tue, 26 Mar 2002 01:06:05 -0800 (PST) Received: from vk (vk.tvcom.ru [80.246.64.111]) by ns.tvcom.ru (8.11.6/8.11.6) with ESMTP id g2Q962b12303; Tue, 26 Mar 2002 12:06:03 +0300 (MSK) From: "Vadim Kolontsov" To: "'Terry Lambert'" Cc: Subject: RE: jail + mount_union problem Date: Tue, 26 Mar 2002 12:04:57 +0300 Organization: JSC "TeleNET" Message-ID: <002701c1d4a5$51244b70$6f40f650@vk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <3CA03865.A06A0D11@mindspring.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Good morning, So UNIONFS is broken in 4.5? Is it fixed in -STABLE? In -CURRENT? Best regards, Vadim. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 2: 3: 3 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from host213-123-133-221.in-addr.btopenworld.com (host213-123-133-221.in-addr.btopenworld.com [213.123.133.221]) by hub.freebsd.org (Postfix) with ESMTP id B4CB737B405 for ; Tue, 26 Mar 2002 02:02:58 -0800 (PST) Received: by host213-123-133-221.in-addr.btopenworld.com (Postfix, from userid 1001) id 29966528; Tue, 26 Mar 2002 10:04:57 +0000 (GMT) Date: Tue, 26 Mar 2002 10:04:57 +0000 From: Dominic Marks To: Vadim Kolontsov Cc: 'Terry Lambert' , freebsd-hackers@FreeBSD.ORG Subject: Re: jail + mount_union problem Message-ID: <20020326100457.A24177@host213-123-133-221.in-addr.bto> References: <3CA03865.A06A0D11@mindspring.com> <002701c1d4a5$51244b70$6f40f650@vk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <002701c1d4a5$51244b70$6f40f650@vk>; from vk@tvcom.ru on Tue, Mar 26, 2002 at 12:04:57PM +0300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Mar 26, 2002 at 12:04:57PM +0300, Vadim Kolontsov wrote: > Good morning, > > So UNIONFS is broken in 4.5? Is it fixed in -STABLE? In -CURRENT? I dont believe union should be used anywhere. Its broken, its always been broken (withinn the context of FreeBSD). As far as I know that hasn't changed recently. Read `man mount_union`. > Best regards, > Vadim. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- Dominic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 2:18: 6 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.tvcom.ru (ns.tvcom.ru [80.246.64.2]) by hub.freebsd.org (Postfix) with ESMTP id 160C637B405 for ; Tue, 26 Mar 2002 02:18:03 -0800 (PST) Received: from vk (vk.tvcom.ru [80.246.64.111]) by ns.tvcom.ru (8.11.6/8.11.6) with ESMTP id g2QAHob17211; Tue, 26 Mar 2002 13:17:50 +0300 (MSK) From: "Vadim Kolontsov" To: "'Dominic Marks'" Cc: "'Terry Lambert'" , Subject: RE: jail + mount_union problem Date: Tue, 26 Mar 2002 13:16:45 +0300 Organization: JSC "TeleNET" Message-ID: <003e01c1d4af$58a4df90$6f40f650@vk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <20020326100457.A24177@host213-123-133-221.in-addr.bto> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I dont believe union should be used anywhere. Its broken, its > always been broken (withinn the context of FreeBSD). > As far as I know that hasn't changed recently. Read `man mount_union`. Surely I read it. But what's about PR docs/30253 and kern/27250? Best regards, Vadim. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 3:10:59 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from r220-1.rz.RWTH-Aachen.DE (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by hub.freebsd.org (Postfix) with ESMTP id CF60437B416 for ; Tue, 26 Mar 2002 03:10:55 -0800 (PST) Received: from r220-1.rz.RWTH-Aachen.DE (relay2.RWTH-Aachen.DE [134.130.3.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3-2) with ESMTP id g2QBAqY12273; Tue, 26 Mar 2002 12:10:52 +0100 (MET) Received: from hyperion.informatik.rwth-aachen.de (hyperion.Informatik.RWTH-Aachen.DE [137.226.194.33]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3/7) with ESMTP id g2QBApv12263; Tue, 26 Mar 2002 12:10:51 +0100 (MET) Received: from margaux.informatik.rwth-aachen.de (margaux.Informatik.RWTH-Aachen.DE [137.226.194.72]) by hyperion.informatik.rwth-aachen.de (8.9.1b+Sun/8.9.1) with ESMTP id MAA02342; Tue, 26 Mar 2002 12:10:47 +0100 (MET) Received: (from stolz@localhost) by margaux.informatik.rwth-aachen.de (8.9.1b+Sun/8.9.1-gb-2) id MAA03956; Tue, 26 Mar 2002 12:10:46 +0100 (MET) Date: Tue, 26 Mar 2002 12:10:46 +0100 From: Volker Stolz To: Ian Cc: hackers@freebsd.org Subject: Re: idprio Message-ID: <20020326121046.A3952@margaux.informatik.rwth-aachen.de> References: <3C9FB98C.BB0F4621@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.17i In-Reply-To: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In local.freebsd-hackers, you wrote: > Speaking of idprio... I liked the good old days (3.x) when you didn't have > to be root to use the command. Given that idprio can be used to raise > priorities as well as lower them, I can see the point of having some > restrictions, but shouldn't it be possible to structure the code such that a > non-root user can lower but not raise the priority on a process they own? It's in the "BUGS" section: BUGS ... Under FreeBSD system calls are currently never preempted, therefore non- realtime processes can starve realtime processes, or idletime processes can starve normal priority processes. -- Wonderful \hbox (0.80312pt too nice) in paragraph at lines 16--18 Volker Stolz * stolz@i2.informatik.rwth-aachen.de Please use PGP or S/MIME for correspondence! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 4:25:45 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from host213-123-133-221.in-addr.btopenworld.com (host213-123-133-221.in-addr.btopenworld.com [213.123.133.221]) by hub.freebsd.org (Postfix) with ESMTP id AA6A637B400; Tue, 26 Mar 2002 04:25:41 -0800 (PST) Received: by host213-123-133-221.in-addr.btopenworld.com (Postfix, from userid 1001) id 0E185528; Tue, 26 Mar 2002 12:27:40 +0000 (GMT) Date: Tue, 26 Mar 2002 12:27:40 +0000 From: Dominic Marks To: Vadim Kolontsov Cc: 'Terry Lambert' , freebsd-hackers@FreeBSD.ORG, mux@freebsd.org Subject: Re: jail + mount_union problem Message-ID: <20020326122739.A28633@host213-123-133-221.in-addr.bto> References: <20020326100457.A24177@host213-123-133-221.in-addr.bto> <003e01c1d4af$58a4df90$6f40f650@vk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <003e01c1d4af$58a4df90$6f40f650@vk>; from vk@tvcom.ru on Tue, Mar 26, 2002 at 01:16:45PM +0300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Mar 26, 2002 at 01:16:45PM +0300, Vadim Kolontsov wrote: > > I dont believe union should be used anywhere. Its broken, its > > always been broken (withinn the context of FreeBSD). > > As far as I know that hasn't changed recently. Read `man mount_union`. > > Surely I read it. But what's about PR docs/30253 and kern/27250? The state of of these is open and analyzed respectively. Since the originator of the doc PR is now a committer I've added him to the CC list. Perhaps he can now close his own PR. Does seem like union was fixed, partially at least. > Best regards, > Vadim. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- Dominic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 4:26:19 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by hub.freebsd.org (Postfix) with ESMTP id 992EA37B417 for ; Tue, 26 Mar 2002 04:25:59 -0800 (PST) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id 639AFA809; Tue, 26 Mar 2002 23:25:56 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id 5FFAD5434; Tue, 26 Mar 2002 23:25:56 +1100 (EST) Date: Tue, 26 Mar 2002 23:25:56 +1100 (EST) From: Andrew To: Volker Stolz Cc: Ian , Subject: Re: idprio In-Reply-To: <20020326121046.A3952@margaux.informatik.rwth-aachen.de> Message-ID: <20020326232510.A21338-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 26 Mar 2002, Volker Stolz wrote: > Under FreeBSD system calls are currently never preempted, therefore non- > realtime processes can starve realtime processes, or idletime processes > can starve normal priority processes. Even so an idprio process can't be worse than a normal process. Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 4:51:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from blackhelicopters.org (geburah.blackhelicopters.org [209.69.178.18]) by hub.freebsd.org (Postfix) with ESMTP id 3995337B41E for ; Tue, 26 Mar 2002 04:51:04 -0800 (PST) Received: (from mwlucas@localhost) by blackhelicopters.org (8.11.6/8.11.6) id g2QCok380753; Tue, 26 Mar 2002 07:50:46 -0500 (EST) (envelope-from mwlucas) Date: Tue, 26 Mar 2002 07:50:45 -0500 From: Michael Lucas To: Apache Man Cc: hackers@FreeBSD.ORG Subject: Re: kernel panic: vm_object_reference Message-ID: <20020326075045.B80675@blackhelicopters.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from apache@ukr.net on Tue, Mar 26, 2002 at 10:24:01AM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, Forcibly unmounting a file system that is in use will panic your system. It's not exactly a bug, it's just how it works. :) On Tue, Mar 26, 2002 at 10:24:01AM +0200, Apache Man wrote: > Hi. > > As i informed you earler the bug exists in freebsd 4.5. > Kernel panics with `vm_object_reference: delay in getting object' > when i copy files from a partition and at the same time dismount > this partition (umount -f /cdrom). > > The sutuation is following. > I mount /cdrom. Then start too many `cp' processes that copy > some files from /cdrom. In other tty i umount -f /cdrom and > kernel panics. > > Sorry if it's known bug. > > -- > email: apache@ukr.net > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- Michael Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org my FreeBSD column: http://www.oreillynet.com/pub/q/Big_Scary_Daemons http://www.blackhelicopters.org/~mwlucas/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 5:20:23 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.kyx.net (s216-232-31-82.bc.hsia.telus.net [216.232.31.82]) by hub.freebsd.org (Postfix) with ESMTP id B6E9837B416 for ; Tue, 26 Mar 2002 05:20:15 -0800 (PST) Received: by mail.kyx.net (Postfix, from userid 1000) id BF9F51DCA9; Tue, 26 Mar 2002 05:35:35 -0800 (PST) To: hackers@freebsd.org Subject: CanSecWest/core02 reminder Message-Id: <20020326133535.BF9F51DCA9@mail.kyx.net> Date: Tue, 26 Mar 2002 05:35:35 -0800 (PST) From: dr@kyx.net (Dragos Ruiu) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello to those of you I haven't talked in a while, and last two years conference attendees. (Sorry if you get two copies of this, it means you've either got two ids in my addressbook or my perl hash script-foo is not leet enough. :-) This is a quick note to remind you that the deadline for reduced fares for travel to Vancouver for the CanSecWest/core02 conference in Vancouver is coming up so if you haven't booked your ticket, or taken advantage of the lower registration rates this month.... Also agenda details and a schedule will be posted shortly at http://www.cansecwest.com cheers, --dr -- --dr http://dragos.com/dr-dursec.asc CanSecWest/core02 - May 1-3 2002 - Vancouver B.C. - http://cansecwest.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 7:21:19 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx01-a.netapp.com (mx01-a.netapp.com [198.95.226.53]) by hub.freebsd.org (Postfix) with ESMTP id 35F7F37B41F for ; Tue, 26 Mar 2002 07:21:15 -0800 (PST) Received: from frejya.corp.netapp.com (frejya [10.10.20.91]) by mx01-a.netapp.com (8.11.1/8.11.1/NTAP-1.2) with ESMTP id g2QFKd310498; Tue, 26 Mar 2002 07:20:39 -0800 (PST) Received: from orbit-fe.eng (localhost [127.0.0.1]) by frejya.corp.netapp.com (8.12.2/8.12.2/NTAP-1.4) with ESMTP id g2QFKdZ2009942; Tue, 26 Mar 2002 07:20:39 -0800 (PST) Received: from localhost (kmacy@localhost) by orbit-fe.eng (8.11.6+Sun/8.11.6) with ESMTP id g2QFKb524483; Tue, 26 Mar 2002 07:20:37 -0800 (PST) Date: Tue, 26 Mar 2002 07:20:37 -0800 (PST) From: Kip Macy To: Michael Lucas Cc: Apache Man , hackers@FreeBSD.ORG Subject: Re: kernel panic: vm_object_reference In-Reply-To: <20020326075045.B80675@blackhelicopters.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG That is a bug. The system is supposed to iterate through all the vnodes hanging off the mount point and vgone them. According to Kirk at least this used to work. -Kip On Tue, 26 Mar 2002, Michael Lucas wrote: > Hello, > > Forcibly unmounting a file system that is in use will panic your > system. It's not exactly a bug, it's just how it works. :) > > On Tue, Mar 26, 2002 at 10:24:01AM +0200, Apache Man wrote: > > Hi. > > > > As i informed you earler the bug exists in freebsd 4.5. > > Kernel panics with `vm_object_reference: delay in getting object' > > when i copy files from a partition and at the same time dismount > > this partition (umount -f /cdrom). > > > > The sutuation is following. > > I mount /cdrom. Then start too many `cp' processes that copy > > some files from /cdrom. In other tty i umount -f /cdrom and > > kernel panics. > > > > Sorry if it's known bug. > > > > -- > > email: apache@ukr.net > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > -- > Michael Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org > my FreeBSD column: http://www.oreillynet.com/pub/q/Big_Scary_Daemons > > http://www.blackhelicopters.org/~mwlucas/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 7:24: 5 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from blackhelicopters.org (geburah.blackhelicopters.org [209.69.178.18]) by hub.freebsd.org (Postfix) with ESMTP id 0B50037B416 for ; Tue, 26 Mar 2002 07:23:59 -0800 (PST) Received: (from mwlucas@localhost) by blackhelicopters.org (8.11.6/8.11.6) id g2QFNfx81852; Tue, 26 Mar 2002 10:23:41 -0500 (EST) (envelope-from mwlucas) Date: Tue, 26 Mar 2002 10:23:40 -0500 From: Michael Lucas To: Kip Macy Cc: Apache Man , hackers@FreeBSD.ORG Subject: Re: kernel panic: vm_object_reference Message-ID: <20020326102340.A81834@blackhelicopters.org> References: <20020326075045.B80675@blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from kmacy@netapp.com on Tue, Mar 26, 2002 at 07:20:37AM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG OK. That's not what I was told but back in 96 or so,but I suppose the code is allowed to change. My apologies. :-) Could you please prepare a dump of this? See the developers' handbook for details, or follow the pointers from the FAQ. Thanks! On Tue, Mar 26, 2002 at 07:20:37AM -0800, Kip Macy wrote: > That is a bug. The system is supposed to iterate through all the vnodes hanging > off the mount point and vgone them. According to Kirk at least this used to > work. > > -Kip > > > On Tue, 26 Mar 2002, Michael Lucas wrote: > > > Hello, > > > > Forcibly unmounting a file system that is in use will panic your > > system. It's not exactly a bug, it's just how it works. :) > > > > On Tue, Mar 26, 2002 at 10:24:01AM +0200, Apache Man wrote: > > > Hi. > > > > > > As i informed you earler the bug exists in freebsd 4.5. > > > Kernel panics with `vm_object_reference: delay in getting object' > > > when i copy files from a partition and at the same time dismount > > > this partition (umount -f /cdrom). > > > > > > The sutuation is following. > > > I mount /cdrom. Then start too many `cp' processes that copy > > > some files from /cdrom. In other tty i umount -f /cdrom and > > > kernel panics. > > > > > > Sorry if it's known bug. > > > > > > -- > > > email: apache@ukr.net > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-hackers" in the body of the message > > > > -- > > Michael Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org > > my FreeBSD column: http://www.oreillynet.com/pub/q/Big_Scary_Daemons > > > > http://www.blackhelicopters.org/~mwlucas/ > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > -- Michael Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org my FreeBSD column: http://www.oreillynet.com/pub/q/Big_Scary_Daemons http://www.blackhelicopters.org/~mwlucas/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 7:38:27 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 1F0B237B417 for ; Tue, 26 Mar 2002 07:38:23 -0800 (PST) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.12.2/8.12.2) with ESMTP id g2QFb1xv057406; Tue, 26 Mar 2002 09:38:21 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.2/8.12.2/Submit) id g2QFZfg5056636; Tue, 26 Mar 2002 09:35:41 -0600 (CST) Date: Tue, 26 Mar 2002 09:35:41 -0600 From: Dan Nelson To: Andrew Cc: Volker Stolz , Ian , hackers@FreeBSD.ORG Subject: Re: idprio Message-ID: <20020326153541.GF17825@dan.emsphone.com> References: <20020326121046.A3952@margaux.informatik.rwth-aachen.de> <20020326232510.A21338-100000@starbug.ugh.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020326232510.A21338-100000@starbug.ugh.net.au> User-Agent: Mutt/1.3.28i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Mar 26), Andrew said: > On Tue, 26 Mar 2002, Volker Stolz wrote: > > Under FreeBSD system calls are currently never preempted, therefore > > non- realtime processes can starve realtime processes, or idletime > > processes can starve normal priority processes. > > Even so an idprio process can't be worse than a normal process. Sure it can, if the idprio process has locked a vnode trying to update the contents of a file, and another non-idprio process starts consuming 100% CPU. The idprio process never gets a chance to run again, and if that vnode happened to be an important one (say for /), you may not be able to kill the other process without rebooting. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 8:35:51 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx01-a.netapp.com (mx01-a.netapp.com [198.95.226.53]) by hub.freebsd.org (Postfix) with ESMTP id F24D337B416 for ; Tue, 26 Mar 2002 08:35:45 -0800 (PST) Received: from frejya.corp.netapp.com (frejya [10.10.20.91]) by mx01-a.netapp.com (8.11.1/8.11.1/NTAP-1.2) with ESMTP id g2QGZG315519; Tue, 26 Mar 2002 08:35:16 -0800 (PST) Received: from orbit-fe.eng (localhost [127.0.0.1]) by frejya.corp.netapp.com (8.12.2/8.12.2/NTAP-1.4) with ESMTP id g2QGZFM2017479; Tue, 26 Mar 2002 08:35:15 -0800 (PST) Received: from localhost (kmacy@localhost) by orbit-fe.eng (8.11.6+Sun/8.11.6) with ESMTP id g2QGZFa17325; Tue, 26 Mar 2002 08:35:15 -0800 (PST) Date: Tue, 26 Mar 2002 08:35:14 -0800 (PST) From: Kip Macy To: Michael Lucas Cc: Apache Man , hackers@FreeBSD.ORG Subject: Re: kernel panic: vm_object_reference In-Reply-To: <20020326102340.A81834@blackhelicopters.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG No apologies neccessary :-). You may be right with respect to FreeBSD. In his BSD class Kirk describes a forcible unmount as a perfectly legitimate thing to do (albeit a bit traumatic for the users). It may just be a regression that crept in and, seeing as it is something that people seldom want to do, no one saw a need to fix it. -Kip > OK. That's not what I was told but back in 96 or so,but I suppose the > code is allowed to change. My apologies. :-) > > Could you please prepare a dump of this? See the developers' handbook > for details, or follow the pointers from the FAQ. Thanks! > > On Tue, Mar 26, 2002 at 07:20:37AM -0800, Kip Macy wrote: > > That is a bug. The system is supposed to iterate through all the vnodes hanging > > off the mount point and vgone them. According to Kirk at least this used to > > work. > > > > -Kip > > > > > > On Tue, 26 Mar 2002, Michael Lucas wrote: > > > > > Hello, > > > > > > Forcibly unmounting a file system that is in use will panic your > > > system. It's not exactly a bug, it's just how it works. :) > > > > > > On Tue, Mar 26, 2002 at 10:24:01AM +0200, Apache Man wrote: > > > > Hi. > > > > > > > > As i informed you earler the bug exists in freebsd 4.5. > > > > Kernel panics with `vm_object_reference: delay in getting object' > > > > when i copy files from a partition and at the same time dismount > > > > this partition (umount -f /cdrom). > > > > > > > > The sutuation is following. > > > > I mount /cdrom. Then start too many `cp' processes that copy > > > > some files from /cdrom. In other tty i umount -f /cdrom and > > > > kernel panics. > > > > > > > > Sorry if it's known bug. > > > > > > > > -- > > > > email: apache@ukr.net > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > > with "unsubscribe freebsd-hackers" in the body of the message > > > > > > -- > > > Michael Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org > > > my FreeBSD column: http://www.oreillynet.com/pub/q/Big_Scary_Daemons > > > > > > http://www.blackhelicopters.org/~mwlucas/ > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-hackers" in the body of the message > > > > > -- > Michael Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org > my FreeBSD column: http://www.oreillynet.com/pub/q/Big_Scary_Daemons > > http://www.blackhelicopters.org/~mwlucas/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 9:20:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) by hub.freebsd.org (Postfix) with ESMTP id A8DBF37B400 for ; Tue, 26 Mar 2002 09:20:01 -0800 (PST) Received: from isi.edu (0wiam8cxbtn0k6ys@hbo.isi.edu [128.9.160.75]) by boreas.isi.edu (8.11.6/8.11.2) with ESMTP id g2QHGM020726; Tue, 26 Mar 2002 09:16:22 -0800 (PST) Message-ID: <3CA0ACE5.5000906@isi.edu> Date: Tue, 26 Mar 2002 09:16:21 -0800 From: Lars Eggert User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.9) Gecko/20020322 X-Accept-Language: en-us, de-de MIME-Version: 1.0 To: Andrew Cc: Volker Stolz , Ian , hackers@freebsd.org Subject: Re: idprio References: <20020326232510.A21338-100000@starbug.ugh.net.au> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms060908050405040708070607" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a cryptographically signed message in MIME format. --------------ms060908050405040708070607 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Andrew wrote: >> Under FreeBSD system calls are currently never preempted, therefore >> non- realtime processes can starve realtime processes, or idletime >> processes can starve normal priority processes. > > Even so an idprio process can't be worse than a normal process. Practically this means "you will still see a drop in your foreground performance." Theoretically, however, you can construct scenarios where your foreground stuff is starved ad infinitum due to priority inversion. (Since some/most non-CPU resources don't support priorities and preemption.) Lars -- Lars Eggert Information Sciences Institute http://www.isi.edu/larse/ University of Southern California --------------ms060908050405040708070607 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIInzCC ArUwggIeoAMCAQICAwWBRzANBgkqhkiG9w0BAQIFADCBkjELMAkGA1UEBhMCWkExFTATBgNV BAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUx HTAbBgNVBAsTFENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVl bWFpbCBSU0EgMjAwMC44LjMwMB4XDTAxMDgyNDE2NDAwMFoXDTAyMDgyNDE2NDAwMFowVDEP MA0GA1UEBBMGRWdnZXJ0MQ0wCwYDVQQqEwRMYXJzMRQwEgYDVQQDEwtMYXJzIEVnZ2VydDEc MBoGCSqGSIb3DQEJARYNbGFyc2VAaXNpLmVkdTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkC gYEA0AvLBsD78nxcUHeHkaMgl3b4qYPnfgbf8Lh+HQP8RgGMRG/Yb+vTpkGezlwt9pkJxiD1 1uZDy4CNNJUu3gKxKSb+zRV70O+lkwwftuHoLHoH4xwo3LcQ2LGDpd+I95tUN4dfJ3TmeEcU SF50dC/SuUI4w8AlhXQ8IxrhgdayTpECAwEAAaNWMFQwKgYFK2UBBAEEITAfAgEAMBowGAIB BAQTTDJ1TXlmZkJOVWJOSkpjZFoyczAYBgNVHREEETAPgQ1sYXJzZUBpc2kuZWR1MAwGA1Ud EwEB/wQCMAAwDQYJKoZIhvcNAQECBQADgYEAheZhn0pQA8zI7U2K1ZIAl11j0a1DKxnp3GtT vOUrGRB3WvYxidvdZ1kizhEsWeXU81TkNDH0DaRqtOEeu6Q2OhB+jeKEqY7IDAJE4/fI0e+d 6PnG1hd+vEvYmsKHkmzBhPc94XUOKNWO+qVNP2NGyNI3QIDy5wX4fdcOo1S34r4wggK1MIIC HqADAgECAgMFgUcwDQYJKoZIhvcNAQECBQAwgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxX ZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYD VQQLExRDZXJ0aWZpY2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwg UlNBIDIwMDAuOC4zMDAeFw0wMTA4MjQxNjQwMDBaFw0wMjA4MjQxNjQwMDBaMFQxDzANBgNV BAQTBkVnZ2VydDENMAsGA1UEKhMETGFyczEUMBIGA1UEAxMLTGFycyBFZ2dlcnQxHDAaBgkq hkiG9w0BCQEWDWxhcnNlQGlzaS5lZHUwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBANAL ywbA+/J8XFB3h5GjIJd2+KmD534G3/C4fh0D/EYBjERv2G/r06ZBns5cLfaZCcYg9dbmQ8uA jTSVLt4CsSkm/s0Ve9DvpZMMH7bh6Cx6B+McKNy3ENixg6XfiPebVDeHXyd05nhHFEhedHQv 0rlCOMPAJYV0PCMa4YHWsk6RAgMBAAGjVjBUMCoGBStlAQQBBCEwHwIBADAaMBgCAQQEE0wy dU15ZmZCTlViTkpKY2RaMnMwGAYDVR0RBBEwD4ENbGFyc2VAaXNpLmVkdTAMBgNVHRMBAf8E AjAAMA0GCSqGSIb3DQEBAgUAA4GBAIXmYZ9KUAPMyO1NitWSAJddY9GtQysZ6dxrU7zlKxkQ d1r2MYnb3WdZIs4RLFnl1PNU5DQx9A2karThHrukNjoQfo3ihKmOyAwCROP3yNHvnej5xtYX frxL2JrCh5JswYT3PeF1DijVjvqlTT9jRsjSN0CA8ucF+H3XDqNUt+K+MIIDKTCCApKgAwIB AgIBDDANBgkqhkiG9w0BAQQFADCB0TELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4g Q2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMRowGAYDVQQKExFUaGF3dGUgQ29uc3VsdGluZzEo MCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjEkMCIGA1UEAxMbVGhh d3RlIFBlcnNvbmFsIEZyZWVtYWlsIENBMSswKQYJKoZIhvcNAQkBFhxwZXJzb25hbC1mcmVl bWFpbEB0aGF3dGUuY29tMB4XDTAwMDgzMDAwMDAwMFoXDTAyMDgyOTIzNTk1OVowgZIxCzAJ BgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEP MA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZpY2F0ZSBTZXJ2aWNlczEoMCYGA1UE AxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4zMDCBnzANBgkqhkiG9w0BAQEFAAOB jQAwgYkCgYEA3jMypmPHCSVFPtJueCdngcXaiBmClw7jRCmKYzUqbXA8+tyu9+50bzC8M5B/ +TRxoKNtmPHDT6Jl2w36S/HW3WGl+YXNVZo1Gp2Sdagnrthy+boC9tewkd4c6avgGAOofENC UFGHgzzwObSbVIoTh/+zm51JZgAtCYnslGvpoWkCAwEAAaNOMEwwKQYDVR0RBCIwIKQeMBwx GjAYBgNVBAMTEVByaXZhdGVMYWJlbDEtMjk3MBIGA1UdEwEB/wQIMAYBAf8CAQAwCwYDVR0P BAQDAgEGMA0GCSqGSIb3DQEBBAUAA4GBAHMbbyZli/8VNEtZYortRL5Jx+gNu4+5DWomKmKE H7iHY3QcbbfPGlORS+HN5jjZ7VD0Omw0kqzmkpxuwSMBwgmn70uuct0GZ/VQby5YuLYLwVBX tewc1+8XttWIm7eiiBrtOVs5fTT8tpYYJU1q9J3Fw5EvqZa4BTxS/N3pYgNIMYICpjCCAqIC AQEwgZowgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcT CUNhcGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZpY2F0ZSBTZXJ2 aWNlczEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4zMAIDBYFHMAkG BSsOAwIaBQCgggFhMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8X DTAyMDMyNjE3MTYyMVowIwYJKoZIhvcNAQkEMRYEFGHNH2hXKB9jtpwe1MY8dnofQUAMMFIG CSqGSIb3DQEJDzFFMEMwCgYIKoZIhvcNAwcwDgYIKoZIhvcNAwICAgCAMA0GCCqGSIb3DQMC AgFAMAcGBSsOAwIHMA0GCCqGSIb3DQMCAgEoMIGtBgsqhkiG9w0BCRACCzGBnaCBmjCBkjEL MAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3du MQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsTFENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYD VQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAwMC44LjMwAgMFgUcwDQYJKoZIhvcNAQEB BQAEgYC3+pqatckRaBtHl4aeXhJ5qY+I2hpbS3Q1y4gjurZagaOJpvXNE3920VYd0uJCtGY1 qru7vJBeJE04z2zkPMxOQbbvG5DSlt1bbdj126euBk9s2WB76vPa1qrc11Prys4vx2M74j5O 6tTwVfcr4BX5pKdj1sJQXqct5JETNCf9+QAAAAAAAA== --------------ms060908050405040708070607-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 9:52: 5 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from slc.edu (weir-01c.slc.edu [207.106.89.46]) by hub.freebsd.org (Postfix) with ESMTP id 7388537B419 for ; Tue, 26 Mar 2002 09:52:00 -0800 (PST) Received: (from anthony@localhost) by slc.edu (8.11.1/8.11.1) id g2QHr2728007; Tue, 26 Mar 2002 12:53:02 -0500 (EST) (envelope-from anthony) Date: Tue, 26 Mar 2002 12:53:02 -0500 From: Anthony Schneider To: Ron Chen Cc: hackers@FreeBSD.ORG Subject: Re: Help with getting load information Message-ID: <20020326125301.A27824@mail.slc.edu> References: <20020326011626.85427.qmail@web14703.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020326011626.85427.qmail@web14703.mail.yahoo.com>; from ron_chen_123@yahoo.com on Mon, Mar 25, 2002 at 05:16:26PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable >=20 > Also, I want to get the information about the load, > and also process information. > you may get the load averages through getloadavg(3) or through kvm_getloadavg(3). process information may be retrieved through kvm_getprocs(3). Good luck, -Anthony. ----------------------------------------------- PGP key at: http://www.keyserver.net/ http://www.anthonydotcom.com/gpgkey/key.txt Home: http://www.anthonydotcom.com ----------------------------------------------- --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjygtX0ACgkQ+rDjkNht5F22GACcCT5KXKhiYh5PXCePGACnEYqV l68An3fBPpWJx5s3/pHt1swZvfRFtfua =VI0E -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 11:30:53 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 34A4337B41A for ; Tue, 26 Mar 2002 11:30:44 -0800 (PST) Received: from pool0210.cvx22-bradley.dialup.earthlink.net ([209.179.198.210] helo=mindspring.com) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16pweQ-0004sG-00; Tue, 26 Mar 2002 11:30:35 -0800 Message-ID: <3CA0CC45.C9913C89@mindspring.com> Date: Tue, 26 Mar 2002 11:30:13 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Vadim Kolontsov Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: jail + mount_union problem References: <002701c1d4a5$51244b70$6f40f650@vk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Vadim Kolontsov wrote: > > Good morning, > > So UNIONFS is broken in 4.5? Is it fixed in -STABLE? In -CURRENT? There are two types of "union"; one is intrinsic, and one is a seperate FS type. There are also uncommitted patches that have been sitting around for a while now. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 11:59:15 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id 10F0537B498 for ; Tue, 26 Mar 2002 11:58:54 -0800 (PST) Received: from pool0210.cvx22-bradley.dialup.earthlink.net ([209.179.198.210] helo=mindspring.com) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16px5e-0001p5-00; Tue, 26 Mar 2002 11:58:43 -0800 Message-ID: <3CA0D2DD.52BF1C2A@mindspring.com> Date: Tue, 26 Mar 2002 11:58:21 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Michael Lucas Cc: Apache Man , hackers@FreeBSD.ORG Subject: Re: kernel panic: vm_object_reference References: <20020326075045.B80675@blackhelicopters.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Michael Lucas wrote: > Forcibly unmounting a file system that is in use will panic your > system. It's not exactly a bug, it's just how it works. :) "Forcibly trapping a butterfly with the provided butterfly net will destroy civilization. It's not exactly a bug, it's just how it works." Sheesh. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 12: 4:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id 8B39737B422 for ; Tue, 26 Mar 2002 12:04:12 -0800 (PST) Received: from pool0210.cvx22-bradley.dialup.earthlink.net ([209.179.198.210] helo=mindspring.com) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16pxAK-0000DL-00; Tue, 26 Mar 2002 12:03:32 -0800 Message-ID: <3CA0D3FE.8113515C@mindspring.com> Date: Tue, 26 Mar 2002 12:03:10 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Dan Nelson Cc: Andrew , Volker Stolz , Ian , hackers@FreeBSD.ORG Subject: Re: idprio References: <20020326121046.A3952@margaux.informatik.rwth-aachen.de> <20020326232510.A21338-100000@starbug.ugh.net.au> <20020326153541.GF17825@dan.emsphone.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dan Nelson wrote: > In the last episode (Mar 26), Andrew said: > > On Tue, 26 Mar 2002, Volker Stolz wrote: > > > Under FreeBSD system calls are currently never preempted, therefore > > > non- realtime processes can starve realtime processes, or idletime > > > processes can starve normal priority processes. > > > > Even so an idprio process can't be worse than a normal process. > > Sure it can, if the idprio process has locked a vnode trying to update > the contents of a file, and another non-idprio process starts consuming > 100% CPU. The idprio process never gets a chance to run again, and if > that vnode happened to be an important one (say for /), you may not be > able to kill the other process without rebooting. You meant that when you use priorities, you risk priority inversion? 8-p -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 12:26:11 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from damnhippie.dyndns.org (12-253-177-2.client.attbi.com [12.253.177.2]) by hub.freebsd.org (Postfix) with ESMTP id F1C8137B41E for ; Tue, 26 Mar 2002 12:26:06 -0800 (PST) Received: from [172.22.42.2] (peace.hippie.lan [172.22.42.2]) by damnhippie.dyndns.org (8.11.6/8.11.6) with ESMTP id g2QKQ6418409 for ; Tue, 26 Mar 2002 13:26:06 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) User-Agent: Microsoft Outlook Express Macintosh Edition - 5.01 (1630) Date: Tue, 26 Mar 2002 13:26:19 -0700 Subject: Re: idprio From: Ian To: Message-ID: In-Reply-To: <3CA0D3FE.8113515C@mindspring.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Dan Nelson wrote: >> In the last episode (Mar 26), Andrew said: >>> On Tue, 26 Mar 2002, Volker Stolz wrote: >>>> Under FreeBSD system calls are currently never preempted, therefore >>>> non- realtime processes can starve realtime processes, or idletime >>>> processes can starve normal priority processes. >>> >>> Even so an idprio process can't be worse than a normal process. >> >> Sure it can, if the idprio process has locked a vnode trying to update >> the contents of a file, and another non-idprio process starts consuming >> 100% CPU. The idprio process never gets a chance to run again, and if >> that vnode happened to be an important one (say for /), you may not be >> able to kill the other process without rebooting. > > You meant that when you use priorities, you risk priority inversion? > > 8-p > > -- Terry > Well, I think the upshot is that if you use priorities that can result in a process never getting any cycles you risk priority inversion. If you use normal "nice" priorities rather than those in the idprio range, then (I assume...) this priority inversion can't happen, because the nice'd process will eventually get some cycles. I think this amounts to "a good policy reason why idprio is a root-only command"... there is a potential "You'd better know what you're doing or the system locks up" factor involved. On the practical side of things, I'll continue to manually set my seti@home process to idprio 30, because it makes a noticible difference in buildworld performance. (Not dramatic, but noticible.) -- Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 13:14:11 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from epsb.ca (relay.epsb.ca [198.161.119.27]) by hub.freebsd.org (Postfix) with ESMTP id 0A49737B400 for ; Tue, 26 Mar 2002 13:14:07 -0800 (PST) Received: from exchange05.epsb.edmonton.ab.ca ([10.0.5.14]) by epsb.ca (8.11.3/8.11.3) with ESMTP id g2QLDte53716; Tue, 26 Mar 2002 14:13:55 -0700 (MST) (envelope-from Sean.Page@epsb.ca) Received: by exchange05.epsb.edmonton.ab.ca with Internet Mail Service (5.5.2653.19) id ; Tue, 26 Mar 2002 14:12:32 -0700 Message-ID: From: Sean Page To: "'Mike Carr'" Cc: "'freebsd-hackers@FreeBSD.ORG'" Subject: RE: apache13-ssl wiped out my Web pages Date: Tue, 26 Mar 2002 14:12:31 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Try looking in /usr/local/share/doc/apache for your web tree /usr/local/www/data used to be linked to this directory, it seems that now it is not. Chances are all your stuff is there, all you have to do is either move it to the newly created data directory or re-create the link to point to it's current location. Sean. Sean Page Network Analyst Information Technology Services Edmonton Public Schools -----Original Message----- From: Mike Carr [mailto:mcarr@san.rr.com] Sent: Saturday, March 23, 2002 12:29 AM To: freebsd-hackers@FreeBSD.ORG Subject: apache13-ssl wiped out my Web pages I Have recently installed the Horde port to my machine. I did not have Apache+mod_ssl, PHP, or MySql installed on my system, just Apache serving up my companies files. The installation went fine up to the point when I went to check the installation and found that the Apahe13-ssl port had wiped out my web directories. This definitely needs to change! Here are some ideas 1) Show a warning prior to installing Apache, that the installation will wipe out the users current web pages 2) Make a backup of the files prior to wiping them out 3) leave all the data in data.default directory alone apache13-ssl/ pkg-plist This is the problem area @exec [ -d %D/www/data/ ] || ln -fs %B %D/www/data Line 131 -rw-r--r-- 1 root wheel 22804 Dec 2 15:17 pkg-plist # New ports collection makefile for: Apache + mod_ssl # Date created: Sat Aug 22 12:00:00 CDT 1998 # Whom: rse@engelschall.com # # $FreeBSD: ports/www/apache13-modssl/Makefile,v 1.94 2002/01/22 22:29:24 sf Exp $ # To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 14:27:33 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by hub.freebsd.org (Postfix) with ESMTP id E004C37B41C for ; Tue, 26 Mar 2002 14:27:28 -0800 (PST) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id B8292A809; Wed, 27 Mar 2002 09:27:26 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id B48DA5434; Wed, 27 Mar 2002 09:27:26 +1100 (EST) Date: Wed, 27 Mar 2002 09:27:26 +1100 (EST) From: Andrew To: Terry Lambert Cc: Dan Nelson , Volker Stolz , Ian , Subject: Re: idprio In-Reply-To: <3CA0D3FE.8113515C@mindspring.com> Message-ID: <20020327092520.V24232-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 26 Mar 2002, Terry Lambert wrote: > > Sure it can, if the idprio process has locked a vnode trying to update But if system calls aren't preempted under what circumstances can a process hold a vnode lock and then be usurped for processor? Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 14:30:59 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 8BAD337B41B for ; Tue, 26 Mar 2002 14:30:54 -0800 (PST) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.12.2/8.12.2) with ESMTP id g2QMUojc062463; Tue, 26 Mar 2002 16:30:52 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.2/8.12.2/Submit) id g2QMUnBc062462; Tue, 26 Mar 2002 16:30:49 -0600 (CST) Date: Tue, 26 Mar 2002 16:30:49 -0600 From: Dan Nelson To: Andrew Cc: Terry Lambert , Volker Stolz , Ian , hackers@FreeBSD.ORG Subject: Re: idprio Message-ID: <20020326223049.GC5747@dan.emsphone.com> References: <3CA0D3FE.8113515C@mindspring.com> <20020327092520.V24232-100000@starbug.ugh.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020327092520.V24232-100000@starbug.ugh.net.au> User-Agent: Mutt/1.3.28i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Mar 27), Andrew said: > > On Tue, 26 Mar 2002, Terry Lambert wrote: > > > > Sure it can, if the idprio process has locked a vnode trying to update Careful; I wrote the above line, not Terry. > But if system calls aren't preempted under what circumstances can a > process hold a vnode lock and then be usurped for processor? System calls aren't preempted, but if while processing a syscall, the kernel decides to tsleep(), say because of disk I/O (a very common thing when dealing with vnodes :), then another process is free to start running. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 14:31:14 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 6D87D37B428 for ; Tue, 26 Mar 2002 14:31:03 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 388FEAE162; Tue, 26 Mar 2002 14:31:03 -0800 (PST) Date: Tue, 26 Mar 2002 14:31:03 -0800 From: Alfred Perlstein To: Andrew Cc: Terry Lambert , Dan Nelson , Volker Stolz , Ian , hackers@FreeBSD.ORG Subject: Re: idprio Message-ID: <20020326223103.GC93885@elvis.mu.org> References: <3CA0D3FE.8113515C@mindspring.com> <20020327092520.V24232-100000@starbug.ugh.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020327092520.V24232-100000@starbug.ugh.net.au> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Andrew [020326 14:27] wrote: > > > On Tue, 26 Mar 2002, Terry Lambert wrote: > > > > Sure it can, if the idprio process has locked a vnode trying to update > > But if system calls aren't preempted under what circumstances can a > process hold a vnode lock and then be usurped for processor? While sleeping for IO. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 15:10: 7 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by hub.freebsd.org (Postfix) with ESMTP id CE4E537B41D for ; Tue, 26 Mar 2002 15:09:40 -0800 (PST) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id 2ABC9A809; Wed, 27 Mar 2002 10:09:39 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id 26F855434; Wed, 27 Mar 2002 10:09:39 +1100 (EST) Date: Wed, 27 Mar 2002 10:09:39 +1100 (EST) From: Andrew To: Alfred Perlstein Cc: Terry Lambert , Dan Nelson , Volker Stolz , Ian , Subject: Re: idprio In-Reply-To: <20020326223103.GC93885@elvis.mu.org> Message-ID: <20020327100919.V24232-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 26 Mar 2002, Alfred Perlstein wrote: > While sleeping for IO. Oh yeah...rather obvious now you mention it :-) Thanks, Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Mar 26 19:39:31 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f218.law11.hotmail.com [64.4.17.218]) by hub.freebsd.org (Postfix) with ESMTP id 92BC137B416 for ; Tue, 26 Mar 2002 19:38:59 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 26 Mar 2002 19:38:59 -0800 Received: from 208.151.119.232 by lw11fd.law11.hotmail.msn.com with HTTP; Wed, 27 Mar 2002 03:38:59 GMT X-Originating-IP: [208.151.119.232] From: "Chad Kline" To: freebsd-hackers@freebsd.org Subject: Re: olympus c-1 (d-150) Date: Wed, 27 Mar 2002 03:38:59 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 27 Mar 2002 03:38:59.0444 (UTC) FILETIME=[EE394B40:01C1D540] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG i am being directed to this list for assistance. the problem is an Olympus camera as follows: (please Cc off list - i am not subscribed) >NO!!!! it is no in this line! Maybe its the same like the C-1, but the name >of it is D-150. So it gets detected by the next line of this file: > > * Olympus digital cameras (D-370) > */ > {T_DIRECT, SIP_MEDIA_REMOVABLE, "OLYMPUS", "D-*", "*"}, > /*quirks*/ DA_Q_NO_6_BYTE > >And if you look closer you see that there's no "DA_Q_NO_SYNC_CACHE". >Add it and try again. ok - i have done as suggested as follows (before & after dmesg): (i don't not any difference - camera is plugged in at boot time) =========================================================== usbdevs -v reports: Controller /dev/usb0: addr 1: self powered, config 1, OHCI root hub(0x0000), OPTi(0x0000), rev 0x0100 port 1 addr 2: self powered, config 1, C-1 Digital Camera(0x0102), Olympus(0x07b4), rev 0x1015 port 2 powered usbd -d reports: usbd:doing timeout discovery on /dev/usb0 usbd:processing event queue due to timeout on /dev/usb /etc/usbd.conf: device "SmartMedia" devname "/dev/da0s1" attach "/sbin/mount -t msdos /dev/da0s1 /mnt" =========================================================== /usr/src/sys/dev/usb/umass.c: if (UGETW(dd->>idVendor) == USB_VENDOR_OLYMPUS) { /* && */ /* UGETW(dd->>idProduct) == USB_PRODUCT_OLYMPUS_C1) { */ /* * The Olympus C-1 camera uses a different command-status * signature. */ sc->>quirks |= WRONG_CSWSIG; } Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.5-RELEASE #5: Mon Mar 25 16:33:16 AKST 2002 root@en26.groggy.anc.acsalaska.net:/usr/src/sys/compile/MYKERN Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 167045919 Hz CPU: Pentium/P54C (167.05-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x52c Stepping = 12 Features=0x1bf real memory = 33554432 (32768K bytes) avail memory = 30072832 (29368K bytes) Preloaded elf kernel "kernel" at 0xc02b6000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc02b609c. Intel Pentium detected, installing workaround for F00F bug Using $PIR table, 5 entries at 0xc00fdc70 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at 17.0 ohci0: mem 0xe1000000-0xe1000fff irq 10 at device 19.0 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: OPTi OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered umass0: OLYMPUS C-1Z,D-150Z, rev 1.10/10.15, addr 2, SCSI over Bulk-Only umass0: Max Lun is 0 umass-sim:0:-1:-1:XPT_PATH_INQ:. umass0:0:0:-1: Attached to scbus0 as device 0 umass0: Attach finished orm0: