- To: Petr Stehlik <email@example.com>
- Cc: Roman Zippel <firstname.lastname@example.org>, Stephen R Marenka <email@example.com>, firstname.lastname@example.org
- Subject: Re: kernel
- From: Geert Uytterhoeven <email@example.com>
- Date: Tue, 1 Jul 2008 11:27:28 +0200 (CEST)
- Message-id: <Pine.LNX.4.64.0807011120290.21227@anakin>
- In-reply-to: <4869DBE1.firstname.lastname@example.org>
- References: <20080626143749.GA13884@marenka.net> <alpine.DEB.email@example.com> <20080626205922.GA14878@marenka.net> <Pine.LNX.4.64.0806270848160.11768@anakin> <alpine.DEB.firstname.lastname@example.org> <20080627152759.GA24873@marenka.net> <Pine.LNX.email@example.com> <20080630152703.GB4478@marenka.net> <firstname.lastname@example.org> <20080630190300.GA20333@marenka.net> <email@example.com> <Pine.LNX.firstname.lastname@example.org> <4869DBE1.email@example.com>
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
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.
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- firstname.lastname@example.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
- Re: kernel
- From: Petr Stehlik <email@example.com>