-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bug fixes for create_vdev 1. max_num_chunks should based on vdev_size/min_chunk_size, previous implementation wrongly include other pdevs that doesnt belongs to this vdev(e.g different type). 2. we should never round up vdev size as this might causing vdev size exceed underlaying pdev size. 3. a few other fixes. Add a set of sanity checks as well as UT to ensure chunks are align to pdev->align_size(). Fixes: #377 Signed-off-by: Xiaoxi Chen <[email protected]> * Fix logdev UT that use 8MB chunk size Signed-off-by: Xiaoxi Chen <[email protected]> * Fix device_manager ut previously we have use-after-release as during restart HS all chunk are released. But after restart we dont refresh our vdev vector which still refering to old chunks. Signed-off-by: Xiaoxi Chen <[email protected]>
- Loading branch information
1 parent
ed5b061
commit 6f93ea4
Showing
6 changed files
with
95 additions
and
31 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
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
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