On 02/03/2017 03:40 PM, Josh Boyer wrote:
How is SSD being detected?
Well, we can detect whether bdev is spindle or not from sysfs AFAIK. But anyway, do we need to know? It's mostly about whether dm-crypt would just *allow* discard to pass through dm-crypt target in general. In default mode dm-crypt just advertises itself as "not supporting discard" and due to it other layers trying to send discard lower gets stopped by dm-crypt even though the underlying device (SSD, dm-thin device, whatever) itself may support it.
O. _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx