diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index f322c8e74..eac4ecf25 100644 --- a/weed/filesys/dir.go +++ b/weed/filesys/dir.go @@ -492,7 +492,7 @@ func (dir *Dir) removeFolder(req *fuse.RemoveRequest) error { func (dir *Dir) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fuse.SetattrResponse) error { - glog.V(4).Infof("%v dir setattr %+v", dir.FullPath(), req) + glog.V(4).Infof("%v dir setattr %+v mode=%d", dir.FullPath(), req, req.Mode) entry, err := dir.maybeLoadEntry() if err != nil { diff --git a/weed/filesys/file.go b/weed/filesys/file.go index d9b81469b..2ba9f6509 100644 --- a/weed/filesys/file.go +++ b/weed/filesys/file.go @@ -110,7 +110,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(4).Infof("%v file setattr %+v", file.fullpath(), req) + glog.V(4).Infof("%v file setattr %+v mode=%d", file.fullpath(), req, req.Mode) entry, err := file.maybeLoadEntry(ctx) if err != nil {