Lines Matching defs:layer
64 static char *_build_dlid(struct dm_pool *mem, const char *lvid, const char *layer)
69 if (!layer)
70 layer = "";
72 len = sizeof(UUID_PREFIX) + sizeof(union lvid) + strlen(layer);
76 " %s %s.", len, lvid, layer);
80 sprintf(dlid, UUID_PREFIX "%s%s%s", lvid, (*layer) ? "-" : "", layer);
85 char *build_dlid(struct dev_manager *dm, const char *lvid, const char *layer)
87 return _build_dlid(dm->mem, lvid, layer);
96 * Low level device-layer operations.
525 * Build a name for the top layer.
559 * Build a name for the top layer.
659 struct logical_volume *lv, const char *layer)
664 if (!(name = build_dm_name(dm->mem, lv->vg->name, lv->name, layer)))
667 if (!(dlid = build_dlid(dm, lv->lvid.s, layer)))
680 if (!layer && lv->major != -1 && lv->minor != -1) {
929 struct logical_volume *lv, const char *layer);
935 const char *layer)
946 layer ? "-" : "", layer ? : "");
962 if (lv_is_origin(seg->lv) && !layer) {
969 } else if (lv_is_cow(seg->lv) && !layer) {
981 if (lv_is_origin(seg->lv) && !layer) {
984 } else if (lv_is_cow(seg->lv) && !layer) {
990 if (lv_is_origin(seg->lv) && !layer)
1000 struct logical_volume *lv, const char *layer)
1011 if (!(name = build_dm_name(dm->mem, lv->vg->name, lv->name, layer)))
1014 if (!(dlid = build_dlid(dm, lv->lvid.s, layer)))
1023 log_error("_add_new_lv_to_dtree: pool alloc failed for %s %s.", lv->name, layer);
1029 if (layer || !lv_is_visible(lv))
1041 * Major/minor settings only apply to the visible layer.
1044 layer ? UINT32_C(0) : (uint32_t) lv->major,
1045 layer ? UINT32_C(0) : (uint32_t) lv->minor,
1058 if (!_add_segment_to_dtree(dm, dtree, dnode, seg, layer))
1061 if (lv_is_origin(lv) && !layer)
1063 if (lv_is_cow(lv) && !layer)
1138 char *vgname, *lvname, *layer;
1142 if (!dm_split_lvm_name(dm->mem, dm_tree_node_get_name(child), &vgname, &lvname, &layer)) {
1150 /* only top level layer has symlinks */
1151 if (*layer)
1164 char *vgname, *lvname, *layer;
1175 if (!dm_split_lvm_name(dm->mem, name, &vgname, &lvname, &layer)) {
1181 if (!*layer)