-
-
Notifications
You must be signed in to change notification settings - Fork 32
Add support for disabling block count check on mount and shrinking filesystems #103
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 support for disabling block count check on mount and shrinking filesystems #103
Conversation
2ca392b to
1d35890
Compare
robin-nitrokey
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.
It would be good to have test cases for a failed mount if the flag is not set, a successful mount if the flag is set and the different resize operations (successful grow, successful shrink, failed shrink for a full FS).
| // } | ||
|
|
||
| #[test] | ||
| fn shrinking() { |
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.
Maybe I’m a bit paranoid, but what about creating a file and making sure that it can still be read correctly after growing / shrinking?
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.
Done.
The C code already has a lot of such tests.
See trussed-dev/littlefs2-sys#27