-
Notifications
You must be signed in to change notification settings - Fork 26
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
Avoid is_mountable calls #440
Comments
This should significantly reduce bootup time. With logging enabled ( |
With this patch, the EFS is only mounted once if it is mountable. This significantly reduces bootup time by approximately 0.5 s. Fixes: #440
We could have a I'm not sure I see the borrow checker error. Is this |
Yes, we can do it in |
With this patch, the EFS is only mounted once if it is mountable. This significantly reduces bootup time by approximately 0.5 s. Fixes: #440
Filesystem::is_mountable
callsFilesystem::mount
, checks the result and drops the mounted filesystem. This means that code that first callsis_mountable
and thenmount
on the same storage mounts the storage twice.nitrokey-3-firmware/components/boards/src/store.rs
Lines 275 to 283 in 6f032b5
Instead we should first call
Filesystem::mount
and handle the error case directly.The text was updated successfully, but these errors were encountered: