Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dm error: mark as DM_TARGET_PASSES_INTEGRITY

Mark dm error as DM_TARGET_PASSES_INTEGRITY so that it can be stacked on
top of PI capable devices. The claim is strictly speaking as lie as dm
error fails all I/O and doesn't pass anything on, but doing the same for
integrity I/O work just fine :)

This helps to make about two dozen xfstests test cases pass on PI capable
devices.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

authored by

Christoph Hellwig and committed by
Mikulas Patocka
499cbe0f c7c61bc4

+2 -1
+2 -1
drivers/md/dm-target.c
··· 263 263 static struct target_type error_target = { 264 264 .name = "error", 265 265 .version = {1, 7, 0}, 266 - .features = DM_TARGET_WILDCARD | DM_TARGET_ZONED_HM, 266 + .features = DM_TARGET_WILDCARD | DM_TARGET_ZONED_HM | 267 + DM_TARGET_PASSES_INTEGRITY, 267 268 .ctr = io_err_ctr, 268 269 .dtr = io_err_dtr, 269 270 .map = io_err_map,