git: vn - Major overhaul

Alex Hornung alexh at crater.dragonflybsd.org
Fri Nov 19 07:29:00 PST 2010


commit 1398353708029eb9dda9861e12c2efb4e66e8122
Author: Alex Hornung <ahornung at gmail.com>
Date:   Fri Nov 19 09:18:18 2010 +0000

    vn - Major overhaul
    
    * Now that we can do proper disk cloning we do so. vn_create will now
      return the top device of the disk (the one that belongs to the disk
      subsystem and not us) if asked to do so. This is then passed back from
      the clone handler so that we have a real cloned disk.
    
    * Remove all sorts of old hacks, mostly related to finding vn's and
      strange cdev lists that were not being used anymore anyways.
    
    * Avoid the destruction/detachment of devices that are in use by keeping
      track of whether they are open or not and checking the opencount
      provided by the disk susbsystem.
    
    * Fix a memory leak related to adding references to devs but never
      releasing them.
    
    Dragonfly-bug: http://bugs.dragonflybsd.org/issue1561 (partly)

Summary of changes:
 sys/dev/disk/vn/vn.c |  126 +++++++++++++++++++++++++-------------------------
 1 files changed, 63 insertions(+), 63 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1398353708029eb9dda9861e12c2efb4e66e8122


-- 
DragonFly BSD source repository





More information about the Commits mailing list