Re: ugen example

2003-06-08 Thread Bernd Walter
On Mon, Jun 09, 2003 at 12:19:01AM +1000, Andrew wrote: Hi, I'm just having a look at ugen, trying to see if I can get any action out of a USB-serial converter that has no existing driver. This is my first foray into the USB world so I apologise for any stupid questions...is there a good

Re: 0xdeadc0de panic after plugging in USB CompactFlashreader/writer on 5.0-RELEASE

2003-06-06 Thread Bernd Walter
On Wed, Jun 04, 2003 at 10:44:53PM -0700, Brian O'Shea wrote: System panics after PQI Travel Flash (USB Compact Flash reader/writer mass storage device) is plugged in. This is 5.0-RELEASE on i386. Many things have been changed since 5.0. Please retry with 5.1-RC1 or wait the few days for

Re: 0xdeadc0de panic after plugging in USB CompactFlashreader/writer on 5.0-RELEASE

2003-06-06 Thread Bernd Walter
On Thu, Jun 05, 2003 at 03:32:54PM +0200, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Bernd Walter writes: On Wed, Jun 04, 2003 at 10:44:53PM -0700, Brian O'Shea wrote: System panics after PQI Travel Flash (USB Compact Flash reader/writer mass storage device) is plugged

Re: 0xdeadc0de panic after plugging in USB CompactFlashreader/writer on 5.0-RELEASE

2003-06-06 Thread Bernd Walter
On Thu, Jun 05, 2003 at 04:10:59PM +0200, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Bernd Walter writes: Mine works fine without quirks: port 3 addr 3: full speed, power 100 mA, config 1, Travel Flash(0x1307), PQI(0x0483), rev 2.05 Mine is: port 1 addr 2: full speed

Re: Ax88172 vs FreeBSD USB stack

2003-03-28 Thread Bernd Walter
On Fri, Mar 28, 2003 at 10:38:58AM -0800, Bill Paul wrote: So. I picked up a Linksys USB200M USB 2.0 ethernet adapter that uses the ASIX Electronics AX88172 chip, and I started cobbling together a driver. This chip uses a series of vendor specific commands to do things like read/write the

Re: Ax88172 vs FreeBSD USB stack

2003-03-28 Thread Bernd Walter
On Fri, Mar 28, 2003 at 11:16:55AM -0800, Maksim Yevmenkin wrote: Just FYI ng_ubt(4) (/sys/netgraph/bluetooth/drivers/ubt) driver (Bluetooth USB devices) makes use of two interfaces. From a look into the driver these interfaces serve different protocols. I asume they are unrelated from a

Re: Ax88172 vs FreeBSD USB stack

2003-03-28 Thread Bernd Walter
On Fri, Mar 28, 2003 at 12:54:46PM -0800, Bill Paul wrote: On Fri, Mar 28, 2003 at 11:16:55AM -0800, Maksim Yevmenkin wrote: Just FYI ng_ubt(4) (/sys/netgraph/bluetooth/drivers/ubt) driver (Bluetooth USB devices) makes use of two interfaces. From a look into the driver these

Re: Why natd don't divert packets?

2003-03-07 Thread Bernd Walter
On Fri, Mar 07, 2003 at 11:51:45AM +0300, denb wrote: This working in FreeBSD4.7(ipfw1), but broken in FreeBSD 5.0(ipfw2). Why? This is an issue triggered by compiling libalias with -O2. Recompile libalias without -O2 and recompile natd so it binds to the rebuild libalias.a The problem wasn't

Re: USB support for new HP printers?

2002-12-02 Thread Bernd Walter
On Sun, Aug 25, 2002 at 11:36:15PM -0600, John Nielsen wrote: Are there plans to add USB support for HP's newer printers to FreeBSD? Specificially, the OfficeJets and the LaserJet 1200? They use a new/different/broken USB interface so they're just recognized as ugen devices at the

Re: boot from USB ZIP or USB HDD

2002-11-13 Thread Bernd Walter
On Tue, Nov 12, 2002 at 06:59:14PM +0300, Anton Vinokurov wrote: My motherboard (VIA Epia) support booting from USB-FDD, USB-ZIP, USB-HDD and USB-CDROM. I have no idea how it works and what the difference between all this methods. My USB flash device could be formatted as bootable under

Re: boot from USB ZIP or USB HDD

2002-11-12 Thread Bernd Walter
On Tue, Nov 12, 2002 at 06:10:08PM +0300, Anton Vinokurov wrote: Hi! Is there any way to boot FreeBSD from USB flash device which can be detected as 'usb zip' by BIOS? I have EasyDisk 32M flash device, which can be formatted under Windows as bootable, and my motherboard could boot Windows

Re: resizing mounted filesystems

2002-11-08 Thread Bernd Walter
On Thu, Nov 07, 2002 at 02:05:13PM -0800, Terry Lambert wrote: Lukas Ertl wrote: how hard would it be to implement resizing of mounted filesystems? Currently, growfs requires the filesystem to be unmounted, and this is definitely a showstopper for FreeBSD when it comes to production use.

