You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If path on guest contains spaces, directory is not mounted correctly.
Arbitrary directory name cannot be used on guest in my case since to have symlinks working on guest when they are created on host, paths should be identical on guest and on host. In case if host has spaces in path, guest path should also be with spaces.
Mount command looks as follows and obviously quotes are missing around path on guest: mount -o 'vers=3,udp' 192.168.10.1:'/some_path/directory with spaces/subdirectory' /some_path/directory with spaces/subdirectory
Vagrant version
1.8.1
Host operating system
OSX 10.11.5
Guest operating system
Ubuntu 14.04
Vagrantfile
# -*- mode: ruby -*-# vi: set ft=ruby :Vagrant.configure(2)do |config|
config.vm.box="ubuntu/trusty64"config.vm.synced_folder'.','/vagrant',disabled: trueconfig.vm.synced_folder'.','/vagrant/directory with spaces/subdirectory',type: "nfs",create: trueconfig.vm.network"private_network",type: "dhcp"end
NFS shared folder should be mounted correctly even if path on guest contains spaces. Directory should be available on guest as /vagrant/directory with spaces/subdirectory
Actual behavior
The rest of the path after space is ignored and directory is mounted as /vagrant/directory
Steps to reproduce
Use provided Vagrantfile, vagrant up
vagrant ssh and look at mounted directory, should be /vagrant/directory with spaces/subdirectory, not /vagrant/directory
If path on guest contains spaces, directory is not mounted correctly.
Arbitrary directory name cannot be used on guest in my case since to have symlinks working on guest when they are created on host, paths should be identical on guest and on host. In case if host has spaces in path, guest path should also be with spaces.
Mount command looks as follows and obviously quotes are missing around path on guest:
mount -o 'vers=3,udp' 192.168.10.1:'/some_path/directory with spaces/subdirectory' /some_path/directory with spaces/subdirectory
Vagrant version
1.8.1
Host operating system
OSX 10.11.5
Guest operating system
Ubuntu 14.04
Vagrantfile
Debug output
https://gist.github.com/paliarush/2ec4ee104c57b8b9d5eff85d749eb620
Expected behavior
NFS shared folder should be mounted correctly even if path on guest contains spaces. Directory should be available on guest as
/vagrant/directory with spaces/subdirectory
Actual behavior
The rest of the path after space is ignored and directory is mounted as
/vagrant/directory
Steps to reproduce
vagrant up
vagrant ssh
and look at mounted directory, should be/vagrant/directory with spaces/subdirectory
, not/vagrant/directory
References
The text was updated successfully, but these errors were encountered: