forked from scylladb/seastar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
append_challenged_posix_file_impl::read_dma: allow iovec to cross _lo…
…gical_size Currently append_challenged_posix_file_impl::read_dma trims the iov vector if it goes beyond _logical_size causing short reads if the file length is unaligned. We have to allow the iovec covering EOF to extend beyond it up to an offset aligned on disk_read_dma_alignment. Add a unit test that reproduces this case and passes with the fix. Test: unit(dev) Signed-off-by: Benny Halevy <[email protected]> Message-Id: <[email protected]>
- Loading branch information
Showing
2 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters