Project

General

Profile

Bug #10003

/bin/dd skip= does not use seek( ) as promised in manual

Added by Toomas Soome almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
cmd - userland programs
Start date:
2018-11-22
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

       skip=n

           Skips n input blocks (using the specified input block size) before
           starting to copy. On seekable files, the implementation reads the
           blocks or seeks past them. On non-seekable files, the blocks are
           read and the data is discarded.

However, the dd still does always read the blocks in while loop, resulting with long execution time compared to gnu dd.

test with something like:

dd if=/dev/dsk/c3t0d0 bs=512 skip=2097152 count=1 of=/dev/null

#1

Updated by Toomas Soome almost 2 years ago

  • Description updated (diff)
#2

Updated by Marcel Telka almost 2 years ago

Note: iseek should work as expected.

#3

Updated by Toomas Soome almost 2 years ago

Marcel Telka wrote:

Note: iseek should work as expected.

Yes, except, if the input does not support seek, it will exit dd.

Also available in: Atom PDF