Eio_fs_chaos.OpSourceThe operations a wrapper sees.
type kind = [ | `Open_readAn open for reading, of a file or a directory.
*)| `Open_writeAn open that may write or create the file.
*)| `StatA stat, of a path or of an open file.
*)| `ReadA read of a file's bytes.
*)| `Read_dirA listing of a directory's entries.
*)| `WriteA write of a file's bytes.
*)| `TruncateA truncation of a file; offset is its new length.
| `SyncA sync of a file or of a directory.
*)| `ChangeA change to a directory's entries (mkdir, symlink, unlink, rmdir, rename) or to an entry's mode or owner (chmod, chown).
]The type for operation kinds.
type t = {index : int;The operation's place among all of them, from 1.
kind : kind;path : string;The path the operation names, as given to the wrapper: "/f" for a file f at the root of Eio_fs_mem.v. A file operation names the path the file was opened by.
nth : int;The operation's place among those of its kind on its path, from 1.
rank : int;The operation's place among those of its kind on any path, from 1. A check aims its faults by kind and rank.
offset : int;Where a read or a write starts, a truncation's new length, 0 otherwise.
length : int;The bytes a read asks for or a write offers.
*)dest : string option;A rename's destination, as given to the directory it lands in.
*)}The type for operations.