git: DragonFly_RELEASE_6_4 virtio - Fix virtio block device cylinder count reporting

Matthew Dillon dillon at crater.dragonflybsd.org
Wed May 7 22:49:41 PDT 2025


commit 792d3627ca3165ae33cad9b40ab74a1cd57c9a98
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/792d3627ca3165ae33cad9b40ab74a1cd57c9a98


-- 
DragonFly BSD source repository


More information about the Commits mailing list