You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current test suite only mounts image files. That's useful. But mounting a device file is slightly harder, because all device reads must be aligned to the device's sector size, and a multiple of that same sector size. An example of such a test is at https://github.com/KhaledEmaraDev/xfuse/blob/b6ad7fd32ad4443b5ab4ab684ae0c7639eb31be1/tests/integration.rs#L295 . That module contains three tests. Each mounts an md device backed by the test image:
Read all metadata
Read all data
Read all data with O_DIRECT
Those tests validate that the file server doesn't do any non-sector-size-aligned accesses. Additional test cases would be needed for journaling or soft updates.
The text was updated successfully, but these errors were encountered:
The current test suite only mounts image files. That's useful. But mounting a device file is slightly harder, because all device reads must be aligned to the device's sector size, and a multiple of that same sector size. An example of such a test is at https://github.com/KhaledEmaraDev/xfuse/blob/b6ad7fd32ad4443b5ab4ab684ae0c7639eb31be1/tests/integration.rs#L295 . That module contains three tests. Each mounts an md device backed by the test image:
Those tests validate that the file server doesn't do any non-sector-size-aligned accesses. Additional test cases would be needed for journaling or soft updates.
The text was updated successfully, but these errors were encountered: