let phystype = Device.Vbd.physty_of_string phystype in
let dev_type = Device.Vbd.devty_of_string dev_type in
- Device.Vbd.add ~xs ~hvm ~mode:(Device.Vbd.mode_of_string mode)
- ~phystype ~physpath ~virtpath ~dev_type ~backend_domid domid
+ let (_: Device_common.device) =
+ Device.Vbd.add ~xs ~hvm ~mode:(Device.Vbd.mode_of_string mode)
+ ~phystype ~physpath ~virtpath ~dev_type ~backend_domid
+ ~unpluggable:false ~diskinfo_pt:false domid in
+ ()
let find_device ~xs (frontend: endpoint) (backend: endpoint) =
let all = list_devices_between ~xs backend.domid frontend.domid in
Device.clean_shutdown ~xs device
let add_vif ~xs ~domid ~netty ~devid ~mac ~backend_domid =
- ignore(Device.Vif.add ~xs ~devid ~netty ~mac ~backend_domid domid)
+ let (_: Device_common.device) = Device.Vif.add ~xs ~devid ~netty ~mac ~backend_domid domid in
+ ()
let del_vif ~xs ~domid ~backend_domid ~devid =
let frontend = { domid = domid; kind = Vif; devid = devid } in
assert_domid ();
with_xc_and_xs (fun xc xs ->
let hvm = is_domain_hvm xc domid in
- ignore(add_vbd ~xs ~hvm ~domid ~virtpath ~phystype ~physpath ~dev_type ~unpluggable:false ~diskinfo_pt:false ~mode ~backend_domid)
+ add_vbd ~xs ~hvm ~domid ~virtpath ~phystype ~physpath ~dev_type ~mode ~backend_domid
)
| "del_vbd" ->
assert_domid ();