• Home
  • Raw
  • Download

Lines Matching refs:ti

229 	struct dm_target *ti;  member
514 rs->ti->error = "Invalid flags combination"; in rs_check_for_valid_flags()
701 struct gendisk *gendisk = dm_disk(dm_table_get_md(rs->ti->table)); in rs_set_capacity()
734 static struct raid_set *raid_set_alloc(struct dm_target *ti, struct raid_type *raid_type, in raid_set_alloc() argument
741 ti->error = "Insufficient number of devices"; in raid_set_alloc()
747 ti->error = "Cannot allocate raid context"; in raid_set_alloc()
756 rs->ti = ti; in raid_set_alloc()
789 dm_put_device(rs->ti, rs->journal_dev.dev); in raid_set_free()
794 dm_put_device(rs->ti, rs->dev[i].meta_dev); in raid_set_free()
797 dm_put_device(rs->ti, rs->dev[i].data_dev); in raid_set_free()
851 r = dm_get_device(rs->ti, arg, dm_table_get_mode(rs->ti->table), in parse_dev_params()
854 rs->ti->error = "RAID metadata device lookup failure"; in parse_dev_params()
860 rs->ti->error = "Failed to allocate superblock page"; in parse_dev_params()
872 rs->ti->error = "Drive designated for rebuild not specified"; in parse_dev_params()
877 rs->ti->error = "No data device supplied with metadata device"; in parse_dev_params()
884 r = dm_get_device(rs->ti, arg, dm_table_get_mode(rs->ti->table), in parse_dev_params()
887 rs->ti->error = "RAID device lookup failure"; in parse_dev_params()
920 rs->ti->error = "Unable to rebuild drive while array is not in-sync"; in parse_dev_params()
939 unsigned long min_region_size = rs->ti->len / (1 << 21); in validate_region_size()
961 if (region_size > rs->ti->len) { in validate_region_size()
962 rs->ti->error = "Supplied region size is too large"; in validate_region_size()
969 rs->ti->error = "Supplied region size is too small"; in validate_region_size()
974 rs->ti->error = "Region size is not a power of 2"; in validate_region_size()
979 rs->ti->error = "Region size is smaller than the chunk size"; in validate_region_size()
1139 rs->ti->error = "Bad numerical argument given for chunk_size"; in parse_raid_params()
1152 rs->ti->error = "Chunk size must be a power of 2"; in parse_raid_params()
1155 rs->ti->error = "Chunk size value is too small"; in parse_raid_params()
1189 rs->ti->error = "Not enough raid parameters given"; in parse_raid_params()
1195 rs->ti->error = "Only one 'nosync' argument allowed"; in parse_raid_params()
1202 rs->ti->error = "Only one 'sync' argument allowed"; in parse_raid_params()
1209 rs->ti->error = "Only one 'raid10_use_new_sets' argument allowed"; in parse_raid_params()
1218 rs->ti->error = "Wrong number of raid parameters given"; in parse_raid_params()
1228 rs->ti->error = "Only one 'raid10_format' argument pair allowed"; in parse_raid_params()
1232 rs->ti->error = "'raid10_format' is an invalid parameter for this RAID type"; in parse_raid_params()
1237 rs->ti->error = "Invalid 'raid10_format' value given"; in parse_raid_params()
1249 rs->ti->error = "Only one raid4/5/6 set journaling device allowed"; in parse_raid_params()
1253 rs->ti->error = "'journal_dev' is an invalid parameter for this RAID type"; in parse_raid_params()
1256 r = dm_get_device(rs->ti, arg, dm_table_get_mode(rs->ti->table), in parse_raid_params()
1259 rs->ti->error = "raid4/5/6 journal device lookup failure"; in parse_raid_params()
1268 rs->ti->error = "No space for raid4/5/6 journal"; in parse_raid_params()
1281 rs->ti->error = "raid4/5/6 'journal_mode' is invalid without 'journal_dev'"; in parse_raid_params()
1285 rs->ti->error = "Only one raid4/5/6 'journal_mode' argument allowed"; in parse_raid_params()
1290 rs->ti->error = "Invalid 'journal_mode' argument"; in parse_raid_params()
1301 rs->ti->error = "Bad numerical argument given in raid params"; in parse_raid_params()
1312 rs->ti->error = "Invalid rebuild index given"; in parse_raid_params()
1317 rs->ti->error = "rebuild for this index already given"; in parse_raid_params()
1328 rs->ti->error = "write_mostly option is only valid for RAID1"; in parse_raid_params()
1333 rs->ti->error = "Invalid write_mostly index given"; in parse_raid_params()
1342 rs->ti->error = "max_write_behind option is only valid for RAID1"; in parse_raid_params()
1347 rs->ti->error = "Only one max_write_behind argument pair allowed"; in parse_raid_params()
1356 rs->ti->error = "Max write-behind limit out of range"; in parse_raid_params()
1363 rs->ti->error = "Only one daemon_sleep argument pair allowed"; in parse_raid_params()
1367 rs->ti->error = "daemon sleep period out of range"; in parse_raid_params()
1374 rs->ti->error = "Only one data_offset argument pair allowed"; in parse_raid_params()
1380 rs->ti->error = "Bogus data_offset value"; in parse_raid_params()
1387 rs->ti->error = "Only one delta_disks argument pair allowed"; in parse_raid_params()
1392 rs->ti->error = "Too many delta_disk requested"; in parse_raid_params()
1399 rs->ti->error = "Only one stripe_cache argument pair allowed"; in parse_raid_params()
1404 rs->ti->error = "Inappropriate argument: stripe_cache"; in parse_raid_params()
1409 rs->ti->error = "Bogus stripe cache entries value"; in parse_raid_params()
1415 rs->ti->error = "Only one min_recovery_rate argument pair allowed"; in parse_raid_params()
1420 rs->ti->error = "min_recovery_rate out of range"; in parse_raid_params()
1426 rs->ti->error = "Only one max_recovery_rate argument pair allowed"; in parse_raid_params()
1431 rs->ti->error = "max_recovery_rate out of range"; in parse_raid_params()
1437 rs->ti->error = "Only one region_size argument pair allowed"; in parse_raid_params()
1445 rs->ti->error = "Only one raid10_copies argument pair allowed"; in parse_raid_params()
1450 rs->ti->error = "Bad value for 'raid10_copies'"; in parse_raid_params()
1457 rs->ti->error = "Unable to parse RAID parameter"; in parse_raid_params()
1464 rs->ti->error = "sync and nosync are mutually exclusive"; in parse_raid_params()
1471 rs->ti->error = "sync/nosync and rebuild are mutually exclusive"; in parse_raid_params()
1476 rs->ti->error = "Can't set all raid1 devices to write_mostly"; in parse_raid_params()
1482 rs->ti->error = "Bogus recovery rates"; in parse_raid_params()
1494 if (dm_set_target_max_io_len(rs->ti, max_io_len)) in parse_raid_params()
1499 rs->ti->error = "Not enough devices to satisfy specification"; in parse_raid_params()
1505 rs->ti->error = "Error getting raid10 format"; in parse_raid_params()
1511 rs->ti->error = "Failed to recognize new raid10 layout"; in parse_raid_params()
1518 rs->ti->error = "RAID10 format 'near' and 'raid10_use_near_sets' are incompatible"; in parse_raid_params()
1543 rs->ti->error = "Inappropriate raid level; cannot change stripe_cache size"; in rs_set_raid456_stripe_cache()
1555 rs->ti->error = "Cannot change stripe_cache size on inactive RAID set"; in rs_set_raid456_stripe_cache()
1563 rs->ti->error = "Failed to set raid4/5/6 stripe cache size"; in rs_set_raid456_stripe_cache()
1614 rs->ti->error = "Component device(s) too small"; in _check_data_dev_sectors()
1644 rs->ti->error = "Bogus raid10 data copies or delta disks"; in rs_set_dev_and_array_sectors()
1669 rs->ti->error = "Target length not divisible by number of data devices"; in rs_set_dev_and_array_sectors()
1705 dm_table_event(rs->ti->table); in do_table_event()
1720 rs->ti->error = "Can't takeover degraded raid set"; in rs_check_takeover()
1725 rs->ti->error = "Can't takeover reshaping raid set"; in rs_check_takeover()
1864 rs->ti->error = "takeover not possible"; in rs_check_takeover()
2017 rs->ti->error = "Reshape not supported"; in rs_check_reshape()
2019 rs->ti->error = "Can't reshape degraded raid set"; in rs_check_reshape()
2021 rs->ti->error = "Convert request on recovering raid set prohibited"; in rs_check_reshape()
2023 rs->ti->error = "raid set already reshaping!"; in rs_check_reshape()
2025 rs->ti->error = "Reshaping only supported for raid1/4/5/6/10"; in rs_check_reshape()
2403 rs->ti->error = in super_init_validation()
2413 rs->ti->error = "Cannot change device positions in raid set"; in super_init_validation()
2451 rs->ti->error = "Unable to assemble array: Unknown flag(s) in compatible feature flags"; in super_validate()
2456 rs->ti->error = "Unable to assemble array: No incompatible feature flags supported yet"; in super_validate()
2503 static int analyse_superblocks(struct dm_target *ti, struct raid_set *rs) in analyse_superblocks() argument
2574 rs->ti->error = "Unable to assemble array: Invalid superblocks"; in analyse_superblocks()
2579 rs->ti->error = "Insufficient redundancy to activate array"; in analyse_superblocks()
2668 rs->ti->error = data_offset ? "No space for forward reshape" : in rs_adjust_data_offsets()
2770 rs->ti->error = "Can't reshape raid10 mirror groups"; in rs_prepare_reshape()
2797 rs->ti->error = "Called with bogus raid type"; in rs_prepare_reshape()
2897 r = rs_set_dev_and_array_sectors(rs, rs->ti->len, true); in rs_setup_reshape()
2960 struct dm_target *ti = rs->ti; in configure_discard_support() local
2986 ti->num_discard_bios = 1; in configure_discard_support()
3002 static int raid_ctr(struct dm_target *ti, unsigned int argc, char **argv) in raid_ctr() argument
3020 ti->error = "No arguments"; in raid_ctr()
3026 ti->error = "Unrecognised raid_type"; in raid_ctr()
3031 if (dm_read_arg_group(_args, &as, &num_raid_params, &ti->error)) in raid_ctr()
3038 if (dm_read_arg(_args + 1, &as_nrd, &num_raid_devs, &ti->error)) in raid_ctr()
3042 ti->error = "Invalid number of supplied raid devices"; in raid_ctr()
3046 rs = raid_set_alloc(ti, rt, num_raid_devs); in raid_ctr()
3066 r = rs_set_dev_and_array_sectors(rs, rs->ti->len, false); in raid_ctr()
3081 r = analyse_superblocks(ti, rs); in raid_ctr()
3089 ti->error = "Invalid rdev size"; in raid_ctr()
3103 ti->private = rs; in raid_ctr()
3104 ti->num_flush_bios = 1; in raid_ctr()
3119 ti->error = "'nosync' not allowed for new raid6 set"; in raid_ctr()
3132 ti->error = "Can't resize a reshaping raid set"; in raid_ctr()
3139 ti->error = "Can't takeover a reshaping raid set"; in raid_ctr()
3146 ti->error = "Can't takeover a journaled raid4/5/6 set"; in raid_ctr()
3182 ti->error = "Can't reshape a journaled raid4/5/6 set"; in raid_ctr()
3223 r = rs_set_dev_and_array_sectors(rs, rs->ti->len, false); in raid_ctr()
3253 ti->error = "Failed to run raid array"; in raid_ctr()
3260 ti->error = "Failed to start raid array"; in raid_ctr()
3268 ti->error = "Failed to set raid4/5/6 journal mode"; in raid_ctr()
3295 ti->error = "Reshape check failed"; in raid_ctr()
3316 static void raid_dtr(struct dm_target *ti) in raid_dtr() argument
3318 struct raid_set *rs = ti->private; in raid_dtr()
3326 static int raid_map(struct dm_target *ti, struct bio *bio) in raid_map() argument
3328 struct raid_set *rs = ti->private; in raid_map()
3510 static void raid_status(struct dm_target *ti, status_type_t type, in raid_status() argument
3513 struct raid_set *rs = ti->private; in raid_status()
3681 DMEMIT_TARGET_NAME_VERSION(ti->type); in raid_status()
3716 static int raid_message(struct dm_target *ti, unsigned int argc, char **argv, in raid_message() argument
3719 struct raid_set *rs = ti->private; in raid_message()
3767 static int raid_iterate_devices(struct dm_target *ti, in raid_iterate_devices() argument
3770 struct raid_set *rs = ti->private; in raid_iterate_devices()
3776 r = fn(ti, rs->dev[i].data_dev, in raid_iterate_devices()
3785 static void raid_io_hints(struct dm_target *ti, struct queue_limits *limits) in raid_io_hints() argument
3787 struct raid_set *rs = ti->private; in raid_io_hints()
3794 static void raid_postsuspend(struct dm_target *ti) in raid_postsuspend() argument
3796 struct raid_set *rs = ti->private; in raid_postsuspend()
3946 rs->ti->error = "pers->check_reshape() failed"; in rs_start_reshape()
3957 rs->ti->error = "pers->start_reshape() failed"; in rs_start_reshape()
3972 static int raid_preresume(struct dm_target *ti) in raid_preresume() argument
3975 struct raid_set *rs = ti->private; in raid_preresume()
4041 static void raid_resume(struct dm_target *ti) in raid_resume() argument
4043 struct raid_set *rs = ti->private; in raid_resume()