summaryrefslogtreecommitdiff
path: root/volumes.c
diff options
context:
space:
mode:
Diffstat (limited to 'volumes.c')
-rw-r--r--volumes.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/volumes.c b/volumes.c
index b4d489a0..492dcd2b 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;