Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Add support fchstat and chstat function for littlefs" #14479

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
11 changes: 0 additions & 11 deletions fs/littlefs/lfs_vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand All @@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need keep this patch

{
buf->st_mode |= S_IFREG;
}
else
{
buf->st_mode |= S_IFDIR;
}

errout:
nxmutex_unlock(&fs->lock);
return ret;
Expand Down Expand Up @@ -1615,7 +1605,6 @@ static int littlefs_chstat(FAR struct inode *mountpt,
goto errout;
}

ret = 0;
memset(&attr, 0, sizeof(attr));
}

Expand Down