Re: kernel
- To: Petr Stehlik <pstehlik@sophics.cz>
- Cc: Roman Zippel <zippel@linux-m68k.org>, Stephen R Marenka <stephen@marenka.net>, debian-68k@lists.debian.org
- Subject: Re: kernel
- From: Geert Uytterhoeven <geert@linux-m68k.org>
- Date: Tue, 1 Jul 2008 11:27:28 +0200 (CEST)
- Message-id: <Pine.LNX.4.64.0807011120290.21227@anakin>
- In-reply-to: <4869DBE1.80306@sophics.cz>
- References: <20080626143749.GA13884@marenka.net> <alpine.DEB.1.00.0806262235450.9120@zirkon.biophys.uni-duesseldorf.de> <20080626205922.GA14878@marenka.net> <Pine.LNX.4.64.0806270848160.11768@anakin> <alpine.DEB.1.00.0806271046230.14546@zirkon.biophys.uni-duesseldorf.de> <20080627152759.GA24873@marenka.net> <Pine.LNX.4.64.0806301556220.6791@localhost.localdomain> <20080630152703.GB4478@marenka.net> <1214847288.6073.0.camel@joy.home> <20080630190300.GA20333@marenka.net> <1214853366.6073.25.camel@joy.home> <Pine.LNX.4.64.0807010001140.6791@localhost.localdomain> <4869DBE1.80306@sophics.cz>
On Tue, 1 Jul 2008, Petr Stehlik wrote:
> Roman Zippel wrote:
> > > Roman, what if the nfblock had major_num 8 by default?
> >
> > That value is reserved, so I'm very reluctant to use it as default
>
> I see. Well as long as ARAnyM doesn't emulate SCSI drives it is IMHO safe to
> use that.
Using a dynamic major number is the way to go, though.
> > In either case this won't change anything about the problem
>
> Sorry but I don't understand what the problem is. If it appeared as /dev/sdX
> devices then the kernel would scan them, found the partitions and then
> automount would mount them (I know nobody sane uses automount :-)
Partition scanning by the kernel has nothing to do with that.
It depends on the registration of the block device or gendisk (IIRC
there's a flag for that, that's why it doesn't work for /dev/loop); if
the kernel finds a recognized partition table format, it will scan for
partitions.
nfblock does use alloc_disk(16), and sets dev->disk->first_minor =
dev_id * 16, so there should be space for 15 partitions.
Note that I haven't tried nfblock myself. I did a quick compare with
ps3disk (which is quite simple and which I know does support
partitions), but didn't see anything obvious.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Reply to:
- References:
- Re: kernel
- From: Petr Stehlik <pstehlik@sophics.cz>