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

PattenStomper doesn't submit IOs directly #47

Open
akiradeveloper opened this issue Jul 7, 2015 · 0 comments
Open

PattenStomper doesn't submit IOs directly #47

akiradeveloper opened this issue Jul 7, 2015 · 0 comments

Comments

@akiradeveloper
Copy link
Contributor

It seems that PattenStomper doesn't submit IOs directly to the target device because it goes through page cache. It should because we are testing block device.
The second arg of the initializer is set sectors(1) (meaning 1 sector) but the actual IOs to the device is 4KB large.

I think it should be specified flags for direct IOs.

I attempted to do so by changing the flag in verify_blocks to logical-or of File::RDONLY, BINARY and DIRECT but causes runtime error at io.read in read_block. I am not really familiar with Ruby so please give me advice.

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

No branches or pull requests

1 participant