Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

log

Chris Lu90e30c017042
diff --git a/weed/filesys/file.go b/weed/filesys/file.go
index c5f75ff4fe..cc0717f188 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)