mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23: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
|
@ -151,6 +151,8 @@ sets the number of input blocks to copy
|
|||
sets the input file
|
||||
@item of=@var{output}
|
||||
sets the output file
|
||||
@item skip=@var{blocks}
|
||||
sets the number of input blocks to skip
|
||||
@end table
|
||||
|
||||
Command description:
|
||||
|
@ -324,7 +326,7 @@ skipped. This is useful for formats such as @code{rbd} if the target
|
|||
volume has already been created with site specific options that cannot
|
||||
be supplied through qemu-img.
|
||||
|
||||
@item dd [-f @var{fmt}] [-O @var{output_fmt}] [bs=@var{block_size}] [count=@var{blocks}] if=@var{input} of=@var{output}
|
||||
@item dd [-f @var{fmt}] [-O @var{output_fmt}] [bs=@var{block_size}] [count=@var{blocks}] [skip=@var{blocks}] if=@var{input} of=@var{output}
|
||||
|
||||
Dd copies from @var{input} file to @var{output} file converting it from
|
||||
@var{fmt} format to @var{output_fmt} format.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue