Searched refs:disks (Results 1 - 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/test/zfs-tests/tests/functional/online_offline/
H A Donline_offline_002_neg.ksh36 # Turning disks in a pool offline should fail when there is no longer
41 # 2. Verify that we can offline as many disks as the redundancy level
53 # Ensure we don't leave disks in the offline state
68 log_assert "Turning both disks offline should fail."
75 disks=($DISKLIST)
85 while [[ $i -lt ${#disks[*]} ]]; do
89 log_must zpool online $TESTPOOL ${disks[$i]}
90 check_state $TESTPOOL ${disks[$i]} "online" || \
91 log_fail "Failed to set ${disks[$i]} online"
92 while [[ $j -lt ${#disks[*]} ]]; d
[all...]
/illumos-gate/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_stripe.h47 dlist_t *disks,
H A Dlayout_concat.h47 dlist_t *disks,
H A Dlayout_request.h65 * get list of HBAs, disks or slices that are available
75 dlist_t *disks,
92 * get lists of HBAs and disks that are used by volumes
97 dlist_t **disks);
102 dlist_t **disks);
155 dlist_t **disks);
H A Dlayout_mirror.c76 dlist_t *disks,
105 dlist_t *disks,
124 dlist_t **disks,
618 * . requires nsubs * mincomp available disks on the
622 * . requires nsubs HBAs with mincomp disks
623 * . stripe width is driven by number of disks on HBA
626 * . requires mincomp HBAs with nsubs disks
631 * . requires nsubs HBAs with mincomp disks
632 * . stripe width is driven by number of disks on HBA
635 * . requires mincomp HBAs with nsubs disks
745 dlist_t *disks = NULL; local
857 dlist_t *disks = NULL; local
1079 dlist_t *disks = NULL; local
1187 dlist_t *disks = NULL; local
1379 dlist_t *disks = NULL; local
1579 compose_stripes_across_hbas( devconfig_t *request, dlist_t *cursubs, dlist_t *hbas, dlist_t *disks, uint64_t nbytes, uint16_t nsubs, uint16_t ncomp, uint16_t mincomp, dlist_t **results) argument
1755 dlist_t *disks = NULL; local
1910 dlist_t *disks = NULL; local
1987 compose_concats_across_hbas( devconfig_t *request, dlist_t *cursubs, dlist_t *hbas, dlist_t *disks, uint64_t nbytes, uint16_t nsubs, dlist_t **results) argument
2128 dlist_t *disks = NULL; local
2197 remove_used_disks( dlist_t **disks, devconfig_t *volume) argument
[all...]
H A Dlayout_concat.c172 dlist_t *disks = NULL; local
179 request, hbas, 1, &selhbas, &disks);
185 gettext(" -->Strategy 1: use disks from a single HBA - concat within HBA\n"));
197 request, hbas, 1, &selhbas, &disks);
203 gettext(" -->Strategy 2: use disks from all similar HBAs - concat across HBAs\n"));
207 request, nbytes, disks,
217 dlist_free_items(disks, NULL);
238 dlist_t *disks = NULL; local
245 request, usable_hbas, 1, &selhbas, &disks);
251 gettext(" -->Strategy 3: use disks fro
314 dlist_t *disks = NULL; local
366 populate_concat( devconfig_t *request, uint64_t nbytes, dlist_t *disks, dlist_t *othervols, devconfig_t **concat) argument
[all...]
H A Dlayout_stripe.c52 dlist_t *disks,
107 * . number of components is driven by # of disks
108 * . requires at least 1 HBA with mincomp disks
110 * 3 - stripe across all available disks on similar HBAs
112 * . requires at least mincomp disks
118 * 5 - stripe across all available disks on all HBAs
119 * . number of components is driven by # of disks
120 * . requires at least mincomp disks
203 * and/or disks available.
225 dlist_t *disks local
336 dlist_t *disks = NULL; local
457 populate_stripe( devconfig_t *request, uint64_t nbytes, dlist_t *disks, uint16_t ncomp, dlist_t *othervols, devconfig_t **stripe) argument
717 compose_stripe( devconfig_t *request, uint64_t nbytes, dlist_t *disks, int max, int min, dlist_t *othervols, devconfig_t **stripe) argument
799 dlist_t *disks = NULL; local
[all...]
H A Dlayout_hsp.c80 dlist_t *disks,
384 * Determine the available HBAs, disks, and slices.
411 dlist_t *disks = NULL; local
423 &disks)) ||
424 (error = disks_get_avail_slices(request, disks, &avail)) ||
428 dlist_free_items(disks, NULL);
433 if (disks == NULL || dlist_length(disks) == 0) {
434 /* all disks have been consumed by the devices */
436 gettext(" no available disks t
502 dlist_t *disks = NULL; local
766 find_spare_for_component( devconfig_t *component, dlist_t *all_spares, dlist_t *hbas, dlist_t *disks, boolean_t *found) argument
[all...]
H A Dlayout_svm_util.h66 extern int get_disks_in_diskset(char *dsname, dlist_t **disks);
H A Dlayout_request.c945 * FUNCTION: get_disks_for_target(char *name, dlist_t **disks)
949 * OUTPUT: disks - disks matching the input target name
954 * PURPOSE: Validation helper function which finds all disks "on" the
958 * the list of known disks is searched to find any disk that
967 dlist_t **disks)
999 *disks = dlist_append(item, *disks, AT_HEAD);
1021 *disks =
1022 dlist_append(item, *disks, AT_HEA
965 get_disks_for_target( char *name, dlist_t **disks) argument
1104 dlist_t *disks = NULL; local
1197 hba_get_avail_disks_and_space( devconfig_t *request, dm_descriptor_t hba, dlist_t **disks, uint64_t *space) argument
1359 disks_get_avail_slices( devconfig_t *request, dlist_t *disks, dlist_t **slices) argument
1448 get_hbas_and_disks_used_by_volumes( dlist_t *volumes, dlist_t **hbas, dlist_t **disks) argument
1487 get_hbas_and_disks_used_by_volume( devconfig_t *volume, dlist_t **hbas, dlist_t **disks) argument
[all...]
H A Dlayout_discovery.c60 * "bad" disks are thoese that are known to libdiskmgt but
76 static int generate_known_slices(dlist_t *disks, dlist_t **known,
79 static int generate_known_hbas(dlist_t *disks, dlist_t **known);
170 dlist_t *disks,
191 * multipathed disks have aliases, as do slices on those disks.
465 * OUTPUT: known - populated list of known disks
466 * bad - populated list of known bad disks
472 * what disks are known to be attached to the system.
498 volume_set_error(gettext("there are no known disks\
660 generate_known_slices( dlist_t *disks, dlist_t **known, dlist_t **bad) argument
821 generate_known_hbas( dlist_t *disks, dlist_t **known) argument
1077 dlist_t *disks; local
1243 dlist_t *disks = NULL; local
1658 generate_usable_hbas( dlist_t *disks, dlist_t **usable) argument
[all...]
H A Dlayout_device_util.c63 /* private utilities for disks */
113 * on the system after disks have been added to the destination
516 * Only slices, disks and HBAs should have display names.
659 * a slice 7 (or 6 on EFI labelled disks) is created and
770 * FUNCTION: create_virtual_slices(dlist_t *disks)
773 * disks known to be available for use by layout.
783 * Iterate the input list of available disks and see what the
792 dlist_t *disks)
801 /* see what slices each of the disks will have when added to a set */
802 for (iter = disks; erro
791 create_virtual_slices( dlist_t *disks) argument
2651 dm_descriptor_t *disks = NULL; local
[all...]
/illumos-gate/usr/src/grub/grub-0.97/grub/
H A Dasmstub.c87 struct geometry *disks = 0; variable in typeref:struct:geometry
154 assert (disks == 0);
155 disks = malloc (NUM_DISKS * sizeof (*disks));
156 assert (disks);
159 disks[i].flags = -1;
203 if (disks[i].flags != -1)
208 ioctl (disks[i].flags, BLKFLSBUF, 0);
214 close (disks[i].flags);
223 free (disks);
[all...]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dpath.c194 for (i = 0; pp->disks[i] && pp->states[i] != -1; i++) {
195 if (pp->disks[i]->devid != NULL &&
196 devid_compare(pp->disks[i]->devid, devid) == 0) {
232 for (i = 0; pp->disks[i] && pp->states[i] != -1; i++) {
233 if (pp->disks[i]->devid != NULL &&
234 devid_compare(pp->disks[i]->devid, devid) == 0) {
292 for (cnt = 0; pp->disks[cnt]; cnt++);
301 for (i = 0; pp->disks[i]; i++) {
302 drives[i] = cache_get_desc(DM_DRIVE, pp->disks[i], NULL, NULL,
H A Dcache.c90 * (e.g. slices & disks getting repartitioned) there are no events which would
203 free(cp->disks);
285 free(pp->disks);
507 for (i = 0; cp->disks[i]; i++) {
508 if (dp == cp->disks[i]) {
511 for (j = i; cp->disks[j]; j++) {
512 cp->disks[j] = cp->disks[j + 1];
525 for (i = 0; pp->disks[i]; i++) {
526 if (dp == pp->disks[
[all...]
H A Dcontroller.c246 for (cnt = 0; cp->disks[cnt]; cnt++);
255 for (i = 0; cp->disks[i]; i++) {
256 drives[i] = cache_get_desc(DM_DRIVE, cp->disks[i], NULL, NULL,
H A Ddisks_private.h66 struct disk **disks; member in struct:path
86 struct disk **disks; member in struct:controller_info
H A Dfindevs.c137 * disks, controllers and paths on the system. This model is returned in the
430 cp->disks = (disk_t **)calloc(1, sizeof (disk_t *));
431 if (cp->disks == NULL) {
435 cp->disks[0] = NULL;
480 * Add other controllers for multipath disks.
692 if (add_ptr2array(diskp, (void ***)&cp->disks) != 0) {
751 if (add_ptr2array(dp, (void ***)&pp->disks) != 0) {
875 if (cp->disks != NULL && cp->disks[0] != NULL) {
882 * loop through the disks an
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/
H A Dfcal_leds.conf33 # number of disks - this must be specified before per disk definitions
34 n-disks: 2
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_offline/
H A Dzpool_offline_001_pos.ksh47 set -A disks $DISKLIST
48 typeset -i num=${#disks[*]}
55 # Ensure we don't leave disks in the offline state
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dbcache.c124 int disks = bcache_numdev; local
126 if (disks == 0)
127 disks = 1; /* safe guard */
137 i = fls(disks) - 1; /* highbit - 1 */
138 if (disks > (1 << i)) /* next power of 2 */
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_diskmgt.c684 /* Search for fixed disks */
685 dm_descriptor_t *disks = dm_get_descriptors(DM_DRIVE, filter, &error); local
693 for (i = 0; disks != NULL && disks[i] != NULL; i++) {
694 dm_descriptor_t disk = (dm_descriptor_t)disks[i];
732 dm_free_descriptors(disks);
/illumos-gate/usr/src/test/zfs-tests/tests/functional/inheritance/
H A Dinherit_001_pos.ksh53 function create_dataset { #name type disks
56 typeset disks=$3
59 create_pool "$dataset" "$disks"
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/cherrystone/common/
H A Dcherrystone.c620 picl_nodehdl_t *disks; local
624 &disks);
633 err = picl_get_propval_by_name(disks[i], "FaultInformation",
646 free(disks);
650 free(disks);
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/littleneck/common/
H A Dlittleneck.c789 picl_nodehdl_t *disks; local
794 &disks);
805 err = picl_get_propval_by_name(disks[i], PICL_PROP_NAME, name,
819 err = picl_get_propval_by_name(disks[i], "FaultInformation",

Completed in 1215 milliseconds

12