mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjusting for FUSE
This commit is contained in:
parent
cb6b1d8d41
commit
4936d6c342
|
@ -22,7 +22,21 @@ func runMount(cmd *Command, args []string) bool {
|
||||||
|
|
||||||
fuse.Unmount(*mountOptions.dir)
|
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 {
|
if err != nil {
|
||||||
glog.Fatal(err)
|
glog.Fatal(err)
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue