diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-08-04 22:00:18 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-08-04 22:00:18 +0000 |
commit | 3ec93230f35da971dc988b0f66e8023bb7f6fd51 (patch) | |
tree | 9a1530860e4051617d323eb401ee3b282cff6ca7 /nuttx/fs | |
parent | 2545e9bc4bbca11a60f93237c1da513c41a07f1a (diff) | |
download | px4-firmware-3ec93230f35da971dc988b0f66e8023bb7f6fd51.tar.gz px4-firmware-3ec93230f35da971dc988b0f66e8023bb7f6fd51.tar.bz2 px4-firmware-3ec93230f35da971dc988b0f66e8023bb7f6fd51.zip |
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
Diffstat (limited to 'nuttx/fs')
-rw-r--r-- | nuttx/fs/fat/fs_fat32.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/fs/fat/fs_fat32.c b/nuttx/fs/fat/fs_fat32.c index f0845070b..7b7ce1f5f 100644 --- a/nuttx/fs/fat/fs_fat32.c +++ b/nuttx/fs/fat/fs_fat32.c @@ -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: |