eprintf "/* Use 'dot -Tpng foo.dot > foo.png' to convert to a png file. */\n";
eprintf "digraph G {\n";
print tree;
- eprintf "}\n";
+ eprintf "}\n%!";
type owner =
[ `Filesystem of filesystem
(* Return the ownership structure. *)
ownership
-let get_owners_lookup machine ownership disk =
+let get_owners_lookup machine ownership (disk : block_device) =
(* Get the correct tree. *)
- let tree = List.assoc disk ownership in
+ let tree = List.assoc (disk :> device) ownership in
fun offset ->
let rec query = function