From owner-cvs-src-old@FreeBSD.ORG Fri Aug 21 03:26:28 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1F631065691 for ; Fri, 21 Aug 2009 03:26:28 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C091E8FC3F for ; Fri, 21 Aug 2009 03:26:28 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n7L3QSNa049489 for ; Fri, 21 Aug 2009 03:26:28 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n7L3QSkr049488 for cvs-src-old@freebsd.org; Fri, 21 Aug 2009 03:26:28 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200908210326.n7L3QSkr049488@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Fri, 21 Aug 2009 03:14:39 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/share/man/man9 sglist.9 src/sys/kern subr_sglist.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2009 03:26:28 -0000 jhb 2009-08-21 03:14:39 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) share/man/man9 sglist.9 sys/kern subr_sglist.c Log: SVN rev 196418 on 2009-08-21 03:14:39Z by jhb MFC 196417: 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. Approved by: re (kib) Revision Changes Path 1.1.2.3 +4 -0 src/share/man/man9/sglist.9 1.1.2.3 +74 -16 src/sys/kern/subr_sglist.c