package nbd

  1. Overview
  2. Docs

Read and write requests can fail with an error response.

type t = [
  1. | `EPERM
    (*

    Operation not permitted

    *)
  2. | `EIO
    (*

    Input/output error

    *)
  3. | `ENOMEM
    (*

    Cannot allocate memory

    *)
  4. | `EINVAL
    (*

    Invalid argument

    *)
  5. | `ENOSPC
    (*

    No space left on device

    *)
  6. | `Unknown of int32
]

Defined error codes which can be returned in response to a request in the data-pushing phase.

include sig ... end
val t_of_sexp : Sexplib.Sexp.t -> t
val __t_of_sexp__ : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val to_string : t -> string