/freebsd/sys/geom/stripe/ |
H A D | g_stripe.c | 243 off_t stripesize; in g_stripe_copy() local 246 stripesize = sc->sc_stripesize; in g_stripe_copy() 247 len = (size_t)(stripesize - (offset & (stripesize - 1))); in g_stripe_copy() 251 dst += len + stripesize * (sc->sc_ndisks - 1); in g_stripe_copy() 255 src += len + stripesize * (sc->sc_ndisks - 1); in g_stripe_copy() 259 ("Length < 0 (stripesize=%ju, offset=%ju, length=%jd).", in g_stripe_copy() 260 (uintmax_t)stripesize, (uintmax_t)offset, (intmax_t)length)); in g_stripe_copy() 261 if (length > stripesize) in g_stripe_copy() 262 len = stripesize; in g_stripe_copy() 306 off_t stripesize; g_stripe_start_fast() local 433 off_t stripesize; g_stripe_start_economic() local 568 off_t offset, start, length, nstripe, stripesize; g_stripe_start() local 1045 off_t *stripesize; g_stripe_ctl_create() local [all...] |
/freebsd/sys/geom/vinum/ |
H A D | geom_vinum_create.c | 344 p->stripesize = 0; in gv_concat() 426 p->stripesize = DEFAULT_STRIPESIZE; in gv_mirror() 429 p->stripesize = -1; in gv_mirror() 474 off_t *stripesize; in gv_raid5() local 485 stripesize = gctl_get_paraml(req, "stripesize", sizeof(*stripesize)); in gv_raid5() 487 if (stripesize == NULL) { in gv_raid5() 514 p->stripesize = *stripesize; in gv_raid5() 585 p->stripesize = 262144; in gv_stripe()
|
H A D | geom_vinum_plex.c | 161 stripeno = boff / p->stripesize; in gv_plex_offset() 175 p->stripesize; in gv_plex_offset() 177 stripeend = stripestart + p->stripesize; in gv_plex_offset() 178 *real_off = boff - (stripeno * p->stripesize) + in gv_plex_offset() 904 bp->bio_length = p->stripesize; in gv_parity_request() 914 bp->bio_data = g_malloc(p->stripesize, M_WAITOK | M_ZERO); in gv_parity_request() 966 p->synced += p->stripesize; in gv_parity_complete() 1023 offset += (p->stripesize * (gv_sdcount(p, 1) - 1)); in gv_rebuild_complete()
|
H A D | geom_vinum_raid5.c | 600 psd = sdcount - 1 - ( boff / (p->stripesize * (sdcount - 1))) % in gv_raid5_offset() 605 stripeoff = boff % (p->stripesize * (sdcount - 1)); in gv_raid5_offset() 609 sd = stripeoff / p->stripesize; in gv_raid5_offset() 620 stripeoff %= p->stripesize; in gv_raid5_offset() 625 stripeend = stripestart + p->stripesize; in gv_raid5_offset()
|
H A D | geom_vinum_subr.c | 213 sbuf_printf(sb, "%ds ", p->stripesize / 512); in gv_format_config() 289 remainder = s->size % p->stripesize; in gv_sd_to_plex() 340 p->stripesize; in gv_sd_to_plex() 524 remainder = s->size % p->stripesize; in gv_update_plex_config() 1182 if (offset != -1 && offset % p->stripesize != 0) in gv_attach_sd()
|
H A D | geom_vinum_share.c | 561 p->stripesize = gv_sizespec(token[j]); in gv_new_plex() 562 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/sys/geom/nop/ |
H A D | g_nop.c | 337 u_int wdelayprob, off_t offset, off_t size, u_int secsize, off_t stripesize, in g_nop_create() argument 385 if ((stripesize % pp->sectorsize) != 0) { in g_nop_create() 393 if (stripesize != 0 && stripeoffset >= stripesize) { in g_nop_create() 423 sc->sc_stripesize = stripesize; in g_nop_create() 455 newpp->stripesize = stripesize; in g_nop_create() 540 secsize, size, stripesize, stripeoffset, delaymsec, in g_nop_ctl_create() local 555 stripesize = 0; in g_nop_ctl_create() 649 stripesize = *val; in g_nop_ctl_create() 650 if (stripesize < 0) { in g_nop_ctl_create() 682 (off_t)stripesize, (off_t)stripeoffset, in g_nop_ctl_create()
|
/freebsd/lib/geom/stripe/ |
H A D | geom_stripe.c | 123 intmax_t stripesize; in stripe_label() local 174 stripesize = gctl_get_intmax(req, "stripesize"); in stripe_label() 175 if ((stripesize % secsize) != 0) { in stripe_label() 180 md.md_stripesize = stripesize; in stripe_label()
|
/freebsd/lib/libgeom/ |
H A D | geom_util.c | 119 off_t stripesize; in g_stripesize() local 121 if (g_ioctl_arg(fd, DIOCGSTRIPESIZE, &stripesize) == -1) in g_stripesize() 123 return (stripesize); in g_stripesize()
|
/freebsd/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/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 | 409 pp->stripesize = pp2->stripesize; in g_slice_config() 411 if (pp->stripesize > 0) in g_slice_config() 412 pp->stripeoffset %= pp->stripesize; in g_slice_config()
|
H A D | geom_dump.c | 65 pp->ace, pp->error, pp->sectorsize, (uintmax_t)pp->stripesize); in g_confdot_provider() 228 sbuf_printf(sb, "\t <stripesize>%ju</stripesize>\n", (uintmax_t)pp->stripesize); in g_conf_provider()
|
H A D | geom_dev.c | 623 if (pp->stripesize > 0) { in g_dev_ioctl() 625 pp->stripeoffset) % pp->stripesize; in g_dev_ioctl() 651 *(off_t *)data = pp->stripesize; in g_dev_ioctl()
|
/freebsd/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/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/tests/sys/geom/class/nop/ |
H A D | nop_test.sh | 199 atf_test_case stripesize cleanup 234 atf_add_test_case stripesize
|
/freebsd/usr.sbin/bsdinstall/partedit/ |
H A D | gpart_ops.c | 858 intmax_t sectorsize, stripesize, offset; in gpart_max_free() local 922 if ((stripesize = pp->lg_stripesize) == 0) in gpart_max_free() 923 stripesize = sectorsize; in gpart_max_free() 924 while (stripesize % 4096 != 0) in gpart_max_free() 925 stripesize *= 2; in gpart_max_free() 926 if ((offset = maxstart * sectorsize % stripesize) != 0) { in gpart_max_free() 927 offset = (stripesize - offset) / sectorsize; in gpart_max_free()
|
/freebsd/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/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/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | vdev_geom.c | 953 if (pp->stripesize && pp->stripesize > (1 << *logical_ashift) && in vdev_geom_open() 954 ISP2(pp->stripesize) && pp->stripeoffset == 0) in vdev_geom_open() 955 *physical_ashift = highbit(pp->stripesize) - 1; in vdev_geom_open()
|
/freebsd/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/sys/geom/bde/ |
H A D | g_bde.c |
|
/freebsd/sys/dev/ips/ |
H A D | ipsreg.h | 367 u_int8_t stripesize; member
|