Re: /dev/root: which approach ? [PATCH]

From: Miquel van Smoorenburg
Date: Wed Mar 10 2004 - 15:57:48 EST


In article <404F77F3.9070106@xxxxxxxxxxx>,
Mika Penttilä <mika.penttila@xxxxxxxxxxx> wrote:
>
>>My question to the FS hackers: which one is the preferred approach?
>>
>>dev_root_alias.patch
>>
>>+ /* See if device is the /dev/root alias. */
>>+ if (dev == MKDEV(4, 1)) {
>
>what is this 4,1, a tty???

If it was a character device, yes. But it's a block device, and
major 4 isn't used yet. I just made it up, a major would need to
be allocated by LANANA ofcourse.

Mike.

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