* [PATCH] dm error: mark as DM_TARGET_PASSES_INTEGRITY
@ 2025-08-18 4:58 Christoph Hellwig
2025-08-18 12:46 ` Mikulas Patocka
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2025-08-18 4:58 UTC (permalink / raw)
To: agk, snitzer, mpatocka, dm-devel; +Cc: linux-block
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>
---
drivers/md/dm-target.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/md/dm-target.c b/drivers/md/dm-target.c
index 2af5a9514c05..8fede41adec0 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,
--
2.47.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dm error: mark as DM_TARGET_PASSES_INTEGRITY
2025-08-18 4:58 [PATCH] dm error: mark as DM_TARGET_PASSES_INTEGRITY Christoph Hellwig
@ 2025-08-18 12:46 ` Mikulas Patocka
0 siblings, 0 replies; 2+ messages in thread
From: Mikulas Patocka @ 2025-08-18 12:46 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: agk, snitzer, dm-devel, linux-block
Applied, thanks.
Mikulas
On Mon, 18 Aug 2025, Christoph Hellwig wrote:
> 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>
> ---
> drivers/md/dm-target.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/md/dm-target.c b/drivers/md/dm-target.c
> index 2af5a9514c05..8fede41adec0 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,
> --
> 2.47.2
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-18 12:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18 4:58 [PATCH] dm error: mark as DM_TARGET_PASSES_INTEGRITY Christoph Hellwig
2025-08-18 12:46 ` Mikulas Patocka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).