From 404ab60e2566c2b7dc3c7b1cf66aa5dbdb651c2b Mon Sep 17 00:00:00 2001 From: Renar Narubin Date: Mon, 30 Jun 2025 18:22:30 +0000 Subject: [PATCH] engines/http: fix file name Previously when using the HTTP engine and nrfiles > 1, the engine would upload a single object N times, instead of N files once. This was due to a file name reference using the first item in the files list, instead of the file name passed in the IO information. Signed-off-by: Renar Narubin --- engines/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/http.c b/engines/http.c index 99f4e119..217aa575 100644 --- a/engines/http.c +++ b/engines/http.c @@ -643,7 +643,7 @@ static enum fio_q_status fio_http_queue(struct thread_data *td, fio_ro_check(td, io_u); memset(&_curl_stream, 0, sizeof(_curl_stream)); - snprintf(object, sizeof(object), "%s_%llu_%llu", td->files[0]->file_name, + snprintf(object, sizeof(object), "%s_%llu_%llu", io_u->file->file_name, io_u->offset, io_u->xfer_buflen); if (o->https == FIO_HTTPS_OFF) snprintf(url, sizeof(url), "http://%s%s", o->host, object); -- 2.25.1