I'd suggest using /proc/partitions to find the data you want. But then again, that returns the length in blocks, and not all devices are 512b/block.
Regards,
Jeff
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/