From 9db53cf25693a7b13ab31426d1658f9afd9b4ffa Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 14 Oct 2018 00:18:52 -0700 Subject: [PATCH] use the configurable chunk size --- weed/filesys/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filesys/file.go b/weed/filesys/file.go index e096c7ba7..db9cb0a0f 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 = 1024 * 1024 * 16 + attr.BlockSize = uint32(file.wfs.option.ChunkSizeLimit) return nil