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 1nnMGehVe-qv for ; Thu, 21 Jul 2011 14:55:29 +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, 21 Jul 2011 14:55:28 +0200 (CEST) Date: Thu, 21 Jul 2011 14:55:26 +0200 From: Christian Hesse Message-ID: <20110721145526.2bd771a6@leda.vpn.lugor.de> In-Reply-To: <20110718121625.5f997ca7@leda.vpn.lugor.de> References: <20110711231732.596b8622.ldarby@tuffmail.com> <20110712124717.GC31326@tansi.org> <20110714110425.GB13900@tansi.org> <20110714133533.GA19714@tansi.org> <4E1EF95D.40406@web.de> <4E1F014E.40508@andregall.de> <4E1F116D.50402@redhat.com> <20110715155908.3e08b9ec@io.vpn.lugor.de> <4E205321.20701@redhat.com> <20110718104529.60408311@leda.vpn.lugor.de> <4E240522.4050904@redhat.com> <20110718121625.5f997ca7@leda.vpn.lugor.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Status of trim for SSds? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Milan Broz Cc: dm-crypt@saout.de Christian Hesse on Mon, 18 Jul 2011 12:16:25 +0200: > Milan Broz on Mon, 18 Jul 2011 12:04:18 +0200: > > On 07/18/2011 10:45 AM, Christian Hesse wrote: > > > If I understand correctly the table reload suspends my device? With the > > > root partition inside the crypt device I would have to do this in > > > initram disk I think... > > > > No. "load" will just load table into inactive slot. Following "resume" > > will implicitly suspend device and immediately resume with new table (in > > kernel) so it should be safe. > > Ok, good to know. > > > > Perhaps I really should wait for support in cryptsetup. :D > > > > In devel tree is already "--allow-discard" option for luksOpen/create > > command. > > Already compiled. ;) > > > (But I guess /etc/ctypttab need new option here as well for system > > devices but that's must be fixed by initscripts. There will be no > > cryptsetup command to enable it on-fly, just for activation commands.) > > I do not use crypttab. All I need is a modified hook in my initrd... Everything seems to work here... 14:50:07 root@leda:~# dmsetup table /dev/mapper/cvg 0 922742784 crypt aes-cbc-essiv:sha256 0000000000000000000000000000000000000000000000000000000000000000 0 8:2 4096 1 allow_discards 14:51:48 root@leda:~# dumpe2fs /dev/cvg/log | grep discard dumpe2fs 1.41.14 (22-Dec-2010) Default mount options: discard However mount does not list the discard option... Even when explicitly remounting. Is this because it is the default mount option? 14:51:52 root@leda:~# mount | grep log /dev/mapper/cvg-log on /var/log type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered) Thanks again for you work! -- Schoene Gruesse Chris