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

git: subr_disk - 'official' support for cloning; cleanup


From: Alex Hornung <alexh@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 Nov 2010 07:27:55 -0800 (PST)

commit 4064300e05e10d6af2b73f352f48e9534b1bd50d
Author: Alex Hornung <ahornung@gmail.com>
Date:   Fri Nov 19 09:15:30 2010 +0000

    subr_disk - 'official' support for cloning; cleanup
    
    * Add 'official' cloning support, so that the top level node is also
      make_only_dev'd in the case of a cloned disk creation. This way
      the top level node can be used as a return value for the clone
      handler.
    
    * Right now we are basically returning the raw underlying device node
      when we clone in vn. This can now be changed to actually do things
      properly so that everything passes through the disk subsystem.
    
    * Clean up some dead code mostly related to the old understanding of
      'cloning', which has nothing to do with what's going on nowadays.
    
    * Fix a leak of cdevs. The underlying 'rawdev' was never being released,
      resulting in a leak of these each time a disk was destroyed.

Summary of changes:
 sys/kern/subr_disk.c |   87 ++++++++++++++++++++++++-------------------------
 sys/sys/disk.h       |    2 +
 2 files changed, 45 insertions(+), 44 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4064300e05e10d6af2b73f352f48e9534b1bd50d


-- 
DragonFly BSD source repository



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