]> www.infradead.org Git - users/hch/block.git/commit
dm-integrity: use the nop integrity profile
authorChristoph Hellwig <hch@lst.de>
Mon, 3 Jun 2024 07:36:14 +0000 (09:36 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 6 Jun 2024 09:34:17 +0000 (11:34 +0200)
commit36121a63068fdcad738494e5f8657d4fc026b6a3
tree64d981707908a9a5d01ae4350fb2cee318b9b1b3
parente46c687db98a767e24c90e595e7758e52840918b
dm-integrity: use the nop integrity profile

Use the block layer built-in nop profile instead of reinventing 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@lst.de>
drivers/md/dm-crypt.c
drivers/md/dm-integrity.c