This is an automated email from the ASF dual-hosted git repository. yamamoto pushed a commit to branch revert-13964-pick-lfs in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit dc81889b251e44688806844df4a1aabe5fbe3a1e Author: YAMAMOTO Takashi <[email protected]> AuthorDate: Wed Oct 23 18:24:45 2024 +0900 Revert "fs/littlefs: Fix the bug of missing file types" This reverts commit f70de1c65f15eadbcdeb70b85effd3a9000c993c. --- fs/littlefs/lfs_vfs.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/fs/littlefs/lfs_vfs.c b/fs/littlefs/lfs_vfs.c index 5c7c7b8592..b83f71c69f 100644 --- a/fs/littlefs/lfs_vfs.c +++ b/fs/littlefs/lfs_vfs.c @@ -1554,7 +1554,6 @@ static int littlefs_stat(FAR struct inode *mountpt, FAR const char *relpath, goto errout; } - ret = 0; memset(&attr, 0, sizeof(attr)); } @@ -1572,15 +1571,6 @@ static int littlefs_stat(FAR struct inode *mountpt, FAR const char *relpath, buf->st_blocks = (buf->st_size + buf->st_blksize - 1) / buf->st_blksize; - if (info.type == LFS_TYPE_REG) - { - buf->st_mode |= S_IFREG; - } - else - { - buf->st_mode |= S_IFDIR; - } - errout: nxmutex_unlock(&fs->lock); return ret; @@ -1615,7 +1605,6 @@ static int littlefs_chstat(FAR struct inode *mountpt, goto errout; } - ret = 0; memset(&attr, 0, sizeof(attr)); }
