From 0aa417a9515f9dc17523c1870f6409370e94ca19 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 9 Jun 2008 19:25:49 +0200 Subject: [PATCH 1/1] splice: if splicing fails with EINVAL, it's most likely missing fs support So tell the user in more direct terms. Signed-off-by: Jens Axboe --- engines/splice.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engines/splice.c b/engines/splice.c index 2753bfa0..03bc7ffc 100644 --- a/engines/splice.c +++ b/engines/splice.c @@ -232,8 +232,12 @@ static int fio_spliceio_queue(struct thread_data *td, struct io_u *io_u) io_u->error = errno; } - if (io_u->error) + if (io_u->error) { td_verror(td, io_u->error, "xfer"); + if (io_u->error == EINVAL) + log_err("fio: looks like splice doesn't work on this" + " file system\n"); + } return FIO_Q_COMPLETED; } -- 2.25.1