Btrfs: log when missing device is created
authorAnand Jain <Anand.Jain@oracle.com>
Mon, 27 Apr 2015 04:46:18 +0000 (12:46 +0800)
committerChris Mason <clm@fb.com>
Wed, 3 Jun 2015 02:34:34 +0000 (19:34 -0700)
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
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;
        }