From 001ce40cd48c2538b2fc234a604ff4eaca608066 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Mon, 24 Nov 2025 13:36:58 -0500 Subject: [PATCH] raidz_test: Set io_offset reasonably - io_offset of 1 makes no sense. Set default to 0. - Initialize io_offset in all cases. Reviewed-by: Brian Behlendorf Reviewed-by: Rob Norris Signed-off-by: Alexander Motin Closes #17977 --- cmd/raidz_test/raidz_test.c | 2 +- cmd/raidz_test/raidz_test.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/raidz_test/raidz_test.c b/cmd/raidz_test/raidz_test.c index cf3e123c6..be560c57c 100644 --- a/cmd/raidz_test/raidz_test.c +++ b/cmd/raidz_test/raidz_test.c @@ -373,7 +373,7 @@ init_raidz_map(raidz_test_opts_t *opts, zio_t **zio, const int parity) *zio = umem_zalloc(sizeof (zio_t), UMEM_NOFAIL); - (*zio)->io_offset = 0; + (*zio)->io_offset = opts->rto_offset; (*zio)->io_size = alloc_dsize; (*zio)->io_abd = raidz_alloc(alloc_dsize); init_zio_abd(*zio); diff --git a/cmd/raidz_test/raidz_test.h b/cmd/raidz_test/raidz_test.h index f0b854cef..77f15e847 100644 --- a/cmd/raidz_test/raidz_test.h +++ b/cmd/raidz_test/raidz_test.h @@ -72,7 +72,7 @@ typedef struct raidz_test_opts { static const raidz_test_opts_t rto_opts_defaults = { .rto_ashift = 9, - .rto_offset = 1ULL << 0, + .rto_offset = 0, .rto_dcols = 8, .rto_dsize = 1<<19, .rto_v = D_ALL,