diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-05-07 00:37:47 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-05-07 00:37:47 -0700 |
| commit | 4936d6c342e16edd9ee37d2b2ec2c890287670d4 (patch) | |
| tree | 8864bc211d060851a9808c2be1162a87bbe963f4 | |
| parent | cb6b1d8d41b6df61bf1c348168b700a91c327a95 (diff) | |
| download | seaweedfs-4936d6c342e16edd9ee37d2b2ec2c890287670d4.tar.xz seaweedfs-4936d6c342e16edd9ee37d2b2ec2c890287670d4.zip | |
adjusting for FUSE
| -rw-r--r-- | weed/command/mount_std.go | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index 3c39979e1..4908bdbff 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 |
