* [PATCH] block:do_mounts - add device info to mount message
@ 2008-10-24 11:31 Marton Balint
2008-10-30 6:43 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: Marton Balint @ 2008-10-24 11:31 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 225 bytes --]
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 <cus@fazekas.hu>
[-- Attachment #2: Type: TEXT/x-patch, Size: 581 bytes --]
--- linux/init/do_mounts.c.orig 2008-10-24 12:47:21.000000000 +0200
+++ linux/init/do_mounts.c 2008-10-24 12:49:05.000000000 +0200
@@ -220,10 +220,10 @@
sys_chdir("/root");
ROOT_DEV = current->fs->pwd.mnt->mnt_sb->s_dev;
- printk("VFS: Mounted root (%s filesystem)%s.\n",
+ printk("VFS: Mounted root (%s filesystem)%s on device %u:%u.\n",
current->fs->pwd.mnt->mnt_sb->s_type->name,
current->fs->pwd.mnt->mnt_sb->s_flags & MS_RDONLY ?
- " readonly" : "");
+ " readonly" : "", MAJOR(ROOT_DEV), MINOR(ROOT_DEV));
return 0;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] block:do_mounts - add device info to mount message
2008-10-24 11:31 [PATCH] block:do_mounts - add device info to mount message Marton Balint
@ 2008-10-30 6:43 ` Andrew Morton
2008-10-31 1:11 ` Marton Balint
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2008-10-30 6:43 UTC (permalink / raw)
To: Marton Balint; +Cc: linux-kernel
On Fri, 24 Oct 2008 13:31:53 +0200 (CEST) Marton Balint <cus@fazekas.hu> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] block:do_mounts - add device info to mount message
2008-10-30 6:43 ` Andrew Morton
@ 2008-10-31 1:11 ` Marton Balint
0 siblings, 0 replies; 3+ messages in thread
From: Marton Balint @ 2008-10-31 1:11 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
On Wed, 29 Oct 2008, Andrew Morton wrote:
> On Fri, 24 Oct 2008 13:31:53 +0200 (CEST) Marton Balint <cus@fazekas.hu> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-31 1:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-24 11:31 [PATCH] block:do_mounts - add device info to mount message Marton Balint
2008-10-30 6:43 ` Andrew Morton
2008-10-31 1:11 ` Marton Balint
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox