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

Fill / persist all iovecs in FileDisk.request. #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zvin
Copy link
Contributor

@zvin zvin commented Mar 9, 2017

Change-Type: patch

@zvin zvin requested a review from petrosagg March 9, 2017 11:33
@zvin
Copy link
Contributor Author

zvin commented Mar 9, 2017

There is one problem with this PR: none of the tests calls FileDisk.request with an iovecs array containing more than one buffer.

@zvin
Copy link
Contributor Author

zvin commented Mar 9, 2017

The second commit implements writeBuffers using writev and pwritev syscalls.

I was hoping that this would trigger a call to FileDisk.request with an iovecs array containing more than one buffer.
I was wrong, a writev of several buffers ends up in a disk request with only one buffer containing the concatenation of these buffers.

But at least now we have a writeBuffers implementation.

@zvin zvin force-pushed the fill-all-iovecs branch 2 times, most recently from c274ce5 to 36810a8 Compare March 23, 2017 12:31
Copy link
Contributor

@petrosagg petrosagg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No-op review to dismiss stale review request

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