nfs_udp is false by default if using NFS v4.

This commit is contained in:
Max Khon 2017-07-27 14:00:53 +06:00
parent a7b228eb69
commit d87dd018b0
1 changed files with 3 additions and 2 deletions

View File

@ -127,9 +127,10 @@ module VagrantPlugins
def prepare_folder(machine, opts)
opts[:map_uid] = prepare_permission(machine, :uid, opts)
opts[:map_gid] = prepare_permission(machine, :gid, opts)
opts[:nfs_udp] = true if !opts.key?(:nfs_udp)
opts[:nfs_version] ||= 3
if !opts.key?(:nfs_udp)
opts[:nfs_udp] = !opts[:nfs_version].to_s.start_with?('4')
end
if opts[:nfs_version].to_s.start_with?('4') && opts[:nfs_udp]
machine.ui.info I18n.t("vagrant.actions.vm.nfs.v4_with_udp_warning")