aboutsummaryrefslogtreecommitdiff
path: root/tests/test_helpers/mount_unmount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2026-10-22 20:50:44 +0200
committerJakob Unterwurzacher2026-10-22 20:51:10 +0200
commitc30f9889e6e6bdef5ae4e6b36cace286867c603a (patch)
tree0dbac188982b7738d884b39a435e65cae6443a8c /tests/test_helpers/mount_unmount.go
parent09d34d16ab35f559e3dd80b6cbfffd3a2d5534be (diff)
tests: allow one fd for go-fuse splicing
Latest go-fuse (see next commit) uses one fd internally for splicing.
Diffstat (limited to 'tests/test_helpers/mount_unmount.go')
-rw-r--r--tests/test_helpers/mount_unmount.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_helpers/mount_unmount.go b/tests/test_helpers/mount_unmount.go
index 475dd1c..8827f12 100644
--- a/tests/test_helpers/mount_unmount.go
+++ b/tests/test_helpers/mount_unmount.go
@@ -15,9 +15,9 @@ import (
)
// gocryptfs may hold up to maxCacheFds open for caching
-// Keep in sync with fusefrontend.dirCacheSize
+// Keep in sync with fusefrontend.dirCacheSize. Plus one for go-fuse (splice fd).
// TODO: How to share this constant without causing an import cycle?!
-const maxCacheFds = 20
+const maxCacheFds = 20 + 1
// Indexed by mountpoint. Initialized in doInit().
var MountInfo map[string]mountInfo