Home
last modified time | relevance | path

Searched refs:stripesize (Results 1 – 25 of 39) sorted by relevance

12

/freebsd-14.2/sys/geom/stripe/
H A Dg_stripe.c244 off_t stripesize; in g_stripe_copy() local
248 len = (size_t)(stripesize - (offset & (stripesize - 1))); in g_stripe_copy()
263 len = stripesize; in g_stripe_copy()
307 off_t stripesize; in g_stripe_start_fast() local
337 for (no++; length > 0; no++, length -= stripesize, addr += stripesize) { in g_stripe_start_fast()
340 offset += stripesize; in g_stripe_start_fast()
434 off_t stripesize; in g_stripe_start_economic() local
474 offset += stripesize; in g_stripe_start_economic()
505 addr += stripesize; in g_stripe_start_economic()
1065 off_t *stripesize; in g_stripe_ctl_create() local
[all …]
/freebsd-14.2/sys/geom/vinum/
H A Dgeom_vinum_create.c345 p->stripesize = 0; in gv_concat()
427 p->stripesize = DEFAULT_STRIPESIZE; in gv_mirror()
430 p->stripesize = -1; in gv_mirror()
475 off_t *stripesize; in gv_raid5() local
486 stripesize = gctl_get_paraml(req, "stripesize", sizeof(*stripesize)); in gv_raid5()
488 if (stripesize == NULL) { in gv_raid5()
515 p->stripesize = *stripesize; in gv_raid5()
586 p->stripesize = 262144; in gv_stripe()
H A Dgeom_vinum_plex.c162 stripeno = boff / p->stripesize; in gv_plex_offset()
176 p->stripesize; in gv_plex_offset()
178 stripeend = stripestart + p->stripesize; in gv_plex_offset()
179 *real_off = boff - (stripeno * p->stripesize) + in gv_plex_offset()
905 bp->bio_length = p->stripesize; in gv_parity_request()
915 bp->bio_data = g_malloc(p->stripesize, M_WAITOK | M_ZERO); in gv_parity_request()
967 p->synced += p->stripesize; in gv_parity_complete()
1024 offset += (p->stripesize * (gv_sdcount(p, 1) - 1)); in gv_rebuild_complete()
H A Dgeom_vinum_raid5.c601 psd = sdcount - 1 - ( boff / (p->stripesize * (sdcount - 1))) % in gv_raid5_offset()
606 stripeoff = boff % (p->stripesize * (sdcount - 1)); in gv_raid5_offset()
610 sd = stripeoff / p->stripesize; in gv_raid5_offset()
621 stripeoff %= p->stripesize; in gv_raid5_offset()
626 stripeend = stripestart + p->stripesize; in gv_raid5_offset()
H A Dgeom_vinum_subr.c214 sbuf_printf(sb, "%ds ", p->stripesize / 512); in gv_format_config()
290 remainder = s->size % p->stripesize; in gv_sd_to_plex()
341 p->stripesize; in gv_sd_to_plex()
525 remainder = s->size % p->stripesize; in gv_update_plex_config()
1183 if (offset != -1 && offset % p->stripesize != 0) in gv_attach_sd()
H A Dgeom_vinum_share.c562 p->stripesize = gv_sizespec(token[j]); in gv_new_plex()
563 if (p->stripesize == 0) { in gv_new_plex()
H A Dgeom_vinum_var.h332 int stripesize; /* The stripe size of the plex. */ member
/freebsd-14.2/sys/geom/nop/
H A Dg_nop.c338 u_int wdelayprob, off_t offset, off_t size, u_int secsize, off_t stripesize, in g_nop_create() argument
386 if ((stripesize % pp->sectorsize) != 0) { in g_nop_create()
394 if (stripesize != 0 && stripeoffset >= stripesize) { in g_nop_create()
424 sc->sc_stripesize = stripesize; in g_nop_create()
456 newpp->stripesize = stripesize; in g_nop_create()
541 secsize, size, stripesize, stripeoffset, delaymsec, in g_nop_ctl_create() local
556 stripesize = 0; in g_nop_ctl_create()
650 stripesize = *val; in g_nop_ctl_create()
651 if (stripesize < 0) { in g_nop_ctl_create()
683 (off_t)stripesize, (off_t)stripeoffset, in g_nop_ctl_create()
/freebsd-14.2/lib/geom/stripe/
H A Dgeom_stripe.c124 intmax_t stripesize; in stripe_label() local
175 stripesize = gctl_get_intmax(req, "stripesize"); in stripe_label()
176 if ((stripesize % secsize) != 0) { in stripe_label()
181 md.md_stripesize = stripesize; in stripe_label()
/freebsd-14.2/lib/libgeom/
H A Dgeom_util.c120 off_t stripesize; in g_stripesize() local
122 if (g_ioctl_arg(fd, DIOCGSTRIPESIZE, &stripesize) == -1) in g_stripesize()
124 return (stripesize); in g_stripesize()
/freebsd-14.2/usr.sbin/diskinfo/
H A Ddiskinfo.c90 off_t mediasize, stripesize, stripeoffset; in main() local
171 stripesize = sb.st_blksize; in main()
215 error = ioctl(fd, DIOCGSTRIPESIZE, &stripesize); in main()
217 stripesize = 0; in main()
230 printf("\t%jd", (intmax_t)stripesize); in main()
247 printf("\t%-12jd\t# stripesize\n", stripesize); in main()
/freebsd-14.2/sbin/recoverdisk/
H A Drecoverdisk.c430 off_t stripesize; in main() local
484 error = ioctl(fdr, DIOCGSTRIPESIZE, &stripesize); in main()
485 if (error == 0 && stripesize > sectorsize) in main()
486 sectorsize = stripesize; in main()
/freebsd-14.2/sys/geom/
H A Dnotes89 maxsize, stripesize and stripeoffset
97 stripesize is the width of any natural request boundaries for the
109 Then it will have stripesize = 64k and stripeoffset = 0.
112 then this slice will have: stripesize = 64k, stripeoffset = 63 * sectorsize.
H A Dgeom_slice.c411 pp->stripesize = pp2->stripesize; in g_slice_config()
413 if (pp->stripesize > 0) in g_slice_config()
414 pp->stripeoffset %= pp->stripesize; in g_slice_config()
H A Dgeom_dump.c66 pp->ace, pp->error, pp->sectorsize, (uintmax_t)pp->stripesize); in g_confdot_provider()
229 sbuf_printf(sb, "\t <stripesize>%ju</stripesize>\n", (uintmax_t)pp->stripesize); in g_conf_provider()
H A Dgeom_dev.c624 if (pp->stripesize > 0) { in g_dev_ioctl()
626 pp->stripeoffset) % pp->stripesize; in g_dev_ioctl()
652 *(off_t *)data = pp->stripesize; in g_dev_ioctl()
/freebsd-14.2/sbin/mdconfig/tests/
H A Dmdconfig_test.sh32 local stripesize=${5:-0}
36 …-o match:"/dev/$md *$sectorsize *$mediasize_in_bytes *$mediasize_in_sectors *$stripesize *$stripeo…
/freebsd-14.2/tests/sys/geom/class/nop/
H A Dnop_test.sh199 atf_test_case stripesize cleanup
234 atf_add_test_case stripesize
/freebsd-14.2/usr.sbin/bsdinstall/partedit/
H A Dgpart_ops.c857 intmax_t sectorsize, stripesize, offset; in gpart_max_free() local
921 if ((stripesize = pp->lg_stripesize) == 0) in gpart_max_free()
922 stripesize = sectorsize; in gpart_max_free()
923 while (stripesize % 4096 != 0) in gpart_max_free()
924 stripesize *= 2; in gpart_max_free()
925 if ((offset = maxstart * sectorsize % stripesize) != 0) { in gpart_max_free()
926 offset = (stripesize - offset) / sectorsize; in gpart_max_free()
/freebsd-14.2/sbin/gvinum/
H A Dgvinum.c493 off_t stripesize; in create_volume() local
498 stripesize = 262144; in create_volume()
515 stripesize = gv_sizespec(argv[++i]); in create_volume()
529 gctl_ro_param(req, "stripesize", sizeof(off_t), &stripesize); in create_volume()
/freebsd-14.2/sys/geom/part/
H A Dg_part.c376 if (pp->stripesize > 0) { in g_part_check_integrity()
380 if ((offset + pp->stripeoffset) % pp->stripesize) { in g_part_check_integrity()
384 (uintmax_t)pp->stripesize); in g_part_check_integrity()
505 entry->gpe_pp->stripesize = pp->stripesize; in g_part_new_provider()
507 if (pp->stripesize > 0) in g_part_new_provider()
508 entry->gpe_pp->stripeoffset %= pp->stripesize; in g_part_new_provider()
824 if (pp->stripesize > 0 && entry->gpe_pp->stripeoffset != 0) in g_part_ctl_add()
826 "aligned on %ju bytes\n", (uintmax_t)pp->stripesize); in g_part_ctl_add()
/freebsd-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_geom.c957 if (pp->stripesize && pp->stripesize > (1 << *logical_ashift) && in vdev_geom_open()
958 ISP2(pp->stripesize) && pp->stripeoffset == 0) in vdev_geom_open()
959 *physical_ashift = highbit(pp->stripesize) - 1; in vdev_geom_open()
/freebsd-14.2/sys/geom/uzip/
H A Dg_uzip.c910 pp2->stripesize = pp->stripesize; in g_uzip_taste()
919 (uintmax_t)pp2->stripeoffset, (uintmax_t)pp2->stripesize, pp2->flags)); in g_uzip_taste()
/freebsd-14.2/sys/dev/ips/
H A Dipsreg.h367 u_int8_t stripesize; member
/freebsd-14.2/sys/geom/bde/
H A Dg_bde.c193 pp->stripesize = kp->zone_cont; in g_bde_create_geom()

12