Skip to content

storage_pool V2: support flexible num_data_slices for Gen2 pools - #55

Open
Prasant-Dell wants to merge 1 commit into
mainfrom
feature/feat-23070-storagepool-v2-flexible-data-slices
Open

storage_pool V2: support flexible num_data_slices for Gen2 pools#55
Prasant-Dell wants to merge 1 commit into
mainfrom
feature/feat-23070-storagepool-v2-flexible-data-slices

Conversation

@Prasant-Dell

Copy link
Copy Markdown

Replace the hardcoded TwoPlusTwo=2 / EightPlusTwo=8 data-slice mapping in StoragePool.create() with verbatim pass-through of numDataSlices and numProtectionSlices, falling back to the protection_scheme presets when no explicit slice count is given. check_create_params() now validates numDataSlices as a positive integer and requires one of numDataSlices or protectionScheme. Backward compatible with existing protection_scheme usage.

Tests: tests/gen2/test_storage_pool.py (U-001..U-007).

FEAT-23070

Replace the hardcoded TwoPlusTwo=2 / EightPlusTwo=8 data-slice mapping in
StoragePool.create() with verbatim pass-through of numDataSlices and
numProtectionSlices, falling back to the protection_scheme presets when no
explicit slice count is given. check_create_params() now validates
numDataSlices as a positive integer and requires one of numDataSlices or
protectionScheme. Backward compatible with existing protection_scheme usage.

Tests: tests/gen2/test_storage_pool.py (U-001..U-007).

FEAT-23070
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.

1 participant