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

lofs: respect msize in read #41

Merged
merged 1 commit into from Dec 18, 2015
Merged

Conversation

djs55
Copy link
Member

@djs55 djs55 commented Dec 18, 2015

Some clients will negotiate an msize of (e.g.) 16384 and then issue a
read with count=65536, and then complain when they receive that
many bytes back. This patch makes lofs respect the negotiated msize
in read by returning as many bytes as possible, up to the msize.

Signed-off-by: David Scott dave.scott@unikernel.com

Some clients will negotiate an `msize` of (e.g.) 16384 and then issue a
`read` with `count=65536`, and then complain when they receive that
many bytes back. This patch makes `lofs` respect the negotiated `msize`
in `read` by returning as many bytes as possible, up to the `msize`.

Signed-off-by: David Scott <dave.scott@unikernel.com>
djs55 added a commit that referenced this pull request Dec 18, 2015
@djs55 djs55 merged commit 44ef981 into mirage:master Dec 18, 2015
@djs55 djs55 deleted the read-respect-msize branch December 18, 2015 16:07
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.

None yet

1 participant