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

看板DFBSD_commit作者時間15年前 (2010/11/20 09:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1CvoLqyb (DFBSD_commit)