aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-10-14 00:10:17 -0700
committerChris Lu <chris.lu@gmail.com>2018-10-14 00:10:17 -0700
commit3ddcd870983e68e24ad569127f9a989d7bc986dc (patch)
treecef8d1ddcb3a09d9d25ab58ae7bfb59798df4db8
parentab8511823383c4aeeb9e7bac7eeeb7281265bb93 (diff)
downloadseaweedfs-3ddcd870983e68e24ad569127f9a989d7bc986dc.tar.xz
seaweedfs-3ddcd870983e68e24ad569127f9a989d7bc986dc.zip
increase weed mount IO perforance
-rw-r--r--weed/filesys/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filesys/file.go b/weed/filesys/file.go
index 5f7095330..e096c7ba7 100644
--- a/weed/filesys/file.go
+++ b/weed/filesys/file.go
@@ -43,7 +43,7 @@ func (file *File) Attr(ctx context.Context, attr *fuse.Attr) error {
attr.Gid = file.entry.Attributes.Gid
attr.Uid = file.entry.Attributes.Uid
attr.Blocks = attr.Size/blockSize + 1
- attr.BlockSize = blockSize
+ attr.BlockSize = 1024 * 1024 * 16
return nil