2008-10-24 11:45:40

by Marton Balint

[permalink] [raw]
Subject: [PATCH] block:do_mounts - add device info to mount message

Printing the minor and major number of the successfully mounted root
device can be quite useful, the patch adds this piece of information
to the "VFS: Mounted root..." message.

Signed-off-by: Marton Balint <[email protected]>


Attachments:
block-do-mounts-device-info.patch (581.00 B)

2008-10-30 06:44:43

by Andrew Morton

[permalink] [raw]
Subject: Re: [PATCH] block:do_mounts - add device info to mount message

On Fri, 24 Oct 2008 13:31:53 +0200 (CEST) Marton Balint <[email protected]> wrote:

> Printing the minor and major number of the successfully mounted root
> device can be quite useful, the patch adds this piece of information
> to the "VFS: Mounted root..." message.
>

Can you expand upon "quite useful", please? In what way is it useful?
A real-world example would help.

2008-10-31 01:12:21

by Marton Balint

[permalink] [raw]
Subject: Re: [PATCH] block:do_mounts - add device info to mount message

On Wed, 29 Oct 2008, Andrew Morton wrote:

> On Fri, 24 Oct 2008 13:31:53 +0200 (CEST) Marton Balint <[email protected]> wrote:
>
> > Printing the minor and major number of the successfully mounted root
> > device can be quite useful, the patch adds this piece of information
> > to the "VFS: Mounted root..." message.
> >
>
> Can you expand upon "quite useful", please? In what way is it useful?
> A real-world example would help.

In the past, I used the root=... command line parameter to specify the
root filesystem to the kernel. Now it seems that specifying it is not
necessary. The kernel detects the root filesystem even if the kernel
command line is empty. My root fs is on a raid1 device by the way, and I
am not using initrd for the boot process.

If the kernel detects the root filesystem somehow, I think it should print
out the result of this detection, otherwise I will not know which device
has the root filesystem. Or is there an easy way to get this information
on a running system? I had a quick look at the /proc and /sys filesystems,
but haven't found anything useful there.

Regards,
Marton