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

git: DragonFly_RELEASE_3_0 VFS accounting: check if nullfs mp* really exist


From: Francois Tigeot <ftigeot@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 18 Feb 2012 01:12:26 -0800 (PST)

commit e6a2de8892f82243ea8672b974cb8d190c0bc35d
Author: Francois Tigeot <ftigeot@wolfpond.org>
Date:   Fri Feb 17 23:58:58 2012 +0100

    VFS accounting: check if nullfs mp* really exist
    
    * Nullfs are a clever hack, they forget their mp after mount and let the
      non-nullfs underlying mount point do all the work
    
    * Nevertheless, we need to get the real struct mount associated to a mount
      point to count the space used by PFSes. We cache it in the vnode.
    
    * But since the vnode we use really belongs to the lowest underlying
      mount point, the upper-level mp may already have been freed.
    
    * We need to first check if it still valid; a new function,
      mountlist_exists() now exists for that purpose.
    
    * Should fix issue #2266

Summary of changes:
 sys/kern/vfs_mount.c  |   23 +++++++++++++++++++++++
 sys/kern/vfs_vopops.c |    5 ++++-
 sys/sys/mount.h       |    1 +
 3 files changed, 28 insertions(+), 1 deletions(-)

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


-- 
DragonFly BSD source repository



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