nfsmount: add tcp option to NFS mount options to fix mounting under Linux

This commit is contained in:
Nick Craig-Wood 2024-06-24 13:06:52 +01:00
parent 7c02a63884
commit 96f92b7364

View File

@ -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)