Merge pull request #8828 from mkhon/nfsv4-default-tcp

nfs_udp is false by default if using NFS v4
This commit is contained in:
Chris Roberts 2018-02-23 09:50:49 -08:00 committed by GitHub
commit a1529d5fbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")