You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "shizacat (via GitHub)" <gi...@apache.org> on 2024/09/09 20:18:28 UTC
[PR] smartfs procfs: fix double declare g_smartfs_operations [nuttx]
shizacat opened a new pull request, #13348:
URL: https://github.com/apache/nuttx/pull/13348
## Summary
If we activate SMARTFS and go to _/proc/fs/smartfs_, we will get a kernel panic:
[dump.txt](https://github.com/user-attachments/files/16936111/dump.txt)
In it we will see _smartfs_dup: Dup 0x3fc8ce1e->0x3fc8c8d0_, the **smartfs_dup** function was called, but not from _smartfs_proc.c_, but from _smartfs_smart.c_
The 'g_smartfs_operations'
`extern const struct mountpt_operations g_smartfs_operations;` was declare into:
- fs/mount/fs_mount.c
- fs/procfs/fs_procfs.c
## Impact
The function **g_smartfs_operations** was renamed to **g_smartfs_procfs_operations** into file _fs/procfs/fs_procfs.c_.
## Testing
`cd /proc/fs/smartfs`
and
`cat status`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] smartfs procfs: fix double declare g_smartfs_operations [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #13348:
URL: https://github.com/apache/nuttx/pull/13348
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org