usage(EXIT_FAILURE);
}
- if (fd < 0 || runIO(path, fd, oflags) < 0)
+ if (fd < 0 || virFileDiskCopy(path, fd, oflags) < 0)
goto error;
return 0;
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;
#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 */
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);