git: kernel - Try to ensure a uniform fsid for exports

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Mar 27 22:18:52 PDT 2019


commit ae4bce3c291c22a8ec4a92a61cccdd638beb87b7
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Mar 27 22:16:01 2019 -0700

    kernel - Try to ensure a uniform fsid for exports
    
    * For filesystems which do not generate their own fsid (hammer2, tmpfs,
      others) we generate a fsid based on the mount path.
    
    * Ensure fsid is uniquified when inserting onto the mount list.
      Collisions should be rare but the hash is only around 24 bits.
    
    * Index the mount structure on a RB tree via the fsid.

Summary of changes:
 sys/kern/vfs_conf.c          |   4 +-
 sys/kern/vfs_mount.c         | 116 +++++++++++++++++++++++++++++--------------
 sys/kern/vfs_syscalls.c      |   6 ++-
 sys/sys/mount.h              |   3 +-
 sys/vfs/nullfs/null_vfsops.c |   4 +-
 5 files changed, 90 insertions(+), 43 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list