Is there any program that lets me know how much space I have in the CF, or a
file system that can read and tell me the space.
I tried to use this program
/*
################################################################################
## diskstat.c ##
################################################################################
## diskstat returns (or will soon return to be more precice) webified diskstat
for specific disk, should change to ##
## XML'ified info at some point..... ##
################################################################################
*/
#include <sys/statfs.h>
#include <stdio.h>
//int statfs(const char *path, struct statfs *buf);
//int fstatfs(int fd, struct statfs *buf);
main() {
struct statfs info;
if (-1 == statfs("/dev/sda1", &info))
perror("statvfs() error");
else {
puts("statf returned the following information");
puts("about the Root ('/dev/sda1') file system:\n");
printf("size f_bsize : %u\n", info.f_bsize);
printf("used f_blocks : %ld\n",info.f_blocks);
printf("free f_bfree : %ld\n", info.f_bfree);
}
}
but when compiling in the kit tells me statvfs function () not found
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|