Actions
Feature #5151
closedblkdev should support reporting of physical block size
Start date:
2014-09-11
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
Description
It would be really useful for SSDs and virtio-block devices if blkdev would support reporting of a physical block size in DKIOCGMEDIAINFOEXT. This would allow ZFS to use the correct ashift for the underlying device.
Also, blkdev does currently only honor media.m_solidstate if the underlying device also indicates a block size > 512b. I don't think this is correct or intentional. I noticed when working on the skd driver (not upstream yet), which uses a 512b block size throughout, but it is a SSD and I think it's reasonable to assume that it uses at least 4k blocks internally.
Actions