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.

adjusting for FUSE

Chris Lu4936d6c342e1
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index 3c39979e12..4908bdbffd 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -22,7 +22,21 @@ func runMount(cmd *Command, args []string) bool {
fuse.Unmount(*mountOptions.dir)
- c, err := fuse.Mount(*mountOptions.dir, fuse.LocalVolume())
+ c, err := fuse.Mount(
+ *mountOptions.dir,
+ fuse.VolumeName("SeaweedFS"),
+ fuse.FSName("SeaweedFS"),
+ fuse.NoAppleDouble(),
+ fuse.NoAppleXattr(),
+ fuse.ExclCreate(),
+ fuse.DaemonTimeout("3600"),
+ fuse.AllowOther(),
+ fuse.AllowSUID(),
+ fuse.DefaultPermissions(),
+ // fuse.MaxReadahead(1024*128), // TODO: not tested yet, possibly improving read performance
+ fuse.AsyncRead(),
+ fuse.WritebackCache(),
+ )
if err != nil {
glog.Fatal(err)
return false