Lines Matching refs:uuid
243 u64 devid, u8 *uuid) in __find_device() argument
249 (!uuid || !memcmp(dev->uuid, uuid, BTRFS_UUID_SIZE))) { in __find_device()
611 disk_super->dev_item.uuid); in device_list_add()
619 disk_super->dev_item.uuid); in device_list_add()
726 orig_dev->uuid); in clone_fs_devices()
919 if (memcmp(device->uuid, disk_super->dev_item.uuid, in __btrfs_open_devices()
1622 write_extent_buffer(leaf, device->uuid, ptr, BTRFS_UUID_SIZE); in btrfs_add_device()
1779 dev_uuid = disk_super->dev_item.uuid; in btrfs_rm_device()
2063 dev_uuid = disk_super->dev_item.uuid; in btrfs_find_device_by_path()
4038 if (!btrfs_is_empty_uuid(root_item.uuid) || in btrfs_uuid_scan_kthread()
4058 if (!btrfs_is_empty_uuid(root_item.uuid)) { in btrfs_uuid_scan_kthread()
4060 root_item.uuid, in btrfs_uuid_scan_kthread()
4126 u8 *uuid, u8 type, u64 subid) in btrfs_check_uuid_tree_entry() argument
4149 if (memcmp(uuid, subvol_root->root_item.uuid, BTRFS_UUID_SIZE)) in btrfs_check_uuid_tree_entry()
4153 if (memcmp(uuid, subvol_root->root_item.received_uuid, in btrfs_check_uuid_tree_entry()
4851 memcpy(stripe->dev_uuid, device->uuid, BTRFS_UUID_SIZE); in btrfs_finish_chunk_alloc()
6103 u8 *uuid, u8 *fsid) in btrfs_find_device() argument
6113 devid, uuid); in btrfs_find_device()
6157 const u8 *uuid) in btrfs_alloc_device() argument
6182 if (uuid) in btrfs_alloc_device()
6183 memcpy(dev->uuid, uuid, BTRFS_UUID_SIZE); in btrfs_alloc_device()
6185 generate_random_uuid(dev->uuid); in btrfs_alloc_device()
6203 u8 uuid[BTRFS_UUID_SIZE]; in read_one_chunk() local
6252 read_extent_buffer(leaf, uuid, (unsigned long) in read_one_chunk()
6256 uuid, NULL); in read_one_chunk()
6264 devid, uuid); in read_one_chunk()
6270 devid, uuid); in read_one_chunk()
6304 read_extent_buffer(leaf, device->uuid, ptr, BTRFS_UUID_SIZE); in fill_device_from_item()
6980 device->uuid); in btrfs_close_one_device()