hammer2 - Fix snapshots and multi-label mounts
commit59eb00662b48f700a961ebe4a6fb572d8e4225f0
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 19 Aug 2017 19:10:09 +0000 (19 12:10 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 19 Aug 2017 19:10:09 +0000 (19 12:10 -0700)
tree9c88fc8360da5108f92a3ec81e20a58ddf84269e
parent5c51ecae5278657c6e77c1f2b18c06ee245eccf4
hammer2 - Fix snapshots and multi-label mounts

* Allow the same /dev/blah@DIFFERENTLABEL to be specified in a mount
  command, so multiple labels from the same device can be mounted.

* Devfs can throw different vnodes for the same device.  When matching
  up hammer2_dev, check devvp->v_rdev for a match as well.

* Fix a number of bugs in the snapshot code that left a hammer2_inode
  structure hanging and caused a panic.

* Fix races in admin thread flag messaging that could lead to 60-second
  delays during umount.
sys/vfs/hammer2/hammer2_chain.c
sys/vfs/hammer2/hammer2_ioctl.c
sys/vfs/hammer2/hammer2_synchro.c
sys/vfs/hammer2/hammer2_vfsops.c