vkernel - Add COW image capability
authorMatthew Dillon <dillon@backplane.com>
Sun, 9 Oct 2016 23:41:17 +0000 (16:41 -0700)
committerMatthew Dillon <dillon@backplane.com>
Sun, 9 Oct 2016 23:41:17 +0000 (16:41 -0700)
commit54ea00b82d152a53ab88ac074ccc89b7790dc4a8
treeb3a038e0101ebabee54c3ad93b4069eca6349c51
parentabc452804d04e6bc9831255e1e5fb587bccef346
vkernel - Add COW image capability

* Add a copy-on-write disk image feature.  This allows a vkernel
  to mount a disk image RO or R+W but does not try to write changes
  back to the image file.

  This allows multiple vkernel instances to use the same image
  file.

* Note that when the vkernel operates on an image in this mode,
  modifications will eat up system memory and swap, so the user
  should be cognizant of the use-case.  Still, the flexiblity of
  being able to mount the image R+W should not be underestimated.
share/man/man7/vkernel.7
sys/dev/virtual/vkernel/disk/vdisk.c
sys/platform/vkernel64/include/md_var.h
sys/platform/vkernel64/platform/init.c