Skip to content

Commit

Permalink
Workaround crash in Libvirt.Volume.get_info (by not calling it)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Scott committed Feb 26, 2013
1 parent 490fcf8 commit a8b53f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server.ml
Expand Up @@ -191,7 +191,7 @@ module Implementation = struct

let vdi_info_of_name pool name =
let v = V.lookup_by_name pool name in
let info = V.get_info v in
(* let info = V.get_info v in *)
let key = V.get_key v in
Some {
vdi = key;
Expand All @@ -204,8 +204,8 @@ module Implementation = struct
snapshot_time = iso8601_of_float 0.;
snapshot_of = "";
read_only = false;
virtual_size = info.V.capacity;
physical_utilisation = info.V.allocation;
virtual_size = 0L; (*info.V.capacity;*)
physical_utilisation = 0L; (*info.V.allocation;*)
sm_config = [];
persistent = true;
}
Expand Down

0 comments on commit a8b53f2

Please sign in to comment.