Date: Fri, 21 Aug 2009 02:59:07 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/share/man/man9 sglist.9 src/sys/kern subr_sglist.c Message-ID: <200908210302.n7L32R7i046640@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2009-08-21 02:59:07 UTC
FreeBSD src repository
Modified files:
share/man/man9 sglist.9
sys/kern subr_sglist.c
Log:
SVN rev 196417 on 2009-08-21 02:59:07Z by jhb
This patch fixes two bugs in sglist(9) and improves robustness of the API via
better semantics if a request to append an address range to an existing list
fails.
- When cloning an sglist, properly set the length in the new sglist instead of
leaving the new list empty.
- Properly compute the amount of data added to an sglist via
_sglist_append_buf(). This allows sglist_consume_uio() to properly update
uio_resid.
- When a request to append an address range to a scatter/gather list fails,
restore the sglist to the state it had at the start of the function call
instead of resetting it to an empty list.
Requested by: np (3)
Approved by: re (kib)
Revision Changes Path
1.3 +4 -0 src/share/man/man9/sglist.9
1.3 +74 -16 src/sys/kern/subr_sglist.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908210302.n7L32R7i046640>
