dm-crypt TRIM support
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
After mounting a LUKS partition on my SSD, I get a message that the discard mount option is ignored. In my research, I have seen many conflicting reports on whether this functionality was available or not. The last reliable mail I can find was from January and indicated that an expected release of configurable discard support over dm-crypt in 2.6.39. Can anyone let me know if this target was reached, and if not, where development on TRIM support for dm-crypt volumes currently stands?
Thanks
Jeff
- --
Jeff Cook
[email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk4KPvIACgkQNtecAl0ONJp9sACeJkZz4TED8FcxZmt+y6Rz8w6T xpMAn3dI7b8H7I3m/1mmKOkdO3YXl7yI
=kPKG
-----END PGP SIGNATURE-----
Quoted 7 lines · Jeff Cook
After mounting a LUKS partition on my SSD, I get a message that the discard mount option is ignored. In my research, I have seen many conflicting reports on whether this functionality was available or not. The last reliable mail I can find was from January and indicated that an expected release of configurable discard support over dm-crypt in 2.6.39. Can anyone let me know if this target was reached, and if not, where development on TRIM support for dm-crypt volumes currently stands?
right, dm-crypt doesn't support TRIM yet.
I would like to add optional support for it but no code is submitted yet. No ETA currently.
Milan
Thank you for the update. I would really like TRIM support on my dm-crypt SSD and I'm not worried about the revelations that may be discernible regarding trimmed space, etc.
Can you help me understand how I can pass the TRIM command through the dm-crypt layer? I've looked through the device-mapper code in the kernel and based on the implementation of TRIM in other dm clients it looks like it should be relatively straightforward to get the message sent in dm-crypt. Can you give me a couple of pointers or a brief outline of what functions would need modification? I am not concerned with making this optional at the moment since the patch would not (yet) be aimed for mainline inclusion.
Please let me know if I am mistaken. I appreciate the quick response and the efforts you've put toward this so far. Thanks again. :)
From
Jeff
Jeff Cook
(801) 231-3157
[email protected]
Quoted 15 lines · Milan Broz
Quoted 7 lines · Jeff Cook
After mounting a LUKS partition on my SSD, I get a message that the discard mount option is ignored. In my research, I have seen many conflicting reports on whether this functionality was available or not. The last reliable mail I can find was from January and indicated that an expected release of configurable discard support over dm-crypt in 2.6.39. Can anyone let me know if this target was reached, and if not, where development on TRIM support for dm-crypt volumes currently stands?
right, dm-crypt doesn't support TRIM yet.
I would like to add optional support for it but no code is submitted yet. No ETA currently.
Milan
Jeff Cook <[email protected]> on Tue, 12 Jul 2011 11:47:14 -0600:
Quoted 3 lines
Thank you for the update. I would really like TRIM support on my dm-crypt SSD and I'm not worried about the revelations that may be discernible regarding trimmed space, etc.
I second that. I think TRIM on dm-crypt brings enough security for most people (including me). It's a lot worse to not use dm-crypt to get TRIM support. And trashing your SSD is not a good choice either.
Would it have to be configurable? If anybody does not want TRIM it would still be possible to disable it by mounting filesystems with '-o nodiscard'.
Signature · 2 lines
Schoene Gruesse Chris