Re: [Qemu-devel] [PATCH] qemu-img: add the simplest format recognition

2017-12-01 Thread Eric Blake
On 12/01/2017 02:05 PM, Klim Kireev wrote: Now, if you type something like qemu-img create disk.qcow2 1G or qemu-img dd if=/dev/sda of=disk.qcow2 it creates a raw image and if you need you should manually specify an image format with -f qcow2. It would be more convenient if it could be detected

[Qemu-devel] [PATCH] qemu-img: add the simplest format recognition

2017-12-01 Thread Klim Kireev
Now, if you type something like qemu-img create disk.qcow2 1G or qemu-img dd if=/dev/sda of=disk.qcow2 it creates a raw image and if you need you should manually specify an image format with -f qcow2. It would be more convenient if it could be detected from an extension. This patch adds a simple