The following reply was made to PR kern/163076; it has been noted by GNATS.

From: "Poul-Henning Kamp" <[email protected]>
To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <[email protected]>
Cc: Jaakko Heinonen <[email protected]>, Petr Salinger <[email protected]>,
        [email protected], [email protected]
Subject: Re: kern/163076: It is not possible to read in chunks from linprocfs 
and procfs.
Date: Fri, 09 Dec 2011 14:51:15 +0000

 In message <[email protected]>, =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= wr
 ites:
 >Jaakko Heinonen <[email protected]> writes:
 >> As I wrote existing code depends on sbuf_len() to return the actual
 >> length regardless of the error status after sbuf_finish(). I am not
 >> willing to through all code using sbufs to check where it causes
 >> problems. phk@ asserts that r222004 is correct.
 >
 >What if the sbuf is in a state where asking for its length is
 >meaningless?
 
 It will always have a length, but the length may not represent
 all you tried to stuff into the sbuf, if the sbuf has failed.
 
 -- 
 Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
 [email protected]         | TCP/IP since RFC 956
 FreeBSD committer       | BSD since 4.3-tahoe    
 Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to