lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6e458e2a-f8aa-d6e3-0e6d-7c11ad2a6825@redhat.com>
Date:   Mon, 20 Apr 2020 12:22:59 +0200
From:   Ondrej Kozina <okozina@...hat.com>
To:     Paul Wise <pabs3@...edaddy.net>, dm-devel@...hat.com
Cc:     Mike Snitzer <snitzer@...hat.com>, linux-kernel@...r.kernel.org,
        Alasdair Kergon <agk@...hat.com>
Subject: Re: [dm-devel] [PATCH 0/3] dm raid/raid1: enable discard support when
 any devices support discard

On 4/20/20 12:13 PM, Paul Wise wrote:
> On Mon, 2020-04-20 at 09:35 +0200, Ondrej Kozina wrote:
> 
>> Did you have discard allowed on both dm-crypt devices? dm-crypt
>> (kernel) does not allow discards by default.
> 
> I did not, I guess that explains why I got no errors.
> 

FYI if you use LUKS2 metadata format for encrypted drives, you can 
enable discards by default once and for all by following command:

cryptsetup open /dev/sdx sdx_unlocked --allow-discards --persistent

Any following unlock will enable discards automatically.

Regards O.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