mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 07:23:34 +08:00
Fix max filename size report by FAT statfs with long file names; Add missing logic to support fieldwidth and justification for %s format; Add extended help options. Default help command just shows a short list of commands. Verbose and single command help options
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5008 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -1705,7 +1705,11 @@ static int fat_statfs(struct inode *mountpt, struct statfs *buf)
|
||||
{
|
||||
buf->f_blocks = fs->fs_nclusters; /* Total data blocks in the file system */
|
||||
buf->f_bavail = buf->f_bfree; /* Free blocks avail to non-superuser */
|
||||
#ifdef CONFIG_FAT_LFN
|
||||
buf->f_namelen = LDIR_MAXFNAME; /* Maximum length of filenames */
|
||||
#else
|
||||
buf->f_namelen = (8+1+3); /* Maximum length of filenames */
|
||||
#endif
|
||||
}
|
||||
|
||||
errout_with_semaphore:
|
||||
|
||||
Reference in New Issue
Block a user