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:
parent
a3f1abfb45
commit
cfd1c28606
|
@ -1084,7 +1084,7 @@ EXTERN int fat_ffcacheinvalidate(struct fat_mountpt_s *fs,
|
|||
EXTERN int fat_updatefsinfo(struct fat_mountpt_s *fs);
|
||||
EXTERN int fat_computefreeclusters(struct fat_mountpt_s *fs);
|
||||
EXTERN int fat_nfreeclusters(struct fat_mountpt_s *fs,
|
||||
off_t *pfreeclusters);
|
||||
fsblkcnt_t *pfreeclusters);
|
||||
EXTERN int fat_currentsector(struct fat_mountpt_s *fs,
|
||||
struct fat_file_s *ff, off_t position);
|
||||
|
||||
|
|
|
@ -2135,7 +2135,7 @@ int fat_computefreeclusters(struct fat_mountpt_s *fs)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
int fat_nfreeclusters(struct fat_mountpt_s *fs, off_t *pfreeclusters)
|
||||
int fat_nfreeclusters(struct fat_mountpt_s *fs, fsblkcnt_t *pfreeclusters)
|
||||
{
|
||||
/* If number of the first free cluster is valid, then just return that
|
||||
* value.
|
||||
|
|
|
@ -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 */
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Reference in New Issue