Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 1998 08:42:00 -0600 (CST)
From:      Daniel Ortmann <ortmann@sparc.isl.net>
To:        jmg@FreeBSD.ORG (John-Mark Gurney)
Cc:        ortmann@sparc.isl.net, jmg@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/5755
Message-ID:  <199802201442.IAA03788@pyrl.eye>
In-Reply-To: <199802191358.FAA18191@freefall.freebsd.org> from John-Mark Gurney at "Feb 19, 98 05:58:45 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> Synopsis: dd drops block when of=/dev/rfd0a
> 
> State-Changed-From-To: open-closed
> State-Changed-By: jmg
> State-Changed-When: Thu Feb 19 05:56:10 PST 1998
> State-Changed-Why: 
> some device have a minimum size that you can write to...  mose disk devices
> have a min of 512bytes...  to write the final block out to disk, also add
> conv=osync to the dd line which will force the final block to be writen...
> 
> # dd if=as of=/dev/rda1b conv=osync
> 0+1 records in
> 1+0 records out
> 512 bytes transferred in 0.004164 secs (122959 bytes/sec)
> # ls -l as
> -rw-r--r--  1 jmg  jmg  13 Feb 19 05:53 as

If performing a logical operation such as "so many bytes in from
this source and so many out to this destination" behaves differently
depending on the output device, then that seems like a bug to me.
Similar to a programming "side effect" error or an unchecked-for
case.

Carefully said, due to my lack of information in this area, if the
problem is not actually with dd, then perhaps there is a larger
device driver architecture issue that could be addressed to make
this dd behavior possible?

Is there a valid reason for not having this conv=osync option on
by default?  That is, other than "we've always done it that way".

(Perhaps this should be resubmitted as a "feature request".  I
certainly was caught by surprise, especially since my purpose was
to fix a crashed computer and not to pour through the dd manual.:-)

-- 
Daniel Ortmann       507.288.7732 (h)  ortmann@isl.net
2414 30 av NW, #D    507.253.6795 (w)  ortmann@vnet.ibm.com
Rochester, MN 55901  "PERL: The Swiss Army Chainsaw"

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802201442.IAA03788>