LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Marton Balint <cus@fazekas.hu>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] block:do_mounts - add device info to mount message
Date: Fri, 24 Oct 2008 13:31:53 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0810241309190.31107@cinke.fazekas.hu> (raw)

[-- 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;
 }
 

             reply	other threads:[~2008-10-24 11:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-24 11:31 Marton Balint [this message]
2008-10-30  6:43 ` Andrew Morton
2008-10-31  1:11   ` Marton Balint

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0810241309190.31107@cinke.fazekas.hu \
    --to=cus@fazekas.hu \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: [PATCH] block:do_mounts - add device info to mount message' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).