Expand description
Defines the Disk type, which provides an interface to a block
device, used for different disk frontends (such as the floppy disk, IDE,
SCSI, or NVMe emulators) as well as direct disk access for other purposes
(such as the VMGS file system).
Disks are backed by a DiskIo implementation. Specific disk
backends should be in their own crates.
Modules§
- pr
- Persistent reservation support.
- resolve
- Resolver-related definitions for disk resources.
- sync_
wrapper - A wrapper around
Diskthat adapts the trait for use with synchronousstd::iotraits (such asRead,Write,Seek, etc…).
Structs§
- Disk
- An asynchronous block device.
Enums§
- Disk
Error - A disk operation error.
- Invalid
Disk - Errors that can occur when creating a
Disk. - Medium
Error Details - Failure details for
DiskError::MediumError. - Unmap
Behavior - The behavior of unmap.
Traits§
- DiskIo
- Disk metadata and IO operations.