diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-02-18 12:14:28 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-02-18 12:14:28 -0800 |
| commit | a1c7dc380683d44e59a18c2e71c9c3aa7734835f (patch) | |
| tree | dbd1925b34a68d303b560b2b54dcf0c33d3ff564 | |
| parent | ad257ae1793f0631794334532f2c2b5f849600f5 (diff) | |
| download | seaweedfs-a1c7dc380683d44e59a18c2e71c9c3aa7734835f.tar.xz seaweedfs-a1c7dc380683d44e59a18c2e71c9c3aa7734835f.zip | |
avoid changing attributes for mount directory
| -rw-r--r-- | weed/filesys/dir.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index fae289217..6d4917cb4 100644 --- a/weed/filesys/dir.go +++ b/weed/filesys/dir.go @@ -379,6 +379,10 @@ func (dir *Dir) removeFolder(ctx context.Context, req *fuse.RemoveRequest) error func (dir *Dir) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fuse.SetattrResponse) error { + if dir.attributes == nil { + return nil + } + glog.V(3).Infof("%v dir setattr %+v, fh=%d", dir.Path, req, req.Handle) if req.Valid.Mode() { dir.attributes.FileMode = uint32(req.Mode) |
