On Tue, Jan 29, 2008 at 08:01:45AM -0500, Michael Stone wrote:

> I figured there'd be some piece of posix at the bottom of it. :) I 
> wonder if the documentation should better reflect that. (The info page 
> says only that "when dd completes it outputs the final statistics; maybe 
> something like "when dd completes normally or is killed by SIGINT it 
> outputs the final statistics"?)

When I use dd to fill a floppy, (I could use "cp", but dd outputs the
size of the data copied, which helps me verify things went as planned), 
I want to see 1440 blocks copied. 

So when I have an image of which the first 1440kbytes should be copied
to a floppy, I want

        dd if=my.img of=/dev/fd0 bs=1k

to report 
        1440+0 records out

This is my verification that all data got copied as intended. If 
my image is larger than 1440 kbytes, I expect to see
        1441+0 records in
and dd will experience a "ENOSPC" on the 1441'th write. 

AGAIN: dd is used to copy data, and to provide feedback on howmuch
data it copied. It is inconsistent to omit the feedback in some cases
when the copying stops. Copying can stop because of several reasons:
Two I can think of are: "no more input", and "output no longer
possible". "ENOSPC" on a device, or a file (disk full), is quite
similar, and should be handled similar to EPIPE on the output.

        Roger. 

-- 
** [EMAIL PROTECTED] ** http://www.BitWizard.nl/ ** +31-15-2600998 **
**    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233    **
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement. 
Does it sit on the couch all day? Is it unemployed? Please be specific! 
Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to