package fat-filesystem

  1. Overview
  2. Docs

The main FS interface.

Parameters

Signature

type error = [
  1. | Mirage_fs.error
  2. | `Block_read of B.error
]
type write_error = [
  1. | error
  2. | Mirage_fs.write_error
  3. | `Directory_not_empty
  4. | `Block_write of B.write_error
  5. | `Exn of exn
]
include Mirage_fs_lwt.S with type error := error and type write_error := write_error
val pp_error : error Fmt.t
val pp_write_error : write_error Fmt.t
type 'a io = 'a Lwt.t
type t
val disconnect : t -> unit io
type page_aligned_buffer = Cstruct.t
val read : t -> string -> int -> int -> (page_aligned_buffer list, error) Stdlib.result io
val size : t -> string -> (int64, error) Stdlib.result io
val create : t -> string -> (unit, write_error) Stdlib.result io
val mkdir : t -> string -> (unit, write_error) Stdlib.result io
val destroy : t -> string -> (unit, write_error) Stdlib.result io
val stat : t -> string -> (Mirage_fs.stat, error) Stdlib.result io
val listdir : t -> string -> (string list, error) Stdlib.result io
val write : t -> string -> int -> page_aligned_buffer -> (unit, write_error) Stdlib.result io
val connect : B.t -> t Lwt.t
val format : B.t -> int64 -> (t, write_error) Stdlib.result Lwt.t
OCaml

Innovation. Community. Security.