git: hammer2 - Stabilization (data corruption)

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jun 25 22:15:20 PDT 2016


commit ba38182bcd65888ecc1c5606e7860aeb6243eb9a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Jun 25 22:05:14 2016 -0700

    hammer2 - Stabilization (data corruption)
    
    * Move the check code errors into hammer2_chain_testcheck() and supply
      additional information in the kprintf.
    
    * Reformulate hammer2_io_newq() a bit.
    
    * Fix bugs in the buffer invalidation path.  The hammer2_io_newq() path
      was improperly setting INVALOK.  This path is only used by the freemap
      code to pre-validate a buffer to avoid unnecessary reads.  Fixed by
      not setting INVALOK if IOCB_QUICK is set.

Summary of changes:
 sys/vfs/hammer2/hammer2.h          |  4 +--
 sys/vfs/hammer2/hammer2_bulkfree.c |  5 +++-
 sys/vfs/hammer2/hammer2_chain.c    | 57 +++++++++++++++++++++++++++++---------
 sys/vfs/hammer2/hammer2_freemap.c  | 11 ++------
 sys/vfs/hammer2/hammer2_io.c       | 51 ++++++++++++++++++++++++----------
 5 files changed, 88 insertions(+), 40 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ba38182bcd65888ecc1c5606e7860aeb6243eb9a


-- 
DragonFly BSD source repository



More information about the Commits mailing list