[PATCH] Enable discards (TRIM)
Brought to you by:
jengelh
In response to: https://sourceforge.net/tracker/?func=detail&aid=3460866&group_id=41452&atid=430594
This patch enables the ALLOW_DISCARDS cryptsetup flag if a volume is mounted with the discards option set. I didn't add a separate 'allow discards' configuration option as discards can be explicitly disabled by adding 'discards' to the mountoptions deny list.
While this patch compiles, it may not work as intended as I don't know how to test it (determine if cryptsetup really is allowing trim operations).
Allow discards patch