CVSROOT: /cvs Module name: src Changes by: r...@cvs.openbsd.org 2018/10/01 03:31:15
Modified files: usr.sbin/vmctl : main.c vmctl.8 vmctl.h usr.sbin/vmd : parse.y vioqcow2.c vm.conf.5 vmd.h Log message: Try to derive the qcow2 file format from an image file automatically. This makes the "-d qcow2:" and "format qcow" arguments optional as vmctl and vmd will read the magic bytes at the beginning of a file to guess if it is a raw or a qcow image file. The "vmctl create" command has been changed by removing the -f qcow2 option and replacing it with the same syntax as -d: "vmctl create qcow2:foo.img". In a slightly ununixy but intended way, the create command now also considers the file extension for the format as "vmctl create foo.qcow2" creates a qcow2 disk and not a raw image file. Ok mlarkin@ (and ccardenas@ on an earlier version of the diff)