Reda Sallahi 86ce1f6e2b 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>
2016-09-20 22:10:57 +02:00
..
2016-07-25 13:23:18 -05:00
2016-09-13 11:00:57 +01:00
2016-02-23 12:43:05 +00:00
2016-07-06 10:52:03 +02:00
2016-06-16 18:39:03 +02:00
2016-06-16 18:39:03 +02:00
2016-09-08 18:05:22 +04:00
2016-09-08 18:05:22 +04:00
2016-09-08 18:05:22 +04:00
2016-02-16 14:29:27 +00:00
2016-09-08 18:05:22 +04:00
2016-06-16 18:39:03 +02:00
2016-09-08 18:05:21 +04:00
2016-08-08 13:05:43 +02:00
2016-09-08 17:57:32 +04:00
2016-06-07 18:19:25 +03:00
2016-02-16 14:29:27 +00:00
2016-09-08 17:57:32 +04:00
2016-09-08 17:57:32 +04:00