mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
fs, include: Use fsblkcnt_t and fsfilcnt_t instead of off_t
Summary: - On Linux, fsblkcnt_t and fsfilcnt_t are used in struct statfs - This commit applies the same logic Impact: - None Testing: - Tested with spresense:rndis_smp Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
committed by
Xiang Xiao
parent
a3f1abfb45
commit
cfd1c28606
@@ -100,14 +100,14 @@
|
||||
|
||||
struct statfs
|
||||
{
|
||||
uint32_t f_type; /* Type of filesystem (see definitions above) */
|
||||
size_t f_namelen; /* Maximum length of filenames */
|
||||
size_t f_bsize; /* Optimal block size for transfers */
|
||||
off_t f_blocks; /* Total data blocks in the file system of this size */
|
||||
off_t f_bfree; /* Free blocks in the file system */
|
||||
off_t f_bavail; /* Free blocks avail to non-superuser */
|
||||
off_t f_files; /* Total file nodes in the file system */
|
||||
off_t f_ffree; /* Free file nodes in the file system */
|
||||
uint32_t f_type; /* Type of filesystem (see definitions above) */
|
||||
size_t f_namelen; /* Maximum length of filenames */
|
||||
size_t f_bsize; /* Optimal block size for transfers */
|
||||
fsblkcnt_t f_blocks; /* Total data blocks in the file system of this size */
|
||||
fsblkcnt_t f_bfree; /* Free blocks in the file system */
|
||||
fsblkcnt_t f_bavail; /* Free blocks avail to non-superuser */
|
||||
fsfilcnt_t f_files; /* Total file nodes in the file system */
|
||||
fsfilcnt_t f_ffree; /* Free file nodes in the file system */
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user