# File lib/vagrant-libvirt/cap/synced_folder.rb, line 73 def enable(machine, folders, _opts) # Go through each folder and mount machine.ui.info('mounting p9 share in guest') # Only mount folders that have a guest path specified. mount_folders = {} folders.each do |id, opts| next unless opts[:mount] && opts[:guestpath] && !opts[:guestpath].empty? mount_folders[id] = opts.dup # merge common options if not given mount_folders[id].merge!(version: '9p2000.L') { |_k, ov, _nv| ov } end # Mount the actual folder machine.guest.capability( :mount_p9_shared_folder, mount_folders ) end