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

Errors in write don't reach the other end #12

Open
viric opened this issue Feb 14, 2017 · 0 comments
Open

Errors in write don't reach the other end #12

viric opened this issue Feb 14, 2017 · 0 comments

Comments

@viric
Copy link

viric commented Feb 14, 2017

I tried to implement a block device that fails on some write operations, and userspace does not seem to care much. I don't know why.

At most I get a message in the kernel log saying:

[ 8557.506812] Buffer I/O error on device nbd0, logical block 83210
[ 8557.507071] block nbd0: Other side returned error (-5)
[ 8557.507074] blk_update_request: I/O error, dev nbd0, sector 167938

So, I run something like this:
mkfs.ext4 /dev/nbd0

And mkfs.ext4 isn't notified of any error.

I'm returning "htonl(-EIO)" from the write callback.

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