Re: Linux 2.4.2ac12

From: Alexander Viro (viro@math.psu.edu)
Date: Mon Mar 05 2001 - 16:17:33 EST


On Mon, 5 Mar 2001, Alan Cox wrote:

> o Fix binfmt_misc (and make the proc handling (Al Viro)
> |a filesystem -
> |mount -t binfmt_misc none /proc/sys/fs/binfmt_misc

One comment: probably the best way to maintain backwards compatibility
for people who used binfmt_misc as a module would be the following:

post-install binfmt_misc /bin/mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
pre-remove binfmt_misc /bin/umount /proc/sys/fs/binfmt_misc

in the /etc/modules.conf. Then insmod binfmt_misc and rmmod binfmt_misc
will have the same effect as they used to do.

However, the Right Thing(tm) is
        a) let mount do insmod (not the other way round)
        b) use less idiotic mountpoint (binfmt_misc is sysctl-related, so it
got no business being under /proc/sys).

BTW, the new code in fs/binfmt_misc.c can be considered as a demo on how to turn
drivers into filesystems...
                                                                Cheers,
                                                                        Al

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 07 2001 - 21:00:17 EST