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, errorResult.result Lwt.t
val read_impl : string ‑> string ‑> int ‑> int ‑> (Cstruct.t list, errorResult.result Lwt.t
val size_impl : string ‑> string ‑> (int64, errorResult.result Lwt.t
val resolve_filename : string ‑> string ‑> string
val map_write_error : Unix.error ‑> ('awrite_errorResult.result
val map_error : Unix.error ‑> ('aerrorResult.result
val err_catcher : exn ‑> ('aerrorResult.result Lwt.t
val write_err_catcher : exn ‑> ('awrite_errorResult.result Lwt.t