Module Proto.Tremove

Tremove deletes the file associated with a fid. It requires write access to the file's parent directory. Even if the remove fails, the associated fid is clunked and no longer associated with the file.

Most Unix clients will expect that if other fids are open for the named file, they will continue to function, and the file will persist, invisibly, until the last fid referencing it is clunked.

include module type of Tclunk
type t
val size : t -> int

The size of this message in bytes. It is identical to the length of the underlying I/O vector but is also encoded in the first 4 bytes of the message.

val code : int

The op code for this message.

val tag : t -> Tag.t

An identifier for this transaction. All in-flight requests on a given connection must have unique tags.

val of_iovec : Iovec.t -> t

of_iovec verifies a message from an I/O vector. No copying is done, and of_iovec only performs bounds checks. Modifying the underlying I/O vector will change the results when accessing message fields.

val fid : t -> Fid.t

fid references the file to close.

val write : Iovec.t -> tag:Tag.t -> fid:Fid.t -> int