-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
os/bluestore: Fix Blob::copy_extents function
The function had an error, that it assumed its smallest operational block is allocation unit. In reality, the smallest block is min_release_size, that is a max(allocation size, checksum size). In some wierd cases single min_release_size block could be composed of *disjointed* allocation on the disk. This is something that bitmap allocator does often. Blob::copy_extents could not handle it properly, but luckily, it asserted when faced with that data. New fixed and improved version is able to handle this case too. Signed-off-by: Adam Kupczyk <[email protected]>
- Loading branch information
Showing
1 changed file
with
53 additions
and
22 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