Recent changes (master)
Jens Axboe <[email protected]> Fri, 1 Aug 2025 06:00:01 -0600 (MDT)
| Newsgroups | org.kernel.vger.fio |
|---|---|
| Message-ID | <[email protected]> |
The following changes since commit 306d89868d07b98d1683585468d232703007e0da:
engines/io_uring: don't duplicate open/close file code (2025-07-23 14:22:36 -0600)
are available in the Git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to 6e8c646c310219bf4026d74f02ce4652d27866ff:
eta: convert skip_eta() to ANSI C declaration (2025-07-31 11:19:21 -0400)
----------------------------------------------------------------
Tomas Winkler (2):
filesetup: make longest_existing_path() static and const-correct
eta: convert skip_eta() to ANSI C declaration
eta.c | 2 +-
filesetup.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
---
Diff of recent changes:
diff --git a/eta.c b/eta.c
index 7d07708f..16109510 100644
--- a/eta.c
+++ b/eta.c
@@ -381,7 +381,7 @@ bool eta_time_within_slack(unsigned int time)
* These are the conditions under which we might be able to skip the eta
* calculation.
*/
-static bool skip_eta()
+static bool skip_eta(void)
{
if (!(output_format & FIO_OUTPUT_NORMAL) && f_out == stdout)
return true;
diff --git a/filesetup.c b/filesetup.c
index a94d3b38..bcbd871e 100644
--- a/filesetup.c
+++ b/filesetup.c
@@ -1002,7 +1002,8 @@ uint64_t get_start_offset(struct thread_data *td, struct fio_file *f)
/*
* Find longest path component that exists and return its length
*/
-int longest_existing_path(char *path) {
+static int longest_existing_path(const char *path)
+{
char buf[PATH_MAX];
bool done;
char *buf_pos;