git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@901 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2008-09-10 19:09:47 +00:00
parent 469948a0b6
commit fb22c557dc

View File

@ -1299,11 +1299,11 @@ errout_with_semaphore:
static int fat_readdir(struct inode *mountpt, struct internal_dir_s *dir)
{
struct fat_mountpt_s *fs;
unsigned int dirindex;
ubyte *direntry;
ubyte ch;
ubyte attribute;
int ret = OK;
unsigned int dirindex;
ubyte *direntry;
ubyte ch;
ubyte attribute;
int ret = OK;
/* Sanity checks */
@ -1628,7 +1628,7 @@ static int fat_statfs(struct inode *mountpt, struct statfs *buf)
/* Everything else follows in units of clusters */
buf->f_blocks = fs->fs_nclusters; /* Total data blocks in the file system */
ret = fat_nfreeclusters(fs, &buf->f_bfree); /* Free blocks in the file system */
buf->f_bfree = fat_nfreeclusters(fs, &buf->f_bfree); /* Free blocks in the file system */
buf->f_bavail = buf->f_bfree; /* Free blocks avail to non-superuser */
buf->f_namelen = (8+1+3); /* Maximum length of filenames */