[era_restore] Ignore errors from zero_superblock.
Since it's on the error path.
This commit is contained in:
parent
99e8459be3
commit
924a996fa7
@ -45,9 +45,12 @@ namespace {
|
||||
parse_xml(*fs.input, restorer, fs.quiet);
|
||||
|
||||
} catch (std::exception &e) {
|
||||
if (metadata_touched)
|
||||
file_utils::zero_superblock(*fs.output);
|
||||
cerr << e.what() << endl;
|
||||
if (metadata_touched)
|
||||
try {
|
||||
file_utils::zero_superblock(*fs.output);
|
||||
} catch (...) {
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user