[dm-devel] [PATCH v2] dm-integrity: if we have discard support, use it when recalculating

Melvin Vermeeren vermeeren at vermwa.re
Wed May 5 20:16:38 UTC 2021


On Wednesday, 5 May 2021 22:05:35 CEST Mikulas Patocka wrote:
> Yes.

I fail to understand why that would be desired behaviour, as I see it it is 
conflicting with current documentation in integritysetup(8):

> --integrity-recalculate
> Automatically recalculate integrity tags in kernel on activation. The device
> can be used during automatic integrity recalculation but becomes fully
> integrity protected only after the background operation is finished. This
> option is available since the Linux kernel version 4.19.

The device in SSD with discard case never receives integrity protection 
because the metadata is filled with discard filler. Could you explain the 
reasoning behind the patch?

Thanks,

-- 
Melvin Vermeeren
Systems engineer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20210505/b5daa009/attachment.sig>


More information about the dm-devel mailing list