diff options
author | Jakob Unterwurzacher | 2025-03-26 22:45:43 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2025-04-26 11:03:55 +0200 |
commit | ae3c859c1179498a4882b4bd69c2243aa6912332 (patch) | |
tree | 5b40f6ecc0071afc8301cb68a4a52e9cd3847d86 /internal/fusefrontend/file.go | |
parent | 7309412215551052dc4dbb6c137c568ccbd02430 (diff) |
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
Diffstat (limited to 'internal/fusefrontend/file.go')
-rw-r--r-- | internal/fusefrontend/file.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 |