btrfs-progs: verbose error when we find an unexpected item in sys_array

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2015-11-30 17:10:20 +01:00
parent 81e43dabc8
commit 9bb3e6bc3c
1 changed files with 5 additions and 1 deletions

View File

@ -1855,7 +1855,11 @@ int btrfs_read_sys_array(struct btrfs_root *root)
if (ret)
break;
} else {
BUG();
printk(
"ERROR: unexpected item type %u in sys_array at offset %u\n",
(u32)key.type, cur_offset);
ret = -EIO;
break;
}
array_ptr += len;
sb_array_offset += len;