]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vz: support filesystem type volume
authorOlga Krishtal <okrishtal@virtuozzo.com>
Thu, 14 Jul 2016 13:52:41 +0000 (16:52 +0300)
committerMaxim Nestratov <mnestratov@virtuozzo.com>
Mon, 18 Jul 2016 20:39:57 +0000 (23:39 +0300)
commit3dd50be7ca7fd3f8237153bddef65585ea5720da
treed1ab8d9f8125ac12fd6792cf31134b38a3ccfc0d
parentcec0309840cd51e34a9a22f9d9229d982c58fc40
vz: support filesystem type volume

Vz containers are able to use ploop volumes from storage pools
to work upon.

To use filesystem type volume, pool name and volume name should be
specifaed in <source> :
   <filesystem type='volume' accessmode='passthrough'>
      <driver type='ploop' format='ploop'/>
      <source pool='guest_images' volume='TEST_POOL_CT'/>
      <target dir='/'/>
   </filesystem>

The information about pool and volume is stored in ct dom configuration:
<StorageURL>libvirt://localhost/pool_name/vol_name</StorageURL>
and can be easily obtained via PrlVmDevHd_GetStorageURL sdk call.

The only shorcoming: if storage pool is moved somewhere the ct
should be redefined in order to refresh the information aboot path
to root.hdd

Signed-off-by: Olga Krishtal <okrishtal@virtuozzo.com>
src/storage/storage_driver.c
src/vz/vz_driver.c
src/vz/vz_sdk.c
src/vz/vz_sdk.h