-
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.
Support flexible virtual device creation in HomeStore with num_chunks…
… or chunk_size Refactored the BlkDataService and updated HomeStore::format_and_start to support virtual device creation by specifying either the number of chunks or the size of each chunk. - Renamed the original `create_vdev` method to `create_vdev_with_num_chunks` to explicitly indicate the use of num_chunks. - Added a new method `create_vdev_with_chunk_size` to allow specifying chunk size instead of the number of chunks. - Updated format_and_start to conditionally call create_vdev_with_num_chunks or create_vdev_with_chunk_size based on non-zero values, ensuring at least one is specified.
- Loading branch information
1 parent
1a87f71
commit aff7a0a
Showing
4 changed files
with
62 additions
and
9 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