Browse Source

use the configurable chunk size

pull/753/head
Chris Lu 6 years ago
parent
commit
9db53cf256
  1. 2
      weed/filesys/file.go

2
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.Gid = file.entry.Attributes.Gid
attr.Uid = file.entry.Attributes.Uid attr.Uid = file.entry.Attributes.Uid
attr.Blocks = attr.Size/blockSize + 1 attr.Blocks = attr.Size/blockSize + 1
attr.BlockSize = 1024 * 1024 * 16
attr.BlockSize = uint32(file.wfs.option.ChunkSizeLimit)
return nil return nil

Loading…
Cancel
Save