Skip to content

Commit 83de389

Browse files
committed
CA-347560: Add VM.import_metadata_async
This is a variant of `VM.import_metadata` that always queues the operation and returns a task id immediately (like most VM operations). This is useful, once the original (synchronous) function may block for longer periods while other operations on the VM complete. Signed-off-by: Rob Hoes <[email protected]>
1 parent 9e23539 commit 83de389

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

xen/xenops_interface.ml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,13 @@ module XenopsAPI (R : RPC) = struct
811811
@-> Param.mk ~name:"metadata" Types.string
812812
@-> returning vm_id_p err
813813
)
814+
815+
let import_metadata_async =
816+
declare "VM.import_metadata_async" []
817+
(debug_info_p
818+
@-> Param.mk ~name:"metadata" Types.string
819+
@-> returning task_id_p err
820+
)
814821
end
815822

816823
module PCI = struct

0 commit comments

Comments
 (0)