Home
last modified time | relevance | path

Searched refs:secsz (Results 1 – 7 of 7) sorted by relevance

/dragonfly/sbin/gpt/
H A Dgpt.c54 u_int secsz; variable
346 count *= secsz; in gpt_read()
351 ofs = lba * secsz; in gpt_read()
366 count = map->map_size * secsz; in gpt_write()
367 ofs = map->map_start * secsz; in gpt_write()
489 blocks = tblsz / secsz + ((tblsz % secsz) ? 1 : 0); in gpt_gpt()
584 secsz = partinfo.media_blksize; in gpt_open()
588 if (sb.st_size % secsz) { in gpt_open()
601 if (mediasz / secsz < 6) { in gpt_open()
609 (long long)(mediasz / secsz)); in gpt_open()
[all …]
H A Dmigrate.c94 rawofs /= secsz; in migrate_disklabel()
128 le32toh(dl->d_secsize)) / secsz; in migrate_disklabel()
153 last = mediasz / secsz - 1LL; in migrate()
177 if ((uint64_t)(blocks - 1) * secsz > parts * sizeof(struct gpt_ent)) { in migrate()
178 blocks = (parts * sizeof(struct gpt_ent)) / secsz; in migrate()
179 if ((parts * sizeof(struct gpt_ent)) % secsz) in migrate()
206 gpt = map_add(1LL, 1LL, MAP_TYPE_PRI_GPT_HDR, calloc(1, secsz)); in migrate()
208 calloc(blocks, secsz)); in migrate()
214 tpg = map_add(last, 1LL, MAP_TYPE_SEC_GPT_HDR, calloc(1, secsz)); in migrate()
231 hdr->hdr_entries = htole32((blocks * secsz) / sizeof(struct gpt_ent)); in migrate()
[all …]
H A Dcreate.c82 last = mediasz / secsz - 1LL; in create()
138 if ((uint64_t)(blocks - 1) * secsz > parts * sizeof(struct gpt_ent)) { in create()
139 blocks = (parts * sizeof(struct gpt_ent)) / secsz; in create()
140 if ((parts * sizeof(struct gpt_ent)) % secsz) in create()
167 gpt = map_add(1LL, 1LL, MAP_TYPE_PRI_GPT_HDR, calloc(1, secsz)); in create()
169 calloc(blocks, secsz)); in create()
188 hdr->hdr_entries = htole32((blocks * secsz) / sizeof(struct gpt_ent)); in create()
211 calloc(1, secsz)); in create()
214 memcpy(tpg->map_data, gpt->map_data, secsz); in create()
H A Drecover.c82 last = mediasz / secsz - 1LL; in recover()
110 calloc(1, secsz)); in recover()
116 memcpy(tpg->map_data, gpt->map_data, secsz); in recover()
128 calloc(1, secsz)); in recover()
134 memcpy(gpt->map_data, tpg->map_data, secsz); in recover()
H A Dexpand.c91 last = mediasz / secsz - 1LL; in expand()
114 gpt2->map_data = calloc(1, secsz); in expand()
175 nblocks = (nblocks * secsz / (1024 * 1024)) * 1024 * 1024 / in expand()
176 secsz; in expand()
H A Ddestroy.c75 bzero(pri_hdr->map_data, secsz); in destroy()
80 bzero(sec_hdr->map_data, secsz); in destroy()
H A Dgpt.h67 extern u_int secsz;