]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virfile: rename runIO to virFileDiskCopy
authorClaudio Fontana <cfontana@suse.de>
Fri, 6 May 2022 13:10:48 +0000 (15:10 +0200)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 6 May 2022 14:34:30 +0000 (15:34 +0100)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Claudio Fontana <cfontana@suse.de>
src/util/iohelper.c
src/util/virfile.c
src/util/virfile.h

index b3aaf82b9f727644e7e9cebc22e0ac7629057c59..ce10ccb9059ae3fb464587a4dc865b92999e9393 100644 (file)
@@ -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;
index 9da6626c20ebc19eea559caea618c7ac6d901b47..444a93098947aa165aabaf50e9bc79aba000c493 100644 (file)
@@ -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 */
index 0dc336e339b65f5387656697bdd625b5585a5307..59efb760f326496824622fc91b6a0252274bd525 100644 (file)
@@ -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);