btrfs: verbose error when we find an unexpected item in sys_array
authorDavid Sterba <dsterba@suse.com>
Mon, 30 Nov 2015 16:27:09 +0000 (17:27 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jan 2016 13:26:58 +0000 (14:26 +0100)
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c

index dc6697cfae0ca62a553d304710d5bae956d29c2c..0577d7f4c442d307ad750ef7f52b6d1917dd5a37 100644 (file)
@@ -6520,6 +6520,9 @@ int btrfs_read_sys_array(struct btrfs_root *root)
                        if (ret)
                                break;
                } else {
+                       printk(KERN_ERR
+               "BTRFS: unexpected item type %u in sys_array at offset %u\n",
+                               (u32)key.type, cur_offset);
                        ret = -EIO;
                        break;
                }