summaryrefslogtreecommitdiff
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-11-30 17:27:09 +0100
committerDavid Sterba <dsterba@suse.com>2016-01-07 14:26:58 +0100
commit93a3d46780b0f207f76608078eb965cf7b83902c (patch)
treeb369bc6c1a0a8d5cf57d33b407221368df73b6ab /fs/btrfs/volumes.c
parentf5cdedd73fa71b74dcc42f2a11a5735d89ce7c4f (diff)
btrfs: verbose error when we find an unexpected item in sys_array
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-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;
}