Skip to content

Commit

Permalink
mirage-xen 5.0.0 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Nov 1, 2019
1 parent 1cf2327 commit 11479f7
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions lib/back/blkback.ml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ end
open Lwt
open Blkproto

module OS = Os_xen
module Gntref = OS.Xen.Gntref

type ops = {
Expand Down Expand Up @@ -307,7 +306,7 @@ let init xe domid ring_info ops =
on_cancel th (fun () ->
let counter = ref 0 in
Ring.Rpc.Back.ack_requests ring (fun _ -> incr counter);
if !counter <> 0 then Log.err (fun f-> f "FATAL: before unmapping, there were %d outstanding requests on the ring. Events lOSt?" !(counter));
if !counter <> 0 then Log.err (fun f-> f "FATAL: before unmapping, there were %d outstanding requests on the ring. Events lost?" !(counter));
let () = OS.Xen.Import.Local_mapping.unmap_exn mapping in ()
);
th, stats
Expand Down
2 changes: 0 additions & 2 deletions lib/core/blkproto.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*)

module OS = Os_xen

let ( >>= ) x f = match x with
| Error _ as y -> y
| Ok x -> f x
Expand Down
2 changes: 1 addition & 1 deletion lib/core/blkproto.mli
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ end

module Req : sig
type seg = {
gref : Os_xen.Xen.Gntref.t;
gref : OS.Xen.Gntref.t;
first_sector : int;
last_sector : int;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/core/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(name mirage_block_xen)
(public_name mirage-block-xen)
(modules Blkproto Device_number)
(libraries cstruct io-page mirage-xen.internals)
(libraries cstruct io-page mirage-xen)
(wrapped false)
(preprocess
(pps ppx_cstruct)))
4 changes: 1 addition & 3 deletions lib/front/blkfront.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ open Lwt
open Printf
open Mirage_block
open Blkproto
open Os_xen

module OS = Os_xen
open OS

let src = Logs.Src.create "blkfront" ~doc:"Mirage Xen blkfront"

Expand Down
2 changes: 1 addition & 1 deletion mirage-block-xen.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ depends: [
"mirage-block" {>= "2.0.0"}
"ipaddr"
"io-page-xen" {>= "2.0.0"}
"mirage-xen" {>= "4.0.0"}
"mirage-xen" {>= "5.0.0"}
"rresult"
]
build: [
Expand Down

0 comments on commit 11479f7

Please sign in to comment.