From ae3c859c1179498a4882b4bd69c2243aa6912332 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 26 Mar 2025 22:45:43 +0100 Subject: fusefrontend: switch to new go-fuse dir api go-fuse 2.6.0, specifically, https://github.com/hanwen/go-fuse/commit/e885cea8d4d40a5a9bb92bc3cef7193f2a316f59 introduced a new, file-based directory API while deprecating the old one. Switch to the new API. xfstests generic/035 now passes. Fixes https://github.com/hanwen/go-fuse/issues/55 --- internal/fusefrontend/file.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/fusefrontend/file.go') diff --git a/internal/fusefrontend/file.go b/internal/fusefrontend/file.go index 0e25de3..103c217 100644 --- a/internal/fusefrontend/file.go +++ b/internal/fusefrontend/file.go @@ -50,6 +50,8 @@ type File struct { lastOpCount uint64 // Parent filesystem rootNode *RootNode + // If this open file is a directory, dirHandle will be set, otherwise it's nil. + dirHandle *DirHandle } // NewFile returns a new go-fuse File instance based on an already-open file -- cgit v1.2.3