Lines Matching defs:mirrors
78 * Returns the number of mirrors of the LV
83 uint32_t s, mirrors;
89 mirrors = seg->area_count;
95 mirrors += lv_mirror_count(seg_lv(seg, s)) - 1;
98 return mirrors;
468 * num_removed: the requested (maximum) number of mirrors to be removed
469 * removable_pvs: if not NULL, only mirrors using PVs in this list
475 * mirror layer and merge mirrors to the original LV.
553 /* If no more mirrors, remove mirror layer */
695 /* Some mirrors are removed from the temporary mirror,
736 * When mirrors are added to already-mirrored LV, a temporary mirror layer
739 * as far as mirrors are in-sync.
972 * Remove mirrors from each segment.
973 * 'new_mirrors' is the number of mirrors after the removal. '0' for linear.
1182 * Add mirrors to "linear" or "mirror" segments
1185 uint32_t mirrors, uint32_t region_size,
1204 if (!(ah = allocate_extents(lv->vg, NULL, segtype, 1, mirrors, 0, 0,
1400 * We are unable to convert the log of inactive cluster mirrors
1458 uint32_t mirrors, uint32_t stripes, uint32_t region_size,
1484 stripes, mirrors, log_count, region_size, lv->le_count,
1516 if (!(img_lvs = alloca(sizeof(*img_lvs) * mirrors))) {
1522 if (!_create_mimage_lvs(ah, mirrors, lv, img_lvs))
1525 if (!lv_add_mirror_lvs(lv, img_lvs, mirrors,
1556 * 'mirror' is the number of mirrors to be added.
1560 uint32_t mirrors, uint32_t stripes,
1564 if (!mirrors && !log_count) {
1591 return add_mirrors_to_segments(cmd, lv, mirrors,
1594 if (!mirrors)
1597 return add_mirror_images(cmd, lv, mirrors,
1608 * 'mirror' is the number of mirrors to be removed.
1613 uint32_t mirrors, uint32_t log_count, struct dm_list *pvs,
1619 if (!mirrors && !log_count) {
1630 if (lv_mirror_count(lv) <= mirrors) {
1632 seg->area_count, mirrors);
1635 new_mirrors = lv_mirror_count(lv) - mirrors - 1;