From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.saout.de (Postfix) with SMTP for ; Sun, 4 Oct 2009 01:23:25 +0200 (CEST) Message-ID: <4AC7DCEC.1000700@gmx.at> Date: Sun, 04 Oct 2009 01:23:24 +0200 From: Christian Tschabuschnig MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [dm-crypt] How will ATA-TRIM be handled? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hello, I don't know much about the internals of filesystems or devicemapper but I know that the kernel supports ATA-TRIM and that ext4 supports or will soon support it. My question is: What happens, if a dm-crypt-layer is between the filesystem and the real block-device? Will the trim be passed through, or will it be discarded? Optimally, i think, both should be possible. Passing through the information will improve performance and lifetime of a SSD and discarding it would give less information to an attacker since the SSD will return zeroes on LBAs that are not mapped. Regards, Christian