Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/refreserv/
H A Drefreserv_multi_raidz.ksh93 for ndisks in $((parity * 2)) $((parity * 2 + 1)); do
94 typeset -a disks=(${alldisks[0..$((ndisks - 1))]})
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
H A Drefreserv_raidz.ksh93 for ndisks in $((parity * 2)) $((parity * 2 + 1)); do
94 typeset -a disks=(${alldisks[0..$((ndisks - 1))]})
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" \
/freebsd/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/usr.sbin/bhyveload/
H A Dbhyveload.c104 static int ndisks; variable
331 if (unit < 0 || unit >= ndisks) in cb_diskread()
346 if (unit < 0 || unit >= ndisks) in cb_diskwrite()
360 if (unit < 0 || unit >= ndisks) in cb_diskioctl()
721 if (ndisks >= NDISKS) in disk_open()
728 disk_fd[ndisks] = fd; in disk_open()
729 ndisks++; in disk_open()
938 func(&cb, NULL, USERBOOT_VERSION_5, ndisks); in main()
/freebsd/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 ||
712 [ $(( $ndisks % 2 )) -ne 0 ]; then
716 $ndisks $(( $ndisks % 2 ))
720 "$ZFSBOOT_VDEV_TYPE" $ndisks ||
725 [ $ndisks -ge $want_disks ] &&
732 $ndisks $want_disks
[all …]
/freebsd/sbin/fsck/
H A Dpreen.c70 static int nrun = 0, ndisks = 0; variable
207 ndisks--; in checkfstab()
274 ndisks++; in finddisk()
/freebsd/stand/userboot/userboot/
H A Dmain.c147 loader_main(struct loader_callbacks *cb, void *arg, int version, int ndisks) in loader_main() argument
158 userboot_disk_maxunit = ndisks; in loader_main()
/freebsd/sys/geom/raid3/
H A Dg_raid3.c398 u_int n, ndisks; in g_raid3_ndisks() local
402 for (n = ndisks = 0; n < sc->sc_ndisks; n++) { in g_raid3_ndisks()
407 ndisks++; in g_raid3_ndisks()
409 return (ndisks); in g_raid3_ndisks()
1804 u_int n, ndisks; in g_raid3_register_request() local
1807 ndisks = 0; in g_raid3_register_request()
1824 ndisks = sc->sc_ndisks; in g_raid3_register_request()
1827 ndisks = sc->sc_ndisks - 1; in g_raid3_register_request()
1855 ndisks = sc->sc_ndisks; in g_raid3_register_request()
1858 for (n = 0; n < ndisks; in g_raid3_register_request()
2511 u_int n, ndirty, ndisks, genid, syncid; g_raid3_update_device() local
[all...]
/freebsd/usr.sbin/mptutil/
H A Dmpt_config.c137 int ndisks, int *index) in mpt_lookup_standalone_disk() argument
151 for (i = 0; i < ndisks; i++) { in mpt_lookup_standalone_disk()
163 for (i = 0; i < ndisks; i++) { in mpt_lookup_standalone_disk()
1089 int error, fd, i, ndisks; in pd_create() local
1104 error = mpt_fetch_disks(fd, &ndisks, &disks); in pd_create()
1110 if (mpt_lookup_standalone_disk(av[1], disks, ndisks, &i) < 0) { in pd_create()
H A Dmpt_cam.c388 mpt_fetch_disks(int fd, int *ndisks, struct mpt_standalone_disk **disksp) in mpt_fetch_disks() argument
462 *ndisks = 0; in mpt_fetch_disks()
506 *ndisks = count; in mpt_fetch_disks()
H A Dmptutil.h122 int mpt_fetch_disks(int fd, int *ndisks,
/freebsd/usr.sbin/sesutil/
H A Dsesutil.c181 size_t len, i, ndisks; in sesled() local
227 ndisks = 0; in sesled()
271 ndisks++; in sesled()
308 ndisks++; in sesled()
317 if (ndisks == 0 && all == false) { in sesled()
/freebsd/sys/geom/mirror/
H A Dg_mirror.c1649 u_int ndisks; in g_mirror_request_split() local
1655 ndisks = g_mirror_ndisks(sc, G_MIRROR_DISK_STATE_ACTIVE); in g_mirror_request_split()
1656 slice = bp->bio_length / ndisks; in g_mirror_request_split()
2437 u_int dirty, ndisks; in g_mirror_update_device() local
2475 DETECT_MISMATCH(ndisks, "md_all"); in g_mirror_update_device()
2500 ndisks = g_mirror_ndisks(sc, -1); in g_mirror_update_device()
2501 if ((force && ndisks > 0) || in g_mirror_update_device()
2502 (g_launch_mirror_before_timeout && ndisks == sc->sc_ndisks)) { in g_mirror_update_device()
2504 } else if (ndisks == 0) { in g_mirror_update_device()
2528 ndisks = 0; in g_mirror_update_device()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_draid.c925 uint64_t ndisks = vdc->vdc_ndisks; in vdev_draid_logical_to_physical() local
932 uint64_t groupstart = (group * groupwidth) % ndisks; in vdev_draid_logical_to_physical()
933 ASSERT3U(groupstart + groupwidth, <=, ndisks + groupstart); in vdev_draid_logical_to_physical()
949 uint64_t row = (*perm * ((groupwidth * ngroups) / ndisks)) + in vdev_draid_logical_to_physical()
950 (((group % ngroups) * groupwidth) / ndisks); in vdev_draid_logical_to_physical()
998 uint64_t ndisks = vdc->vdc_ndisks; in vdev_draid_map_alloc_row() local
1002 if (groupstart + groupwidth > ndisks) in vdev_draid_map_alloc_row()
1003 wrap = ndisks - groupstart; in vdev_draid_map_alloc_row()
1043 uint64_t c = (groupstart + i) % ndisks; in vdev_draid_map_alloc_row()
H A Dvdev.c448 uint64_t ndisks = 1; in vdev_get_ndisks() local
451 ndisks = vd->vdev_ops->vdev_op_ndisks(vd); in vdev_get_ndisks()
453 return (ndisks); in vdev_get_ndisks()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Ddraid.c498 uint64_t ndisks = children - nspares; in eval_resilver() local
520 uint64_t groupstart = (j * groupwidth) % ndisks; in eval_resilver()
523 uint64_t groupidx = (groupstart + k) % ndisks; in eval_resilver()
540 uint64_t groupidx = (groupstart + k) % ndisks; in eval_resilver()
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_dataset.c5463 vdev_raidz_asize(uint64_t ndisks, uint64_t nparity, uint64_t ashift, in vdev_raidz_asize() argument
5468 ASSERT3U(ndisks, >, nparity); in vdev_raidz_asize()
5469 ndata = ndisks - nparity; in vdev_raidz_asize()
5483 vdev_draid_asize(uint64_t ndisks, uint64_t nparity, uint64_t ashift, in vdev_draid_asize() argument
5486 ASSERT3U(ndisks, >, nparity); in vdev_draid_asize()
5487 uint64_t ndata = ndisks - nparity; in vdev_draid_asize()
5489 uint64_t asize = (rows * ndisks) << ashift; in vdev_draid_asize()
5536 uint_t ndisks; in volsize_from_vdevs() local
5539 ZPOOL_CONFIG_CHILDREN, &disks, &ndisks) != 0) in volsize_from_vdevs()
5543 tsize = vdev_raidz_asize(ndisks, nparit in volsize_from_vdevs()
[all...]
/freebsd/sys/geom/raid/
H A Dmd_intel.c197 #define INTEL_MAX_MD_SIZE(ndisks) \ argument
199 sizeof(struct intel_raid_disk) * (ndisks - 1) + \
202 sizeof(uint32_t) * (ndisks - 1) * 4)