Lines Matching refs:uuid

12 #include <linux/uuid.h>
33 #include "uuid-tree.h"
635 if (memcmp(device->uuid, disk_super->dev_item.uuid, BTRFS_UUID_SIZE))
644 "BTRFS: Invalid seeding and uuid-changed device detected\n");
829 .uuid = disk_super->dev_item.uuid,
864 disk_super->dev_item.uuid, path);
922 * disk with same uuid and devid.We keep the one
1011 * uuid mutex so nothing we touch in here is going to disappear.
1017 orig_dev->uuid, dev_path);
1893 write_extent_buffer(leaf, device->uuid, ptr, BTRFS_UUID_SIZE);
2351 * the devid, fsid, and uuid. This is meant to be used for ioctls that need to
2357 * uuid buffers.
2376 args->uuid = kzalloc(BTRFS_UUID_SIZE, GFP_KERNEL);
2378 if (!args->uuid || !args->fsid) {
2391 memcpy(args->uuid, disk_super->dev_item.uuid, BTRFS_UUID_SIZE);
2403 * allocate our ->uuid and ->fsid pointers, everybody else uses local variables
2408 kfree(args->uuid);
2410 args->uuid = NULL;
2592 args.uuid = dev_uuid;
4695 if (!btrfs_is_empty_uuid(root_item.uuid) ||
4702 * 1 - subvol uuid item
4703 * 1 - received_subvol uuid item
4716 if (!btrfs_is_empty_uuid(root_item.uuid)) {
4717 ret = btrfs_uuid_tree_add(trans, root_item.uuid,
4806 task = kthread_run(btrfs_uuid_scan_kthread, fs_info, "btrfs-uuid");
5604 memcpy(stripe->dev_uuid, device->uuid, BTRFS_UUID_SIZE);
6525 if (args->uuid && memcmp(device->uuid, args->uuid, BTRFS_UUID_SIZE) != 0)
6531 * Find a device specified by @devid or @uuid in the list of @fs_devices, or
6534 * If devid and uuid are both specified, the match must be exact, otherwise
6598 * @uuid: a pointer to UUID for this device. If NULL a new UUID
6607 const u64 *devid, const u8 *uuid,
6641 if (uuid)
6642 memcpy(dev->uuid, uuid, BTRFS_UUID_SIZE);
6644 generate_random_uuid(dev->uuid);
6661 u64 devid, u8 *uuid, bool error)
6664 btrfs_err_rl(fs_info, "devid %llu uuid %pU is missing",
6665 devid, uuid);
6667 btrfs_warn_rl(fs_info, "devid %llu uuid %pU is missing",
6668 devid, uuid);
6720 u64 devid, u8 *uuid)
6725 btrfs_report_missing_device(fs_info, devid, uuid, true);
6729 dev = add_missing_dev(fs_info->fs_devices, devid, uuid);
6735 btrfs_report_missing_device(fs_info, devid, uuid, false);
6752 u8 uuid[BTRFS_UUID_SIZE];
6830 read_extent_buffer(leaf, uuid, (unsigned long)
6833 args.uuid = uuid;
6837 devid, uuid);
6882 read_extent_buffer(leaf, device->uuid, ptr, BTRFS_UUID_SIZE);
6957 args.uuid = dev_uuid;