HomeFreeBSD

Export the block size capability to guests.

Description

Export the block size capability to guests.

  • Use #defines for capability bits
  • Export the VTBLK_F_BLK_SIZE capability
  • Fix bug in calculating capacity: it is in 512-byte units, not the underlying sector size

This allows virtio-blk to have backing devices
with non 512-byte sector sizes e.g. /dev/cd0, and
4K-block harddrives.

Reviewed by: neel
MFC after: 3 days

Details

Provenance
grehanAuthored on Oct 23 2013, 6:54 PM
Parents
rG818d321f6771: Added support for the 'zfs list -t snap' and 'zfs snap' aliases which are
Branches
Unknown
Tags
Unknown

Event Timeline