Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Mar 2005 10:06:31 +0100
From:      des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=)
To:        Matthias Buelow <mkb@incubus.de>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: bdes (and other) problems on 5.3 fixit cd
Message-ID:  <86eke99xm0.fsf@xps.des.no>
In-Reply-To: <200503210217.j2L2H4C5005161@drjekyll.mkbuelow.net>
References:  <200503210217.j2L2H4C5005161@drjekyll.mkbuelow.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthias Buelow <mkb@incubus.de> writes:
> Instead of trying to write the rest, the author decided to just print
> a warning and that was it.

That's bad.  Short writes are perfectly valid, bdes should learn to
handle them properly.

> Amazingly, the message doesn't get printed in a "bdes|cat" pipeline.
> Only when restore is being used does it seem to happen.

Probably because cat uses a large enough buffer and reads fast enough
to completely empty the pipe for every read, so bdes never gets a
short write (caused by a partially full buffer).

DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no



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