-
Notifications
You must be signed in to change notification settings - Fork 653
add -f for umount #3240
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
add -f for umount #3240
Conversation
d107e31 to
927b21a
Compare
adds support for the -f (force) option to the NSH umount command Signed-off-by: zhengyu16 <zhengyu16@xiaomi.com>
927b21a to
8d6d495
Compare
cederom
left a comment
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.
Thank you @Zfeather914 very nice feature!
- Can you please provide simple update to documentation too (https://nuttx.apache.org/docs/latest/applications/nsh/commands.html#umount-unmount-a-file-system)?
- Please remember to provide test logs, even simple ones :-)
but @cederom could you remove the "requested change" mark since @Zfeather914 need update nuttx repo not nuttx-apps? |
cederom
left a comment
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.
Thank you @Zfeather914 :-)
@Zfeather914 please create a pr on nuttx repo to update the document. |
Reference: apache/nuttx-apps#3240 Signed-off-by: zhengyu16 <zhengyu16@xiaomi.com>
Reference: apache/nuttx-apps#3240 Signed-off-by: zhengyu16 <zhengyu16@xiaomi.com>
Summary
This Pull Request adds support for the -f (force) option to the NSH
umount command.
The enhancement allows users to perform forced unmount operations
by passing the MNT_FORCE flag through the new umount2() backend.
Impact
Users can now force an unmount using:
umount -f