| /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() 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; in g_stripe_start_fast() local 313 stripesize = sc->sc_stripesize; in g_stripe_start_fast() [all …]
|
| /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/sbin/recoverdisk/ |
| H A D | recoverdisk.c | 567 off_t stripesize; in determine_read_sizes() local 602 error = ioctl(read_fd, DIOCGSTRIPESIZE, &stripesize); in determine_read_sizes() 603 if (error < 0 || stripesize <= 0) { in determine_read_sizes() 605 } else if ((uint64_t)stripesize < small_read) { in determine_read_sizes() 607 } else if (stripesize % small_read) { in determine_read_sizes() 609 } else if (stripesize <= COMPROMISE_SIZE) { in determine_read_sizes() 610 medium_read = stripesize; in determine_read_sizes()
|
| /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 | 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()
|
| H A D | geom.h | 215 off_t stripesize; member
|
| H A D | geom_disk.c | 150 pp->stripesize = dp->d_stripesize; in g_disk_access() 746 pp->stripesize = dp->d_stripesize; in g_disk_create()
|
| /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/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() 822 if (pp->stripesize > 0 && entry->gpe_pp->stripeoffset != 0) in g_part_ctl_add() 824 "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 | 954 if (pp->stripesize && pp->stripesize > (1 << *logical_ashift) && in vdev_geom_open() 955 ISP2(pp->stripesize) && pp->stripeoffset == 0) in vdev_geom_open() 956 *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
|
| /freebsd/sys/cam/scsi/ |
| H A D | scsi_da.c | 311 u_int stripesize; member 6438 dp->stripesize = block_len << lbppbe; in dasetgeom() 6439 dp->stripeoffset = (dp->stripesize - block_len * lalba) % in dasetgeom() 6440 dp->stripesize; in dasetgeom() 6442 dp->stripesize = 4096; in dasetgeom() 6445 dp->stripesize = block_len * softc->unmap_gran; in dasetgeom() 6446 dp->stripeoffset = (dp->stripesize - block_len * in dasetgeom() 6447 softc->unmap_gran_align) % dp->stripesize; in dasetgeom() 6449 dp->stripesize = 0; in dasetgeom() 6523 softc->disk->d_stripesize = softc->params.stripesize; in dasetgeom()
|
| /freebsd/sys/geom/raid/ |
| H A D | g_raid.c | 1651 pp->stripesize = 0; in g_raid_launch_provider() 1660 pp->stripesize = disk->d_consumer->provider->stripesize; in g_raid_launch_provider() 1667 pp->stripesize *= (vol->v_disks_count - 1); in g_raid_launch_provider() 1671 pp->stripesize = vol->v_strip_size; in g_raid_launch_provider()
|
| /freebsd/sys/geom/multipath/ |
| H A D | g_multipath.c | 644 if (sc->sc_pp->stripesize == 0 && sc->sc_pp->stripeoffset == 0) { in g_multipath_add_disk() 645 sc->sc_pp->stripesize = pp->stripesize; in g_multipath_add_disk()
|
| /freebsd/sys/geom/raid3/ |
| H A D | g_raid3.c | 2358 pp->stripesize = 0; in g_raid3_launch_provider() 2363 disk->d_consumer->provider->stripesize > pp->stripesize) { in g_raid3_launch_provider() 2364 pp->stripesize = disk->d_consumer->provider->stripesize; in g_raid3_launch_provider() 2368 pp->stripesize *= sc->sc_ndisks - 1; in g_raid3_launch_provider()
|
| /freebsd/sys/geom/concat/ |
| H A D | g_concat.c | 488 pp->stripesize = dp->stripesize; in g_concat_check_and_run()
|