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- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/