This bug was initially created as a copy of Bug #2224239 I am copying this bug because: When making snapshots if the Fb is being used because of the buffer is not flushed yet. Then it will defer flushing the snapcap back to MDS. And then if the file is overwrote and then a new snapshot is made then the first snapcap will be overwrote too. Fixes: https://tracker.ceph.com/issues/59343
Please specify the severity of this bug. Severity is defined here: https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.
*** This bug has been marked as a duplicate of bug 2227991 ***