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.
-- "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 firstname.lastname@example.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/