mount: drop the unused go-fuse fs package dependency (#10534)

WFS embedded fs.Inode but never used any of its methods, and the only
other reference was RENAME_EXCHANGE, a constant sitting next to three
literals. Removing both drops fs and five internal packages from the
mount build graph.
This commit is contained in:
Chris Lu
2026-08-03 00:53:31 -07:00
committed by GitHub
parent 813a4b0711
commit 529ffa5c86
2 changed files with 1 additions and 5 deletions
-3
View File
@@ -31,8 +31,6 @@ import (
"github.com/seaweedfs/seaweedfs/weed/util/grace"
"github.com/seaweedfs/seaweedfs/weed/util/version"
"github.com/seaweedfs/seaweedfs/weed/wdclient"
"github.com/seaweedfs/go-fuse/v2/fs"
)
type Option struct {
@@ -136,7 +134,6 @@ type WFS struct {
// follow https://github.com/hanwen/go-fuse/blob/master/fuse/api.go
fuse.RawFileSystem
mount_pb.UnimplementedSeaweedMountServer
fs.Inode
option *Option
metaCache *meta_cache.MetaCache
stats statsCache
+1 -2
View File
@@ -8,7 +8,6 @@ import (
"strings"
"syscall"
"github.com/seaweedfs/go-fuse/v2/fs"
"github.com/seaweedfs/go-fuse/v2/fuse"
"github.com/seaweedfs/seaweedfs/weed/cluster/lock_manager"
"github.com/seaweedfs/seaweedfs/weed/glog"
@@ -160,7 +159,7 @@ renameat2()
const (
RenameEmptyFlag = 0
RenameNoReplace = 1
RenameExchange = fs.RENAME_EXCHANGE
RenameExchange = 2
RenameWhiteout = 3
)