[dm-devel] Can we please make 'allow_discards' the default for dm-crypt?

Linus Torvalds torvalds at linux-foundation.org
Wed Sep 14 15:41:45 UTC 2016


On Wed, Sep 14, 2016 at 12:06 AM, Milan Broz <gmazyland at gmail.com> wrote:
>
> then you are saying that the default should be "destroy all the data
> on possible hidden disk" :-)

No.

> Because that should happen, if you will map "outer" volume with discards on,
> and there is a hidden disk (for outer volume it is "unused" space").

But that's independent of the crypto setup, isn't it?

If the inner filesystem is some hidden crypto volume, then the outer
filesystem could be anything. And if you write to the outer filesystem
in some of the random hidden setups, you'll destroy the hidden volume
anyway. No? So you'd never write to it in the first place, much less
do "fstrim" on it.

I thought the people who used hidden ("deniable") things didn't
actually ever *use* the outer filesystem at all, exactly so that they
can just put the real encrypted thing in there and nor worry about it.

Am I missing something? What's the actual real setup?Can you explain -
in particular, can we perhaps notice it somehow, so that the normal
case at least can enable discard.

Because the reason I want to do this, of course, is that I think it
was now my fifth or sixth setup where I had to manually enable this
thing, and I have never *ever* actually wanted to disable it. And I
bet that is true for 99.99% of all users (ie the normal case).

              Linus




More information about the dm-devel mailing list