Skip to content

Commit 499cbe0

Browse files
Christoph HellwigMikulas Patocka
authored andcommitted
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>
1 parent c7c61bc commit 499cbe0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/md/dm-target.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ static long io_err_dax_direct_access(struct dm_target *ti, pgoff_t pgoff,
263263
static struct target_type error_target = {
264264
.name = "error",
265265
.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,
267268
.ctr = io_err_ctr,
268269
.dtr = io_err_dtr,
269270
.map = io_err_map,

0 commit comments

Comments
 (0)