All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] LUKS - SSD trim
@ 2010-04-21 22:48 Felix Blanke
  2010-04-21 23:00 ` Milan Broz
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Felix Blanke @ 2010-04-21 22:48 UTC (permalink / raw)
  To: dm-crypt

Hi,

does anybody know a way to trim a luks encrypted SSD? (btrfs filesystem
on top, but I think that doesn't count)


Regards,
Felix B.

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: [dm-crypt] LUKS - SSD trim
@ 2010-05-27 13:14 Christoph Anton Mitterer
  0 siblings, 0 replies; 22+ messages in thread
From: Christoph Anton Mitterer @ 2010-05-27 13:14 UTC (permalink / raw)
  To: dm-crypt

Hi.

Just a few thoughts and questions on this:

1) Was it decided now, that TRIM will by default be blocked at dm-crypt level?


2) A solution that came up was to make blocking configurable via  
module parameter. Wouldn't it be better to configure that as option in  
the LUKS header and/or per device when setting up the dm-crypt- or  
LUKS-mapping via crpytsetup?

The reason is that one might not want to set this globally for _all_  
dm-crypt devices... e.g. swap might have not that tight  
security-constraints (regarding deniability nad so on) as a pure data  
partition... so one might want to chose that some for some dm-crypt  
devices TRIM is passed on, while for others not.


3) Blocking/announcing TRIM at the dm-crypt block device to higher  
level things (especially filesystems).
I assume block devices somehow announce their capabilities (in that  
case) trim to userspace and the kernel, right?
I further assume that also dm-crypt devices (/dev/mapper/sda1 or so)  
pass this somehow on.. in both directions,.. up (to kernel/userspace)  
and down (to kernel, e.g. LVM or RAID sitting below), right? I mean a  
filesystem like btrfs/ext4 must somehow know whether the disk is an  
SSD or not, and in addition whether it supports TRIM.
Right so far?

a) How far is this already implemented in the meantime, and in  
starting with which kernel version? I read at some place that dm  
itself would not yet support it?

b) If we consider that we probably block TRIM,... is this properly  
propagated to things on top (filesystems, userspace stuff like hdparm).
I mean just silently discarding TRIM could lead to problems if a fs  
like btrfs thinks that TRIM is suppored and behaves specially because  
of this,... but it never reaches the device.



Thanks,
Chris.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2010-05-27 13:14 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-21 22:48 [dm-crypt] LUKS - SSD trim Felix Blanke
2010-04-21 23:00 ` Milan Broz
2010-04-21 23:03   ` Felix Blanke
2010-04-22  2:17     ` Arno Wagner
2010-04-22  8:42       ` mark
2010-04-22  9:37         ` Milan Broz
2010-04-22 20:12         ` Felix Blanke
2010-04-22 22:20           ` Richard Zidlicky
2010-04-22 22:22   ` Richard Zidlicky
2010-04-23  8:49     ` Milan Broz
2010-04-23 10:20       ` Mikko Rauhala
2010-04-23 11:13       ` Richard Zidlicky
2010-04-23 11:46         ` Milan Broz
2010-04-23 20:09           ` Richard Zidlicky
2010-04-23 20:45             ` Milan Broz
2010-04-23 22:59               ` Richard Zidlicky
2010-04-24 15:59                 ` Arno Wagner
2010-04-24 16:44                   ` Richard Zidlicky
2010-04-24 17:01                     ` Arno Wagner
2010-04-22  6:17 ` Heinz Diehl
2010-05-14  7:35 ` JG
  -- strict thread matches above, loose matches on Subject: below --
2010-05-27 13:14 Christoph Anton Mitterer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.