Skip to content

CA-407328: Change vm parameter names of SXM calls #6324

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

Merged
merged 1 commit into from
Mar 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions ocaml/xapi/xapi_vm_migrate.ml
Original file line number Diff line number Diff line change
Expand Up @@ -805,13 +805,17 @@ let get_vdi_mirror __context vm vdi do_mirror =
in
let hash x =
let s = Digest.string x |> Digest.to_hex in
String.sub s 0 5
String.sub s 0 3
in
let copy_vm =
Ref.string_of vm |> hash |> ( ^ ) "COPY" |> Storage_interface.Vm.of_string
(Ref.string_of vm |> hash) ^ (Ref.string_of vdi |> hash)
|> ( ^ ) "CP"
|> Storage_interface.Vm.of_string
in
let mirror_vm =
Ref.string_of vm |> hash |> ( ^ ) "MIR" |> Storage_interface.Vm.of_string
(Ref.string_of vm |> hash) ^ (Ref.string_of vdi |> hash)
|> ( ^ ) "MIR"
|> Storage_interface.Vm.of_string
in
{
vdi
Expand Down
Loading