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

CP-50050 track CBT status for SMAPIv3 SRs #5756

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

rdn32
Copy link

@rdn32 rdn32 commented Jul 1, 2024

  • Use cbt_enabled flag from plugin responses, to allow that a snapshot of a CBT-enabled VDI will itself be CBT-enabled.
  • As part of vdi-data-destroy, record the VDI type as a custom key, so that on a subsequent sr-scan it still shows up as a metadata-only snapshot.

- Use cbt_enabled flag from plugin responses, to allow that a snapshot
  of a CBT-enabled VDI will itself be CBT-enabled.
- As part of vdi-data-destroy, record the VDI type as a custom key, so
  that on a subsequent sr-scan it still shows up as a metadata-only
  snapshot.

Signed-off-by: Robin Newton <robin.newton@cloud.com>
@rdn32 rdn32 force-pushed the private/rnewton/CP-50050 branch from 96a16cf to f5e35fd Compare July 1, 2024 09:38
)
in
let* () = set ~dbg ~sr ~vdi ~key:_vdi_type_key ~value:"cbt_metadata" in
Deferred.Result.return response
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this response var is always going to be a unit, isn't it? We could just return unit here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be changed to

let* () = return_volume_rpc (...) in
set ~dbg ... ~value"cbt_metadata"

But the way it is right now is fine as well

@psafont psafont merged commit 6969a8a into xapi-project:master Jul 1, 2024
14 checks passed
@rdn32 rdn32 deleted the private/rnewton/CP-50050 branch July 1, 2024 13:46
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.

None yet

4 participants