-
Notifications
You must be signed in to change notification settings - Fork 5
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
lio_read should return the number of bytes actually read #126
Comments
Good catch. It's looks to be a pretty easy fix. I'll take care of it |
Prolly worth checking the write variant. Gridftp plugin is blocking on It's dark in this basement. |
Write looks fine. |
Any chance you could pop out a quick patch to the read path? I can't find a
good way around it for the gridftp plugin.
|
Sure. I'll knock it out this afternoon. |
cheers.
|
Currently,
lio_read
just kicks back the same size that the user passed in, even if that read would go beyond the end of the file:https://github.com/accre/lstore/blob/master/src/lio/lio_core_io.c#L963
That means there's no way to know "where" the EOF was hit, just that the next time you read you'll get zero bytes
The text was updated successfully, but these errors were encountered: