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>
Showing
- qemu-img-cmds.hx 6 additions, 0 deletionsqemu-img-cmds.hx
- qemu-img.c 302 additions, 1 deletionqemu-img.c
- qemu-img.texi 25 additions, 0 deletionsqemu-img.texi
- tests/qemu-iotests/159 70 additions, 0 deletionstests/qemu-iotests/159
- tests/qemu-iotests/159.out 87 additions, 0 deletionstests/qemu-iotests/159.out
- tests/qemu-iotests/170 67 additions, 0 deletionstests/qemu-iotests/170
- tests/qemu-iotests/170.out 15 additions, 0 deletionstests/qemu-iotests/170.out
- tests/qemu-iotests/common.filter 9 additions, 0 deletionstests/qemu-iotests/common.filter
- tests/qemu-iotests/common.rc 1 addition, 4 deletionstests/qemu-iotests/common.rc
- tests/qemu-iotests/group 2 additions, 0 deletionstests/qemu-iotests/group
Loading
Please register or sign in to comment