Module Proto.Twstat
Twstat allows for changes to be made to file attributes. A file may be renamed in this way but its location cannot be changed.
The provided Stat
structure can set "dont-touch" values for any field; a 0-length field for variable-length fields, and the maximum value for fixed integer fields. This indicates that the server should leave the existing values for those fields and only apply fields that do not have "dont-touch" values.
Another convention is that if the Stat
structure contains only "dont-touch" values, it is a request to flush any buffered data to persistent storage.
val fid : t -> Fid.t
val stat : t -> Styx__.Types.Stat.t
val init : Iovec.t -> tag:Tag.t -> Iovec.writer
init iov ~tag
writes aTwstat
header toiov
and returns anIovec.writer
positioned after the header, which can be used withStat.write
.