backend: clarify io scheduler setting error message
authorVincent Fu <vincent.fu@samsung.com>
Wed, 4 Aug 2021 18:29:04 +0000 (18:29 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 4 Aug 2021 18:49:56 +0000 (12:49 -0600)
If you know *how* fio tries to confirm that the IO scheduler was
successfully set, then the error message "io scheduler not found" makes
sense. However, if you don't know what fio does to confirm the io
scheduler setting, then the error message is confusing. This patch
modifies the error message to indicate that the selected IO scheduler
could not be set.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c

index 6290e0d652a838c510634e62cc123eea8da3e277..808e4362d1e369a16029bc10b8a7bd9c0bce4804 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -1407,7 +1407,7 @@ static int set_ioscheduler(struct thread_data *td, struct fio_file *file)
 
        sprintf(tmp2, "[%s]", td->o.ioscheduler);
        if (!strstr(tmp, tmp2)) {
-               log_err("fio: io scheduler %s not found\n", td->o.ioscheduler);
+               log_err("fio: unable to set io scheduler to %s\n", td->o.ioscheduler);
                td_verror(td, EINVAL, "iosched_switch");
                fclose(f);
                return 1;