kernel - Try to ensure a uniform fsid for exports
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 28 Mar 2019 05:16:01 +0000 (22:16 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 28 Mar 2019 05:16:01 +0000 (22:16 -0700)
commitae4bce3c291c22a8ec4a92a61cccdd638beb87b7
treec082ff228f2e8fa267d25bd7f62bbd2d321d3771
parent7d4e2804614e91ec3d224b53f29bc5e19d845f8d
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.
sys/kern/vfs_conf.c
sys/kern/vfs_mount.c
sys/kern/vfs_syscalls.c
sys/sys/mount.h
sys/vfs/nullfs/null_vfsops.c