diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-10-14 00:18:52 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-10-14 00:18:52 -0700 |
| commit | 9db53cf25693a7b13ab31426d1658f9afd9b4ffa (patch) | |
| tree | 6dc0ce9159e5329f5c2a39d56a53f85b8d85ab86 | |
| parent | ff66269b62ddffe70127bbb9835ae5e7b24e8ce7 (diff) | |
| download | seaweedfs-9db53cf25693a7b13ab31426d1658f9afd9b4ffa.tar.xz seaweedfs-9db53cf25693a7b13ab31426d1658f9afd9b4ffa.zip | |
use the configurable chunk size
| -rw-r--r-- | weed/filesys/file.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
