DragonFly BSD
DragonFly commits List (threaded) for 2013-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Do not allow (devfs) devices to be force-unmounted


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 23 Jan 2013 14:00:23 -0800 (PST)

commit 0465e1d385953232678697cd5c17964cf45eaf49
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Wed Jan 23 13:56:37 2013 -0800

    kernel - Do not allow (devfs) devices to be force-unmounted
    
    * Do not force-unmount devfs devices.  Even more importantly, don't
      force-unmount devfs devices and then try to force-vflush them.
    
      Filesystems have always been responsible for flushing their underlying
      block devices.
    
      These situations occur during halt/reboot.
    
    * Fixes at least one issue when hammer's volume-add is used to specify
      a block device in /dev which is then added to the root mount.  This
      created a situation where the /dev vs / unmount order breaks.
    
    * Should also prevent e.g. the console or other vty hangers-on from being
      destroyed out from under active descriptors during a halt or reboot.

Summary of changes:
 sys/kern/vfs_mount.c | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0465e1d385953232678697cd5c17964cf45eaf49


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]