From: "Miquel van Smoorenburg" <miquels@cistron.nl>
To: linux-kernel@vger.kernel.org
Subject: Re: how to map "/dev/root" to "/proc/partitions" entry in user prog?
Date: Tue, 14 May 2002 21:26:47 +0000 (UTC) [thread overview]
Message-ID: <abrven$gsu$1@ncc1701.cistron.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0205141554240.2160-100000@spaz.localdomain>
In article <Pine.LNX.4.44.0205141554240.2160-100000@spaz.localdomain>,
Jeff Meininger <jeffm@boxybutgood.com> wrote:
>How can I reliably map /dev/root to the corresponding entry in
>/proc/partitions?
The first two lines in /proc/partitions are major/minor of the
device. Simply stat("/", &st) and use st.st_dev (and the major/minor
macros in glibc)
>Please Cc me in your response.
I'm reading and posting this on a mail2news gateway, sorry.
Mike.
--
"Insanity -- a perfectly rational adjustment to an insane world."
- R.D. Lang
next prev parent reply other threads:[~2002-05-14 21:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-14 21:12 how to map "/dev/root" to "/proc/partitions" entry in user prog? Jeff Meininger
2002-05-14 21:26 ` Miquel van Smoorenburg [this message]
2002-05-15 15:39 ` Denis Vlasenko
2002-05-15 15:33 ` Martin Schewe
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='abrven$gsu$1@ncc1701.cistron.net' \
--to=miquels@cistron.nl \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox