]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-img.texi
qemu-img: add the 'dd' subcommand
authorReda Sallahi <fullmanet@gmail.com>
Wed, 10 Aug 2016 02:43:12 +0000 (04:43 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 20 Sep 2016 20:10:57 +0000 (22:10 +0200)
commit86ce1f6e2b73b33c4a52818e245378bf52d27200
tree218a8d843ce6fcb5b9b075e7b81913eac2e95e3e
parenta008535b9fa396226ff9cf78b8ac5f3584bda58e
qemu-img: add the 'dd' subcommand

This patch adds a basic dd subcommand analogous to dd(1) to qemu-img.

For the start, this implements the bs, if, of and count options and requires
both if and of to be specified (no stdin/stdout if not specified) and doesn't
support tty, pipes, etc.

The image format must be specified with -O for the output if the raw format
is not the intended one.

Two tests are added to test qemu-img dd.

Signed-off-by: Reda Sallahi <fullmanet@gmail.com>
Message-id: 20160810024312.14544-1-fullmanet@gmail.com
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[mreitz: Moved test 158 to 170]
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-img-cmds.hx
qemu-img.c
qemu-img.texi
tests/qemu-iotests/159 [new file with mode: 0755]
tests/qemu-iotests/159.out [new file with mode: 0644]
tests/qemu-iotests/170 [new file with mode: 0755]
tests/qemu-iotests/170.out [new file with mode: 0644]
tests/qemu-iotests/common.filter
tests/qemu-iotests/common.rc
tests/qemu-iotests/group