diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2018-10-19 10:12:40 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2018-10-19 10:12:40 +0000 |
commit | e014ce92dbc428864aef9723a6d3bde4319f06bc (patch) | |
tree | 72a90057790b5a8544c1402e812405577dfbe64f /usr.sbin/vmd/vmd.h | |
parent | dc388d4163b5f0cf447d8f1d605a6b3bd1da6346 (diff) |
Add support to create and convert disk images from existing images
The -i option to vmctl create (eg. vmctl create output.qcow2 -i input.img)
lets you create a new image from an input file and convert it if it is a
different format. This allows to convert qcow2 images from raw images,
raw from qcow2, or even qcow2 from qcow2 and raw from raw to re-optimize
the disk.
This re-uses Ori's vioqcow2.c from vmd by reaching into it and
compiling it in. The API has been adjust to be used from both vmctl
and vmd accordingly.
OK mlarkin@
Diffstat (limited to 'usr.sbin/vmd/vmd.h')
-rw-r--r-- | usr.sbin/vmd/vmd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/vmd.h b/usr.sbin/vmd/vmd.h index 4d7b0380294..7ae4e4bd65e 100644 --- a/usr.sbin/vmd/vmd.h +++ b/usr.sbin/vmd/vmd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmd.h,v 1.83 2018/10/15 10:35:41 reyk Exp $ */ +/* $OpenBSD: vmd.h,v 1.84 2018/10/19 10:12:39 reyk Exp $ */ /* * Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org> @@ -426,6 +426,6 @@ int cmdline_symset(char *); int host(const char *, struct address *); /* virtio.c */ -int virtio_get_base(int, char *, size_t, int); +int virtio_get_base(int, char *, size_t, int, const char *); #endif /* VMD_H */ |