Searched refs:ndisks (Results 1 - 18 of 18) sorted by relevance

/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/refreserv/
H A Drefreserv_raidz.ksh93 for ndisks in $((parity * 2)) $((parity * 2 + 1)); do
94 typeset -a disks=(${alldisks[0..$((ndisks - 1))]})
96 if (( ${#disks[@]} < ndisks )); then
97 log_note "Too few disks to test $raid-$ndisks"
105 log_note "Testing $raid-$ndisks volblocksize=$vbs"
121 log_note "$raid-$ndisks refreservation $refres" \
H A Drefreserv_multi_raidz.ksh93 for ndisks in $((parity * 2)) $((parity * 2 + 1)); do
94 typeset -a disks=(${alldisks[0..$((ndisks - 1))]})
96 if (( ${#disks[@]} < ndisks )); then
97 log_note "Too few disks to test $raid-$ndisks"
101 typeset -A sizes["$raid"]["$ndisks"]
107 log_note "Gathering refreservation for $raid-$ndisks" \
116 sizes["$raid"]["$ndisks"]["$vbs"]=$refres
/freebsd-current/tools/regression/zfs/
H A Dmisc.sh267 if [ -z "${ndisks}" ]; then
270 start=${ndisks}
272 ndisks=$((start+$1))
273 n=$((ndisks-$start))
288 for i in `nums $ndisks 0`; do
/freebsd-current/usr.sbin/bhyveload/
H A Dbhyveload.c104 static int ndisks; variable
331 if (unit < 0 || unit >= ndisks)
346 if (unit < 0 || unit >= ndisks)
360 if (unit < 0 || unit >= ndisks)
721 if (ndisks >= NDISKS)
728 disk_fd[ndisks] = fd;
729 ndisks++;
938 func(&cb, NULL, USERBOOT_VERSION_5, ndisks);
/freebsd-current/stand/userboot/userboot/
H A Dmain.c147 loader_main(struct loader_callbacks *cb, void *arg, int version, int ndisks) argument
158 userboot_disk_maxunit = ndisks;
/freebsd-current/sbin/fsck/
H A Dpreen.c70 static int nrun = 0, ndisks = 0; variable
207 ndisks--;
274 ndisks++;
/freebsd-current/usr.sbin/bsdinstall/scripts/
H A Dzfsboot568 local vardisk ndisks onoff selections vdev_choice breakout device
638 f_count ndisks $ZFSBOOT_DISKS
639 [ $ndisks -ge $want_disks ] && break # to success
645 $ndisks $want_disks
649 "$ZFSBOOT_VDEV_TYPE" $ndisks $want_disks ||
709 f_count ndisks $ZFSBOOT_DISKS
712 [ $(( $ndisks % 2 )) -ne 0 ]; then
716 $ndisks $(( $ndisks % 2 ))
720 "$ZFSBOOT_VDEV_TYPE" $ndisks ||
[all...]
/freebsd-current/usr.sbin/mptutil/
H A Dmpt_config.c137 int ndisks, int *index)
151 for (i = 0; i < ndisks; i++) {
163 for (i = 0; i < ndisks; i++) {
1089 int error, fd, i, ndisks; local
1104 error = mpt_fetch_disks(fd, &ndisks, &disks);
1110 if (mpt_lookup_standalone_disk(av[1], disks, ndisks, &i) < 0) {
136 mpt_lookup_standalone_disk(const char *name, struct mpt_standalone_disk *disks, int ndisks, int *index) argument
H A Dmpt_cam.c388 mpt_fetch_disks(int fd, int *ndisks, struct mpt_standalone_disk **disksp) argument
462 *ndisks = 0;
506 *ndisks = count;
H A Dmptutil.h122 int mpt_fetch_disks(int fd, int *ndisks,
/freebsd-current/usr.sbin/sesutil/
H A Dsesutil.c182 size_t len, i, ndisks; local
228 ndisks = 0;
272 ndisks++;
309 ndisks++;
318 if (ndisks == 0 && all == false) {
/freebsd-current/sys/geom/raid3/
H A Dg_raid3.c398 u_int n, ndisks; local
402 for (n = ndisks = 0; n < sc->sc_ndisks; n++) {
407 ndisks++;
409 return (ndisks);
1804 u_int n, ndisks; local
1807 ndisks = 0;
1824 ndisks = sc->sc_ndisks;
1827 ndisks = sc->sc_ndisks - 1;
1855 ndisks = sc->sc_ndisks;
1858 for (n = 0; n < ndisks;
2511 u_int n, ndirty, ndisks, genid, syncid; local
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Ddraid.c498 uint64_t ndisks = children - nspares; local
520 uint64_t groupstart = (j * groupwidth) % ndisks;
523 uint64_t groupidx = (groupstart + k) % ndisks;
540 uint64_t groupidx = (groupstart + k) % ndisks;
/freebsd-current/sys/geom/mirror/
H A Dg_mirror.c1649 u_int ndisks; local
1655 ndisks = g_mirror_ndisks(sc, G_MIRROR_DISK_STATE_ACTIVE);
1656 slice = bp->bio_length / ndisks;
2437 u_int dirty, ndisks; local
2475 DETECT_MISMATCH(ndisks, "md_all");
2500 ndisks = g_mirror_ndisks(sc, -1);
2501 if ((force && ndisks > 0) ||
2502 (g_launch_mirror_before_timeout && ndisks == sc->sc_ndisks)) {
2504 } else if (ndisks == 0) {
2528 ndisks
[all...]
/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Dvdev_draid.c917 * of the number of data drives (ndisks) in order to guarantee
925 uint64_t ndisks = vdc->vdc_ndisks; local
932 uint64_t groupstart = (group * groupwidth) % ndisks;
933 ASSERT3U(groupstart + groupwidth, <=, ndisks + groupstart);
944 * - each permutation has (groupwidth * ngroups) / ndisks rows
949 uint64_t row = (*perm * ((groupwidth * ngroups) / ndisks)) +
950 (((group % ngroups) * groupwidth) / ndisks);
998 uint64_t ndisks = vdc->vdc_ndisks; local
1002 if (groupstart + groupwidth > ndisks)
1003 wrap = ndisks
[all...]
H A Dvdev.c426 uint64_t ndisks = 1; local
429 ndisks = vd->vdev_ops->vdev_op_ndisks(vd);
431 return (ndisks);
/freebsd-current/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_dataset.c5463 vdev_raidz_asize(uint64_t ndisks, uint64_t nparity, uint64_t ashift, argument
5468 ASSERT3U(ndisks, >, nparity);
5469 ndata = ndisks - nparity;
5483 vdev_draid_asize(uint64_t ndisks, uint64_t nparity, uint64_t ashift, argument
5486 ASSERT3U(ndisks, >, nparity);
5487 uint64_t ndata = ndisks - nparity;
5489 uint64_t asize = (rows * ndisks) << ashift;
5536 uint_t ndisks; local
5539 ZPOOL_CONFIG_CHILDREN, &disks, &ndisks) != 0)
5543 tsize = vdev_raidz_asize(ndisks, nparit
[all...]
/freebsd-current/sys/geom/raid/
H A Dmd_intel.c197 #define INTEL_MAX_MD_SIZE(ndisks) \
199 sizeof(struct intel_raid_disk) * (ndisks - 1) + \
202 sizeof(uint32_t) * (ndisks - 1) * 4)

Completed in 256 milliseconds