File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -665,6 +665,13 @@ let process root_dir name x =
665
665
end else begin
666
666
(* We create a non-persistent disk here with Volume.clone, and store
667
667
the name of the cloned disk in the metadata of the original. *)
668
+ ( match List.Assoc. find response.Storage.Volume.Types. keys _clone_on_boot_key with
669
+ | None ->
670
+ return (Ok () )
671
+ | Some temporary ->
672
+ (* Destroy the temporary disk we made earlier *)
673
+ destroy root_dir name args.Args.VDI.Epoch_begin. dbg sr temporary
674
+ ) >> = fun () ->
668
675
clone root_dir name args.Args.VDI.Epoch_begin. dbg sr args.Args.VDI.Epoch_begin. vdi
669
676
>> = fun vdi ->
670
677
set root_dir name args.Args.VDI.Epoch_begin. dbg sr args.Args.VDI.Epoch_begin. vdi _clone_on_boot_key vdi.Storage.Volume.Types. key
You can’t perform that action at this time.
0 commit comments