mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #263 from aspiers/extra-storage-cache-mode
allow cache mode to be set for additional disks
This commit is contained in:
@@ -141,6 +141,7 @@ module VagrantPlugins
|
||||
:type => options[:type],
|
||||
:size => options[:size],
|
||||
:path => options[:path],
|
||||
:cache => options[:cache] || 'default',
|
||||
}
|
||||
|
||||
if storage_type == :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
|
||||
|
||||
Reference in New Issue
Block a user