Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying key length in add_by_key #376

Merged

Conversation

jbaublitz
Copy link
Member

Related to stratis-storage/stratisd#3651

There is another set of values that can be passed in that is not currently exposed.

None currently uses the key length specified by the format call
Some allows you to specify a key

However, in the case of of a NO_SEGMENT key, you need to be able to specify no key but provide a key length as it cannot inherit this from the format call on an existing crypt device.

This PR exposes the API as follows:

None uses the key length specified by the format call
Some(Either::Left(_)) allows you to specify a key
Some(Either::Right(_)) allows you to specify a key length

This will be a breaking change and will require a minor version bump.

@jbaublitz jbaublitz self-assigned this Sep 18, 2024
@jbaublitz jbaublitz merged commit 04dc75f into stratis-storage:master Sep 23, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants