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:
parent
0aa1a33f83
commit
839d6258b8
2 changed files with 13 additions and 0 deletions
|
@ -11,4 +11,16 @@
|
||||||
<label>virt_image_t</label>
|
<label>virt_image_t</label>
|
||||||
</permissions>
|
</permissions>
|
||||||
</target>
|
</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>
|
</volume>
|
||||||
|
|
|
@ -19,6 +19,7 @@ module Fog
|
||||||
attribute :capacity
|
attribute :capacity
|
||||||
attribute :allocation
|
attribute :allocation
|
||||||
attribute :format_type
|
attribute :format_type
|
||||||
|
attribute :backing_volume
|
||||||
|
|
||||||
# Can be created by passing in :xml => "<xml to create volume>"
|
# Can be created by passing in :xml => "<xml to create volume>"
|
||||||
# A volume always belongs to a pool, :pool_name => "<name of pool>"
|
# A volume always belongs to a pool, :pool_name => "<name of pool>"
|
||||||
|
|
Loading…
Reference in a new issue