/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/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()
|
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() 740 pp->stripesize = dp->d_stripesize; in g_disk_create()
|
/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/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
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_da.c | 307 u_int stripesize; member 6216 dp->stripesize = block_len << lbppbe; in dasetgeom() 6217 dp->stripeoffset = (dp->stripesize - block_len * lalba) % in dasetgeom() 6218 dp->stripesize; in dasetgeom() 6220 dp->stripesize = 4096; in dasetgeom() 6223 dp->stripesize = block_len * softc->unmap_gran; in dasetgeom() 6224 dp->stripeoffset = (dp->stripesize - block_len * in dasetgeom() 6225 softc->unmap_gran_align) % dp->stripesize; in dasetgeom() 6227 dp->stripesize = 0; in dasetgeom() 6300 softc->disk->d_stripesize = softc->params.stripesize; in dasetgeom()
|
/freebsd/sys/geom/raid/ |
H A D | g_raid.c | 1653 pp->stripesize = 0; in g_raid_launch_provider() 1662 pp->stripesize = disk->d_consumer->provider->stripesize; in g_raid_launch_provider() 1669 pp->stripesize *= (vol->v_disks_count - 1); in g_raid_launch_provider() 1673 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()
|