From 6cc92817dcfefee7d7701cfd11291bde1e187382 Mon Sep 17 00:00:00 2001 From: chrislu Date: Wed, 12 Jan 2022 01:13:19 -0800 Subject: [PATCH] add logs for request mode --- weed/filesys/dir.go | 2 +- weed/filesys/file.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {