Re: USB device with multiple interfaces, sample code anyone?

2006-06-01 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Volker <[EMAIL PROTECTED]> writes: : Hi hackers, : : I'm trying to correctly implement a driver for an USB device which : has multiple (serial) interfaces (at least 3). Each interface should : be seen by the kernel as a tty device entry /dev(/cuaU* or /d

Re: Scope of Variables in sh

2006-06-01 Thread Michael Schuh
Hello Bob, Hello @Lists, countobjects() { myline=0 cat $objectcountfile|grep -v "^[^0-9]*$"|grep -v "^0$"| awk '{myline += $1} END {print myline}' > $objectsum } this gave me the right behavior. THX i ve forgotten that the piping opens another subshell, so it is clearly logical that the 2

Porting libumem (was Re: Is anyone working on a port of ZFS to FreeBSD)

2006-06-01 Thread pfgshield-freebsd
--- Giorgos Keramidas <[EMAIL PROTECTED]> ha scritto: > On 2006-06-01 03:41, [EMAIL PROTECTED] wrote: > > FWIW, I'd also like to see libumem ported. > > Me too. > > I have been toying with the idea of consulting Jason Evans about > this for a while now. If something like this starts, are you >

Scope of Variables in sh

2006-06-01 Thread Michael Schuh
Hello, i have a little problem with the scope of sheel variables in an script. the script shows like: #!/bin/sh objectcountfile=/data2/scout/objects objectsum=/data2/scout/objcount sometime=5 initialize() { [ ! -e $objectsum ] && touch $objectsum } # countobjects() { myline=0 cat $objectcount

Re: Is anyone working on a port of ZFS to FreeBSD

2006-06-01 Thread Joseph Scott
On Jun 1, 2006, at 9:50 AM, Robert Watson wrote: On Thu, 1 Jun 2006, Eric Anderson wrote: Agreed it would be. I'd love to see it (I'm an advocate for as many filesystems available as possible actually). So, the real question is, who's going to volunteer to start actually porting it?

Re: Is anyone working on a port of ZFS to FreeBSD

2006-06-01 Thread Robert Watson
On Thu, 1 Jun 2006, Eric Anderson wrote: Agreed it would be. I'd love to see it (I'm an advocate for as many filesystems available as possible actually). So, the real question is, who's going to volunteer to start actually porting it? People interested in volunteering can expect lots of h

Re: iSCSI/sendto(...)

2006-06-01 Thread Scott Long
Danny Braniss wrote: Danny Braniss wrote: Hi, on a fairly new 6.1-stable, and probably before, once in a blue moon, sendto return error 64 (EHOSTDOWN?). but the packet seems to have been received by the target, since i get a response, and further more, everything keeps on working. wha

Re: Scope of Variables in sh

2006-06-01 Thread Joseph Koshy
but this doesnt function right. so i see the behavior from $myline in the while-loop like an local variable.. If you are looking for function local variables, use the "local" keyword. For example: a.sh a=1 f() { local a a=2 echo B: In f: $a } echo A: Outside

Re: misc questions about the device&driver arch

2006-06-01 Thread william wallace
Sir : question one : I see lots' of use of pcib_get_bus but i cannot see the defination ,where is it ? question two: what is the relationship among 1device_delete_child 2devclass_delete_device and 3devclass_delete_driver there seems some overlap among them :) 1devclass_delete_driver ->de

Re: Is anyone working on a port of ZFS to FreeBSD

2006-06-01 Thread Giorgos Keramidas
On 2006-06-01 03:41, [EMAIL PROTECTED] wrote: > FWIW, I'd also like to see libumem ported. Me too. I have been toying with the idea of consulting Jason Evans about this for a while now. If something like this starts, are you willing to help with the port? ___

Re: recent vixie cron vulnerability

2006-06-01 Thread Robert Watson
On Thu, 1 Jun 2006, Kostik Belousov wrote: There was recent discovery of the problem in the vixie cron job execution, see http://www.securityfocus.com/bid/18108/ and https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=178431 The hole exists because calls to the setuid(2) goes unchecked for e

Re: [ANN] unionfs patchset-13 release

2006-06-01 Thread Robert Watson
On Wed, 31 May 2006, André Braga wrote: A post scriptum to the original message: The buggy behaviour won't affect the host system, but the jail could well be compromised. I also have this feeling that ACLs also aren't respected inside jails or can be overwritten as easily as shown below By

