kernel - Fix slice open mask tracking
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 6 Apr 2011 04:06:03 +0000 (21:06 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 6 Apr 2011 04:06:03 +0000 (21:06 -0700)
commit2d5beb816b67efa1ff2c95587b78b442b1f1b249
treeda47f5e5de040663c993fc446c218508023f4297
parentdaae8eb2dd6c95727946ce9f74f970205e52dadd
kernel - Fix slice open mask tracking

* The slice open mask tracking was broken when more than one partition
  on a raw disk device was opened.  Fix the tracking.

* This should solve problems editing the partition information in the
  disklabel for partitions which have been mounted and then unmounted.

* This should also solve problems with the related disk device and
  designation (e.g. da8, da9) being properly disconnected when pulling
  a USB stick.
sys/kern/subr_disk.c
sys/kern/vfs_lock.c
sys/kern/vfs_subr.c