git: hammer2 - Fix bug in hammer2_chain_indkey_dir()

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Sep 23 21:17:04 PDT 2017


commit e32a768eea4f0cf173eef86bfdf265133a226ccf
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Sep 23 21:12:22 2017 -0700

    hammer2 - Fix bug in hammer2_chain_indkey_dir()
    
    * The shortcut in hammer2_chain_indkey_dir() ignores the
      possibilty that the key breakdown chosen may not result
      in the clearing out of any elements in the parent.  If this
      occurs, an insertion operation following the function
      will assert on too many elements.
    
    * Remove the shotcut.

Summary of changes:
 sys/vfs/hammer2/hammer2_chain.c | 16 ++++++++--------
 sys/vfs/hammer2/hammer2_inode.c |  3 +++
 sys/vfs/hammer2/hammer2_vnops.c |  3 +++
 3 files changed, 14 insertions(+), 8 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list