1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-12 04:58:32 +03:00

virfile: rename runIO to virFileDiskCopy

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Claudio Fontana <cfontana@suse.de>
This commit is contained in:
Claudio Fontana 2022-05-06 15:10:48 +02:00 committed by Daniel P. Berrangé
parent 49d7a3a756
commit bcea5da257
3 changed files with 7 additions and 7 deletions

View 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;

View 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 */

View 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);