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

examples/userfs: Add initial value for d_ino #2593

Closed
wants to merge 1 commit into from

Conversation

no1wudi
Copy link
Contributor

@no1wudi no1wudi commented Sep 20, 2024

Summary

Currently implementations of dirent.h do not have a field for the inode number, but it is required by POSIX.

For better compatibility with POSIX based applications, it is should be added even if it is not actually implemented.

Refer to apache/nuttx#13556, should be merged together.

Impact

  • include/dirent.h.
  • include/nuttx/fs/hostfs.h.
  • Makes implementation compatible with POSIX.

Testing

CI

Refer to apache/nuttx#13556,
should be merged together.

Signed-off-by: Huang Qi <[email protected]>
@@ -140,19 +140,19 @@ static char g_file3_data[UFSTEST_FILE3_MXSIZE] = "This is file 3";
static struct ufstest_file_s g_rootdir[UFSTEST_NFILES] =
{
Copy link

Choose a reason for hiding this comment

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

compiler warnings :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants