git: kernel - Fix slice open mask tracking

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Apr 5 21:12:36 PDT 2011


commit 2d5beb816b67efa1ff2c95587b78b442b1f1b249
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Apr 5 21:06:03 2011 -0700

    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.

Summary of changes:
 sys/kern/subr_disk.c |   15 +++++++++++----
 sys/kern/vfs_lock.c  |    2 +-
 sys/kern/vfs_subr.c  |    6 ++++--
 3 files changed, 16 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2d5beb816b67efa1ff2c95587b78b442b1f1b249


-- 
DragonFly BSD source repository





More information about the Commits mailing list