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

Direct I/O Reads Handle the last sector correctly. #1550

Closed
wants to merge 1 commit into from

Conversation

siying
Copy link
Contributor

@siying siying commented Nov 19, 2016

Currently, in the Direct I/O read mode, the last sector of the file, if not full, is not handled correctly. If the return value of pread is not multiplier of kSectorSize, we still go ahead and continue reading, even if the buffer is not aligned. With the commit, if the return value is not multiplier of kSectorSize, and all but the last sector has been read, we simply return.

@siying siying assigned AGFeldman and lightmark and unassigned AGFeldman Nov 19, 2016
@siying
Copy link
Contributor Author

siying commented Nov 19, 2016

Now it should work.

@facebook-github-bot
Copy link
Contributor

@siying updated the pull request - view changes

@facebook-github-bot
Copy link
Contributor

@lightmark has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

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

4 participants