Lines Matching +defs:label +defs:offset
21 #include "label.h"
40 static int _text_write(struct label *label, void *buf)
52 /* FIXME Move to where label is created */
53 strncpy(label->type, LVM2_LABEL, sizeof(label->type));
55 strncpy((char *)lh->type, label->type, sizeof(label->type));
58 info = (struct lvmcache_info *) label->info;
71 pvh_dlocn_xl->offset = xlate64(da->disk_locn.offset);
77 pvh_dlocn_xl->offset = xlate64(UINT64_C(0));
88 pvh_dlocn_xl->offset = xlate64(mdac->area.start);
94 pvh_dlocn_xl->offset = xlate64(UINT64_C(0));
98 if (xlate64(pvhdr->disk_areas_xl[0].offset) ||
107 if (!xlate64(pvhdr->disk_areas_xl[mda1].offset) &&
110 else if (!xlate64(pvhdr->disk_areas_xl[mda2].offset) &&
114 log_debug("%s: Preparing PV label header %s size %" PRIu64 " with"
121 (da1 > -1) ? xlate64(pvhdr->disk_areas_xl[da1].offset) >> SECTOR_SHIFT : 0,
128 mda1 ? xlate64(pvhdr->disk_areas_xl[mda1].offset) >> SECTOR_SHIFT : 0,
135 mda2 ? xlate64(pvhdr->disk_areas_xl[mda2].offset) >> SECTOR_SHIFT : 0,
142 log_error("Internal error: %s label header currently requires "
167 dal->disk_locn.offset = start;
245 struct label *label)
247 strncpy(label->type, LVM2_LABEL, sizeof(label->type));
253 struct label **label)
259 uint64_t offset;
273 *label = info->label;
287 while ((offset = xlate64(dlocn_xl->offset))) {
288 add_da(NULL, &info->das, offset,
295 while ((offset = xlate64(dlocn_xl->offset))) {
296 add_mda(info->fmt, NULL, &info->mdas, dev, offset,
318 struct label *label)
320 struct lvmcache_info *info = (struct lvmcache_info *) label->info;