git: virtio - Fix virtio block device cylinder count reporting
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed May 7 22:49:20 PDT 2025
commit 22b8b7dc0ae59bd29107b3eb6f29f60177ae6eea
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed May 7 22:46:19 2025 -0700
virtio - Fix virtio block device cylinder count reporting
* qemu's virtio caps its reported cylinder count to 16383, which
confuses fdisk.
* Check for the legacy cap and recalculate the reported cylinders
based on the other parameters, and report this on the console.
* We decided not to modify fdisk for now. Instead we "fixed" virtio.
Reported-by: mikdusan
DragonFly-PR: 3369
Summary of changes:
sys/dev/virtual/virtio/block/virtio_blk.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/22b8b7dc0ae59bd29107b3eb6f29f60177ae6eea
--
DragonFly BSD source repository
More information about the Commits
mailing list