Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QS3-EyYCBwZE for ; Thu, 27 Oct 2011 16:35:46 +0200 (CEST) Received: from mx.mylinuxtime.de (mx.mylinuxtime.de [IPv6:2a01:138:b005:1::a05:1d1]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Thu, 27 Oct 2011 16:35:46 +0200 (CEST) Date: Thu, 27 Oct 2011 16:27:30 +0200 From: Christian Hesse Message-ID: <20111027162730.520f2471@leda.vpn.lugor.de> In-Reply-To: <4EA95DAB.5020402@alexanderkoch.net> References: <4EA85582.3080904@redhat.com> <4EA95DAB.5020402@alexanderkoch.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] [ANNOUNCE] cryptsetup 1.4.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Koch Cc: dm-crypt@saout.de Alexander Koch on Thu, 27 Oct 2011 15:33:31 +0200: > Am 26.10.2011 20:46, schrieb Milan Broz: > > * Support --enable-discards option to allow discards/TRIM requests. > > > > Since kernel 3.1, dm-crypt devices optionally (not by default) support > > block discards (TRIM) comands. > > If you want to enable this operation, you have to enable it manually > > on every activation using --enable-discards > > > > cryptsetup luksOpen --enable-discards /dev/sdb test_disk > > > > WARNING: There are several security consequences, please read at least > > http://asalor.blogspot.com/2011/08/trim-dm-crypt-problems.html > > before you enable it. > > On Arch Linux, the package 'cryptsetup' contains > /lib/initcpio/hooks/encrypt, which provides a hook for mounting > encrypted volumes from initrd. > > Does anyone know if there exists any effort on making this script accept > options for cryptsetup from kernel cmdline? > The current version only reads device and mapper-name, so one cannot > open an encrypted root device with discard enabled. > > Looking at the code, I think this would not be so hard to implement > (maybe just an addidional ':'-separated field in the kernel cmdline for > options like --enable-discards), but If someone is already working on it > I won't start the hack ;) Sure... https://aur.archlinux.org/packages.php?ID=51344 https://bugs.archlinux.org/task/26610 -- Schoene Gruesse Chris