From 2eee2b5cac33adf9e297842f98cdc1d9d3bdc0a2 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 19 Mar 2026 07:41:04 +0000 Subject: nvmutil: rename x_i_fsync to fsync_on_eintr that's what it does. waits on eintr. Signed-off-by: Leah Rowe --- util/nvmutil/lib/io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/nvmutil/lib/io.c') diff --git a/util/nvmutil/lib/io.c b/util/nvmutil/lib/io.c index d9f7a897..e2db01f4 100644 --- a/util/nvmutil/lib/io.c +++ b/util/nvmutil/lib/io.c @@ -125,7 +125,7 @@ read_file(void) /* needs sync, for verification */ - if (x_i_fsync(f->tmp_fd) == -1) + if (fsync_on_eintr(f->tmp_fd) == -1) err(errno, "%s: fsync (tmpfile copy)", f->tname); _r = rw_file_exact(f->tmp_fd, f->bufcmp, f->gbe_file_size, @@ -227,7 +227,7 @@ write_to_gbe_bin(void) * We may otherwise read from * cache, so we must sync. */ - if (x_i_fsync(f->tmp_fd) == -1) + if (fsync_on_eintr(f->tmp_fd) == -1) err(errno, "%s: fsync (pre-verification)", f->tname); @@ -484,7 +484,7 @@ gbe_mv(void) if (rval < 0) goto ret_gbe_mv; - if (x_i_fsync(dest_fd) == -1) + if (fsync_on_eintr(dest_fd) == -1) goto ret_gbe_mv; if (x_i_close(dest_fd) == -1) -- cgit v1.2.1