Btrfs: log when missing device is created
authorAnand Jain <[email protected]>
Mon, 27 Apr 2015 04:46:18 +0000 (12:46 +0800)
committerChris Mason <[email protected]>
Wed, 3 Jun 2015 02:34:34 +0000 (19:34 -0700)
Signed-off-by: Anand Jain <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/volumes.c

index 1fcbd93ca0ec365c3b7097102c1dd4f588e065b8..38d3a0f3bcdde3435f731da83b673610ba4694c3 100644 (file)
@@ -6109,6 +6109,8 @@ static int read_one_chunk(struct btrfs_root *root, struct btrfs_key *key,
                                free_extent_map(em);
                                return -EIO;
                        }
+                       btrfs_warn(root->fs_info, "devid %llu uuid %pU is missing",
+                                               devid, uuid);
                }
                map->stripes[i].dev->in_fs_metadata = 1;
        }