From 1bc1db620b061aabf59469a5eb4fb60e3e1701a3 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 31 Jul 2021 13:24:25 +0200 Subject: fusefrontend: -sharedstorage: present stable inode numbers Use the Gen field (inode generation) to distinguish hard links while passing the real inode numbers to userspace. Fixes https://github.com/rfjakob/gocryptfs/issues/584 --- internal/inomap/inomap.go | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'internal/inomap') diff --git a/internal/inomap/inomap.go b/internal/inomap/inomap.go index 0977a46..82d50b0 100644 --- a/internal/inomap/inomap.go +++ b/internal/inomap/inomap.go @@ -104,14 +104,3 @@ func (m *InoMap) TranslateStat(st *syscall.Stat_t) { in := QInoFromStat(st) st.Ino = m.Translate(in) } - -type TranslateStater interface { - TranslateStat(st *syscall.Stat_t) -} - -// TranslateStatZero always sets st.Ino to zero. Used for `-sharedstorage`. -type TranslateStatZero struct{} - -func (z TranslateStatZero) TranslateStat(st *syscall.Stat_t) { - st.Ino = 0 -} -- cgit v1.2.3