ts-7000
[Top] [All Lists]

[ts-7000] free space on CF

To:
Subject: [ts-7000] free space on CF
From: "josue.cubero" <>
Date: Sat, 15 Jan 2011 02:17:28 -0000
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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU