Re: How to mount /proc/sys/fs/binfmt_misc ?

2001-03-23 Thread Richard Guenther
On Thu, 22 Mar 2001, Alexander Viro wrote: > Actually, the right thing to do would be to drop the ugly tricks with > writing to .../register and use normal create()/write()/close() to add > entries. Commit-on-close and there you go. unlink() to remove these > suckers, chmod g-r to disable. > > IO

Re: How to mount /proc/sys/fs/binfmt_misc ?

2001-03-22 Thread Alexander Viro
On Thu, 22 Mar 2001, Colin Watson wrote: > I would very much like to be able to assume that a filesystem never > contains two identical filenames linking to different inodes, and that > any . and .. links I find always point to things that are vaguely like > directories! I realize that you can'

Re: How to mount /proc/sys/fs/binfmt_misc ?

2001-03-22 Thread Colin Watson
Richard Guenther <[EMAIL PROTECTED]> wrote: >On Mon, 19 Mar 2001, Colin Watson wrote: >> Or you can register binfmt names that are registered already and >> silently shadow old ones, or register names like 'register', 'status', >> '.', and '..'. It's hideous to manage reliably from userspace. > >I

Re: How to mount /proc/sys/fs/binfmt_misc ?

2001-03-21 Thread Alan Cox
> > a) mount it on some real place. And write there to register > > entries instead of the bogus /proc/sys/fs/binfmt_misc > > b) add a couple of proc_mkdir() into fs/proc/root.c > c) stick with the previous binfmt_misc in 2.4 and leave the >filesystem with 2.5 Actually you would still

Re: How to mount /proc/sys/fs/binfmt_misc ?

2001-03-20 Thread Richard Guenther
On Mon, 19 Mar 2001, Colin Watson wrote: > Alexander Viro <[EMAIL PROTECTED]> wrote: > >Seriously, binfmt_misc.c was written in rather, erm, interesting C. > >Read it and you'll see. Just one (but rather impressive) example: > > > >if ((count == 1) && !(buffer[0] & ~('0' | '1'))) { > > >

Re: How to mount /proc/sys/fs/binfmt_misc ?

2001-03-19 Thread Colin Watson
Alexander Viro <[EMAIL PROTECTED]> wrote: >Seriously, binfmt_misc.c was written in rather, erm, interesting C. >Read it and you'll see. Just one (but rather impressive) example: > >if ((count == 1) && !(buffer[0] & ~('0' | '1'))) { > >It was meant to be > >if (count == 1 && (buffer

Re: How to mount /proc/sys/fs/binfmt_misc ?

2001-03-16 Thread Alexander Viro
On Fri, 16 Mar 2001, David Weinehall wrote: > On Fri, Mar 16, 2001 at 01:07:17PM -0500, Alexander Viro wrote: > > > > > > On Fri, 16 Mar 2001, Alexander Viro wrote: > > > > [snip] > > > > > Sure. With all its holes and illetarate C. > > ^ > >

Re: How to mount /proc/sys/fs/binfmt_misc ?

2001-03-16 Thread David Weinehall
On Fri, Mar 16, 2001 at 01:07:17PM -0500, Alexander Viro wrote: > > > On Fri, 16 Mar 2001, Alexander Viro wrote: > > [snip] > > > Sure. With all its holes and illetarate C. > ^ > e > Apparently, rule about typos in spelling f

Re: How to mount /proc/sys/fs/binfmt_misc ?

2001-03-16 Thread Alexander Viro
On Fri, 16 Mar 2001, Richard Guenther wrote: > On Fri, 16 Mar 2001, Alexander Viro wrote: > > On Fri, 16 Mar 2001 [EMAIL PROTECTED] wrote: > > > > > The release notes specify this: > > > > > > mount -t binfmt_misc none /proc/sys/fs/binfmt_misc > > > > > > but this doesn't work because >

Re: How to mount /proc/sys/fs/binfmt_misc ?

2001-03-16 Thread Alexander Viro
On Fri, 16 Mar 2001, Alexander Viro wrote: [snip] > Sure. With all its holes and illetarate C. ^ e Apparently, rule about typos in spelling flame are not limited to natural languages... - To unsubscribe from this list: s

Re: How to mount /proc/sys/fs/binfmt_misc ?

2001-03-16 Thread Richard Guenther
On Fri, 16 Mar 2001, Alexander Viro wrote: > On Fri, 16 Mar 2001 [EMAIL PROTECTED] wrote: > > > The release notes specify this: > > > > mount -t binfmt_misc none /proc/sys/fs/binfmt_misc > > > > but this doesn't work because > > > > mount: mount point /proc/sys/fs/binfmt_misc does not

Re: How to mount /proc/sys/fs/binfmt_misc ?

2001-03-16 Thread Wayne . Brown
Viro <[EMAIL PROTECTED]> on 03/16/2001 09:37:49 AM To: Wayne Brown/Corporate/Altec@Altec cc: [EMAIL PROTECTED] Subject: Re: How to mount /proc/sys/fs/binfmt_misc ? On Fri, 16 Mar 2001 [EMAIL PROTECTED] wrote: > The release notes specify this: > > mount -t binfmt_mi

Re: How to mount /proc/sys/fs/binfmt_misc ?

2001-03-16 Thread Thomas Dodd
[EMAIL PROTECTED] wrote: > > > which makes sense, I guess, because proc isn't a "real" filesystem. So how do I > get binfmt_misc mounted? mount it somewhere else, say, /dev/binfmt_mount instead of in /proc until the proc entry is fixed. What should creat /proc/sys/fs/binfmt_misc ? -Th

Re: How to mount /proc/sys/fs/binfmt_misc ?

2001-03-16 Thread Alexander Viro
On Fri, 16 Mar 2001 [EMAIL PROTECTED] wrote: > The release notes specify this: > > mount -t binfmt_misc none /proc/sys/fs/binfmt_misc > > but this doesn't work because > > mount: mount point /proc/sys/fs/binfmt_misc does not exist Grr... OK, I've been an overoptimistic idiot and

How to mount /proc/sys/fs/binfmt_misc ?

2001-03-16 Thread Wayne . Brown
OK, I've been struggling with this (off and on) since Tuesday, and I give up. Since going from 2.4.3-pre4 to 2.4.2-ac20 I have been unable to use binfmt_misc. Thanks to a hint from Michael Meissner, I found a mention in the release notes for 2.4.2-ac12 that binfmt_misc should be mounted separate