Browse Source

avoid "fchmod failed" during cp

pull/858/head
Chris Lu 6 years ago
parent
commit
2ec6a679c2
  1. 4
      weed/filesys/file.go

4
weed/filesys/file.go

@ -105,6 +105,10 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
file.entry.Attributes.Mtime = req.Mtime.Unix()
}
if file.isOpen {
return nil
}
return file.wfs.withFilerClient(func(client filer_pb.SeaweedFilerClient) error {
request := &filer_pb.UpdateEntryRequest{

Loading…
Cancel
Save