diff options
Diffstat (limited to 'nuttx/fs/nxffs/nxffs_stat.c')
-rw-r--r-- | nuttx/fs/nxffs/nxffs_stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/nxffs/nxffs_stat.c b/nuttx/fs/nxffs/nxffs_stat.c index 656da395a..2a5b61044 100644 --- a/nuttx/fs/nxffs/nxffs_stat.c +++ b/nuttx/fs/nxffs/nxffs_stat.c @@ -151,7 +151,6 @@ int nxffs_stat(FAR struct inode *mountpt, FAR const char *relpath, memset(buf, 0, sizeof(struct stat)); buf->st_blksize = volume->geo.blocksize; - buf->st_blocks = entry.datlen / (volume->geo.blocksize - SIZEOF_NXFFS_BLOCK_HDR); /* The requested directory must be the volume-relative "root" directory */ @@ -166,6 +165,7 @@ int nxffs_stat(FAR struct inode *mountpt, FAR const char *relpath, goto errout_with_semaphore; } + buf->st_blocks = entry.datlen / (volume->geo.blocksize - SIZEOF_NXFFS_BLOCK_HDR); buf->st_mode = S_IFREG|S_IXOTH|S_IXGRP|S_IXUSR; buf->st_size = entry.datlen; buf->st_atime = entry.utc; |