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