From ceb624e812ea20316532516f1422211fe6ea8bd3 Mon Sep 17 00:00:00 2001 From: Shin'ichiro Kawasaki Date: Thu, 13 Feb 2025 14:25:08 +0900 Subject: [PATCH] verify: print message when verify_state_should_stop() returns false When verify workloads with the verify_state_load option target an offset that is not saved in the verify state file, verify_state_should_stop() function returns false and it stops the verify workloads. This workloads stop is made without providing a message to users, making it difficult for them to understand why they stopped. Print a message to inform users why the verify workloads stopped. Signed-off-by: Shin'ichiro Kawasaki Link: https://lore.kernel.org/r/20250213052510.1474423-2-shinichiro.kawasaki@wdc.com Signed-off-by: Jens Axboe --- verify.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/verify.c b/verify.c index 2e113862..63b63718 100644 --- a/verify.c +++ b/verify.c @@ -1892,5 +1892,7 @@ int verify_state_should_stop(struct thread_data *td, struct io_u *io_u) /* * Not found, we have to stop */ + log_info("Stop verify because offset %llu in %s is not recorded in verify state\n", + io_u->verify_offset, f->file_name); return 1; } -- 2.25.1