From: "H. Peter Anvin" <hpa@zytor.com>
To: William Hubbs <w.d.hubbs@gmail.com>
Cc: linux-kernel@vger.kernel.org, rob@landley.net,
mpagano@gentoo.org, ryao@gentoo.org, gregkh@gentoo.org,
torvalds@linux-foundation.org
Subject: Re: [PATCH] init: fix name of root device in /proc/mounts
Date: Tue, 19 Mar 2013 17:24:36 -0700 [thread overview]
Message-ID: <514901C4.3040301@zytor.com> (raw)
In-Reply-To: <20130320002017.GA2810@linux1>
On 03/19/2013 05:20 PM, William Hubbs wrote:
>
> I'm not following what you mean.
>
> The problem is that "/dev/root" should not be in /proc/mounts,
> since there is always another entry that points to the root file
> system.
>
You are getting the name from the root= command line option.
The other option is to take the name from the mounted device number,
and look up the udev name (which is known by the kernel). That way it
works even if the user specifies a numeric device, or the default
device is used.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
next prev parent reply other threads:[~2013-03-20 0:24 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-31 22:51 [PATCH] init: fix name of root device in /proc/mounts William Hubbs
2013-01-31 23:22 ` H. Peter Anvin
2013-02-01 17:14 ` William Hubbs
2013-02-01 19:03 ` H. Peter Anvin
2013-02-05 2:42 ` Rob Landley
2013-02-05 2:54 ` H. Peter Anvin
2013-02-05 4:19 ` William Hubbs
2013-03-17 22:23 ` William Hubbs
2013-03-19 22:28 ` William Hubbs
2013-03-19 23:17 ` H. Peter Anvin
2013-03-20 0:20 ` William Hubbs
2013-03-20 0:24 ` H. Peter Anvin [this message]
2013-03-20 7:03 ` Rob Landley
2013-03-20 15:02 ` H. Peter Anvin
2013-03-20 21:11 ` William Hubbs
2013-03-20 21:46 ` Kay Sievers
2013-03-22 3:00 ` Rob Landley
2013-02-09 21:32 ` William Hubbs
-- strict thread matches above, loose matches on Subject: below --
2013-02-05 20:07 William Hubbs
2013-02-05 20:10 ` William Hubbs
2013-02-05 21:45 ` Stephen Rothwell
2013-02-05 23:36 ` William Hubbs
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=514901C4.3040301@zytor.com \
--to=hpa@zytor.com \
--cc=gregkh@gentoo.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mpagano@gentoo.org \
--cc=rob@landley.net \
--cc=ryao@gentoo.org \
--cc=torvalds@linux-foundation.org \
--cc=w.d.hubbs@gmail.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.