public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Schewe <m@xsms.de>
To: Jeff Meininger <jeffm@boxybutgood.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: how to map "/dev/root" to "/proc/partitions" entry in user prog?
Date: Wed, 15 May 2002 17:33:49 +0200	[thread overview]
Message-ID: <20020515153349.GA27312@linux01.gwdg.de> (raw)
In-Reply-To: <Pine.LNX.4.44.0205141554240.2160-100000@spaz.localdomain>

[-- Attachment #1: Type: text/plain, Size: 503 bytes --]

Hi,

On Tue, May 14, 2002 at 04:12:18PM -0500, Jeff Meininger wrote:
> How can I reliably map /dev/root to the corresponding entry in 
> /proc/partitions?  Is there some /proc thing I'm missing, or is there an 
> ioctl that can give me the information I'm looking for?

If you use devfs, you can check /dev/root, which is a symlink to your
root device:

	readlink("/dev/root", rootdev, PATH_MAX);

Otherwise you should take a look at busybox/libbb/find_root_device.c.

Regards,
		Martin

[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]

      parent reply	other threads:[~2002-05-15 15:33 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
2002-05-15 15:39   ` Denis Vlasenko
2002-05-15 15:33 ` Martin Schewe [this message]

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=20020515153349.GA27312@linux01.gwdg.de \
    --to=m@xsms.de \
    --cc=jeffm@boxybutgood.com \
    --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