Home
last modified time | relevance | path

Searched refs:disks (Results 1 – 25 of 93) sorted by relevance

1234

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_split/
H A Dzpool_split_vdevs.ksh59 typeset -A disks
60 disks[d]="d1"
61 disks[t]="t1 t2"
62 disks[m]="m1 m2"
63 disks[m3]="m1 m2 m3"
64 disks[z1]="z1 z2"
65 disks[z2]="z1 z2 z3"
66 disks[z3]="z1 z2 z3 z4"
67 disks[s]="s1"
68 disks[l]="l1"
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/online_offline/
H A Donline_offline_002_neg.ksh72 disks=($DISKLIST)
86 log_must zpool online $TESTPOOL ${disks[$i]}
87 check_state $TESTPOOL ${disks[$i]} "online" || \
96 log_must zpool offline $TESTPOOL ${disks[$j]}
97 check_state $TESTPOOL ${disks[$j]} "offline" || \
103 log_must zpool offline $TESTPOOL ${disks[$i]}
104 check_state $TESTPOOL ${disks[$i]} "offline" || \
111 log_mustnot zpool offline $TESTPOOL ${disks[$j]}
112 check_state $TESTPOOL ${disks[$j]} "online" || \
114 check_state $TESTPOOL ${disks[$i]} "offline" || \
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_009_neg.ksh68 typeset disks=$DISK0
70 typeset disks=$DISKS
74 create_pool $TESTPOOL $opt $disks
75 log_mustnot zpool create -f $TESTPOOL1 $opt $disks
79 create_pool $TESTPOOL $opt $disks
84 log_mustnot zpool create -f $TESTPOOL $opt $disks $disks
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/fault/
H A Dfault_limits.ksh57 typeset -a disks
61 disks[${#disks[*]}+1]=$device
64 log_must zpool create -f ${TESTPOOL} raidz${PARITY} ${disks[1..$((VDEV_CNT - 1))]}
73 log_must zpool replace ${TESTPOOL} ${disks[$((VDEV_CNT - 1))]} ${disks[$VDEV_CNT]}
75 log_must zpool offline ${TESTPOOL} ${disks[$VDEV_CNT]}
78 for disk in ${disks[0..$PARITY]}; do
86 for disk in ${disks[0..$PARITY]}; do
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/
H A Dlabelclear.cfg18 typeset disks=(${DISKS[*]})
21 typeset disk1=/dev/${disks[0]}
22 typeset disk2=/dev/${disks[1]}
23 typeset disk3=/dev/${disks[2]}
25 typeset disk1=${disks[0]}
26 typeset disk2=${disks[1]}
27 typeset disk3=${disks[2]}
/freebsd/usr.sbin/bsdinstall/partedit/
H A Dpart_wizard.c108 struct bsddialog_menuitem *disks = NULL; in boot_disk_select() local
153 disks = realloc(disks, (++n)*sizeof(disks[0])); in boot_disk_select()
154 disks[n-1].name = pp->lg_name; in boot_disk_select()
168 disks[n-1].prefix = ""; in boot_disk_select()
169 disks[n-1].on = false; in boot_disk_select()
170 disks[n-1].depth = 0; in boot_disk_select()
171 disks[n-1].desc = strdup(diskdesc); in boot_disk_select()
172 disks[n-1].bottomdesc = ""; in boot_disk_select()
181 n, disks, &selected); in boot_disk_select()
184 strdup(disks[selected].name) : NULL; in boot_disk_select()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/raidz/
H A Draidz_expand_004_pos.ksh46 typeset -a disks
71 disks[${#disks[*]}+1]=$device
81 log_must zpool create -f $opts $pool $raid ${disks[1..$(($nparity+1))]}
89 for disk in ${disks[$(($nparity+2))..$devs]}; do
95 log_must zpool offline $pool ${disks[$i]}
96 log_must dd if=/dev/zero of=${disks[$i]} \
103 log_must zpool replace $pool ${disks[$i]}
H A Draidz_expand_003_neg.ksh47 typeset -a disks
71 disks[${#disks[*]}+1]=$device
80 log_must zpool create -f $opts $pool $raid ${disks[1..$(($devs-1))]}
83 log_mustnot zpool attach $pool ${raid}-0 ${disks[$devs]}
92 log_must zpool create -f $opts $pool $raid ${disks[1..$(($devs-1))]}
98 log_must zpool attach $pool ${raid}-0 ${disks[$devs]}
H A Draidz_expand_005_pos.ksh51 typeset -a disks
100 log_must zpool offline $pool ${disks[$((index+j))]}
101 log_must dd if=/dev/zero of=${disks[$((index+j))]} \
106 log_must zpool replace $pool ${disks[$((index+j))]}
125 disks[${#disks[*]}+1]=$device
136 log_must zpool create -f $opts $pool $raid ${disks[1..$(($nparity+1))]}
145 for disk in ${disks[$(($nparity+2))..$devs]}; do
H A Draidz_expand_002_pos.ksh45 typeset -a disks
68 disks[${#disks[*]}+1]=$device
77 log_must zpool create -f $opts $pool $raid ${disks[1..$(($nparity+1))]}
91 for disk in ${disks[$(($nparity+2))..$devs]}; do
H A Draidz_expand_003_pos.ksh47 typeset -a disks
86 disks[${#disks[*]}+1]=$device
94 log_must zpool create -f $opts $pool $raid ${disks[1..$(($nparity+1))]}
102 for disk in ${disks[$(($nparity+2))..$devs]}; do
H A Draidz_expand_006_neg.ksh42 typeset -a disks
61 disks[${#disks[*]}+1]=$device
H A Draidz_expand_007_neg.ksh46 typeset -a disks
68 disks[${#disks[*]}+1]=$device
/freebsd/tests/sys/geom/class/nop/
H A Dnop_test.sh68 disks=`atf_config_get disks`
69 disk=${disks%% *}
158 disks=`atf_config_get disks`
159 disk=${disks%% *}
268 disks=`atf_config_get disks`
269 disk=${disks%% *}
/freebsd/stand/i386/loader/
H A Dhelp.i38617 # Tset Snum_ide_disks DSet the number of IDE disks
23 When booting from a SCSI disk on a system with one or more IDE disks,
24 and where the IDE disks are the default boot device, it is necessary
25 to tell the kernel how many IDE disks there are in order to have it
34 confused, eg. by a mix of SCSI and IDE disks, or IDE disks with
/freebsd/sys/geom/raid/
H A Dmd_promise.c116 struct promise_raid_disk disks[PROMISE_MAX_DISKS]; member
220 meta->disks[i].flags, meta->disks[i].number, in g_raid_md_promise_print()
221 meta->disks[i].channel, meta->disks[i].device, in g_raid_md_promise_print()
222 meta->disks[i].id); in g_raid_md_promise_print()
254 if (meta->disks[pos].id == id) in promise_meta_find_disk()
615 g_raid_md_promise_supported(int level, int qual, int disks, int force) in g_raid_md_promise_supported() argument
618 if (disks > PROMISE_MAX_DISKS) in g_raid_md_promise_supported()
622 if (disks < 1) in g_raid_md_promise_supported()
624 if (!force && disks < 2) in g_raid_md_promise_supported()
628 if (disks < 1) in g_raid_md_promise_supported()
[all …]
H A Dmd_jmicron.c84 uint32_t disks[JMICRON_MAX_DISKS]; member
165 printf(" 0x%08x", meta->disks[k]); in g_raid_md_jmicron_print()
186 if (meta->disks[pos] == 0) in jmicron_meta_total_disks()
217 config_id += meta->disks[pos] << pos; in jmicron_meta_config_id()
250 if ((meta->disks[pos] & JMICRON_DISK_MASK) == id) in jmicron_meta_find_disk()
369 g_raid_md_jmicron_supported(int level, int qual, int disks, int force) in g_raid_md_jmicron_supported() argument
372 if (disks > 8) in g_raid_md_jmicron_supported()
376 if (disks < 1) in g_raid_md_jmicron_supported()
378 if (!force && (disks < 2 || disks > 6)) in g_raid_md_jmicron_supported()
382 if (disks < 1) in g_raid_md_jmicron_supported()
[all …]
/freebsd/tests/sys/geom/class/eli/
H A Dmisc_test.sh66 disks=`atf_config_get disks`
67 disk=${disks%% *}
201 disks=`atf_config_get disks`
202 disk=${disks%% *}
/freebsd/usr.sbin/mptutil/
H A Dmpt_cam.c391 struct mpt_standalone_disk *disks; in mpt_fetch_disks() local
484 disks = calloc(ccb.cdm.num_matches, sizeof(*disks)); in mpt_fetch_disks()
490 disks[count].bus = 0; in mpt_fetch_disks()
491 disks[count].target = r->target_id; in mpt_fetch_disks()
492 snprintf(disks[count].devname, sizeof(disks[count].devname), in mpt_fetch_disks()
495 dev = cam_open_device(disks[count].devname, O_RDWR); in mpt_fetch_disks()
497 fetch_scsi_capacity(dev, &disks[count]); in mpt_fetch_disks()
498 fetch_scsi_inquiry(dev, &disks[count]); in mpt_fetch_disks()
507 *disksp = disks; in mpt_fetch_disks()
/freebsd/sys/geom/mirror/
H A Dg_mirror_ctl.c623 } *disks; in g_mirror_ctl_insert() local
666 disks = g_malloc(sizeof(*disks) * (*nargs), M_WAITOK | M_ZERO); in g_mirror_ctl_insert()
720 disks[n].provider = pp; in g_mirror_ctl_insert()
721 disks[n].consumer = cp; in g_mirror_ctl_insert()
727 g_free(disks); in g_mirror_ctl_insert()
733 if (disks[i].consumer == NULL) in g_mirror_ctl_insert()
739 pp = disks[i].provider; in g_mirror_ctl_insert()
749 error = g_write_data(disks[i].consumer, in g_mirror_ctl_insert()
755 g_access(disks[i].consumer, 0, -1, -1); in g_mirror_ctl_insert()
756 g_detach(disks[i].consumer); in g_mirror_ctl_insert()
[all …]
/freebsd/usr.sbin/bsdinstall/scripts/
H A Dzfsboot349 local disks n disks_grammar
416 # dialog_last_chance $disks ...
530 for disk in $disks; do
541 for disk in $disks; do
546 disks="${avail_disks# }"
551 for disk in $disks; do
558 if [ ! "$disks" ]; then
565 f_device_sort_by name disks disks
664 for disk in $disks; do
680 for disk in $disks; do
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/
H A Dredundancy_draid_damaged1.ksh54 typeset -a disks
108 disks[${#disks[*]}+1]=$device
118 log_must zpool create -O compression=off -f -o cachefile=none $TESTPOOL $raid ${disks[@]}
H A Dredundancy_draid_damaged2.ksh55 typeset -a disks
81 disks[${#disks[*]}+1]=$device
93 $TESTPOOL $raid ${disks[@]}
/freebsd/usr.sbin/periodic/etc/daily/
H A DMakefile7 CONFS= 100.clean-disks \
15 400.status-disks \
/freebsd/stand/common/
H A Dbcache.c124 int disks = bcache_numdev; in bcache_allocate() local
126 if (disks == 0) in bcache_allocate()
127 disks = 1; /* safe guard */ in bcache_allocate()
137 i = fls(disks) - 1; /* highbit - 1 */ in bcache_allocate()
138 if (disks > (1 << i)) /* next power of 2 */ in bcache_allocate()

1234