[code:1]
#include<unistd.h>
#include<stdio.h>
#include<sys/statvfs.h>
#include<sys/stat.h>
#include<fcntl.h>
int main()
{
struct statvfs fs;
creat("test",0777);
statvfs("test",&fs);
printf("f_bsize : %d\n",fs.f_bsize);
printf("f_frsize : %d\n",fs.f_frsize);
printf("f_blocks : %d 512bytes : %d\n",fs.f_blocks,fs.f_blocks*2);
printf("f_bfree : %d 512bytes : %d\n",fs.f_bfree,fs.f_bfree*2);