aboutsummaryrefslogtreecommitdiff
path: root/internal/inomap/inomap.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/inomap/inomap.go')
-rw-r--r--internal/inomap/inomap.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/inomap/inomap.go b/internal/inomap/inomap.go
index 82d50b0..bd20e0d 100644
--- a/internal/inomap/inomap.go
+++ b/internal/inomap/inomap.go
@@ -18,6 +18,8 @@ import (
"log"
"sync"
"syscall"
+
+ "github.com/rfjakob/gocryptfs/internal/tlog"
)
const (
@@ -56,7 +58,11 @@ func New() *InoMap {
}
}
+var spillWarn sync.Once
+
func (m *InoMap) spill(in QIno) (out uint64) {
+ spillWarn.Do(func() { tlog.Warn.Printf("InoMap: opening spillMap for %v", in) })
+
out, found := m.spillMap[in]
if found {
return out | spillBit