git: vn - enable autocloning

看板DFBSD_commit作者時間16年前 (2009/09/01 04:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit cc80c90e342f184b14fd33410fe9c1f5c83744e8 Author: Alex Hornung <ahornung@gmail.com> Date: Mon Aug 31 19:18:32 2009 +0100 vn - enable autocloning * Create /dev/vn as autoclone device, but keep precreating 4 vn devices (vn0 .. vn3). * When "vn" is specified to vnconfig instead of "vnXX", the vn device is cloned and the name of the new device is printed on screen in a message of the form: "Using: vn6". * On detach of the vn device (vnconfig -u) the cloned device is destroyed. This only happens for cloned vn devices (vn4 ..vnX). Summary of changes: sys/dev/disk/vn/vn.c | 93 +++++++++++++++++++++--------------------- usr.sbin/vnconfig/vnconfig.c | 3 + 2 files changed, 50 insertions(+), 46 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cc80c90e342f184b14fd33410fe9c1f5c83744e8 -- DragonFly BSD source repository
文章代碼(AID): #1Ad3D6va (DFBSD_commit)