Feature #12136
openfsck: snapshots: Enumerate snapshots during scan_extents
0%
Description
Optionally, issue a RADOS op to list all the snapshots for every object seen, and accumulate these into a set on the zeroth inode.
If the snapshots match a snaprealm that already exists in the metadata tree for where we will inject the inode, then we can restore these. If not, we would either have to synthesize snaprealms (perhaps not a straightforward thing to do) or at least report their existence to the user and provide an option to go delete the now-orphaned snapshot versions of file data.
It seems likely (to me: subjective) that in the latter case, the system is sufficiently damaged that users will mainly want their latest version of the file back, and probably won't trust any recovered snapshot state enough for it to be useful.