File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,11 @@ let set root_dir name dbg sr vdi k v =
219
219
let args = Storage.Volume.Types.Volume.Set.In. rpc_of_t args in
220
220
fork_exec_rpc root_dir (script root_dir name `Volume " Volume.set" ) args Storage.Volume.Types.Volume.Set.Out. t_of_rpc
221
221
222
+ let unset root_dir name dbg sr vdi k =
223
+ let args = Storage.Volume.Types.Volume.Unset.In. make dbg sr vdi k in
224
+ let args = Storage.Volume.Types.Volume.Unset.In. rpc_of_t args in
225
+ fork_exec_rpc root_dir (script root_dir name `Volume " Volume.unset" ) args Storage.Volume.Types.Volume.Unset.Out. t_of_rpc
226
+
222
227
let choose_datapath ?(persistent = true ) response =
223
228
(* We can only use a URI with a valid scheme, since we use the scheme
224
229
to name the datapath plugin. *)
@@ -704,6 +709,8 @@ let process root_dir name x =
704
709
(* Destroy the temporary disk we made earlier *)
705
710
destroy root_dir name args.Args.VDI.Epoch_end. dbg sr temporary
706
711
>> = fun () ->
712
+ unset root_dir name args.Args.VDI.Epoch_end. dbg sr args.Args.VDI.Epoch_end. vdi _clone_on_boot_key
713
+ >> = fun () ->
707
714
Deferred.Result. return (R. success (Args.VDI.Epoch_end. rpc_of_response () ))
708
715
end
709
716
| { R. name = "VDI.set_persistent" ; R. params = [ args ] } ->
You can’t perform that action at this time.
0 commit comments