From 9f4f8de9adf3115e08875a6ab4a9c51932fd3d4a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 24 May 2018 23:20:12 -0700 Subject: [PATCH] skip printout --- weed/filesys/file.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/weed/filesys/file.go b/weed/filesys/file.go index d7f0d6bc0..fa3838d3a 100644 --- a/weed/filesys/file.go +++ b/weed/filesys/file.go @@ -2,8 +2,6 @@ package filesys import ( "context" - "fmt" - "bazil.org/fuse" "bazil.org/fuse/fs" "github.com/chrislusf/seaweedfs/weed/glog" @@ -99,8 +97,9 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f glog.V(3).Infof("%v file setattr %+v", fullPath, req) if req.Valid.Size() { + glog.V(3).Infof("%v file setattr set size=%v", fullPath, req.Size) if req.Size == 0 { - fmt.Printf("truncate %v \n", fullPath) + // fmt.Printf("truncate %v \n", fullPath) file.Chunks = nil } file.attributes.FileSize = req.Size