vn - enable autocloning
authorAlex Hornung <ahornung@gmail.com>
Mon, 31 Aug 2009 18:18:32 +0000 (19:18 +0100)
committerAlex Hornung <ahornung@gmail.com>
Mon, 31 Aug 2009 20:42:22 +0000 (21:42 +0100)
commitcc80c90e342f184b14fd33410fe9c1f5c83744e8
treeaad1a5d64daa1238d2732dfee1bcfd1ac5c17ed4
parent527e4a212528eb64553709ba0116c0b80968ec7e
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).
sys/dev/disk/vn/vn.c
usr.sbin/vnconfig/vnconfig.c