Expand description
Definitions of messages passed between filesystem clients and servers.
Structs
- A request to add a btlib::Readcap to a file.
- A request to pre-allocate a given amount of space from durable storage for a file.
- Attributes of a file.
- A type for indicating which fields in Attrs have been set and which should be ignored.
- A request to close an open file.
- A request to create a file in a directory under a given name.
- A reply containing information about a newly created file.
- A filesystem entry.
- A wrapper type around i32 with convenience methods for checking if
libc::O_*
flags have been set. - A request to flush all data cached for an open file to durable storage.
- A request to forget about an inode which was previously referenced.
- A request to give a process access to an inode.
- A request to create a new hard link to a file.
- A reply containing the Entry of the newly created hard link.
- A request to lock a region of a file.
- The description of a region in a file to lock.
- A request to lookup a name in a directory.
- A reply containing the Entry stored under a name in a directory.
- A request to hope a file.
- A reply which contains a handle to an open file.
- A request to read data at a particular offset from an open file.
- A request to read the contents of a directory.
- A reply containing the contents of a directory.
- A request to read a file’s metadata.
- A reply containing the metadata of a file.
- A reply containing data read from a file.
- A request to remove a name referring to an inode.
- A request to unlock a region of a file.
- A request to write data to a particular offset in an open file.
- A request to write the metadata of a file.
- A reply containing the newly written file metadata.
- A reply containing the number of bytes written to a file.
Enums
- The type of a file (regular, directory, etc).
- The generators for the group of Flags.
- Top-level message type for the filesystem protocol. All messages passed from clients to servers are of this type.
- The type for every reply sent from servers to clients.
- An enumeration of special Inodes.