-
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.
Optimise logic to add BDs to a RaidGroup in a CSPC to maximise succes…
…sful pool provisions (#136) * Refactor logic to add BDs to a RaidGroup in a CSPC * Add unit-tests for RaidZ & RaidZ2 pool-type * Add capacity flag for CSPC generation * Make RaidZ2 accept minimum 6 disks per node * LinkedList+Sliding window logic to for non-stripe CSPC generation ( _kudos to Sai for coming up with all possible edge cases and reviewing this huge feature_ ) * Implement the LinkedList approach for iteratively selecting BDs TIL: * Fixed failing unit test - Same BD was re-used in subsequent RAID-group - Reason: Assignment to the method receivers propagates only to callees but not to callers. * Remove unused variable `index` * Allow 0 bytes as minimum disk size in Disk Selection algo * Make the DeviceList contain a pointer to BD Co-Authored-by: Sai Chaithanya (@mittachaitu) <[email protected]> Signed-off-by: Harsh Vardhan <[email protected]>
- Loading branch information
Harsh Vardhan
and
Sai Chaithanya (@mittachaitu)
authored
Dec 28, 2021
1 parent
c55d1b6
commit c28dff9
Showing
7 changed files
with
608 additions
and
54 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
Oops, something went wrong.