mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 05:14:27 +08:00
fs: mount: Change the format for df
Summary: - This commit changes the format for df to support big storage up to 2TB. 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
cfd1c28606
commit
e5dafc825d
@@ -246,14 +246,16 @@ static int blocks_entry(FAR const char *mountpoint,
|
||||
|
||||
if (!info->header)
|
||||
{
|
||||
mount_sprintf(info, " Block Number\n");
|
||||
mount_sprintf(info, " Size Blocks Used Available Mounted on\n");
|
||||
mount_sprintf(info,
|
||||
" Block Number\n");
|
||||
mount_sprintf(info,
|
||||
" Size Blocks Used Available Mounted on\n");
|
||||
info->header = true;
|
||||
}
|
||||
|
||||
/* Generate blocks list one line at a time */
|
||||
|
||||
mount_sprintf(info, "%6ld %8ld %8ld %8ld %s\n",
|
||||
mount_sprintf(info, "%6lu %10lu %10lu %10lu %s\n",
|
||||
statbuf->f_bsize, statbuf->f_blocks,
|
||||
statbuf->f_blocks - statbuf->f_bavail, statbuf->f_bavail,
|
||||
mountpoint);
|
||||
|
||||
Reference in New Issue
Block a user