Minor fix on virtio-blk's config

This commit is contained in:
Shaowei Song 2024-11-05 12:41:22 +00:00 committed by Tate, Hongliang Tian
parent b3515c498a
commit aa52e3980e

View File

@ -61,7 +61,9 @@ pub struct VirtioBlockConfig {
/// The number of 512-byte sectors. /// The number of 512-byte sectors.
capacity: u64, capacity: u64,
/// The maximum segment size. /// The maximum segment size.
size_max: u64, size_max: u32,
/// The maximum number of segments.
seg_max: u32,
/// The geometry of the device. /// The geometry of the device.
geometry: VirtioBlockGeometry, geometry: VirtioBlockGeometry,
/// The block size. If `logical_block_size` is not given in qemu cmdline, /// The block size. If `logical_block_size` is not given in qemu cmdline,