関数 | |
static int | linux_statvfs (const char *path, vfs_statvfs_struct *statbuf) |
int | sys_statvfs (const char *path, vfs_statvfs_struct *statbuf) |
static int linux_statvfs | ( | const char * | path, | |
vfs_statvfs_struct * | statbuf | |||
) | [static] |
参照先 vfs_statvfs_struct::BlocksAvail・vfs_statvfs_struct::BlockSize・vfs_statvfs_struct::FreeFileNodes・vfs_statvfs_struct::FsIdentifier・vfs_statvfs_struct::OptimalTransferSize・result・vfs_statvfs_struct::TotalBlocks・vfs_statvfs_struct::TotalFileNodes・vfs_statvfs_struct::UserBlocksAvail.
参照元 sys_statvfs().
00026 { 00027 struct statvfs statvfs_buf; 00028 int result; 00029 00030 result = statvfs(path, &statvfs_buf); 00031 00032 if (!result) { 00033 statbuf->OptimalTransferSize = statvfs_buf.f_frsize; 00034 statbuf->BlockSize = statvfs_buf.f_bsize; 00035 statbuf->TotalBlocks = statvfs_buf.f_blocks; 00036 statbuf->BlocksAvail = statvfs_buf.f_bfree; 00037 statbuf->UserBlocksAvail = statvfs_buf.f_bavail; 00038 statbuf->TotalFileNodes = statvfs_buf.f_files; 00039 statbuf->FreeFileNodes = statvfs_buf.f_ffree; 00040 statbuf->FsIdentifier = statvfs_buf.f_fsid; 00041 } 00042 return result; 00043 }
int sys_statvfs | ( | const char * | path, | |
vfs_statvfs_struct * | statbuf | |||
) |
参照先 linux_statvfs().
参照元 vfswrap_statvfs().
00053 { 00054 #if defined(LINUX) && defined(HAVE_FSID_INT) 00055 return linux_statvfs(path, statbuf); 00056 #else 00057 /* BB change this to return invalid level */ 00058 #ifdef EOPNOTSUPP 00059 return EOPNOTSUPP; 00060 #else 00061 return -1; 00062 #endif /* EOPNOTSUPP */ 00063 #endif /* LINUX */ 00064 00065 }