hammer2 - Support multiple PFS mounts from the same device
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 6 Apr 2012 06:40:03 +0000 (23:40 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 6 Apr 2012 06:40:03 +0000 (23:40 -0700)
commite4e20f48d0de2779394eedc51e96f5c21b2bde32
treebe6b43b599ed02a71e56048facf887e668b7086a
parentf03ec792a9182554241bed2f7fb84f4fa557022e
hammer2 - Support multiple PFS mounts from the same device

* Implement hammer2_pfsmount_t and move hmp->rchain, hmp->iroot, and
  a few other fields into the new structure.

  struct mount -> struct hammer2_pfsmount (pmp) -> struct hammer2_mount (hmp).

* Implement mount/umount logic to allow the device to be overloaded.
  Multiple PFS labels associated with the same media may now be mounted.

* Generate a unique pfs_fsid for each PFS created, the {pfs_fsid, pfs_id}
  tuple forms a unique key that the userland helper will use to distinguish
  registrations.
sys/vfs/hammer2/hammer2.h
sys/vfs/hammer2/hammer2_chain.c
sys/vfs/hammer2/hammer2_inode.c
sys/vfs/hammer2/hammer2_ioctl.c
sys/vfs/hammer2/hammer2_vfsops.c
sys/vfs/hammer2/hammer2_vnops.c