Structsยง
- Block
Async - Virtio device for exposing block level read/write operations on a host file.
- Disk
State ๐ - Tracks the state of an anynchronous disk.
- Worker
Shared ๐State - Disk state which can be modified by other worker threads
Enumsยง
- Control
Error ๐ - Errors that happen in block outside of executing a request. This includes errors during resize and flush operations.
- Execute
Error ๐ - LogLevel ๐
- Worker
Cmd ๐
Constantsยง
- DEFAULT_
NUM_ ๐QUEUES - DEFAULT_
QUEUE_ ๐SIZE - DISCARD_
SECTOR_ ๐ALIGNMENT - ID_LEN ๐
- Maximum length of the virtio-block ID string field.
- MAX_
DISCARD_ ๐SECTORS - MAX_
DISCARD_ ๐SEG - MAX_
WRITE_ ๐ZEROES_ SECTORS - MAX_
WRITE_ ๐ZEROES_ SEG - SECTOR_
SHIFT ๐ - SECTOR_
SIZE ๐
Functionsยง
- flush_
disk ๐ - Periodically flushes the disk when the given timer fires.
- handle_
command_ ๐tube - handle_
queue ๐ - process_
one_ ๐chain - Process one descriptor chain asynchronously.
- process_
one_ ๐request - resize ๐
- run_
worker ๐
Type Aliasesยง
- BlockId ๐
- Virtio block device identifier. This is an ASCII string terminated by a \0, unless all 20 bytes are used, in which case the \0 terminator is omitted.