Searched refs:stripesize (Results 1 - 25 of 38) sorted by relevance

12

/freebsd-13-stable/sys/geom/stripe/
H A Dg_stripe.c258 off_t stripesize; local
261 stripesize = sc->sc_stripesize;
262 len = (size_t)(stripesize - (offset & (stripesize - 1)));
266 dst += len + stripesize * (sc->sc_ndisks - 1);
270 src += len + stripesize * (sc->sc_ndisks - 1);
274 ("Length < 0 (stripesize=%ju, offset=%ju, length=%jd).",
275 (uintmax_t)stripesize, (uintmax_t)offset, (intmax_t)length));
276 if (length > stripesize)
277 len = stripesize;
321 off_t stripesize; local
448 off_t stripesize; local
583 off_t offset, start, length, nstripe, stripesize; local
1059 off_t *stripesize; local
[all...]
/freebsd-13-stable/lib/libgeom/
H A Dgeom_util.c122 off_t stripesize; local
124 if (g_ioctl_arg(fd, DIOCGSTRIPESIZE, &stripesize) == -1)
126 return (stripesize);
/freebsd-13-stable/lib/geom/stripe/
H A Dgeom_stripe.c64 { '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-13-stable/sys/geom/vinum/
H A Dgeom_vinum_create.c348 p->stripesize = 0;
430 p->stripesize = DEFAULT_STRIPESIZE;
433 p->stripesize = -1;
478 off_t *stripesize; local
489 stripesize = gctl_get_paraml(req, "stripesize", sizeof(*stripesize));
491 if (stripesize == NULL) {
492 gctl_error(req, "no stripesize given");
518 p->stripesize
[all...]
H A Dgeom_vinum_plex.c164 stripeno = boff / p->stripesize;
178 p->stripesize;
180 stripeend = stripestart + p->stripesize;
181 *real_off = boff - (stripeno * p->stripesize) +
910 bp->bio_length = p->stripesize;
920 bp->bio_data = g_malloc(p->stripesize, M_WAITOK | M_ZERO);
972 p->synced += p->stripesize;
1029 offset += (p->stripesize * (gv_sdcount(p, 1) - 1));
H A Dgeom_vinum_raid5.c606 psd = sdcount - 1 - ( boff / (p->stripesize * (sdcount - 1))) %
611 stripeoff = boff % (p->stripesize * (sdcount - 1));
615 sd = stripeoff / p->stripesize;
626 stripeoff %= p->stripesize;
631 stripeend = stripestart + p->stripesize;
H A Dgeom_vinum_subr.c216 sbuf_printf(sb, "%ds ", p->stripesize / 512);
291 /* First adjust to the stripesize. */
292 remainder = s->size % p->stripesize;
296 "multiple of plex stripesize, taking off "
343 p->stripesize;
527 remainder = s->size % p->stripesize;
530 "multiple of plex stripesize, taking off "
1184 * starts at the same, and it's correct module stripesize, it is */
1185 if (offset != -1 && offset % p->stripesize != 0)
H A Dgeom_vinum_var.h332 int stripesize; /* The stripe size of the plex. */ member in struct:gv_plex
H A Dgeom_vinum_init.c343 origlength = (sdcount - 1) * p->stripesize;
/freebsd-13-stable/sys/geom/nop/
H A Dg_nop.c341 u_int wdelayprob, off_t offset, off_t size, u_int secsize, off_t stripesize,
389 if ((stripesize % pp->sectorsize) != 0) {
390 gctl_error(req, "Invalid stripesize for provider %s.", pp->name);
397 if (stripesize != 0 && stripeoffset >= stripesize) {
427 sc->sc_stripesize = stripesize;
459 newpp->stripesize = stripesize;
544 secsize, size, stripesize, stripeoffset, delaymsec, local
559 stripesize
338 g_nop_create(struct gctl_req *req, struct g_class *mp, struct g_provider *pp, const char *gnopname, int ioerror, u_int count_until_fail, u_int rfailprob, u_int wfailprob, u_int delaymsec, u_int rdelayprob, u_int wdelayprob, off_t offset, off_t size, u_int secsize, off_t stripesize, off_t stripeoffset, const char *physpath) argument
[all...]
/freebsd-13-stable/usr.sbin/diskinfo/
H A Ddiskinfo.c89 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-13-stable/sbin/mdconfig/tests/
H A Dmdconfig_test.sh33 local stripesize=${5:-0}
37 -o match:"/dev/$md *$sectorsize *$mediasize_in_bytes *$mediasize_in_sectors *$stripesize *$stripeoffset" \
/freebsd-13-stable/tests/sys/geom/class/nop/
H A Dnop_test.sh200 atf_test_case stripesize cleanup
235 atf_add_test_case stripesize
/freebsd-13-stable/sbin/recoverdisk/
H A Drecoverdisk.c434 off_t stripesize; local
488 error = ioctl(fdr, DIOCGSTRIPESIZE, &stripesize);
489 if (error == 0 && stripesize > sectorsize)
490 sectorsize = stripesize;
/freebsd-13-stable/sys/geom/
H A Dgeom_slice.c415 pp->stripesize = pp2->stripesize;
417 if (pp->stripesize > 0)
418 pp->stripeoffset %= pp->stripesize;
H A Dgeom_dump.c67 pp->ace, pp->error, pp->sectorsize, (uintmax_t)pp->stripesize);
230 sbuf_printf(sb, "\t <stripesize>%ju</stripesize>\n", (uintmax_t)pp->stripesize);
H A Dgeom_redboot.c249 off_t blksize; /* NB: flash block size stored as stripesize */
280 blksize = cp->provider->stripesize;
H A Dgeom_dev.c655 if (pp->stripesize > 0) {
657 pp->stripeoffset) % pp->stripesize;
683 *(off_t *)data = pp->stripesize;
/freebsd-13-stable/usr.sbin/bsdinstall/partedit/
H A Dgpart_ops.c810 intmax_t sectorsize, stripesize, offset; local
874 if ((stripesize = pp->lg_stripesize) == 0)
875 stripesize = sectorsize;
876 while (stripesize % 4096 != 0)
877 stripesize *= 2;
878 if ((offset = maxstart * sectorsize % stripesize) != 0) {
879 offset = (stripesize - offset) / sectorsize;
/freebsd-13-stable/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_geom.c953 if (pp->stripesize && pp->stripesize > (1 << *logical_ashift) &&
954 ISP2(pp->stripesize) && pp->stripesize <= (1 << ASHIFT_MAX) &&
956 *physical_ashift = highbit(pp->stripesize) - 1;
/freebsd-13-stable/sbin/gvinum/
H A Dgvinum.c495 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-13-stable/sys/geom/part/
H A Dg_part.c376 if (pp->stripesize > 0) {
380 if ((offset + pp->stripeoffset) % pp->stripesize) {
384 (uintmax_t)pp->stripesize);
505 entry->gpe_pp->stripesize = pp->stripesize;
507 if (pp->stripesize > 0)
508 entry->gpe_pp->stripeoffset %= pp->stripesize;
824 if (pp->stripesize > 0 && entry->gpe_pp->stripeoffset != 0)
826 "aligned on %ju bytes\n", (uintmax_t)pp->stripesize);
/freebsd-13-stable/sys/dev/ips/
H A Dipsreg.h369 u_int8_t stripesize; member in struct:__anon12346
/freebsd-13-stable/sys/geom/bde/
H A Dg_bde.c195 pp->stripesize = kp->zone_cont;
/freebsd-13-stable/sys/geom/uzip/
H A Dg_uzip.c912 pp2->stripesize = pp->stripesize;
921 (uintmax_t)pp2->stripeoffset, (uintmax_t)pp2->stripesize, pp2->flags));

Completed in 291 milliseconds

12