1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[libvirt|compute] Allow volumes to have backing volumes

This commit is contained in:
Dominic Cleal 2014-01-31 17:22:54 +01:00
parent 0aa1a33f83
commit 839d6258b8
2 changed files with 13 additions and 0 deletions

View file

@ -11,4 +11,16 @@
<label>virt_image_t</label>
</permissions>
</target>
<% if backing_volume -%>
<backingStore>
<path><%= backing_volume.path %></path>
<format type="<%= backing_volume.format_type %>"/>
<permissions>
<owner>0</owner>
<group>0</group>
<mode>0744</mode>
<label>virt_image_t</label>
</permissions>
</backingStore>
<% end -%>
</volume>

View file

@ -19,6 +19,7 @@ module Fog
attribute :capacity
attribute :allocation
attribute :format_type
attribute :backing_volume
# Can be created by passing in :xml => "<xml to create volume>"
# A volume always belongs to a pool, :pool_name => "<name of pool>"