Lines Matching refs:fsid

83 static struct btrfs_fs_devices *alloc_fs_devices(const u8 *fsid)  in alloc_fs_devices()  argument
91 if (fsid) in alloc_fs_devices()
92 memcpy(fs_devs->fsid, fsid, BTRFS_FSID_SIZE); in alloc_fs_devices()
94 generate_random_uuid(fs_devs->fsid); in alloc_fs_devices()
176 static noinline struct btrfs_fs_devices *find_fsid(u8 *fsid) in find_fsid() argument
181 if (memcmp(fsid, fs_devices->fsid, BTRFS_FSID_SIZE) == 0) in find_fsid()
463 fs_devices = find_fsid(disk_super->fsid); in device_list_add()
465 fs_devices = alloc_fs_devices(disk_super->fsid); in device_list_add()
571 fs_devices = alloc_fs_devices(orig->fsid); in clone_fs_devices()
951 printk(KERN_INFO "BTRFS: device fsid %pU ", disk_super->fsid); in btrfs_scan_one_device()
1480 write_extent_buffer(leaf, root->fs_info->fsid, ptr, BTRFS_UUID_SIZE); in btrfs_add_device()
1637 disk_super->fsid); in btrfs_rm_device()
1918 disk_super->fsid); in btrfs_find_device_by_path()
2009 generate_random_uuid(fs_devices->fsid); in btrfs_prepare_sprout()
2010 memcpy(root->fs_info->fsid, fs_devices->fsid, BTRFS_FSID_SIZE); in btrfs_prepare_sprout()
2011 memcpy(disk_super->fsid, fs_devices->fsid, BTRFS_FSID_SIZE); in btrfs_prepare_sprout()
2255 root->fs_info->fsid); in btrfs_init_new_device()
5916 u8 *uuid, u8 *fsid) in btrfs_find_device() argument
5923 if (!fsid || in btrfs_find_device()
5924 !memcmp(cur_devices->fsid, fsid, BTRFS_UUID_SIZE)) { in btrfs_find_device()
6119 u8 *fsid) in open_seed_devices() argument
6128 if (!memcmp(fs_devices->fsid, fsid, BTRFS_UUID_SIZE)) in open_seed_devices()
6134 fs_devices = find_fsid(fsid); in open_seed_devices()
6139 fs_devices = alloc_fs_devices(fsid); in open_seed_devices()
6190 if (memcmp(fs_uuid, root->fs_info->fsid, BTRFS_UUID_SIZE)) { in read_one_dev()