Re: Formatting a large (1.3TB) SCSI disk

2002-11-03 Thread Bernd Walter
On Thu, Oct 31, 2002 at 04:12:36PM -0500, John Fieber wrote: I'm a bit stumped on this. I have a roughly 1.3 terabyte disk array attached via an Adaptec 39166 controller (on the motherboard of a Dell 2650). I understand there is a gap between the theoretical filesystem size limits and the

Re: i am looking for a 5 volt signal

2002-10-29 Thread Bernd Walter
On Mon, Oct 28, 2002 at 08:56:35AM -0500, Joe Sunday wrote: On Sun, Oct 27, 2002 at 09:12:33AM -0800, David Nicholas Kayal wrote: I'm looking for a 5 volt signal. I have wires plugged into pins 2 and 25 of the parallel port. I have written a small program: #include stdio.h

Re: Network connections keep dropping

2002-10-08 Thread Bernd Walter
On Tue, Oct 08, 2002 at 09:18:21AM +, Riaal Domingues wrote: I have a strange problem and I hope you guys can help me. We have several 4.6-RELEASE boxes running SSH, after connected for a while (varies between 5 min. and an +-40) the connection dies. The SSH on the server only writes

Re: Wrong paths for named-xfer (STABLE/CURRENT)

2002-08-13 Thread Bernd Walter
On Tue, Aug 13, 2002 at 01:15:56PM +0200, Martin Blapp wrote: Hi, We noted that named-xfer does not work in STABLE and CURRENT. Named does look for it in /usr/local/libexec than in /usr/libexec. But named-xfer gets installed into /usr/libexec. I guess the paths are just plain wrong

Re: select()/poll() i kernel.

2002-07-31 Thread Bernd Walter
On Wed, Jul 31, 2002 at 07:17:08PM +0200, Daniel Lundqvist wrote: On Wed, Jul 31, 2002 at 05:49:14PM +0100, David Malone wrote: On Wed, Jul 31, 2002 at 06:30:57PM +0200, Daniel Lundqvist wrote: If anyone has a better solution to this I'm all ears. Couldn't you do all this in userland

Re: select() behavior when system date changes

2002-07-18 Thread Bernd Walter
On Thu, Jul 18, 2002 at 04:26:22PM +0200, Jeremy D'Hoinne wrote: Hi, I have a problem with many server daemons. select() might block for a long time if system date changes. - Example : at 10h00am I call select() with a timeout argument set to 2min, at 10h01am, time changes

Re: security problem in sysctl?

2002-07-12 Thread Bernd Walter
On Fri, Jul 12, 2002 at 10:23:35PM +0100, void wrote: On Wed, Jul 10, 2002 at 02:30:19PM +0200, Bogdan TARU wrote: Hi guys, I have just rebooted my machine, and immediately after boot I have run 'sysctl -a' as an usual user. Well, in 'kern.msgbuf' I have found the whole

Re: termios guru ?

