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

feat(LVHDSR): add a way to modify config of LVMs #56

Merged
merged 1 commit into from
May 28, 2024

Conversation

Wescoeur
Copy link
Member

Now the driver supports a "lvm-conf" param on "other-config".

Example to issue discards after a lvremove command:

xe sr-param-set uuid=<SR_UUID> other-config:lvm-conf=issue_discards=1

And to remove the param:

xe sr-param-remove uuid=<SR_UUID> param-name=other-config param-key=lvm-conf

@Wescoeur Wescoeur requested a review from Nambrok May 27, 2024 17:38
@Wescoeur
Copy link
Member Author

Wescoeur commented May 27, 2024

TODO:

@stormi
Copy link
Member

stormi commented May 28, 2024

Is it going to be submitted upstream, too?

With this change the driver supports a "lvm-conf" param on "other-config".
For now The configuration is only used by "remove" calls from LVMCache.

Example to issue discards after a lvremove command:

> xe sr-param-set uuid=<SR_UUID> other-config:lvm-conf=issue_discards=1

And to remove the param:

> xe sr-param-remove uuid=<SR_UUID> param-name=other-config param-key=lvm-conf

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.fr>
@Wescoeur Wescoeur merged commit 71c9e29 into 2.30.8-8.2 May 28, 2024
1 check passed
@Wescoeur Wescoeur deleted the 2.30.8-8.2-lvm-conf branch May 28, 2024 13:17
Wescoeur added a commit that referenced this pull request Jun 12, 2024
With this change the driver supports a "lvm-conf" param on "other-config".
For now The configuration is only used by "remove" calls from LVMCache.

Example to issue discards after a lvremove command:

> xe sr-param-set uuid=<SR_UUID> other-config:lvm-conf=issue_discards=1

And to remove the param:

> xe sr-param-remove uuid=<SR_UUID> param-name=other-config param-key=lvm-conf

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.fr>
Wescoeur added a commit that referenced this pull request Jun 12, 2024
With this change the driver supports a "lvm-conf" param on "other-config".
For now The configuration is only used by "remove" calls from LVMCache.

Example to issue discards after a lvremove command:

> xe sr-param-set uuid=<SR_UUID> other-config:lvm-conf=issue_discards=1

And to remove the param:

> xe sr-param-remove uuid=<SR_UUID> param-name=other-config param-key=lvm-conf

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.fr>
Wescoeur added a commit that referenced this pull request Oct 3, 2024
With this change the driver supports a "lvm-conf" param on "other-config".
For now The configuration is only used by "remove" calls from LVMCache.

Example to issue discards after a lvremove command:

> xe sr-param-set uuid=<SR_UUID> other-config:lvm-conf=issue_discards=1

And to remove the param:

> xe sr-param-remove uuid=<SR_UUID> param-name=other-config param-key=lvm-conf

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.fr>
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.

3 participants