aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/file.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-08-15 21:09:31 -0700
committerChris Lu <chris.lu@gmail.com>2020-08-15 21:09:31 -0700
commit5d80fc2ec7b07aa6281eb7990f40552baed0df94 (patch)
tree634a0d8becd43504bf7eb5120cb68ea983bfd7d8 /weed/filesys/file.go
parente0bfd3161a5199b393d671ccb4c0a7e2ebba553d (diff)
downloadseaweedfs-5d80fc2ec7b07aa6281eb7990f40552baed0df94.tar.xz
seaweedfs-5d80fc2ec7b07aa6281eb7990f40552baed0df94.zip
adjust logs
Diffstat (limited to 'weed/filesys/file.go')
-rw-r--r--weed/filesys/file.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/weed/filesys/file.go b/weed/filesys/file.go
index 644dd0347..8db892447 100644
--- a/weed/filesys/file.go
+++ b/weed/filesys/file.go
@@ -101,7 +101,7 @@ func (file *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.Op
func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fuse.SetattrResponse) error {
- glog.V(5).Infof("%v file setattr %+v, old:%+v", file.fullpath(), req, file.entry.Attributes)
+ glog.V(5).Infof("%v file setattr %+v", file.fullpath(), req)
if err := file.maybeLoadEntry(ctx); err != nil {
return err
@@ -133,10 +133,11 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
file.entry.Chunks = chunks
file.entryViewCache = nil
file.reader = nil
- file.dirtyMetadata = true
}
file.entry.Attributes.FileSize = req.Size
+ file.dirtyMetadata = true
}
+
if req.Valid.Mode() {
file.entry.Attributes.FileMode = uint32(req.Mode)
file.dirtyMetadata = true
@@ -289,7 +290,7 @@ func (file *File) saveEntry() error {
Entry: file.entry,
}
- glog.V(1).Infof("save file entry: %v", request)
+ glog.V(4).Infof("save file entry: %v", request)
_, err := client.UpdateEntry(context.Background(), request)
if err != nil {
glog.V(0).Infof("UpdateEntry file %s/%s: %v", file.dir.FullPath(), file.Name, err)