aboutsummaryrefslogtreecommitdiff
path: root/weed
diff options
context:
space:
mode:
Diffstat (limited to 'weed')
-rw-r--r--weed/command/mount_std.go2
-rw-r--r--weed/filesys/file.go1
2 files changed, 2 insertions, 1 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index ce9a998f6..8514f18af 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -175,7 +175,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
fuse.DefaultPermissions(),
fuse.MaxReadahead(1024 * 128),
fuse.AsyncRead(),
- fuse.WritebackCache(),
+ // fuse.WritebackCache(),
fuse.MaxBackground(128),
fuse.CongestionThreshold(128),
}
diff --git a/weed/filesys/file.go b/weed/filesys/file.go
index bbc5c8e21..6cf52ba60 100644
--- a/weed/filesys/file.go
+++ b/weed/filesys/file.go
@@ -96,6 +96,7 @@ func (file *File) Getxattr(ctx context.Context, req *fuse.GetxattrRequest, resp
func (file *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fs.Handle, error) {
glog.V(4).Infof("file %v open %+v", file.fullpath(), req)
+ resp.Flags |= fuse.OpenDirectIO
handle := file.wfs.AcquireHandle(file, req.Uid, req.Gid)