Searched refs:gpt_size (Results 1 – 2 of 2) sorted by relevance
| /netbsd/src/sbin/gpt/ |
| D | resizedisk.c | 88 off_t last, oldloc, newloc, lastdata, gpt_size; in resizedisk() local 130 gpt_size = gpt->tbl->map_size; in resizedisk() 153 if (sector - gpt_size <= lastdata) { in resizedisk() 159 if (last - gpt_size <= lastdata) { in resizedisk() 175 gpt->lbt->map_start = newloc - gpt_size; in resizedisk() 187 gpt->lbt = map_add(gpt, newloc - gpt_size, gpt_size, in resizedisk()
|
| D | restore.c | 129 u_int gpt_size __unused, u_int entries) in restore_ent() 179 unsigned int i, gpt_size; in restore() local 238 gpt_size = (u_int)(entries * sizeof(struct gpt_ent) / gpt->secsz); in restore() 239 if (gpt_size * sizeof(struct gpt_ent) % gpt->secsz) in restore() 240 gpt_size++; in restore() 247 firstdata = gpt_size + 2; /* PMBR and GPT header */ in restore() 248 lastdata = last - gpt_size - 1; /* alt. GPT table and header */ in restore() 276 if ((secbuf = calloc(gpt_size + 1, gpt->secsz)) == NULL) { in restore() 330 if (restore_ent(gpt, gpt_dict, secbuf, gpt_size, entries) == -1) in restore() 335 size_t len = gpt_size * gpt->secsz; in restore()
|