From 529ffa5c863d7786c73c248ac9cdb53666e37f1a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 3 Aug 2026 00:53:31 -0700 Subject: [PATCH] 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. --- weed/mount/weedfs.go | 3 --- weed/mount/weedfs_rename.go | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go index 0dedcae49..99fd5deec 100644 --- a/weed/mount/weedfs.go +++ b/weed/mount/weedfs.go @@ -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 diff --git a/weed/mount/weedfs_rename.go b/weed/mount/weedfs_rename.go index 34343e0fe..995d34417 100644 --- a/weed/mount/weedfs_rename.go +++ b/weed/mount/weedfs_rename.go @@ -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 )