-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
base: master
Are you sure you want to change the base?
Conversation
[Experimental Bot, please feedback here] Based on the provided description, this PR does not meet the NuttX requirements. Missing Information:
Recommendation: The PR needs significant revisions to meet NuttX requirements. The author should provide:
|
can we add an option to make the new feature selectable? |
it's possible. but it's better to remove it for now, IMO. |
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need keep this patch
@@ -1575,7 +1556,6 @@ static int littlefs_stat(FAR struct inode *mountpt, FAR const char *relpath, | |||
|
|||
ret = 0; | |||
memset(&attr, 0, sizeof(attr)); | |||
attr.at_mode = S_IRWXG | S_IRWXU | S_IRWXO; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need keep this change
@xiaoxiang781216 anyway, i guess the original PR should not have contained unrelated changes together. |
Ok, let's me revert. |
what's the status of this? |
I will send in this weak. |
@yamt After comparing carefully all nuttx and littlefs patch, I think the change is good in general. The follow is my answer to your concern.
Could you give a repro step? So, we can provide a fix.
It upstream here: littlefs-project/littlefs#1045.
uid/gid is useful after: BTW, the attribute contains the date/time information which is very useful for most people. |
you can reproduce it with the instructions in https://nuttx.apache.org/docs/latest/platforms/xtensa/esp32s3/boards/esp32s3-devkit/index.html#toywasm.
i don't object much if:
|
@crafcat7 please find the root cause why the format fail with attribute patch.
the patch already upstream, let's wait the feedback.
Ok, @crafcat7 please add an option to skip the attribute operation. |
The reason for the fstat failure should be caused during mkfs.
And I will submit a compatibility change that is when lfs_file_getattr returns LFS_ERR_NOENT, just return 0 (ignore it), so there will be no problem. The file size is obtained through
Likewise, I will submit a change later to turn off the property setting. |
@crafcat7 let's port https://github.com/whitecatboard/Lua-RTOS-ESP32/blob/master/components/mklfs/src/mklfs.c to apps/fsutils and add a command line option to generate the compatible attr entry we expect. |
I will then submit a PR under apps to complete it |
I submitted this compatibility fix at #14844 |
as your PR (littlefs-project/littlefs#1045) doesn't seem being accepted by the upstream, i guess we should still merge this revert. |
I submitted a change to replace lfs_file_xxxattr with the existing method in littlefs |
Reverts #13964
because: