mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-24 20:17:57 +00:00
btrfs-progs: image: Output error message for chunk tree build error
Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
99d6346048
commit
4dd66c7991
@ -2407,8 +2407,10 @@ static int restore_metadump(const char *input, FILE *out, int old_restore,
|
||||
|
||||
if (!multi_devices && !old_restore) {
|
||||
ret = build_chunk_tree(&mdrestore, cluster);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
error("failed to build chunk tree");
|
||||
goto out;
|
||||
}
|
||||
if (!list_empty(&mdrestore.overlapping_chunks))
|
||||
remap_overlapping_chunks(&mdrestore);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user