bwleeul
asked on
How can i get the filesystem information for linux ?
I would like to know the function for getting filesystem information of linux( the information of superblock and cylinder group, the size of
free inodes and blocks, etc) through some function of c language.
Which function can I use ? and how can i use the funtions ?
waiting for kindly answer.
Thanks and Best Regards,
BWLee
free inodes and blocks, etc) through some function of c language.
Which function can I use ? and how can i use the funtions ?
waiting for kindly answer.
Thanks and Best Regards,
BWLee
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks, anandk.
I had test the function, statfs.
struct statfs buf;
int ret;
ret = statfs("/dev/hda1", &buf);
The value of ret was always -1.
what's the problem ?
bwleeul
I had test the function, statfs.
struct statfs buf;
int ret;
ret = statfs("/dev/hda1", &buf);
The value of ret was always -1.
what's the problem ?
bwleeul
ASKER