1 /* 2 * Copyright (C) 2021 Alibaba Group Holding Limited 3 */ 4 5 #ifndef _SYS_STATFS_H 6 #define _SYS_STATFS_H 7 8 #ifdef __cplusplus 9 extern "C" { 10 #endif 11 12 struct statfs { 13 long f_type; /* fs type */ 14 long f_bsize; /* optimized transport block size */ 15 long f_blocks; /* total blocks */ 16 long f_bfree; /* available blocks */ 17 long f_bavail; /* number of blocks that non-super users can acquire */ 18 long f_files; /* total number of file nodes */ 19 long f_ffree; /* available file nodes */ 20 long f_fsid; /* fs id */ 21 long f_namelen; /* max file name length */ 22 }; 23 24 int statfs(const char *path, struct statfs *buf); 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 #endif /*_SYS_STATFS_H*/ 31