LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [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

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;
as well as URLs for NNTP newsgroup(s).