diff options
| author | Christoph Hellwig <hch@lst.de> | 2025-08-18 06:58:21 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-13 15:34:14 -0500 |
| commit | b40c7c348f6a635c625861d5278d0ab22b13e66c (patch) | |
| tree | 7cb410eff5638eda9cac6d1f910f82ff2df4d35e /drivers/md | |
| parent | 958234997dd51875e5c7398eadd0c349203d44b5 (diff) | |
| download | linux-b40c7c348f6a635c625861d5278d0ab22b13e66c.tar.gz linux-b40c7c348f6a635c625861d5278d0ab22b13e66c.tar.bz2 linux-b40c7c348f6a635c625861d5278d0ab22b13e66c.zip | |
dm error: mark as DM_TARGET_PASSES_INTEGRITY
[ Upstream commit 499cbe0f2fb0641cf07a1a8ac9f7317674295fea ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/md')
| -rw-r--r-- | drivers/md/dm-target.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-target.c b/drivers/md/dm-target.c index 652627aea11b..b676fd01a022 100644 --- a/drivers/md/dm-target.c +++ b/drivers/md/dm-target.c @@ -263,7 +263,8 @@ static long io_err_dax_direct_access(struct dm_target *ti, pgoff_t pgoff, static struct target_type error_target = { .name = "error", .version = {1, 7, 0}, - .features = DM_TARGET_WILDCARD | DM_TARGET_ZONED_HM, + .features = DM_TARGET_WILDCARD | DM_TARGET_ZONED_HM | + DM_TARGET_PASSES_INTEGRITY, .ctr = io_err_ctr, .dtr = io_err_dtr, .map = io_err_map, |
