Re: [PATCH v2] Introduce the end_syncfs option

Vincent Fu
2026-01-27T01:02:04Z

On Mon, Jan 26, 2026 at 1:22 AM Damien Le Moal <dlemoal@kernel.org> wrote:
>
<snip>
> }
> +
> + if (td->o.end_syncfs) {
> + td_set_runstate(td, TD_FSYNCING);
> +
> + for_each_file(td, f, i) {
> + if (fio_file_syncfs(td, f))
> + log_err("fio: end_syncfs failed\n");
> + break;

This seems like it will break out of the loop after syncfs-ing the first file.
Is this intentional or should fio break only if there is an error?

Vincent