Signed-off-by: Claudio Fontana <cfontana@xxxxxxx> --- src/util/iohelper.c | 2 +- src/util/virfile.c | 10 +++++----- src/util/virfile.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/util/iohelper.c b/src/util/iohelper.c index b3aaf82b9f..ce10ccb905 100644 --- a/src/util/iohelper.c +++ b/src/util/iohelper.c @@ -97,7 +97,7 @@ main(int argc, char **argv) usage(EXIT_FAILURE); } - if (fd < 0 || runIO(path, fd, oflags) < 0) + if (fd < 0 || virFileDiskCopy(path, fd, oflags) < 0) goto error; return 0; diff --git a/src/util/virfile.c b/src/util/virfile.c index 0bfdbea81f..4aa7be4740 100644 --- a/src/util/virfile.c +++ b/src/util/virfile.c @@ -4672,7 +4672,7 @@ runIOCopy(const struct runIOParams p) off_t -runIO(const char *path, int fd, int oflags) +virFileDiskCopy(const char *path, int fd, int oflags) { int ret = -1; off_t total = 0; @@ -4754,12 +4754,12 @@ runIO(const char *path, int fd, int oflags) #else /* WIN32 */ off_t -runIO(const char *path G_GNUC_UNUSED, - int fd G_GNUC_UNUSED, - int oflags G_GNUC_UNUSED) +virFileDiskCopy(const char *path G_GNUC_UNUSED, + int fd G_GNUC_UNUSED, + int oflags G_GNUC_UNUSED) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("runIO unsupported on this platform")); + _("virFileDiskCopy unsupported on this platform")); return -1; } #endif /* WIN32 */ diff --git a/src/util/virfile.h b/src/util/virfile.h index 0dc336e339..59efb760f3 100644 --- a/src/util/virfile.h +++ b/src/util/virfile.h @@ -384,4 +384,4 @@ int virFileDataSync(int fd); int virFileSetCOW(const char *path, virTristateBool state); -off_t runIO(const char *path, int fd, int oflags); +off_t virFileDiskCopy(const char *path, int fd, int oflags); -- 2.35.3