@@ -69,6 +69,7 @@ type vdi_info = {
6969 physical_utilisation : int64 ;
7070 (* xenstore_data: workaround via XenAPI *)
7171 persistent : bool ;
72+ sharable : bool ;
7273 sm_config : (string * string ) list ;
7374}
7475
@@ -88,6 +89,7 @@ let default_vdi_info = {
8889 virtual_size = 0L ;
8990 physical_utilisation = 0L ;
9091 persistent = true ;
92+ sharable = false ;
9193 sm_config = [] ;
9294}
9395
@@ -201,6 +203,8 @@ module Dynamic = struct
201203
202204end
203205
206+ type uuid = string
207+
204208exception Backend_error_with_backtrace of (string * (string list )) (* * name * params *)
205209
206210exception Sr_not_attached of string (* * error: SR must be attached to access VDIs *)
@@ -212,6 +216,7 @@ exception Cancelled of string
212216exception Redirect of string option
213217exception Sr_attached of string
214218exception Unimplemented of string
219+ exception Activated_on_another_host of uuid
215220exception Duplicated_key of string
216221exception No_storage_plugin_for_sr of string
217222exception Content_ids_do_not_match of (string * string )
@@ -266,7 +271,7 @@ module SR = struct
266271 (* * Functions which manipulate SRs *)
267272
268273 (* * [create dbg sr name_label name_description device_config physical_size] creates an sr with id [sr] *)
269- external create : dbg :debug_info -> sr :sr -> name_label :string -> name_description :string -> device_config :(string * string ) list -> physical_size :int64 -> unit = " "
274+ external create : dbg :debug_info -> sr :sr -> name_label :string -> name_description :string -> device_config :(string * string ) list -> physical_size :int64 -> ( string * string ) list = " "
270275
271276 (* * [set_name_label sr new_name_label] updates the name_label of SR [sr]. *)
272277 external set_name_label : dbg :debug_info -> sr :sr -> new_name_label :string -> unit = " "
0 commit comments