From: David Sterba Date: Mon, 30 Nov 2015 16:27:09 +0000 (+0100) Subject: btrfs: verbose error when we find an unexpected item in sys_array X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=93a3d46780b0f207f76608078eb965cf7b83902c;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git btrfs: verbose error when we find an unexpected item in sys_array Signed-off-by: David Sterba --- diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index dc6697cfae0c..0577d7f4c442 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -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; }