diff options
Diffstat (limited to 'qcow_utils/src/qcow_utils.h')
-rw-r--r-- | qcow_utils/src/qcow_utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qcow_utils/src/qcow_utils.h b/qcow_utils/src/qcow_utils.h index e7db911..30c9715 100644 --- a/qcow_utils/src/qcow_utils.h +++ b/qcow_utils/src/qcow_utils.h @@ -13,6 +13,14 @@ extern "C" { // Create a basic, empty qcow2 file that can grow to `virtual_size` at `path`. int create_qcow_with_size(const char *path, uint64_t virtual_size); +// Copy the source disk image from `src_fd` into `dst_fd` as a qcow2 image file. +// Returns 0 on success or a negated errno value on failure. +int convert_to_qcow2(int src_fd, int dst_fd); + +// Copy the source disk image from `src_fd` into `dst_fd` as a raw image file. +// Returns 0 on success or a negated errno value on failure. +int convert_to_raw(int src_fd, int dst_fd); + #ifdef __cplusplus }; #endif |