Skip to content
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

BlockDevice trait #56

Open
qwandor opened this issue Jul 31, 2024 · 0 comments · May be fixed by #59
Open

BlockDevice trait #56

qwandor opened this issue Jul 31, 2024 · 0 comments · May be fixed by #59

Comments

@qwandor
Copy link

qwandor commented Jul 31, 2024

Hello,
How would folks feel about the addition of a BlockDevice trait, something like the one from embedded_sdmmc? This would be a common interface between things like SD card drivers, VirtIO block devices and so on, and crates which provide filesystem implementations on top of a block device. Unlike the other traits in embedded-storage it would only allow access to whole blocks. It would also avoid the 4 GiB size limit the other traits have due to using u32 addresses.

I originally proposed this for the embedded-io crate, but they suggested that this crate might be a better fit. If this seems like a reasonable place for it I'm happy to send a PR to discuss the details.

@qwandor qwandor linked a pull request Aug 6, 2024 that will close this issue
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 a pull request may close this issue.

1 participant