Searched refs:md_chunk_size (Results 1 - 4 of 4) sorted by relevance

/freebsd-11-stable/sys/geom/virstor/
H A Dg_virstor_md.h53 uint32_t md_chunk_size; /* Chunk size in bytes */ member in struct:g_virstor_metadata
H A Dg_virstor_md.c51 bs_write_u32(&bs, md->md_chunk_size);
80 md->md_chunk_size = bs_read_u32(&bs);
H A Dg_virstor.c511 md->md_chunk_size = sc->chunk_size;
1069 if (md->md_count < 1 || md->md_chunk_size < 1 ||
1070 md->md_virsize < md->md_chunk_size) {
1112 sc->chunk_size = md->md_chunk_size;
/freebsd-11-stable/sbin/geom/class/virstor/
H A Dgeom_virstor.c250 md.md_chunk_size = gctl_get_intmax(req, "chunk_size");
253 if (md.md_virsize == 0 || md.md_chunk_size == 0) {
258 if (md.md_chunk_size % MAXPHYS != 0) {
261 size_t new_size = rounddown(md.md_chunk_size, MAXPHYS);
262 if (new_size < md.md_chunk_size)
267 md.md_chunk_size = new_size;
270 if (md.md_virsize % md.md_chunk_size != 0) {
271 off_t chunk_count = md.md_virsize / md.md_chunk_size;
272 md.md_virsize = chunk_count * md.md_chunk_size;
302 if (md.md_chunk_size
[all...]

Completed in 110 milliseconds