git: tmpfs - Fix numerous races and adjust to use cache_unlink()

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Aug 24 16:31:58 PDT 2012


commit 6e0c5aabac8d345557e78062b61bd3c1ed432332
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Aug 24 16:30:20 2012 -0700

    tmpfs - Fix numerous races and adjust to use cache_unlink()
    
    * Fix numerous issues when chdir'd into a directory that is then
      rmdir'd.
    
    * Rewrite the link count handling code for directories, also removing
      two now unecessary recursions.
    
    * Do not allow new files to be created in a directory which has been
      rmdir'd.
    
    * Use the new cache_unlink facility.

Summary of changes:
 sys/vfs/tmpfs/tmpfs.h        |    4 +-
 sys/vfs/tmpfs/tmpfs_subr.c   |  122 ++++++++++++++++++++++--------------------
 sys/vfs/tmpfs/tmpfs_vfsops.c |   54 +++++++-----------
 sys/vfs/tmpfs/tmpfs_vnops.c  |   59 ++++++---------------
 4 files changed, 102 insertions(+), 137 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6e0c5aabac8d345557e78062b61bd3c1ed432332


-- 
DragonFly BSD source repository





More information about the Commits mailing list