[PATCH 01/11] dm-integrity: use the nop integrity profile
Hannes Reinecke
hare at suse.de
Thu Jun 6 23:10:01 PDT 2024
On 6/7/24 07:58, Christoph Hellwig wrote:
> Use the block layer built-in nop profile instead of duplicating it.
>
> Tested by:
>
> $ dd if=/dev/urandom of=key.bin bs=512 count=1
>
> $ cryptsetup luksFormat -q --type luks2 --integrity hmac-sha256 \
> --integrity-no-wipe /dev/nvme0n1 key.bin
> $ cryptsetup luksOpen /dev/nvme0n1 luks-integrity --key-file key.bin
>
> and then doing mkfs.xfs and simple I/O on the mount file system.
>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> Reviewed-by: Milan Broz <gmazyland at gmail.com>
> Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>
> ---
> drivers/md/dm-crypt.c | 4 ++--
> drivers/md/dm-integrity.c | 20 --------------------
> 2 files changed, 2 insertions(+), 22 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare at suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare at suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
More information about the Linux-nvme
mailing list