Module FS_common

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
]
val pp_error : error Fmt.t
val pp_write_error : write_error Fmt.t
val mem_impl : string -> string -> (bool, error) Stdlib.result Lwt.t
val read_impl : string -> string -> int -> int -> (Cstruct.t listerror) Stdlib.result Lwt.t
val size_impl : string -> string -> (int64, error) Stdlib.result Lwt.t
val resolve_filename : string -> string -> string
val map_write_error : Unix.error -> ('awrite_error) Stdlib.result
val map_error : Unix.error -> ('aerror) Stdlib.result
val err_catcher : exn -> ('aerror) Stdlib.result Lwt.t
val write_err_catcher : exn -> ('awrite_error) Stdlib.result Lwt.t