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.

val sexp_of_t : t -> Sexplib0.Sexp.t
val t_of_sexp : Sexplib0.Sexp.t -> t
val __t_of_sexp__ : Sexplib0.Sexp.t -> t
val to_string : t -> string
OCaml

Innovation. Community. Security.