Merge pull request #263 from aspiers/extra-storage-cache-mode

allow cache mode to be set for additional disks
This commit is contained in:
Brian Pitts
2014-11-01 17:24:16 -05:00
3 changed files with 3 additions and 1 deletions

View File

@@ -141,6 +141,7 @@ module VagrantPlugins
:type => options[:type],
:size => options[:size],
:path => options[:path],
:cache => options[:cache] || 'default',
}
if storage_type == :file

View File

@@ -36,7 +36,7 @@
<%# additional disks -%>
<% @disks.each do |d| -%>
<disk type='file' device='disk'>
<driver name='qemu' type='<%= d[:type] %>'/>
<driver name='qemu' type='<%= d[:type] %>' cache='<%= d[:cache] %>'/>
<source file='<%= d[:path] %>'/>
<target dev='<%= d[:device] %>' bus='virtio'/>
<%# this will get auto generated by libvirt