| /freebsd-14.2/sys/geom/stripe/ |
| H A D | g_stripe.c | 244 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 D | geom_vinum_create.c | 345 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 D | geom_vinum_plex.c | 162 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 D | geom_vinum_raid5.c | 601 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 D | geom_vinum_subr.c | 214 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 D | geom_vinum_share.c | 562 p->stripesize = gv_sizespec(token[j]); in gv_new_plex() 563 if (p->stripesize == 0) { in gv_new_plex()
|
| H A D | geom_vinum_var.h | 332 int stripesize; /* The stripe size of the plex. */ member
|
| /freebsd-14.2/sys/geom/nop/ |
| H A D | g_nop.c | 338 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 D | geom_stripe.c | 124 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 D | geom_util.c | 120 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 D | diskinfo.c | 90 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 D | recoverdisk.c | 430 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 D | notes | 89 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 D | geom_slice.c | 411 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 D | geom_dump.c | 66 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 D | geom_dev.c | 624 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 D | mdconfig_test.sh | 32 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 D | nop_test.sh | 199 atf_test_case stripesize cleanup 234 atf_add_test_case stripesize
|
| /freebsd-14.2/usr.sbin/bsdinstall/partedit/ |
| H A D | gpart_ops.c | 857 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 D | gvinum.c | 493 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 D | g_part.c | 376 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 D | vdev_geom.c | 957 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 D | g_uzip.c | 910 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 D | ipsreg.h | 367 u_int8_t stripesize; member
|
| /freebsd-14.2/sys/geom/bde/ |
| H A D | g_bde.c | 193 pp->stripesize = kp->zone_cont; in g_bde_create_geom()
|