git: vn - Major overhaul

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