DragonFly commits List (threaded) for 2010-11
git: subr_disk - 'official' support for cloning; cleanup
Author: Alex Hornung <firstname.lastname@example.org>
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
* 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(-)
DragonFly BSD source repository