/freebsd-12-stable/sys/geom/stripe/ |
H A D | g_stripe.c | 252 u_int stripesize; local 255 stripesize = sc->sc_stripesize; 256 len = (size_t)(stripesize - (offset & (stripesize - 1))); 260 dst += len + stripesize * (sc->sc_ndisks - 1); 264 src += len + stripesize * (sc->sc_ndisks - 1); 268 ("Length < 0 (stripesize=%zu, offset=%jd, length=%jd).", 269 (size_t)stripesize, (intmax_t)offset, (intmax_t)length)); 270 if (length > stripesize) 271 len = stripesize; 310 u_int nparts = 0, stripesize; local 439 uint32_t stripesize; local 576 u_int no, stripesize; local 1047 intmax_t *stripesize; local [all...] |
/freebsd-12-stable/sys/geom/nop/ |
H A D | g_nop.c | 199 u_int secsize, u_int stripesize, u_int stripeoffset, const char *physpath) 245 if ((stripesize % pp->sectorsize) != 0) { 246 gctl_error(req, "Invalid stripesize for provider %s.", pp->name); 253 if (stripesize != 0 && stripeoffset >= stripesize) { 268 sc->sc_stripesize = stripesize; 294 newpp->stripesize = stripesize; 373 *stripesize, *stripeoffset; local 439 stripesize 197 g_nop_create(struct gctl_req *req, struct g_class *mp, struct g_provider *pp, int ioerror, u_int rfailprob, u_int wfailprob, off_t offset, off_t size, u_int secsize, u_int stripesize, u_int stripeoffset, const char *physpath) argument [all...] |
/freebsd-12-stable/lib/libgeom/ |
H A D | geom_util.c | 122 off_t stripesize; local 124 if (g_ioctl_arg(fd, DIOCGSTRIPESIZE, &stripesize) == -1) 126 return (stripesize);
|
/freebsd-12-stable/lib/geom/stripe/ |
H A D | geom_stripe.c | 64 { 's', "stripesize", GSTRIPE_STRIPESIZE, G_TYPE_NUMBER }, 67 "[-v] [-s stripesize] name prov prov ..." 82 { 's', "stripesize", GSTRIPE_STRIPESIZE, G_TYPE_NUMBER }, 85 "[-hv] [-s stripesize] name prov prov ..." 126 intmax_t stripesize; local 177 stripesize = gctl_get_intmax(req, "stripesize"); 178 if ((stripesize % secsize) != 0) { 183 md.md_stripesize = stripesize;
|
/freebsd-12-stable/sys/geom/vinum/ |
H A D | geom_vinum_create.c | 347 p->stripesize = 0; 429 p->stripesize = DEFAULT_STRIPESIZE; 432 p->stripesize = -1; 477 off_t *stripesize; local 488 stripesize = gctl_get_paraml(req, "stripesize", sizeof(*stripesize)); 490 if (stripesize == NULL) { 491 gctl_error(req, "no stripesize given"); 517 p->stripesize [all...] |
H A D | geom_vinum_plex.c | 163 stripeno = boff / p->stripesize; 177 p->stripesize; 179 stripeend = stripestart + p->stripesize; 180 *real_off = boff - (stripeno * p->stripesize) + 911 bp->bio_length = p->stripesize; 921 bp->bio_data = g_malloc(p->stripesize, M_WAITOK | M_ZERO); 973 p->synced += p->stripesize; 1030 offset += (p->stripesize * (gv_sdcount(p, 1) - 1));
|
H A D | geom_vinum_raid5.c | 605 psd = sdcount - 1 - ( boff / (p->stripesize * (sdcount - 1))) % 610 stripeoff = boff % (p->stripesize * (sdcount - 1)); 614 sd = stripeoff / p->stripesize; 625 stripeoff %= p->stripesize; 630 stripeend = stripestart + p->stripesize;
|
H A D | geom_vinum_subr.c | 215 sbuf_printf(sb, "%ds ", p->stripesize / 512); 290 /* First adjust to the stripesize. */ 291 remainder = s->size % p->stripesize; 295 "multiple of plex stripesize, taking off " 342 p->stripesize; 526 remainder = s->size % p->stripesize; 529 "multiple of plex stripesize, taking off " 1186 * starts at the same, and it's correct module stripesize, it is */ 1187 if (offset != -1 && offset % p->stripesize != 0)
|
H A D | geom_vinum_var.h | 332 int stripesize; /* The stripe size of the plex. */ member in struct:gv_plex
|
H A D | geom_vinum_init.c | 343 origlength = (sdcount - 1) * p->stripesize;
|
/freebsd-12-stable/sbin/recoverdisk/ |
H A D | recoverdisk.c | 162 off_t stripesize; local 208 error = ioctl(fdr, DIOCGSTRIPESIZE, &stripesize); 209 if (error == 0 && stripesize > sectorsize) 210 sectorsize = stripesize;
|
/freebsd-12-stable/usr.sbin/diskinfo/ |
H A D | diskinfo.c | 89 off_t mediasize, stripesize, stripeoffset; local 167 stripesize = sb.st_blksize; 208 error = ioctl(fd, DIOCGSTRIPESIZE, &stripesize); 210 stripesize = 0; 223 printf("\t%jd", (intmax_t)stripesize); 240 printf("\t%-12jd\t# stripesize\n", stripesize);
|
/freebsd-12-stable/tests/sys/geom/class/nop/ |
H A D | nop_test.sh | 200 atf_test_case stripesize cleanup 235 atf_add_test_case stripesize
|
/freebsd-12-stable/sbin/mdconfig/tests/ |
H A D | mdconfig_test.sh | 34 local stripesize=${5:-0} 38 -o match:"/dev/$md *$sectorsize *$mediasize_in_bytes *$mediasize_in_sectors *$stripesize *$stripeoffset" \
|
/freebsd-12-stable/sys/geom/ |
H A D | geom_slice.c | 414 pp->stripesize = pp2->stripesize; 416 if (pp->stripesize > 0) 417 pp->stripeoffset %= pp->stripesize;
|
H A D | geom_dump.c | 68 pp->ace, pp->error, pp->sectorsize, pp->stripesize); 225 sbuf_printf(sb, "\t <stripesize>%u</stripesize>\n", pp->stripesize);
|
H A D | geom_redboot.c | 249 u_int blksize; /* NB: flash block size stored as stripesize */ 280 blksize = cp->provider->stripesize;
|
H A D | geom_dev.c | 606 if (pp->stripesize > 0) { 608 pp->stripeoffset) % pp->stripesize; 634 *(off_t *)data = pp->stripesize;
|
/freebsd-12-stable/usr.sbin/bsdinstall/partedit/ |
H A D | gpart_ops.c | 814 intmax_t sectorsize, stripesize, offset; local 878 if ((stripesize = pp->lg_stripesize) == 0) 879 stripesize = sectorsize; 880 while (stripesize % 4096 != 0) 881 stripesize *= 2; 882 if ((offset = maxstart * sectorsize % stripesize) != 0) { 883 offset = (stripesize - offset) / sectorsize;
|
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | vdev_geom.c | 959 if (pp->stripesize > (1 << *logical_ashift) && ISP2(pp->stripesize) && 960 pp->stripesize <= (1 << SPA_MAXASHIFT) && pp->stripeoffset == 0) 961 *physical_ashift = highbit(pp->stripesize) - 1;
|
/freebsd-12-stable/sys/geom/bde/ |
H A D | g_bde.c | 190 pp->stripesize = kp->zone_cont;
|
/freebsd-12-stable/sbin/gvinum/ |
H A D | gvinum.c | 495 off_t stripesize; local 500 stripesize = 262144; 517 stripesize = gv_sizespec(argv[++i]); 531 gctl_ro_param(req, "stripesize", sizeof(off_t), &stripesize); 724 "raid5 [-fv] [-s stripesize] [-n name] drives\n" 998 warnx("usage:\traid5 [-fv] [-s stripesize] [-n name] drives\n");
|
/freebsd-12-stable/sys/geom/part/ |
H A D | g_part.c | 368 if (pp->stripesize > 0) { 372 if ((offset + pp->stripeoffset) % pp->stripesize) { 376 pp->stripesize); 506 entry->gpe_pp->stripesize = pp->stripesize; 508 if (pp->stripesize > 0) 509 entry->gpe_pp->stripeoffset %= pp->stripesize; 825 if (pp->stripesize > 0 && entry->gpe_pp->stripeoffset != 0) 827 "aligned on %u bytes\n", pp->stripesize);
|
/freebsd-12-stable/sys/dev/ips/ |
H A D | ipsreg.h | 369 u_int8_t stripesize; member in struct:__anon13301
|
/freebsd-12-stable/sys/geom/uzip/ |
H A D | g_uzip.c | 857 pp2->stripesize = pp->stripesize; 864 pp2->stripeoffset, pp2->stripesize, pp2->flags));
|