mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Do not report stripe size if it is equal to sector size.
MFC after: 1 week
This commit is contained in:
parent
4cae2db2a8
commit
18c5ed7145
1 changed files with 2 additions and 1 deletions
|
|
@ -710,7 +710,8 @@ vtblk_alloc_disk(struct vtblk_softc *sc, struct virtio_blk_config *blkcfg)
|
|||
dp->d_fwheads = blkcfg->geometry.heads;
|
||||
}
|
||||
|
||||
if (virtio_with_feature(dev, VIRTIO_BLK_F_TOPOLOGY)) {
|
||||
if (virtio_with_feature(dev, VIRTIO_BLK_F_TOPOLOGY) &&
|
||||
blkcfg->topology.physical_block_exp > 0) {
|
||||
dp->d_stripesize = dp->d_sectorsize *
|
||||
(1 << blkcfg->topology.physical_block_exp);
|
||||
dp->d_stripeoffset = (dp->d_stripesize -
|
||||
|
|
|
|||
Loading…
Reference in a new issue