disable LBA weighting on files and SSDs
|Assignee:||James Blachly||% Done:|
|Category:||zfs - Zettabyte File System||Estimated time:||1.00 hour|
ZFS on Linux has had a feature "Disable LBA weighting on SSD" since August 2015:
Because we have the device property "device-solid-state" we can port this over. In addition, we can add detection for virtio vioblk device, which should also not use LBA weighting.
On linux, block devices have a "non-rotational" property, so this is a one liner in vdev_disk.c:
v->vdev_nonrot = blk_queue_nonrot(bdev_get_queue(vd->vd_bdev));
We do not, so the checks are a little bit more cumbersome but doable (check
device-solid-state != 0 and
Parenthetically, perhaps we should have a "non rotational" property for block devices?
Also available in: Atom