This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
List of HD devices
- From: Shameem Ahamed <shameem dot ahamed at yahoo dot com>
- To: libc-help at sourceware dot org
- Date: Fri, 22 Jan 2010 15:36:27 +0530 (IST)
- Subject: List of HD devices
Hi All,
How can i get the list of the hard drive devices in C.
I just want to create a program to check for the quota of some users. and the quota file for each user is on different drives.
Som times it might be in sda1, some times in sdb1 and sdc1
Is there any library function to get the list of all devices or partitions in the server.
Regards,
Shameem