@@ -1143,7 +1143,7 @@ module StorageAPI (R : RPC) = struct
1143
1143
)
1144
1144
1145
1145
(* * Called on the receiving end to prepare for receipt of the storage. This
1146
- function should be used in conjunction with [receive_finalize2 ]*)
1146
+ function should be used in conjunction with [receive_finalize3 ]*)
1147
1147
let receive_start3 =
1148
1148
let similar_p = Param. mk ~name: " similar" Mirror. similars in
1149
1149
let result = Param. mk ~name: " result" Mirror. mirror_receive_result in
@@ -1162,18 +1162,27 @@ module StorageAPI (R : RPC) = struct
1162
1162
(* * Called on the receiving end
1163
1163
@deprecated This function is deprecated, and is only here to keep backward
1164
1164
compatibility with old xapis that call Remote.DATA.MIRROR.receive_finalize
1165
- during SXM. Use the receive_finalize2 function instead.
1165
+ during SXM. Use the receive_finalize3 function instead.
1166
1166
*)
1167
1167
let receive_finalize =
1168
1168
declare " DATA.MIRROR.receive_finalize" []
1169
1169
(dbg_p @-> id_p @-> returning unit_p err)
1170
1170
1171
- (* * [receive_finalize2 dbg id] will stop the mirroring process and compose
1171
+ (* * Called on the receiving end
1172
+ @deprecated This function is deprecated, and is only here to keep backward
1173
+ compatibility with old xapis that call Remote.DATA.MIRROR.receive_finalize
1174
+ during SXM. Use the receive_finalize3 function instead.
1175
+ *)
1176
+ let receive_finalize2 =
1177
+ declare " DATA.MIRROR.receive_finalize2" []
1178
+ (dbg_p @-> id_p @-> returning unit_p err)
1179
+
1180
+ (* * [receive_finalize3 dbg id] will stop the mirroring process and compose
1172
1181
the snapshot VDI with the mirror VDI. It also cleans up the storage resources
1173
1182
used by mirroring. It is called after the the source VM is paused. This fucntion
1174
1183
should be used in conjunction with [receive_start3] *)
1175
- let receive_finalize2 =
1176
- declare " DATA.MIRROR.receive_finalize2 " []
1184
+ let receive_finalize3 =
1185
+ declare " DATA.MIRROR.receive_finalize3 " []
1177
1186
(dbg_p
1178
1187
@-> id_p
1179
1188
@-> sr_p
@@ -1316,7 +1325,9 @@ module type MIRROR = sig
1316
1325
1317
1326
val receive_finalize : context -> dbg :debug_info -> id :Mirror .id -> unit
1318
1327
1319
- val receive_finalize2 :
1328
+ val receive_finalize2 : context -> dbg :debug_info -> id :Mirror .id -> unit
1329
+
1330
+ val receive_finalize3 :
1320
1331
context
1321
1332
-> dbg :debug_info
1322
1333
-> mirror_id :Mirror .id
@@ -1817,8 +1828,11 @@ module Server (Impl : Server_impl) () = struct
1817
1828
S.DATA.MIRROR. receive_finalize (fun dbg id ->
1818
1829
Impl.DATA.MIRROR. receive_finalize () ~dbg ~id
1819
1830
) ;
1820
- S.DATA.MIRROR. receive_finalize2 (fun dbg mirror_id sr url verify_dest ->
1821
- Impl.DATA.MIRROR. receive_finalize2 () ~dbg ~mirror_id ~sr ~url
1831
+ S.DATA.MIRROR. receive_finalize2 (fun dbg id ->
1832
+ Impl.DATA.MIRROR. receive_finalize2 () ~dbg ~id
1833
+ ) ;
1834
+ S.DATA.MIRROR. receive_finalize3 (fun dbg mirror_id sr url verify_dest ->
1835
+ Impl.DATA.MIRROR. receive_finalize3 () ~dbg ~mirror_id ~sr ~url
1822
1836
~verify_dest
1823
1837
) ;
1824
1838
S.DATA.MIRROR. pre_deactivate_hook (fun dbg dp sr vdi ->
0 commit comments