Select NFS version with :nfs_version

This commit is contained in:
Mitchell Hashimoto 2012-01-29 13:34:50 -08:00
parent 3a8c44301b
commit f9a42973d9
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ module Vagrant
key, opts = data
opts[:map_uid] = prepare_permission(:uid, opts)
opts[:map_gid] = prepare_permission(:gid, opts)
opts[:version] ||= 3
opts[:nfs_version] ||= 3
acc[key] = opts
acc

View File

@ -60,7 +60,7 @@ module Vagrant
# Do the actual creating and mounting
@vm.channel.sudo("mkdir -p #{real_guestpath}")
@vm.channel.sudo("mount -o vers=#{opts[:version]} #{ip}:'#{opts[:hostpath]}' #{real_guestpath}",
@vm.channel.sudo("mount -o vers=#{opts[:nfs_version]} #{ip}:'#{opts[:hostpath]}' #{real_guestpath}",
:error_class => LinuxError,
:error_key => :mount_nfs_fail)
end