Lines Matching refs:fsid

373 static struct btrfs_fs_devices *alloc_fs_devices(const u8 *fsid,  in alloc_fs_devices()  argument
388 if (fsid) in alloc_fs_devices()
389 memcpy(fs_devs->fsid, fsid, BTRFS_FSID_SIZE); in alloc_fs_devices()
393 else if (fsid) in alloc_fs_devices()
394 memcpy(fs_devs->metadata_uuid, fsid, BTRFS_FSID_SIZE); in alloc_fs_devices()
434 const u8 *fsid, const u8 *metadata_fsid) in find_fsid() argument
438 ASSERT(fsid); in find_fsid()
443 if (memcmp(fsid, fs_devices->fsid, BTRFS_FSID_SIZE) == 0 in find_fsid()
448 if (memcmp(fsid, fs_devices->fsid, BTRFS_FSID_SIZE) == 0) in find_fsid()
469 memcmp(disk_super->metadata_uuid, fs_devices->fsid, in find_fsid_with_metadata_uuid()
471 memcmp(fs_devices->fsid, fs_devices->metadata_uuid, in find_fsid_with_metadata_uuid()
485 fs_devices->fsid, BTRFS_FSID_SIZE) != 0 && in find_fsid_with_metadata_uuid()
492 return find_fsid(disk_super->fsid, disk_super->metadata_uuid); in find_fsid_with_metadata_uuid()
677 if (memcmp(fs_devices->metadata_uuid, fs_devices->fsid, in find_fsid_inprogress()
679 memcmp(fs_devices->metadata_uuid, disk_super->fsid, in find_fsid_inprogress()
685 return find_fsid(disk_super->fsid, NULL); in find_fsid_inprogress()
705 if (memcmp(fs_devices->metadata_uuid, fs_devices->fsid, in find_fsid_changed()
709 memcmp(fs_devices->fsid, disk_super->fsid, in find_fsid_changed()
714 if (memcmp(fs_devices->metadata_uuid, fs_devices->fsid, in find_fsid_changed()
716 memcmp(fs_devices->fsid, disk_super->metadata_uuid, in find_fsid_changed()
739 if (memcmp(fs_devices->fsid, fs_devices->metadata_uuid, in find_fsid_reverted_metadata()
741 memcmp(fs_devices->metadata_uuid, disk_super->fsid, in find_fsid_reverted_metadata()
789 fs_devices = find_fsid(disk_super->fsid, NULL); in device_list_add()
795 fs_devices = alloc_fs_devices(disk_super->fsid, in device_list_add()
798 fs_devices = alloc_fs_devices(disk_super->fsid, NULL); in device_list_add()
825 memcpy(fs_devices->fsid, disk_super->fsid, in device_list_add()
834 disk_super->fsid, BTRFS_FSID_SIZE); in device_list_add()
844 path, fs_devices->fsid); in device_list_add()
880 disk_super->fsid, devid, found_transid, path, in device_list_add()
992 fs_devices = alloc_fs_devices(orig->fsid, NULL); in clone_fs_devices()
2363 args->fsid = kzalloc(BTRFS_FSID_SIZE, GFP_KERNEL); in btrfs_get_dev_args_from_path()
2364 if (!args->uuid || !args->fsid) { in btrfs_get_dev_args_from_path()
2379 memcpy(args->fsid, disk_super->metadata_uuid, BTRFS_FSID_SIZE); in btrfs_get_dev_args_from_path()
2381 memcpy(args->fsid, disk_super->fsid, BTRFS_FSID_SIZE); in btrfs_get_dev_args_from_path()
2395 kfree(args->fsid); in btrfs_put_dev_args_from_path()
2397 args->fsid = NULL; in btrfs_put_dev_args_from_path()
2511 generate_random_uuid(fs_devices->fsid); in btrfs_setup_sprout()
2512 memcpy(fs_devices->metadata_uuid, fs_devices->fsid, BTRFS_FSID_SIZE); in btrfs_setup_sprout()
2513 memcpy(disk_super->fsid, fs_devices->fsid, BTRFS_FSID_SIZE); in btrfs_setup_sprout()
2579 args.fsid = fs_uuid; in btrfs_finish_sprout()
6932 if (args->fsid == NULL) in dev_args_match_fs_devices()
6934 if (memcmp(fs_devices->metadata_uuid, args->fsid, BTRFS_FSID_SIZE) == 0) in dev_args_match_fs_devices()
7300 u8 *fsid) in open_seed_devices() argument
7306 ASSERT(fsid); in open_seed_devices()
7310 if (!memcmp(fs_devices->fsid, fsid, BTRFS_FSID_SIZE)) in open_seed_devices()
7314 fs_devices = find_fsid(fsid, NULL); in open_seed_devices()
7319 fs_devices = alloc_fs_devices(fsid, NULL); in open_seed_devices()
7372 args.fsid = fs_uuid; in read_one_dev()