Skip to content

FDT DDCopy command options

Justas Balčas edited this page Mar 3, 2017 · 1 revision

DDCopy is very similar to Unix dd command and can be used to test the local disks or file system. It is bundled in the fdt.jar and has the following syntax:

java -cp fdt.jar lia.util.net.common.DDCopy [ OPTIONS ] if=< sourceFile > of=< destinationFile >

where OPTIONS may be:

  • bs=< BufferSize > size of the buffer used for read/write. K or M (for KiloBytes/MegaBytes) may be used as suffixes. Default is 4K

  • bn=< NoOfBuffers > Number of buffers used to readv()/writev() at once. If this parameter is 1, or is missing DDCopy will read()/write() a single buffer at a time, otherwise the readv()/writev() will be used. Default is 1

& count= Number of "blocks" to write. A "block" is represents how much data is read/write. The size of a "block" is: < BufferSize >*< BuffersNumber >. If < count > <= 0 the copy stops when EOF is reached reading the < SourceFile >. The default is 0

  • statsdelay= Number of seconds between intermediate reports. Default is 2 seconds. If < seconds > <= 0 no intermediate reports will be printed

  • flags=< flag > The < flag > field can have of the following values: SYNC For every write both data and metadata are written synchronously DSYCN Same as SYNC, but only the data is written synchronously. NOSYNC The sync() is left to be done by the underlying OS The default value is DSYNC

  • rformat=< rformat > Report format. Possible values are: K - KiloBytes M - MegaBytes G - GigaBytes T - TeraBytes P - PetaBytes The default value is self adjusted. If the factor is too big only 0s will be displayed

Clone this wiki locally