Skip to content

Conversation

@sosthene-nitrokey
Copy link
Contributor

Copy link
Member

@robin-nitrokey robin-nitrokey left a 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() {
Copy link
Member

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?

Copy link
Contributor Author

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.

@sosthene-nitrokey sosthene-nitrokey merged commit b3a7371 into trussed-dev:main May 14, 2025
5 checks passed
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