@@ -30,6 +30,7 @@
#include "print-tree.h"
#include "volumes.h"
#include "math.h"
+#include "utils.h"
struct stripe {
struct btrfs_device *dev;
@@ -1625,9 +1626,11 @@ static int read_one_chunk(struct btrfs_root *root, struct btrfs_key *key,
map->stripes[i].dev = btrfs_find_device(root, devid, uuid,
NULL);
if (!map->stripes[i].dev) {
+ char uuidbuf[BTRFS_UUID_UNPARSED_SIZE];
+ uuid_unparse(root->fs_info->fsid, uuidbuf);
map->stripes[i].dev = fill_missing_device(devid);
- printf("warning, device %llu is missing\n",
- (unsigned long long)devid);
+ printf("warning, device %llu from fs %s is missing\n",
+ (unsigned long long)devid, uuidbuf);
}
}
@@ -1720,8 +1723,10 @@ static int read_one_dev(struct btrfs_root *root,
device = btrfs_find_device(root, devid, dev_uuid, fs_uuid);
if (!device) {
- printk("warning devid %llu not found already\n",
- (unsigned long long)devid);
+ char uuidbuf[BTRFS_UUID_UNPARSED_SIZE];
+ uuid_unparse(fs_uuid, uuidbuf);
+ printk("warning devid %llu from fs %s not found already\n",
+ (unsigned long long)devid, uuidbuf);
device = kzalloc(sizeof(*device), GFP_NOFS);
if (!device)
return -ENOMEM;