Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Aug 2009 03:14:39 +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:  <200908210326.n7L3QSkr049488@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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