apache / apache/nuttx

FS_LARGEFILE config disabled is causing issue with df -h output.

Open
#8,933 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

I am using the cxd56xx board. Installing 32GB SDHC card into the system, formatted FAT32 and running `df` displays correct block size, block number, and remaining blocks adding up to correct volume. Using `-h` parameter outputs incorrect _Size_ and _Available_ columns. Recent Spresense SDK update adapted Nuttx 11.0.0, and FS_LARGEFILE is now disabled by default. Manually enabling FS_LARGEFILE allows correct display of total and remaining memory with `df -h` option. Perhaps the `-h` option calculation is using incorrect parameters that have to do with the maximum file size instead of actual mounted media volume?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.