mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-18 02:36:56 +00:00
btrfsck: don't BUG on corrupted extent records
This commit is contained in:
parent
b7ad5a8456
commit
712c23e38e
@ -2441,11 +2441,14 @@ static int process_extent_item(struct cache_tree *extent_cache,
|
||||
0);
|
||||
break;
|
||||
default:
|
||||
BUG();
|
||||
fprintf(stderr, "corrupt extent record: key %Lu %u %Lu\n",
|
||||
key.objectid, key.type, key.offset);
|
||||
goto out;
|
||||
}
|
||||
ptr += btrfs_extent_inline_ref_size(type);
|
||||
}
|
||||
WARN_ON(ptr > end);
|
||||
out:
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user