Browse Source

avoid changing attributes for mount directory

pull/858/head
Chris Lu 6 years ago
parent
commit
a1c7dc3806
  1. 4
      weed/filesys/dir.go

4
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)

Loading…
Cancel
Save