blkdev should support reporting of physical block size
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.
Updated by Electric Monk almost 8 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 32ce6b819524e8719d4ce58db40a00e9f17843e2 Author: Hans Rosenfeld <email@example.com> Date: 2014-09-12T19:17:32.000Z 5151 blkdev should support reporting of physical block size Reviewed by: Josef 'Jeff' Sipek <firstname.lastname@example.org> Reviewed by: Garrett D'Amore <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>