From 96f92b7364fab30015c05b0e079c0c5c0d521d59 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 24 Jun 2024 13:06:52 +0100 Subject: [PATCH] nfsmount: add tcp option to NFS mount options to fix mounting under Linux --- cmd/nfsmount/nfsmount.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/nfsmount/nfsmount.go b/cmd/nfsmount/nfsmount.go index 08fc20fd7..f172e1ca0 100644 --- a/cmd/nfsmount/nfsmount.go +++ b/cmd/nfsmount/nfsmount.go @@ -57,6 +57,7 @@ func mount(VFS *vfs.VFS, mountpoint string, opt *mountlib.Options) (asyncerrors options := []string{ "-o", fmt.Sprintf("port=%s", port), "-o", fmt.Sprintf("mountport=%s", port), + "-o", "tcp", } for _, option := range opt.ExtraOptions { options = append(options, "-o", option)