Module FS_unix
Loopback implementation of the FS signature.
type fs_error
=[
|
`Unix_error of Unix.error
|
`Unix_errorno of int
|
`Negative_bytes
]
type error
=[
|
Mirage_fs.error
|
fs_error
]
type write_error
=[
|
Mirage_fs.write_error
|
fs_error
|
`Directory_not_empty
]
include Mirage_fs.S with type FS_unix.error := error and type FS_unix.write_error := write_error
val pp_error : error Fmt.t
val pp_write_error : write_error Fmt.t
val disconnect : t -> unit Lwt.t
val read : t -> string -> int -> int -> (Cstruct.t list, error) Stdlib.result Lwt.t
val size : t -> string -> (int64, error) Stdlib.result Lwt.t
val create : t -> string -> (unit, write_error) Stdlib.result Lwt.t
val mkdir : t -> string -> (unit, write_error) Stdlib.result Lwt.t
val destroy : t -> string -> (unit, write_error) Stdlib.result Lwt.t
val stat : t -> string -> (Mirage_fs.stat, error) Stdlib.result Lwt.t
val listdir : t -> string -> (string list, error) Stdlib.result Lwt.t
val write : t -> string -> int -> Cstruct.t -> (unit, write_error) Stdlib.result Lwt.t
val connect : string -> t Lwt.t