Re: Watch your devfs permissions in driver make_dev calls

2001-02-03 Thread Greg Lehey
On Friday, 2 February 2001 at 20:10:10 -0800, Peter Wemm wrote: > Robert Watson wrote: > >> crw-r--r-- 1 root wheel 78, 0 Dec 31 1969 pci > > This one may appear harmless, but it is not. It is trivially easy to create > an alignment fault (fatal on an alpha) with the userland pcicon

Re: An example script for creating a bootable floppy

2001-02-03 Thread Dan Langille
On 3 Feb 2001, at 19:27, Dima Dorfman wrote: > After a brief inspection of the code, I think adding a 'vga' device > will help: > > device vga0at isa? Yep. That compiles now. Thank you. But it's: -rwxr-xr-x 1 root wheel 1321263 Feb 4 16:33 kernel Which makes it a pret

Re: An example script for creating a bootable floppy

2001-02-03 Thread Dima Dorfman
[ dropping -doc ] > On 3 Feb 2001, at 18:02, Dima Dorfman wrote: > > Wild guess: try sticking ``options COMPAT_43'' in the config file. > > This smells of missing 4.3BSD compatibility structures or something. > > That got me quite a bit further. Any ideas about this one please? It's > the key

Re: An example script for creating a bootable floppy

2001-02-03 Thread Dan Langille
On 3 Feb 2001, at 18:02, Dima Dorfman wrote: > > cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmiss > > ing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ans > > i -nostdinc -I- -I. -I../.. -I../../../include -D_KERNEL -include > > opt_global.

Re: Trailing slashes and rmdir - POLA broken

2001-02-03 Thread Andrew Kenneth Milton
+---[ Greg Black ]-- | Observe the following: | | $ uname -rs | FreeBSD 4.1-RELEASE | $ ls -l | $ mkdir foo | $ ln -s foo bar | $ rmdir bar | rmdir: bar: Not a directory | | So far, so good -- but look at this: | | $ rmdir bar/ | $ ls

Re: An example script for creating a bootable floppy

2001-02-03 Thread Dima Dorfman
> cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmiss > ing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ans > i -nostdinc -I- -I. -I../.. -I../../../include -D_KERNEL -include > opt_global.h -elf -mpreferred-stack-boundary=2 ../../kern/kern_

An example script for creating a bootable floppy

2001-02-03 Thread Dan Langille
At http://www.freebsd.org/handbook/backup-programs.html, there is a script for creating a bootable floppy. Part of this script is the MINI kernel. The example is out of date and doesn't work under 4.2. I've included my amended mini-kernel when trying to convert it to 4.2- stable. But it fail

Setting bus resources from a module

2001-02-03 Thread Oliver Fleischmann
Hi, I have some problems understanding how resources like the I/O Port or IRQ are set from a loadable kernel module. I tried to construct a module to access the generic joystick port on the isa bus. But i don't understand how the resources are set for the port. Is it right to do a BUS_ADD_CHIL

Re: mount_md (was: mdconfig config file (was: cvs commit: src/sys/i386/conf GENERIC))

2001-02-03 Thread Dima Dorfman
> > :Some thoughts: > : > : - If you want softupdates, you need to specify the -S flag. Should > :softupdates be the default? > > That's a hard one. Considering that people who have mfs in their fstab > probably expect as little disk I/O as possible, softupdate sshould > proba

PCI bus code & SMC9432 behaviour

2001-02-03 Thread Semen A. Ustimenko
Hi! I got into a following problem with subj: During boot process, the card can be in power down mode. This can be cause MEMEN and PORTEN bits not set up correctly (set to 0) during boot. This bits not set will cause no resources for this device, thus later a bus_alloc_resource() call will fail.

Re: panic: ufs_dirbad: bad dir

2001-02-03 Thread Dan Langille
I had to give up on that disk. I bought a new 10GB IDE to replace it (it's going to be vastly under-filled). I still have the disk, so if anyone wants to follow this up, it is still intact. On 2 Feb 2001, at 5:21, Dan Langille wrote: > I recently upgraded a box from 4.1-stable to 4.2-stable.

cmpci support - want to help

2001-02-03 Thread Rubens Ramos
Hello, I cannot find any PR or eveidence that FreeBSD supports CMPCI chip. Is anyone working on this? If not I would like to help, it looks like NetBSD has CMPCI support, it might be relatively easy to port their implementation... Thank you = Rubens Ramos Fernandes Junior [EMAIL

Re: Trailing slashes and rmdir - POLA broken

2001-02-03 Thread Peter Seebach
In message <[EMAIL PROTECTED]>, Greg Black writes: >$ rmdir bar/ >$ ls -l >total 0 >lrwxrwx--- 1 gjb wheel 3 Feb 4 06:35 bar -> foo >$ >Oops, "rmdir bar/" ended up as "rmdir foo" and left the useless >symlink bar in place. Yup. >BSD/OS gives that silly "Is a directory"

Re: Trailing slashes and rmdir - POLA broken

2001-02-03 Thread Dan Langille
On 4 Feb 2001, at 6:58, Greg Black wrote: > Of course it works. The part you quoted was the introduction > and was as it "should" be. You cut out the part with the actual > question. I'll repeat it here: Serves me right for trying to help after a 22 hour work stint and getting up after 4 hou

Re: Trailing slashes and rmdir - POLA broken

2001-02-03 Thread Greg Black
"Dan Langille" wrote: > On 4 Feb 2001, at 6:46, Greg Black wrote: > > > Observe the following: > > > > $ uname -rs > > FreeBSD 4.1-RELEASE > > $ ls -l > > $ mkdir foo > > $ ln -s foo bar > > $ rmdir bar > > rmdir: bar: Not a directory > > I'm quite sure that rm bar

Re: Trailing slashes and rmdir - POLA broken

2001-02-03 Thread Dan Langille
On 4 Feb 2001, at 6:46, Greg Black wrote: > Observe the following: > > $ uname -rs > FreeBSD 4.1-RELEASE > $ ls -l > $ mkdir foo > $ ln -s foo bar > $ rmdir bar > rmdir: bar: Not a directory I'm quite sure that rm bar will work. Have you tried rmdir ./bar? -- Dan L

Trailing slashes and rmdir - POLA broken

2001-02-03 Thread Greg Black
Observe the following: $ uname -rs FreeBSD 4.1-RELEASE $ ls -l $ mkdir foo $ ln -s foo bar $ rmdir bar rmdir: bar: Not a directory So far, so good -- but look at this: $ rmdir bar/ $ ls -l total 0 lrwxrwx--- 1 gjb wheel 3 Feb 4 06:35 bar -> foo

Re: mount_md (was: mdconfig config file (was: cvs commit: src/sys/i386/conf GENERIC))

2001-02-03 Thread Matt Dillon
:Some thoughts: : : - If you want softupdates, you need to specify the -S flag. Should :softupdates be the default? That's a hard one. Considering that people who have mfs in their fstab probably expect as little disk I/O as possible, softupdate sshould probably be enabled by