aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ocaml/xenstored/connection.ml
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ocaml/xenstored/connection.ml')
-rw-r--r--tools/ocaml/xenstored/connection.ml5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/ocaml/xenstored/connection.ml b/tools/ocaml/xenstored/connection.ml
index 32e2f2e35d..273fe4dc11 100644
--- a/tools/ocaml/xenstored/connection.ml
+++ b/tools/ocaml/xenstored/connection.ml
@@ -38,6 +38,11 @@ and t = {
mutable perm: Perms.Connection.t;
}
+let mark_as_bad con =
+ match con.dom with
+ |None -> ()
+ | Some domain -> Domain.mark_as_bad domain
+
let get_path con =
Printf.sprintf "/local/domain/%i/" (match con.dom with None -> 0 | Some d -> Domain.get_id d)