mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
avoid changing attributes for mount directory
This commit is contained in:
parent
ad257ae179
commit
a1c7dc3806
|
@ -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 {
|
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)
|
glog.V(3).Infof("%v dir setattr %+v, fh=%d", dir.Path, req, req.Handle)
|
||||||
if req.Valid.Mode() {
|
if req.Valid.Mode() {
|
||||||
dir.attributes.FileMode = uint32(req.Mode)
|
dir.attributes.FileMode = uint32(req.Mode)
|
||||||
|
|
Loading…
Reference in a new issue