recent vixie cron vulnerability

2006-06-01 Thread Kostik Belousov
There was recent discovery of the problem in the vixie cron job execution, see http://www.securityfocus.com/bid/18108/ and https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=178431 The hole exists because calls to the setuid(2) goes unchecked for errors. At first look, the issue seems to be irre

Re: Is anyone working on a port of ZFS to FreeBSD

2006-06-01 Thread Eric Anderson
Iantcho Vassilev wrote: On 6/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: --- Eric Anderson <[EMAIL PROTECTED]> ha scritto: > > I realize how hard getting write support for one of those is, for > certain.You'd still have to go through the labor with ZFS though, > unless you are talk

Re: [patch] Adding optimized kernel copying support - Part III

2006-06-01 Thread Attilio Rao
2006/6/1, Alexander Leidinger <[EMAIL PROTECTED]>: AFAIR the DFly FPU rework allows to use FPU/XMM instructions in their kernel without the need to do some manual state preserving (it's done automatically on demand). So one could use XMM instructions in RAID 5 or crypto parts of the code to test

Re: Is anyone working on a port of ZFS to FreeBSD

2006-06-01 Thread Iantcho Vassilev
On 6/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: --- Eric Anderson <[EMAIL PROTECTED]> ha scritto: > > I realize how hard getting write support for one of those is, for > certain.You'd still have to go through the labor with ZFS though, > unless you are talking about read-only suppo

Re: [ANN] unionfs patchset-13 release

2006-06-01 Thread Daichi GOTO
André Braga wrote: A post scriptum to the original message: The buggy behaviour won't affect the host system, but the jail could well be compromised. I also have this feeling that ACLs also aren't respected inside jails or can be overwritten as easily as shown below Thanks, André for all folks

Re: [patch] Adding optimized kernel copying support - Part III

2006-06-01 Thread Alexander Leidinger
Quoting Attilio Rao <[EMAIL PROTECTED]> (from Thu, 1 Jun 2006 01:32:12 +0200): 2006/6/1, Bruce Evans <[EMAIL PROTECTED]>: The new code wouldn't behave much differently under SMP. It just might be a smaller optimization because more memory pressure for SMP causes more cache misses for every

Re: Is anyone working on a port of ZFS to FreeBSD

2006-06-01 Thread pfgshield-freebsd
--- Eric Anderson <[EMAIL PROTECTED]> ha scritto: > > I realize how hard getting write support for one of those is, for > certain.You'd still have to go through the labor with ZFS though, > unless you are talking about read-only support for it. I don't know > much about licensing stuff.

Re: Is anyone working on a port of ZFS to FreeBSD

2006-06-01 Thread pfgshield-freebsd
--- Eric Anderson <[EMAIL PROTECTED]> ha scritto: ... > > > ZFS surely is cool, but I'm not sure how much it benefits FreeBSD > compared to something like journaling, or adding features to our > existing filesystem, or even write support for one of the already ported > read-only filesystems

Re: iSCSI/sendto(...)

2006-06-01 Thread Danny Braniss
> Danny Braniss wrote: > > > Hi, > > on a fairly new 6.1-stable, and probably before, once in a > > blue moon, sendto return error 64 (EHOSTDOWN?). but the packet seems to have > > been received by the target, since i get a response, and further more, > > everything keeps on working. > > > >

Re: iSCSI/sendto(...)

2006-06-01 Thread Scott Long
Danny Braniss wrote: Hi, on a fairly new 6.1-stable, and probably before, once in a blue moon, sendto return error 64 (EHOSTDOWN?). but the packet seems to have been received by the target, since i get a response, and further more, everything keeps on working. what is error 64? danny

iSCSI/sendto(...)

2006-06-01 Thread Danny Braniss
Hi, on a fairly new 6.1-stable, and probably before, once in a blue moon, sendto return error 64 (EHOSTDOWN?). but the packet seems to have been received by the target, since i get a response, and further more, everything keeps on working. what is error 64? danny ___

ANA-6922 can't detect media

2006-06-01 Thread Liudas B.
Hi, I’m trying to use ANA-6922 multi-port board on FreeBSD 6.1-BETA1. Works only first port when using dc driver. This is because board has only one ROM and second port must use shared ROM (kern/79262). I wrote patch for this. But there is another problem (with or without patch). Both ports c