| Age | Commit message (Collapse) | Author |
|
go-fuse master is now github.com/hanwen/go-fuse/v3. Changes needed:
* Change the import path, also in build.bash and version.go, which
look up the go-fuse module version.
* fuse.Context is gone, and fuse.FromContext() now returns a
fuse.Caller value. Caller has the same Owner and Pid fields, so use
*fuse.Caller in place of *fuse.Context.
* fuse.Status is replaced by syscall.Errno, so ReadResult.Bytes()
returns an Errno now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Replace the RootNode.MitigatedCorruptions channel with a callback that
fsck attaches to the context of each operation via
fusefrontend.WithCorruptionReporter().
The channel was needed when fsck went through the kernel, but now that
fsck calls the node operations directly, the context is a better way:
* Each report is attributed to the operation that caused it, so fsck
no longer needs a watcher goroutine and the watchDone channel around
every call.
* reportMitigatedCorruption() no longer blocks for up to one second
(and logs "BUG: reportCorruptItem: timeout") when nobody is listening.
* A mounted filesystem has no reporter in the context, so reporting is
a no-op there.
readFileID() and doRead() now take a ctx. The write paths pass
context.Background(), as fsck never writes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
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
|