Lines Matching +defs:label +defs:offset
203 /* Alignment of partition, and offset if first sector unusable */
219 static int s_flag; /* set id,offset,size */
469 case 'A': /* Partition alignment[/offset] */
695 daddr_t offset = ext.base;
698 offset += le32toh(ext.ptn[part - 1].mbr_parts[1].mbrp_start);
699 return offset;
779 print_part(struct mbr_sector *boot, int part, daddr_t offset)
785 print_mbr_partition(boot, part, offset, 0, 0);
804 offset + le32toh(partp->mbrp_start));
840 daddr_t offset, daddr_t exoffset, int indent)
859 start += offset;
937 /* Print a line with a label and a vis-encoded string */
939 printvis(int indent, const char *label, const char *buf, size_t size)
948 label, visbuf);
1150 daddr_t offset;
1164 for (offset = 0;; offset = le32toh(boot->mbr_parts[1].mbrp_start)) {
1169 if (read_s0(offset + ext.base, boot) == -1)
1183 offset + le32toh(boot->mbr_parts[0].mbrp_start)
1193 if (offset >= le32toh(boot->mbr_parts[1].mbrp_start))
1826 /* offset will be fixed by caller */
2025 daddr_t offset;
2041 offset = ext_offset(part);
2046 offset = 0;
2053 offset = 0;
2059 print_part(boot, upart, offset);
2078 start = offset + le32toh(partp->mbrp_start);
2084 start = offset + le32toh(partp->mbrp_start);
2086 start = offset = ptn_0_offset;
2294 offset = ext_offset(part);
2298 partp->mbrp_start = htole32( start - offset);
2394 printf("Partitions aligned to %d sector boundaries, offset %d\n\n",
2736 read_s0(daddr_t offset, struct mbr_sector *boot)
2738 const char *tabletype = offset ? "extended" : "primary";
2743 if (read_disk(offset, boot) == -1) {
2751 "no magic in sector %"PRIdaddr, tabletype, offset);
2804 daddr_t offset;
2808 * write enable label sector before write (if necessary),
2828 for (offset = 0, i = 0; i < ext.num_ptn; i++) {
2829 if (write_disk(ext.base + offset, ext.ptn + i) == -1) {
2833 offset = le32toh(ext.ptn[i].mbr_parts[1].mbrp_start);
3027 read_gpt(daddr_t offset, struct gpt_hdr *gptp)
3031 const char *tabletype = GPT_TYPE(offset);
3033 if (read_disk(offset, buf) == -1) {
3043 || gptp->hdr_lba_self != (uint64_t)offset
3052 tabletype, gptp->hdr_crc_self, offset, gptp->hdr_lba_alt);