diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-01-25 00:32:18 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-01-25 00:32:18 -0800 |
| commit | 90e30c01704219b86ebb8132b66b6c4adcf24d09 (patch) | |
| tree | 68267bfffec9cd3f6fccb3cc10f5c94c10672163 | |
| parent | 8a42aa822176dc71795318374c359a2794bc2356 (diff) | |
| download | seaweedfs-90e30c01704219b86ebb8132b66b6c4adcf24d09.tar.xz seaweedfs-90e30c01704219b86ebb8132b66b6c4adcf24d09.zip | |
log
| -rw-r--r-- | weed/filesys/file.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/filesys/file.go b/weed/filesys/file.go index c5f75ff4f..cc0717f18 100644 --- a/weed/filesys/file.go +++ b/weed/filesys/file.go @@ -54,6 +54,7 @@ func (file *File) Attr(ctx context.Context, attr *fuse.Attr) error { attr.Size = filer2.TotalSize(file.entry.Chunks) if file.isOpen > 0 { attr.Size = file.entry.Attributes.FileSize + glog.V(4).Infof("file Attr %s, open:%v, size: %d", file.fullpath(), file.isOpen, attr.Size) } attr.Crtime = time.Unix(file.entry.Attributes.Crtime, 0) attr.Mtime = time.Unix(file.entry.Attributes.Mtime, 0) |
