From: Jens Axboe Date: Mon, 16 Apr 2007 10:56:00 +0000 (+0200) Subject: Warn more gently if the kernel is too old for io scheduler switching X-Git-Tag: fio-1.16~21 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=cbf5c1d7a2286fa1cf548c0678b3b0bf13bcda7e;hp=13fbfd8d34579ea448db820eb80d12587e094c55 Warn more gently if the kernel is too old for io scheduler switching Signed-off-by: Jens Axboe --- diff --git a/fio.c b/fio.c index edc6b495..160d5335 100644 --- a/fio.c +++ b/fio.c @@ -662,7 +662,11 @@ static int switch_ioscheduler(struct thread_data *td) f = fopen(tmp, "r+"); if (!f) { - td_verror(td, errno, "fopen"); + if (errno == ENOENT) { + log_err("fio: os or kernel doesn't support IO scheduler switching\n"); + return 0; + } + td_verror(td, errno, "fopen iosched"); return 1; }