2002-07-11 Thread Bernd Walter
On Wed, Jul 10, 2002 at 09:13:18PM -0700, bruno schwander wrote: I making a port (not much really) of Irit (http://www.cs.technion.ac.il/~irit/) a modelling environment. I am having some problems with terminal handling, so all termios guru out there, please help ! :-) That's what I did for

Re: offtopic: low level format of IDE drive.

2002-07-08 Thread Bernd Walter
On Mon, Jul 08, 2002 at 02:53:20PM -0700, Julian Elischer wrote: On Mon, 8 Jul 2002, Terry Lambert wrote: Julian got struck by lightning; perhaps he will now stick to disks with built-in lightning rods (e.g. not succeptible to this failure), e.g. SCSI. This is an urban

Re: offtopic: low level format of IDE drive.

2002-07-08 Thread Bernd Walter
On Mon, Jul 08, 2002 at 04:40:04PM -0700, Matthew Dillon wrote: : Julian got struck by lightning; perhaps he will now stick to disks : with built-in lightning rods (e.g. not succeptible to this failure), : e.g. SCSI. : : This is an urban ledgend.. : :No - it's SCSI Specs. :A SCSI

Troubles with sa(4)

2002-07-06 Thread Bernd Walter
If I run the following programm: #include sys/mtio.h #include fcntl.h int Tape_rewind(int fd) { struct mtop mo; mo.mt_op = MTREW; mo.mt_count = 0; if (ioctl(fd, MTIOCTOP, mo) == -1) { return 1; } return 0; }; int Tape_fsf(int fd,

Re: How does swap work address spacewise?

2002-07-06 Thread Bernd Walter
On Sat, Jul 06, 2002 at 02:37:02PM -0700, Darren Pilgrim wrote: Bernd Walter wrote: On Fri, Jul 05, 2002 at 05:58:15PM -0700, Darren Pilgrim wrote: If RAM + swap can be more than 4GB, how does FreeBSD address swap on a 32-bit machine? Does the kernel internally use a wider address space

Re: How does swap work address spacewise?

2002-07-06 Thread Bernd Walter
On Sat, Jul 06, 2002 at 03:43:00PM -0700, Darren Pilgrim wrote: Bernd Walter wrote: On Sat, Jul 06, 2002 at 02:37:02PM -0700, Darren Pilgrim wrote: Bernd Walter wrote: On Fri, Jul 05, 2002 at 05:58:15PM -0700, Darren Pilgrim wrote: If RAM + swap can be more than 4GB, how does

Re: How does swap work address spacewise?

2002-07-06 Thread Bernd Walter
On Sat, Jul 06, 2002 at 04:01:18PM -0700, Terry Lambert wrote: Darren Pilgrim wrote: I thought the limit for filesystems was 2TB? The Blocknumber is signed that gives: 2^31 * 512Bytes Why sign the blocknumber? LBA uses an unsigned 32-bit integer, allowing 2TB, and IIRC SCSI

Re: How does swap work address spacewise?

2002-07-06 Thread Bernd Walter
On Sat, Jul 06, 2002 at 04:42:22PM -0700, Matthew Dillon wrote: Negative block numbers are used by UFS to represent the indirect blocks associated with a file, while positive block numbers represent the contents of the file. I never saw any negative block numbers in on-disc

Re: How does swap work address spacewise?

2002-07-06 Thread Bernd Walter
On Sun, Jul 07, 2002 at 02:10:19AM +0200, Bernd Walter wrote: On Sat, Jul 06, 2002 at 04:42:22PM -0700, Matthew Dillon wrote: Negative block numbers are used by UFS to represent the indirect blocks associated with a file, while positive block numbers represent the contents

Re: How does swap work address spacewise?

2002-07-06 Thread Bernd Walter
On Sat, Jul 06, 2002 at 05:33:50PM -0700, Matthew Dillon wrote: : :On Sat, Jul 06, 2002 at 04:42:22PM -0700, Matthew Dillon wrote: : Negative block numbers are used by UFS to represent the indirect blocks : associated with a file, while positive block numbers represent the :

Re: How does swap work address spacewise?

2002-07-05 Thread Bernd Walter
On Fri, Jul 05, 2002 at 05:58:15PM -0700, Darren Pilgrim wrote: If RAM + swap can be more than 4GB, how does FreeBSD address swap on a 32-bit machine? Does the kernel internally use a wider address space The same way it does on every partitition: using block numbers. That way you can address

Re: inuring FreeBSD to the apache bug without upgrading apache ?

2002-06-21 Thread Bernd Walter
On Fri, Jun 21, 2002 at 02:29:30AM -0400, Joshua Lee wrote: On Thu, 20 Jun 2002 19:59:20 -0700 Terry Lambert [EMAIL PROTECTED] wrote: Patrick Thomas wrote: Is it possible to patch/recompile FreeBSD 4.5 in such a way that your system is no longer vulnerable to the chunking attack, even

Re: 4.6-* sendmail misfeatures

2002-05-20 Thread Bernd Walter
On Mon, May 20, 2002 at 10:51:54AM -0500, Damon Anton Permezel wrote: So, in violation of the networking be liberal in what you accept and conservative in what you produce, sendmail in it's new form will have many perplexed sysadmins spending lots of time tracking down these mysterious

Re: 4.6-* sendmail misfeatures

2002-05-20 Thread Bernd Walter
On Mon, May 20, 2002 at 01:54:28PM -0500, Damon Anton Permezel wrote: On Mon, May 20, 2002 at 08:40:11PM +0200, Bernd Walter wrote: On Mon, May 20, 2002 at 10:51:54AM -0500, Damon Anton Permezel wrote: So, in violation of the networking be liberal in what you accept and conservative

Re: c++ and dlerror(): Linux vs FreeBSD

2002-05-16 Thread Bernd Walter
On Thu, May 16, 2002 at 06:03:22PM -0700, Albert Kinderman wrote: Disclaimer: I am not a programmer! I am trying to compile scribus-0.7.2, a Page Layout program, built against qt3. /usr/ports/print/scribus contains scribus-0.5, which is the qt2 version. On my Debian GNU/Linux, make

Re: gethostbyname2 and AF_INET6

2002-05-12 Thread Bernd Walter
On Sat, May 11, 2002 at 03:53:31PM -0700, Peter Haight wrote: Recently mozilla has been really slow resolving some DNS queries. I tracked this down to a call to gethostbyname2. For some addresses (e.g. 'www.vanguard.com'), gethostbyname2 with AF_INET6 will fail and takes more than a minute.

Re: vlan traffic over ipsec tunnel

2002-04-17 Thread Bernd Walter
On Wed, Apr 17, 2002 at 09:11:28PM +0200, Peter J. Blok wrote: Hi All, I'd like to accomplish the following: I have two locations, connected via an IPSEC tunnel. Is it possible to connect the vlans at both ends through the tunnel. Is this possible with existing software? What would it

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Bernd Walter
On Wed, Apr 10, 2002 at 10:45:25AM +0200, Bogdan TARU wrote: Dear Rogier Terry, I didn't say the behaviour contradicts Posix.2. I just said that Posix.2 specifies removal of the trailing slashes when doing directory operation. Which, for example, freebsd 'rm' does not, which leads

Re: Perl thing

2002-04-05 Thread Bernd Walter
On Fri, Apr 05, 2002 at 07:56:53PM +0600, Ilia Chipitsine wrote: Dear Sirs, Perl has very useful split function, it splits a string according arbitrary regular expression. Is there's such a C function ? I'm moving few programs from Perl to C. strsep(3) Especially the exmaple in the manpage

Re: 64-bit compiling on a 32-bit FreeBSD machine

2002-04-05 Thread Bernd Walter
On Fri, Apr 05, 2002 at 02:36:41PM -0500, Jason Borkowsky wrote: I have a FreeBSD 4.5-RELEASE box that I recently installed gcc-3.0.4. Is there any support for compiling 64-bit source code on this 32-bit set-up? (ie, a sort of emulation mode in that if the compiler sees a long long int, it

Re: vinum write spanning

2002-01-28 Thread Bernd Walter
On Mon, Jan 28, 2002 at 09:49:59AM -0500, Jason Andresen wrote: I'm hoping there is an easy answer to this one... Is there some way vinum can be tickled such that it writes to all disks in a plex at once? For instance, say I have a 6 disk RAID5 array that I'm writing a 200MB file to. Is

Re: Solaris /usr/proc/bin/pstack functionality?

2002-01-04 Thread Bernd Walter
On Thu, Jan 03, 2002 at 02:02:09PM +0100, Oliver Fromme wrote: Jos Backus [EMAIL PROTECTED] wrote: - Forwarded message from Justin Erenkrantz [EMAIL PROTECTED] - +1. =) I've talked to the FreeBSD people and they just laugh maniacally when I ask for a truss that follows

Re: how to mirror gnats db?

2001-12-21 Thread Bernd Walter
On Fri, Dec 21, 2001 at 04:54:43AM -0800, Hiten Pandya wrote: hi all, I wanted to ask, how I could mirror the gnats database to my own system. I have cvsup. /usr/share/examples/cvsup/gnats-supfile -- B.Walter COSMO-Project http://www.cosmo-project.de [EMAIL PROTECTED]

init code in dynamic libraries

2001-12-19 Thread Bernd Walter
How can I add initalisation code to a library without needing to call a function in the using application? What I saw is that libc does something like this but havn't found the starting point of this. -- B.Walter COSMO-Project http://www.cosmo-project.de [EMAIL PROTECTED]

Re: init code in dynamic libraries

2001-12-19 Thread Bernd Walter
On Wed, Dec 19, 2001 at 08:06:20PM +0100, Maxime Henrion wrote: Bernd Walter wrote: How can I add initalisation code to a library without needing to call a function in the using application? What I saw is that libc does something like this but havn't found the starting point

Re: irq

2001-12-12 Thread Bernd Walter
On Wed, Dec 12, 2001 at 03:02:19AM -0800, Terry Lambert wrote: How is setting a local register when an interrupt is triggered antithetical to such cards working? I know of several network cards where I've personally hacked on the driver that have such a register. It's not possbile to take

Re: irq

2001-12-10 Thread Bernd Walter
On Mon, Dec 10, 2001 at 09:38:22PM +0200, Danny Braniss wrote: Er, you don't seem to understand how PCI interrupts work. to Er is human, to ... :-) The meteor driver was causing problems with the adpatec, so i thought if i could reasigne the irq it would help. anyway i think i found a

Re: bin/32261: dump creates a dump file much larger than sum of dumped files

2001-12-04 Thread Bernd Walter
On Tue, Dec 04, 2001 at 03:35:38AM -0800, Crist J . Clark wrote: On Tue, Dec 04, 2001 at 10:04:57PM +1100, Mark Hannon wrote: Hi Chris, This is exactly what I was seeing! (I finally twigged when I did a low level backup of a filesystem and then noticed that my level 9 backup was

Re: umass ATAPI

2001-12-03 Thread Bernd Walter
On Mon, Dec 03, 2001 at 10:24:36AM -0800, Lars Eggert wrote: Hi, is anyone working on extending umass.c for ATAPI devices? My new digital camera identifies itself as an ATAPI device, but the corresponding code is commented out in umass.c, because it isn't complete and/or tested. (I'm

Re: umass ATAPI

2001-12-03 Thread Bernd Walter
On Mon, Dec 03, 2001 at 12:43:19PM -0800, Lars Eggert wrote: Bernd Walter wrote: src/sys/cam/scsi/scsi_da.c has the quirk table for such things. There are also some cameras in there. Ian Dowse has suggested the same thing, I'll try the quirks. There's also a patch at http

Re: Success! [with patch] (was Re: umass ATAPI)

2001-12-03 Thread Bernd Walter
On Mon, Dec 03, 2001 at 03:19:03PM -0800, Lars Eggert wrote: Bernd Walter wrote: But from memory it sounds like a new device for the quirk table. Yes, adding quirks to scsi_da.c and enabling ATAPI in umass.c made the camera attach and mount correctly. Copying also works fine. Patches

Re: FreeBSD performing worse than Linux?

2001-11-30 Thread Bernd Walter
On Fri, Nov 30, 2001 at 11:11:56AM +0100, Pierre Beyssac wrote: On Thu, Nov 29, 2001 at 10:28:09PM -0500, Leo Bicknell wrote: 4000 km one way == 8000 km two way, 8000 / 168300 = 47ms in my book, theoretial optimum. With an RTT of 47ms, you can move 16k per RTT, or or about 340k/sec.

Re: stange probelm with vmstat

2001-11-21 Thread Bernd Walter
On Wed, Nov 21, 2001 at 12:03:04PM -, Matthew wrote: Thank you for the help. But i need the boot.config to have the -P/-H flag in there. Can i put in some other place? You can also switch to serial via /boot/loader.rc. I have -h and -D in /boot.config so boot1 is using a serial. These

Re: Unix Philosophers Please!

2001-11-01 Thread Bernd Walter
On Wed, Oct 31, 2001 at 03:02:59PM -0600, Nicpon, John wrote: Please specifically define where data goes that is sent to /dev/null That's what manpages are for - see null(4). If you want it more specific src/sys/dev/null.c says: [...] static int null_write(dev_t dev, struct uio *uio, int

Re: Unix Philosophers Please!

2001-11-01 Thread Bernd Walter
On Thu, Nov 01, 2001 at 08:29:39PM +, lg wrote: In short: The data is tranfered into the kernel and dropped there. my source /usr/src/sys/i386/i386/mem.c [FreeBSD-4.3-RELEASE] says that data doesnt transfered into kernel. I was looking into -current. Null and *random have been seprarated

Re: disabling dynamic route addition

2001-10-28 Thread Bernd Walter
On Sun, Oct 28, 2001 at 11:47:16AM -0800, David Kirchner wrote: Hi, Is there currently a way (sysctl, patch?) to disable dynamic route I asume your dynamic routes are simple redirects. sysctl -w net.inet.icmp.drop_redirect=1 or in /etc/rc.conf: icmp_drop_redirect=YES Or get a better routing

Re: boot -v capture

2001-10-28 Thread Bernd Walter
On Sun, Oct 28, 2001 at 04:01:00PM -0500, Jon Parise wrote: On Sun, Oct 28, 2001 at 12:39:34PM -0800, Seth Kingsley wrote: Can anyone suggest a means by which to capture the 'boot -v' output without using a serial console? dmesg(8), so long as it doesn't overrun the buffer.

Re: chroot

2001-10-05 Thread Bernd Walter
On Thu, Oct 04, 2001 at 05:32:16PM -0600, Thierry Black wrote: Your chances to get an answer would be increased if you would write html. -- B.Walter COSMO-Project http://www.cosmo-project.de [EMAIL PROTECTED] Usergroup [EMAIL PROTECTED] To Unsubscribe:

Re: precise timing

2001-09-30 Thread Bernd Walter
On Sun, Sep 30, 2001 at 10:18:01AM -0500, Bart Kus wrote: On a totally unrelated subject to my sio.c message, I have a second problem. I've built a computer-controlled drill, that is controlled via the parallel port. This drill uses stepper motors, at 1/2 step. My driver software

Re: precise timing

2001-09-30 Thread Bernd Walter
On Sun, Sep 30, 2001 at 01:10:35PM -0500, Bart Kus wrote: On Sunday 30 September 2001 11:03, Bernd Walter wrote: Controlling steppers via lpt is what I explained and showed last tuesday on the cosmo-project meeting. We used nanosleep() which worked fine for the demonstration and playing

Re: ecc on i386

2001-09-29 Thread Bernd Walter
On Sat, Sep 29, 2001 at 10:47:54AM -0400, [EMAIL PROTECTED] wrote: Well if you didnt snip out the context you wouldnt have an argument at all, since I said to make it an option to shut down or issue a warning. You mean this: sysctl machdep.panic_on_nmi But I still beleave it's not a good

Re: bind : address already inuse

2001-09-28 Thread Bernd Walter
On Fri, Sep 28, 2001 at 09:55:03AM -0700, rick norman wrote: When an app binds an address and port to a listen socket, what variables can I adjust so the address may be reused immediately after the app exits. My understanding was that int on = 1;

Re: setjmp/longjmp

2001-09-28 Thread Bernd Walter
On Fri, Sep 28, 2001 at 07:03:51PM +0530, Anjali Kulkarni wrote: hi, Does anyone know whether it is advisable or not to use setjmp/longjmp within kernel code? I could not see any setjmp/longjmp in kernel source code. Is there a good reason for this or can it be used? You need to look again,

Re: ecc on i386

2001-09-28 Thread Bernd Walter
On Fri, Sep 28, 2001 at 09:46:19AM -0400, [EMAIL PROTECTED] wrote: In a message dated 9/25/01 1:05:21 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: Well, at least we take the machine down, which is a heck of a lot better than ignoring the problem, which is really all that I was

Re: VM Corruption - stumped, anyone have any ideas?

2001-09-25 Thread Bernd Walter
On Mon, Sep 24, 2001 at 06:14:34PM -0700, Bakul Shah wrote: FWIW, in a Unix port we did I remember putting the user struct *above* the kernel stack. The stack grew down so you hit the red zone (the guard pages) without clobbering the user struct. Since struct user _ended_ on a page

Re: VM Corruption - stumped, anyone have any ideas?

2001-09-25 Thread Bernd Walter
On Tue, Sep 25, 2001 at 10:01:03AM +0200, Peter Wullinger wrote: On Tue, Sep 25, 2001 at 09:56:07AM +0200, Bernd Walter wrote: On Mon, Sep 24, 2001 at 06:14:34PM -0700, Bakul Shah wrote: FWIW, in a Unix port we did I remember putting the user struct *above* the kernel stack. The stack

Re: CAN bus

2001-09-17 Thread Bernd Walter
On Mon, Sep 17, 2001 at 05:15:07PM -0700, Julian Elischer wrote: Ok so I have to ask... what is CAN bus? (besides a piece of string between 2 cans.). CAN stands for Controller Area Network. It's a fieldbus widely used in automation systems. -- B.Walter COSMO-Project

Re: Large disk (1 TB) support in FBD4.3 ?

2001-09-15 Thread Bernd Walter
On Sat, Sep 15, 2001 at 11:29:41AM -0700, Matthew Jacob wrote: Don- too bad- I'm over in NAS in building N-258 and just took down the h/w where we could test this (Alpha 4100 with 8 Qlogic cards 8 150GB MegaDrive RAID arrays)- We're excessing this equipment because the mass storage group's

Re: VINUM PANIC ON -STABLE

2001-09-15 Thread Bernd Walter
On Sat, Sep 15, 2001 at 04:34:32PM -0700, [EMAIL PROTECTED] wrote: On Sat, 15 Sep 2001 21:52:06 +0200, Bernd Walter wrote: On Sat, Sep 15, 2001 at 12:26:10PM -0700, [EMAIL PROTECTED] wrote: I posted a message to -hackers several days ago, complete with a kernel backtrace

Re: local changes to CVS tree

2001-09-05 Thread Bernd Walter
On Wed, Sep 05, 2001 at 01:10:27PM +0200, Alexander Langer wrote: Thus spake Kris Kennaway ([EMAIL PROTECTED]): On Wed, Sep 05, 2001 at 09:52:34AM +0300, Giorgos Keramidas wrote: I have it fixed now in my local CVS tree. Hopefully Kris will commit something to fix it soon :-)

Re: auto relaying for subdomains -- why?

2001-09-05 Thread Bernd Walter
On Wed, Sep 05, 2001 at 09:07:19PM +0800, Igor Podlesny wrote: My greetings! I noticed that some mailers (sendmail, postfix) in case they allow relayingforsomedomain.zonealsoallowrelayingfor subdomain-of.somedomain.zone. I can accept this as reasonable

Re: [Fwd: Help me regarding IP forwarding]

2001-08-31 Thread Bernd Walter
On Thu, Aug 30, 2001 at 07:42:24PM +0530, Sridhar M wrote: fxp0 : ip : 10.1.6.160/24 fxp1: ip 10.1.6.161/24 default gateway : ip : 10.1.6.1 gateway and routed was enabled . routed is for dynamic routing (RIP). You don't need it if you are doing static routing. our setup is freebsd system

Re: Mailing Lists

2001-08-26 Thread Bernd Walter
On Sun, Aug 26, 2001 at 07:33:25PM +0100, Robert Swindells wrote: Would it be possible to state somewhere - maybe on the web site, the policy for allowing posts to the mailing list ? I'm getting a bit fed up of my posts getting bounced because the MTA for freebsd.org doesn't like my

mmap MAP_INHERIT question.

2001-08-23 Thread Bernd Walter
I do the following: buf = (char*)mmap(NULL, BUFSIZE, PROT_READ | PROT_WRITE, MAP_ANON | MAP_INHERIT | MAP_SHARED, -1, 0); Now I vfork/execve a child. But the child can't access the mmaped memory. It was my understanding that MAP_INHERIT | MAP_SHARED keep the memory over the

Re: mmap MAP_INHERIT question.

2001-08-23 Thread Bernd Walter
MAP_SHARED alone is suffient for fork!? On Thu, 23 Aug 2001, Alfred Perlstein wrote: * Bernd Walter [EMAIL PROTECTED] [010823 06:16] wrote: I do the following: buf = (char*)mmap(NULL, BUFSIZE, PROT_READ | PROT_WRITE, MAP_ANON | MAP_INHERIT | MAP_SHARED, -1, 0); Now I

Re: How to make bootable disk boot images with vn device?

2001-08-22 Thread Bernd Walter
On Tue, Aug 21, 2001 at 09:41:34PM +0200, Andre Oppermann wrote: # dd if=/dev/zero of=mfsroot bs=1k count=25000 # vnconfig -e -s labels vn0 mfsroot # disklabel -r -w vn0 auto # newfs /dev/vn0c # mount and cp blabla You need to disklabel -B vn0 to install boot blocks. And you should not

Re: [Fwd: Re: slashdotted: /kernel: xl0: no memory for rx list -- packet dropped!]

2001-08-19 Thread Bernd Walter
On Sun, Aug 19, 2001 at 04:51:24PM -0400, Jan Knepper wrote: Hi! Does anyone here know what to do about this? Read the manpage for the xl driver: xl%d: no memory for rx list The driver failed to allocate an mbuf for the receiver ring. Increase the nmbclusters or decrease the mbuf

indicating alignment errors on i386?

2001-08-14 Thread Bernd Walter
Is it possible to indicate or better sigbus alignment errors on i386? -- B.Walter COSMO-Project http://www.cosmo-project.de [EMAIL PROTECTED] Usergroup [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in

Re: mtio questions

2001-08-13 Thread Bernd Walter
On Sun, Aug 12, 2001 at 11:46:57AM -0700, Terry Lambert wrote: Bernd Walter wrote: Another point: Can we '#define MTEOM MTEOD' as MTEOM is used on NetBSD and Solaris? End of Message is not the same as End of Data for some drives; this could break old 8-track (no, not the music

Re: mtio questions

2001-08-13 Thread Bernd Walter
On Sun, Aug 12, 2001 at 06:03:00PM -0700, Matthew Jacob wrote: I'll answer based upon -stable FreeBSD code. On Sun, 12 Aug 2001, Bernd Walter wrote: Asume the following code examples: int fd; struct mtop mo; char buf[10240]; fd = open(/dev/nsa0, O_RDWR | O_EXLOCK

Re: detach

2001-08-06 Thread Bernd Walter
On Mon, Aug 06, 2001 at 01:12:11PM -0700, Julian Elischer wrote: if you can write a little sample code I'll put it in the sample driver. Isn't it already in /usr/share/examples/kld? E.g /usr/share/examples/kld/cdev/module/cdevmod.c -- B.Walter COSMO-Project

Re: How to visit physical memory above 4G?

2001-08-04 Thread Bernd Walter
On Sat, Aug 04, 2001 at 02:38:23AM -0300, Rik van Riel wrote: On Fri, 3 Aug 2001, Terry Lambert wrote: This is a trivial implementation. I'm not very impressed. Personally, I'm not interested in a huge user space, Maybe not you, but I bet the database and scientific computing people

Re: linking WITH -lstdc++ makes executeables smaller?

2001-08-04 Thread Bernd Walter
On Sat, Aug 04, 2001 at 02:58:34PM -0700, David O'Brien wrote: On Fri, Aug 03, 2001 at 02:12:25PM +0200, Bernd Walter wrote: I used a library which also needed -lstdc++. Now that I did not need them any more I removed them and was surprised that the resulting FreeBSD binary actually got

Re: ARP cache problems....

2001-07-26 Thread Bernd Walter
On Wed, Jul 25, 2001 at 08:13:34PM -0700, Soren Kristensen wrote: Hi, I'm trying to do some testing on my boxes with 3 ethernet interface. But it seems like that FreeBSD gets very confused. Can somebody please tell me what's going and, and preferable, help me out ? I basically want to

Re: ARP cache problems....

2001-07-26 Thread Bernd Walter
On Thu, Jul 26, 2001 at 11:35:59AM -0400, Leo Bicknell wrote: On Thu, Jul 26, 2001 at 10:01:05AM +0200, Bernd Walter wrote: But there is no reason to put more than one interface on the same hub. Simply configure one interface with alias entries. s/hub/switch/ and there is, and the system

Re: Need a clean room implementation of this function

2001-07-26 Thread Bernd Walter
On Thu, Jul 26, 2001 at 01:59:13PM -0700, Arun Sharma wrote: /** * test_and_set_bit - Set a bit and return its old value * @nr: Bit to set * @addr: Address to count from * * This operation is atomic and cannot be reordered. * It also implies a memory barrier. */ static

Re: Need a clean room implementation of this function

2001-07-26 Thread Bernd Walter
On Thu, Jul 26, 2001 at 02:21:06PM -0700, Arun Sharma wrote: On Thu, Jul 26, 2001 at 11:15:40PM +0200, Bernd Walter wrote: static __inline__ int test_and_set_bit(int nr, volatile void * addr); -current has a lot of atomic functions in src/sys/i386/include/atomic.h. It has byte, word

Re: Need a clean room implementation of this function

2001-07-26 Thread Bernd Walter
On Thu, Jul 26, 2001 at 03:11:00PM -0700, Arun Sharma wrote: On Thu, Jul 26, 2001 at 11:59:27PM +0200, Bernd Walter wrote: [...] ATOMIC_ASM(set, char, orb %b2,%0, v) ATOMIC_ASM(clear,char, andb %b2,%0, ~v) [...] That does set, not test-and-set. What I want is exactly what

Re: A full source-tour somewhere?

2001-07-23 Thread Bernd Walter
On Mon, Jul 23, 2001 at 12:56:04AM -0700, Julian Elischer wrote: Julian Elischer wrote: Dima Dorfman wrote: [...] * A cross reference of the FreeBSD kernel well I have the source code of course, but the second is what I'm looking for except that it stopped being updated

Re: pagedaemon + vmdaemon

2001-07-17 Thread Bernd Walter
On Mon, Jul 16, 2001 at 04:34:52PM -0700, Dan wrote: ya it seems it is running into swap abit. hmmm watching apache with truss i see alot of error #35's in the sys callswhat is that related to again? /usr/include/errno.h says: #define EAGAIN 35 /* Resource

Re: Whitespace at end of line

2001-07-16 Thread Bernd Walter
On Mon, Jul 16, 2001 at 08:40:09PM +0200, Wilko Bulte wrote: On Mon, Jul 16, 2001 at 08:39:04PM +0200, [EMAIL PROTECTED] wrote: You use emacs, don't you? No, vi. My first experiences with Unix (SysV.2) were in the days that Emacs was considered anti-social (on 8MB memory machines

Re: eXperimental bandwidth delay product code (was Re: Network performance tuning.)

2001-07-15 Thread Bernd Walter
On Sun, Jul 15, 2001 at 06:19:15AM -0500, Tim wrote: Cool! We were just commenting that it's too bad dummynet/ALTQ really couldn't help the interactive response for us dial-up users. Anyway, I just tried this on my dial-up connection on a fresh -STABLE but don't really notice any

Re: libc_r locking... why?

2001-07-14 Thread Bernd Walter
On Tue, Jul 03, 2001 at 03:06:08AM -0700, Terry Lambert wrote: Sequent had a BSD-based OS called Dynix, which had a lot of smart things in it, including per processor resource pools, which is what enabled it to scale so large: it removed everything it could from the inter-CPU contention

Re: Network performance roadmap.

2001-07-13 Thread Bernd Walter
On Fri, Jul 13, 2001 at 03:12:57PM -0400, Leo Bicknell wrote: On Fri, Jul 13, 2001 at 12:00:04PM -0700, Terry Lambert wrote: One good way to prevent this is to not unreasonably set your window size... 8-p. Ah, I see, so to prevent MBUF exhaustion I should not let my socket buffers get

Re: deny this

2001-07-09 Thread Bernd Walter
On Mon, Jul 09, 2001 at 08:54:01AM +0200, Mustafa N. Deeb wrote: how can I tell sendmail to deny this MAIL From: SIZE=1926 250 ... Sender ok You shouldn't! An empty envelope sender is used in bounced mails and blocking would reject all error informations. It is empty because it doesn't

Re: PC with two monitors

2001-07-06 Thread Bernd Walter
On Fri, Jul 06, 2001 at 08:58:31AM +0300, Belial wrote: I have PC with dual head video card (Matrox G450) which supports to use both heads independently. I can attach to it two monitors or monitor and tv. Also I can attach two mice(ps/2 and serial) and two keyboards(ps/2 and usb). How I

Re: kernel panic when trying to use init's address space

2001-07-05 Thread Bernd Walter
On Thu, Jul 05, 2001 at 04:51:22PM +0400, Eugene L. Vorokov wrote: Hello, Some time ago I was asking about I/O in kernel mode when I don't have struct proc to use syscalls. Actually I just wanted my kld to read it's config file on load. Terry told me it's tricky, and I was thinking about

Re: kernel panic when trying to use init's address space

2001-07-05 Thread Bernd Walter
On Thu, Jul 05, 2001 at 02:59:17PM +0200, Bernd Walter wrote: You are mmaping into the address space for the process you use the struct proc from. As long as it's this programm that is curproc everything is fine. That means you are called from that process such in kldload or interrupted

Re: Quick question: AIO / SMP / process-based threading

2001-07-05 Thread Bernd Walter
On Tue, Jul 03, 2001 at 04:21:14AM -0700, Terry Lambert wrote: Michael C . Wu wrote: On Sat, Jun 30, 2001 at 05:47:49AM +, E.B. Dreger scribbled: | 1. Is AIO SMP-safe? AIO is not safe, SMP or not. Are you maybe confusion AIO (a POSIX mandated API) with async mounts? AIO

Re: ftpd....

2001-07-03 Thread Bernd Walter
On Mon, Jul 02, 2001 at 11:01:42PM -0700, Mike Smith wrote: Be aware that ftpd is likely to be replaced in the near future, as there's a strong desire to converge on the LukeM FTP tools. I'm surprised. I don't see big wins - at least for ftpd. Well the -r option looks fine but shouldn't be

Re: compatibility of UFS-partitioned FireWire drives

2001-07-01 Thread Bernd Walter
On Sun, Jul 01, 2001 at 08:02:20AM +0100, [EMAIL PROTECTED] wrote: On Sat, Jun 30, 2001 at 02:59:57PM -0700, Rich Morin wrote: I have a luggable FireWire drive which I am considering using for backups and data mobility on a variety of machines and operating systems (roughly, *BSD, Mac OS

<    1   2   3   4   >