Messages in this thread |  | | Date | Wed, 15 May 2002 17:33:49 +0200 | From | Martin Schewe <> | Subject | Re: how to map "/dev/root" to "/proc/partitions" entry in user prog? |
| |
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 [unhandled content-type:application/pgp-signature] |  |