Explorar o código

btrfs: verbose error when we find an unexpected item in sys_array

Signed-off-by: David Sterba <dsterba@suse.com>
David Sterba %!s(int64=9) %!d(string=hai) anos
pai
achega
93a3d46780
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      fs/btrfs/volumes.c

+ 3 - 0
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;
 		}