Re: luks2 and discard/trim not working

Chris Murphy <lists-zXQU9YWDTqjmlV4oE/1sFAC/[email protected]>
Newsgroups gmane.linux.kernel.device-mapper.dm-crypt
Message-ID <CAJCQCtQAuhh3aLFa7Sze17wmYqUa=JtPDXMiH7KirJE18Powzg@mail.gmail.com>
On Sat, May 9, 2020 at 8:28 AM Nikolay Kichukov <[email protected]> wrote:
>
> Hello folks,
>
> Recently, I upgraded to LUKS2 on a NVME SSD disk and noticed that fstrim
> does not work. Surely it was running fine with LUKS1.

...

> dmsetup table /dev/mapper/root | grep allow
> 0 947028136 crypt capi:rfc7539(chacha20,poly1305)-random
> :32:logon:cryptsetup:6ae40ec7-1b4c-40ea-871b-d13c9ae66b92-d0 0 254:0 0
> 2 allow_discards integrity:28:aead

Was the original luksFormat command combined with --integrity option?

From man cryptsetup: Since dm-integrity doesn't support discards
(TRIM), dm-crypt device on top of it inherits this, so integrity
protection mode doesn't support discards either.


-- 
Chris Murphy
_______________________________________________
dm-crypt mailing list
[email protected]
https://www.saout.de/mailman/listinfo/dm-crypt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.