X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fhttp.c;h=7a61b132b92bd72b94ebdc9915e311235b53fc56;hb=fd70e3619c00bc9f7b2f80cadf3fdb348cbacf51;hp=d81e4288ff7bfdec000781240cea3aafa687ca88;hpb=9a0ac6c7b69355ea095f06c6b0a08115c946dd61;p=fio.git diff --git a/engines/http.c b/engines/http.c index d81e4288..7a61b132 100644 --- a/engines/http.c +++ b/engines/http.c @@ -296,9 +296,11 @@ static int _curl_trace(CURL *handle, curl_infotype type, switch (type) { case CURLINFO_TEXT: - fprintf(stderr, "== Info: %s", data); + fprintf(stderr, "== Info: %s", data); + /* fall through */ default: case CURLINFO_SSL_DATA_OUT: + /* fall through */ case CURLINFO_SSL_DATA_IN: return 0; @@ -637,10 +639,10 @@ static int fio_http_invalidate(struct thread_data *td, struct fio_file *f) return 0; } -static struct ioengine_ops ioengine = { +FIO_STATIC struct ioengine_ops ioengine = { .name = "http", .version = FIO_IOOPS_VERSION, - .flags = FIO_DISKLESSIO, + .flags = FIO_DISKLESSIO | FIO_SYNCIO, .setup = fio_http_setup, .queue = fio_http_queue, .getevents = fio_http_getevents,