Home | History | Annotate | Download | only in format1

Lines Matching defs:maps

50 	struct dm_hash_table *maps = dm_hash_create(32);
54 if (!maps) {
56 "extent maps.");
72 if (!dm_hash_insert(maps, ll->lv->name, lvm))
76 return maps;
79 dm_hash_destroy(maps);
84 struct dm_hash_table *maps, struct disk_list *dl)
92 if (!(lvm = dm_hash_lookup(maps, strrchr((char *)ll->lvd.lv_name, '/')
109 static int _fill_maps(struct dm_hash_table *maps, struct volume_group *vg,
123 if (!_fill_lv_array(lvms, maps, dl))
184 static int _check_maps_are_complete(struct dm_hash_table *maps)
189 for (n = dm_hash_get_first(maps); n; n = dm_hash_get_next(maps, n)) {
190 lvm = (struct lv_map *) dm_hash_get_data(maps, n);
326 static int _build_all_segments(struct cmd_context *cmd, struct dm_hash_table *maps)
331 for (n = dm_hash_get_first(maps); n; n = dm_hash_get_next(maps, n)) {
332 lvm = (struct lv_map *) dm_hash_get_data(maps, n);
345 struct dm_hash_table *maps;
350 if (!(maps = _create_lv_maps(scratch, vg))) {
351 log_error("Couldn't allocate logical volume maps.");
355 if (!_fill_maps(maps, vg, pvds)) {
356 log_error("Couldn't fill logical volume maps.");
360 if (!_check_maps_are_complete(maps) && !(vg->status & PARTIAL_VG))
363 if (!_build_all_segments(cmd, maps)) {
370 if (maps)
371 dm_hash_destroy(maps);