[Libguestfs] [PATCH 00/10] New API: disk-create for creating blank disks.

Richard W.M. Jones rjones at redhat.com
Tue Jan 28 16:24:47 UTC 2014


A lot of code runs 'qemu-img create' or 'truncate' to create blank
disk images.

In the past I resisted adding an API to do this, since it essentially
duplicates what you can already do using other tools (ie. qemu-img).

However this does simplify calling code quite a lot since qemu-img is
somewhat error-prone to use (eg: don't try to create a disk called
"foo:bar") and it's generally hard to safely construct and run
external commands from C.

This is in preparation for finishing off the virt-make-fs rewrite
(patch coming later).

Rich.





More information about the Libguestfs mailing list