mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
avoid "fchmod failed" during cp
This commit is contained in:
parent
729d71fd4c
commit
2ec6a679c2
|
@ -105,6 +105,10 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
|
||||||
file.entry.Attributes.Mtime = req.Mtime.Unix()
|
file.entry.Attributes.Mtime = req.Mtime.Unix()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if file.isOpen {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
return file.wfs.withFilerClient(func(client filer_pb.SeaweedFilerClient) error {
|
return file.wfs.withFilerClient(func(client filer_pb.SeaweedFilerClient) error {
|
||||||
|
|
||||||
request := &filer_pb.UpdateEntryRequest{
|
request := &filer_pb.UpdateEntryRequest{
|
||||||
|
|
Loading…
Reference in a new issue