Skip to content

Add FileHandle convenience methods and new file system tests #392

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

Merged
merged 2 commits into from
Mar 17, 2022

Conversation

nicholasbishop
Copy link
Member

  • Add FileHandle::into_directory and FileHandle::into_regular_file. These can be more convenient than FileHandle::into_type when you know what type of file you expect.

  • Add code in xtask to build a disk image with a FAT partition, then run file system tests against that disk (when the test runner is built with the qemu feature). A disk image is used instead of QEMU's VVFAT option so that everything is fully controlled (can test exact FS info values) and isolated from the host.

This partially addresses #57. There are some more partition and file system tests that can be added later.

Add `FileHandle::into_directory` and
`FileHandle::into_regular_file`. These can be more convenient than
`FileHandle::into_type` when you know what type of file you expect.
Add code in xtask to build a disk image with a FAT partition, then run
file system tests against that disk (when the test runner is built with
the qemu feature). A disk image is used instead of QEMU's VVFAT option
so that everything is fully controlled (can test exact FS info values)
and isolated from the host.

This partially addresses
rust-osdev#57. There are some more
partition and file system tests that can be added here.
@GabrielMajeri
Copy link
Collaborator

Looks great, thanks!

@GabrielMajeri GabrielMajeri merged commit 87df393 into rust-osdev:main Mar 17, 2022
@nicholasbishop nicholasbishop deleted the bishop-fs-test-3 branch March 17, 2022 12:38
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