summaryrefslogtreecommitdiffhomepage
path: root/tailfs/tailfs.go
diff options
context:
space:
mode:
Diffstat (limited to 'tailfs/tailfs.go')
-rw-r--r--tailfs/tailfs.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/tailfs/tailfs.go b/tailfs/tailfs.go
new file mode 100644
index 000000000..51ca2a501
--- /dev/null
+++ b/tailfs/tailfs.go
@@ -0,0 +1,18 @@
+// Copyright (c) Tailscale Inc & AUTHORS
+// SPDX-License-Identifier: BSD-3-Clause
+
+// package tailfs provides a filesystem that allows sharing folders between
+// Tailscale nodes using WebDAV.
+package tailfs
+
+import (
+ "time"
+)
+
+const (
+ // statCacheTTL causes the local WebDAV proxy to cache file metadata to
+ // avoid excessive network roundtrips. This is similar to the
+ // DirectoryCacheLifetime setting of Windows' built-in SMB client,
+ // see https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-7/ff686200(v=ws.10)
+ statCacheTTL = 10 * time.Second
+)