bdes (and other) problems on 5.3 fixit cd

Dag-Erling Smørgrav des at des.no
Mon Mar 21 01:06:38 PST 2005


Matthias Buelow <mkb at 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
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-stable mailing list