Home
last modified time | relevance | path

Searched refs:md_virsize (Results 1 – 4 of 4) sorted by relevance

/freebsd/lib/geom/virstor/
H A Dgeom_virstor.c189 md.md_virsize = (off_t)gctl_get_intmax(req, "vir_size"); in virstor_label()
193 if (md.md_virsize == 0 || md.md_chunk_size == 0) { in virstor_label()
229 if (md.md_virsize % md.md_chunk_size != 0) { in virstor_label()
230 off_t chunk_count = md.md_virsize / md.md_chunk_size; in virstor_label()
231 md.md_virsize = chunk_count * md.md_chunk_size; in virstor_label()
235 (size_t)(md.md_virsize / (1024 * 1024))); in virstor_label()
238 total_chunks = md.md_virsize / md.md_chunk_size; in virstor_label()
240 assert(md.md_virsize % md.md_chunk_size == 0); in virstor_label()
246 md.md_virsize = (off_t)total_chunks * (off_t)md.md_chunk_size; in virstor_label()
251 (uintmax_t)(md.md_virsize / (1024 * 1024)), add_chunks); in virstor_label()
[all …]
/freebsd/sys/geom/virstor/
H A Dg_virstor_md.c49 bs_write_u64(&bs, md->md_virsize); in virstor_metadata_encode()
77 md->md_virsize = bs_read_u64(&bs); in virstor_metadata_decode()
H A Dg_virstor_md.h51 uint64_t md_virsize; /* Virtual device's size */ member
H A Dg_virstor.c497 md->md_virsize = sc->virsize; in fill_metadata()
1060 md->md_virsize < md->md_chunk_size) { in create_virstor_geom()
1103 sc->virsize = md->md_virsize; in create_virstor_geom()