From 149b408c38fc275e94ae0652af2d2e89593b4ba3 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Thu, 24 Sep 2026 19:46:21 +0200 Subject: [PATCH] Skip disk cache statistics for mapping holes --- cmdline/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdline/io.c b/cmdline/io.c index 77e95daa..ad93d9b3 100644 --- a/cmdline/io.c +++ b/cmdline/io.c @@ -553,7 +553,7 @@ static void io_refresh_thread(struct snapraid_io* io) if (worker->parity_handle) io->state->parity[worker->parity_handle->level].cached_blocks = cached; - else + else if (worker->handle->disk) /* mapping holes have no disk statistics */ worker->handle->disk->cached_blocks = cached; }