DragonFly BSD
DragonFly commits List (threaded) for 2010-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: DragonFly_RELEASE_2_8 HAMMER VFS - Minor bug (caught by assertion panic)


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 24 Oct 2010 09:38:15 -0700 (PDT)

commit fc4b48e0e0d5fbf7799cf5b0fa8316314b785691
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Mon Oct 18 00:49:59 2010 -0700

    HAMMER VFS - Minor bug (caught by assertion panic)
    
    * A snapshot can sometimes contain visible inodes whos nlinks count is 0,
      essentially the snapshot 'catches' the file in the middle of being deleted.
    
    * HAMMER was attempting to truncate the data for such inodes if the file
      were opened and then closed, and failed to check whether the inode was a
      snapshot or a current inode.  This flowed through until it hit an assertion
      designed to detect precisely that case.
    
    * Fixed by adding a check to determine if the inode is a snapshot and/or
      the filesystem is mounted read-only.
    
    Repored-by: Max <herrgard@gmail.com>

Summary of changes:
 sys/vfs/hammer/hammer_inode.c  |    4 +++-
 sys/vfs/hammer/hammer_object.c |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

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


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]