package nbd

  1. Overview
  2. Docs

When the client sends an option request, the server must reply.

type t =
  1. | Ack
    (*

    Option acknowledged

    *)
  2. | Server
    (*

    A description of an export (in reponse to List)

    *)
  3. | Unsupported
    (*

    The option is unsupported

    *)
  4. | Policy
    (*

    The option is blocked by an admin policy

    *)
  5. | Invalid
    (*

    The option was invalid (i.e. the client is buggy)

    *)
  6. | Platform
    (*

    The option is not supported in this platform.

    *)
  7. | TlsReqd
    (*

    The option is not allowed when the connection is not using TLS.

    *)
  8. | Unknown of int32
    (*

    The response is unknown to this implementation.

    *)
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