From: Milan Broz <mbroz@redhat.com>
To: Lukas Czerner <lczerner@redhat.com>
Cc: "Cristian Rodríguez" <crrodriguez@opensuse.org>,
"Greg Freemyer" <greg.freemyer@gmail.com>,
opensuse-factory <opensuse-factory@opensuse.org>,
ext4 <linux-ext4@vger.kernel.org>,
linux-fsdevel@vger.kernel.org
Subject: Re: [opensuse-factory] /sbin/fstrim: /home: FITRIM ioctl failed: Operation not supported
Date: Wed, 23 Feb 2011 23:20:57 +0100 [thread overview]
Message-ID: <4D658849.2010104@redhat.com> (raw)
In-Reply-To: <alpine.LFD.2.00.1102232117010.2934@dhcp-27-109.brq.redhat.com>
On 02/23/2011 09:18 PM, Lukas Czerner wrote:
>>> Now, there might be some way around this to allow trimming encrypted
>>> volumes without serious security issue, but this is rather question for
>>> dm-crypt guys.
>>
>> Maybe making work the "discard" mount option ?
There were discussion about TRIM on dm-crypt mailing list several times.
one of it is here http://thread.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/4075/ )
Currently TRIM/discard is not intentionally supported on dm-crypt.
Security aspects are obvious (leaking of used blocks at least).
The decision cannot be done in kernel automatically, you can have different
policies, in some situation TRIM of encryption device is not problem,
in other it can be disaster.
So plan is to implement TRIM in dm-crypt but never enable it by default.
You will be able to enable it per-device using device-mapper message
with explicit user request.
(we are using the same message mechanism for wiping/resuming key when
freezing device).
In future this can be flag for LUKS2 metadata but current version of LUKS
doesn't allow such extensions.
Milan
prev parent reply other threads:[~2011-02-23 22:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4D644245.9000809@opensuse.org>
[not found] ` <AANLkTi=sMAam8sa-QUxZKzeCev2JWqhc+HnhwC33wgUy@mail.gmail.com>
[not found] ` <alpine.LFD.2.00.1102231119580.2934@dhcp-27-109.brq.redhat.com>
[not found] ` <4D655C06.2080704@opensuse.org>
2011-02-23 20:18 ` [opensuse-factory] /sbin/fstrim: /home: FITRIM ioctl failed: Operation not supported Lukas Czerner
2011-02-23 22:20 ` Milan Broz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D658849.2010104@redhat.com \
--to=mbroz@redhat.com \
--cc=crrodriguez@opensuse.org \
--cc=greg.freemyer@gmail.com \
--cc=lczerner@redhat.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=opensuse-factory@opensuse.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).