summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-11-30 19:27:09 +0300
committerDavid Sterba <dsterba@suse.com>2016-01-07 16:26:58 +0300
commit93a3d46780b0f207f76608078eb965cf7b83902c (patch)
treeb369bc6c1a0a8d5cf57d33b407221368df73b6ab
parentf5cdedd73fa71b74dcc42f2a11a5735d89ce7c4f (diff)
downloadlinux-93a3d46780b0f207f76608078eb965cf7b83902c.tar.xz
btrfs: verbose error when we find an unexpected item in sys_array
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/volumes.c3
1 files changed, 3 insertions, 0 deletions
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;
}