package nbd

  1. Overview
  2. Docs

Every disk (or 'export') has a number of associated flags. This will be returned from the server when the negotiation is complete.

type t =
  1. | Read_only
    (*

    export is read/only. Writes will receive EPERM

    *)
  2. | Send_flush
    (*

    server supports Command.Flush

    *)
  3. | Send_fua
    (*

    server supports NBD_CMD_FLAG_FUA

    *)
  4. | Rotational
    (*

    let the client schedule I/O for a rotational medium

    *)
  5. | Send_trim
    (*

    server supports Command.Trim

    *)

Per-export flags

include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
val to_string : t -> string
OCaml

Innovation. Community. Security.