On 05/28/2012 04:55 PM, Roberto Ragusa wrote:
On 05/26/2012 03:53 PM, Juan Orti Alcaine wrote:
> I suspect it isn't working because "cryptsetup status
> /dev/mapper/luks-uuid" does not say anything about discards. I think
> it must say "flags: discards"
>
> Any suggestion?
lsblk -D
it should print non-zero discard size for the whole storage stack.
dmsetup table <name of luks device>
and you should see "allow-discards" as last option in mapping table.
If not, discards are rejected.
(Of course you can complicate it and use blktrace + fstrim)
Milan