This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: List of HD devices
- From: Bert Wesarg <bert dot wesarg at googlemail dot com>
- To: Shameem Ahamed <shameem dot ahamed at yahoo dot com>
- Cc: libc-help at sourceware dot org
- Date: Fri, 22 Jan 2010 11:19:57 +0100
- Subject: Re: List of HD devices
- References: <635486.11410.qm@web94702.mail.in2.yahoo.com>
On Fri, Jan 22, 2010 at 11:06, Shameem Ahamed <shameem.ahamed@yahoo.com> wrote:
> 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.
See the manual page for getmntent().
Bert
>
> Regards,
> Shameem
>
>
>
>