From: David Sterba Date: Mon, 30 Nov 2015 16:10:20 +0000 (+0100) Subject: btrfs-progs: verbose error when we find an unexpected item in sys_array X-Git-Tag: upstream/4.16.1~1838 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9bb3e6bc3c6cecd285826c7ee00488bd3d9e372f;p=platform%2Fupstream%2Fbtrfs-progs.git btrfs-progs: verbose error when we find an unexpected item in sys_array Signed-off-by: David Sterba --- diff --git a/volumes.c b/volumes.c index b4d489a..492dcd2 100644 --- a/volumes.c +++ b/volumes.c @@ -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;