This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: List of HD devices


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
>
>
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]