mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
qemu-img: add skip option to dd
This adds the skip option which allows qemu-img dd to skip a number of blocks before copying the input. A test case was added to test the skip option. Signed-off-by: Reda Sallahi <fullmanet@gmail.com> Message-id: 20160810141609.32727-1-fullmanet@gmail.com Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
86ce1f6e2b
commit
f7c1553388
6 changed files with 174 additions and 8 deletions
51
tests/qemu-iotests/160.out
Normal file
51
tests/qemu-iotests/160.out
Normal file
|
@ -0,0 +1,51 @@
|
|||
QA output created by 160
|
||||
|
||||
== Creating image ==
|
||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
|
||||
No errors were found on the image.
|
||||
wrote 524288/524288 bytes at offset 24
|
||||
512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||
|
||||
== Converting the image with dd with skip=1 ==
|
||||
No errors were found on the image.
|
||||
|
||||
== Compare the images with qemu-img compare ==
|
||||
Images are identical.
|
||||
|
||||
== Creating image ==
|
||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
|
||||
No errors were found on the image.
|
||||
wrote 524288/524288 bytes at offset 24
|
||||
512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||
|
||||
== Converting the image with dd with skip=2 ==
|
||||
No errors were found on the image.
|
||||
|
||||
== Compare the images with qemu-img compare ==
|
||||
Images are identical.
|
||||
|
||||
== Creating image ==
|
||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
|
||||
No errors were found on the image.
|
||||
wrote 524288/524288 bytes at offset 24
|
||||
512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||
|
||||
== Converting the image with dd with skip=30 ==
|
||||
No errors were found on the image.
|
||||
|
||||
== Compare the images with qemu-img compare ==
|
||||
Images are identical.
|
||||
|
||||
== Creating image ==
|
||||
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
|
||||
No errors were found on the image.
|
||||
wrote 524288/524288 bytes at offset 24
|
||||
512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
||||
|
||||
== Converting the image with dd with skip=30K ==
|
||||
No errors were found on the image.
|
||||
|
||||
== Compare the images with qemu-img compare ==
|
||||
Images are identical.
|
||||
|
||||
*** done
|
Loading…
Add table
Add a link
Reference in a new issue