git: hammer2 - Fix panic related to the accounting for pfs-create

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Sep 21 22:02:27 PDT 2017


commit c42feed66acbf22ef5c9020869d16a2abe67778f
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Sep 21 22:01:03 2017 -0700

    hammer2 - Fix panic related to the accounting for pfs-create
    
    * Properly disconnect the inode created by pfs-create from the spmp so it
      can be reassociated with the pmp.
    
    * Do not allow the newly created inode to be emplaced on the spmp's sideq,
      which will cause a duplicate inode structure to be created if the
      pfs is then mounted.
    
    Reported-by: Romick

Summary of changes:
 sys/vfs/hammer2/hammer2.h       |  1 +
 sys/vfs/hammer2/hammer2_flush.c | 17 ++++++++++++-----
 sys/vfs/hammer2/hammer2_inode.c |  3 ++-
 sys/vfs/hammer2/hammer2_ioctl.c |  2 ++
 4 files changed, 17 insertions(+), 6 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list