update metadata only if changed

This commit is contained in:
Chris Lu 2020-08-15 19:56:24 -07:00
parent 003d48da21
commit e0bfd3161a

View file

@ -170,6 +170,10 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
return nil
}
if !file.dirtyMetadata {
return nil
}
return file.saveEntry()
}