git: vn - enable autocloning

Alex Hornung alexh at crater.dragonflybsd.org
Mon Aug 31 13:18:48 PDT 2009


commit cc80c90e342f184b14fd33410fe9c1f5c83744e8
Author: Alex Hornung <ahornung at 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





More information about the Commits mailing list