Add option to btrfs replace
to remove unrecoverable files instead of aborting
#932
Labels
btrfs replace
to remove unrecoverable files instead of aborting
#932
When a
btrfs replace
is unable the recover a file on a raid56 array, it will just abort:There is a formula to translate those magic numbers back to a file, for convenience I moved that to a shell script:
(assuming 4k sectors and 64k stripes)
Now instead of barfing fs internals at the user and having them figure out what that do with that information and re-start the replace job from the beginning (until the next unrecoverable error is found), it would be much better if the filesystem could automatically remove those unrecoverable files and continue with the device replace.
The text was updated successfully, but these errors were encountered: