Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

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

Chris Lu529ffa5c863d
diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go
index 0dedcae497..99fd5deec4 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 34343e0fe8..995d34417a 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
)