package nbd

  1. Overview
  2. Docs

Module Protocol.ErrorSource

Read and write requests can fail with an error response.

Sourcetype 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.

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