Lines Matching defs:disks

945  * 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_HEAD);
1042 * mindisks - minimum number of disks required on the HBAs
1045 * least mindisks available disks.
1046 * seldisks - pointer to a list containing the available disks
1052 * PURPOSE: helper which counts the number of available disks associated
1056 * Only available disks that have available space are counted.
1062 * i.e., HBAs with more disks come before those with fewer.
1064 * The returned lists of HBAs and disks must be passed to
1071 * get available disks on HBA
1080 * if (this HBA has >= mindisks distinct disks)
1104 dlist_t *disks = NULL;
1108 error = hba_get_avail_disks_and_space(request, hba, &disks, &space);
1110 /* for each of this HBA's disks */
1111 for (iter2 = disks;
1138 /* this HBA has minimum # of disks, add to output list */
1148 /* save # of disks for ordering the list */
1153 dlist_free_items(disks, NULL);
1158 gettext("failed selecting HBAs with n disks: %d\n"),
1172 * dm_descriptor_t hba, dlist_t **disks, uint64_t *space)
1178 * OUTPUT: disks - pointer to a list to hold the computed available
1179 * disks
1181 * available space on the available disks
1186 * PURPOSE: helper which examines the disks associated with the
1200 dlist_t **disks,
1207 *disks = NULL;
1241 *disks = dlist_append(item, *disks, AT_HEAD);
1253 dlist_free_items(*disks, NULL);
1254 *disks = NULL;
1262 * dlist_t *disks, uint64_t space)
1266 * disks - pointer to a list of disks
1273 * PURPOSE: helper which iterates the input list of disks and determines
1340 * dlist_t *disks, dlist_t **slices)
1344 * disks - pointer to a list of disks
1345 * slices - pointer to an output list of disks
1350 * PURPOSE: helper which iterates the input list of disks and builds a
1351 * new list which contains disks that are determined to be
1361 dlist_t *disks,
1384 (dlist_contains(disks, (void *)(uintptr_t)disk,
1430 * dlist_t **hbas, dlist_t **disks)
1435 * disks - a list of disks utilized by the input volumes
1440 * PURPOSE: An aggregate list of HBAs and disks used by the input volumes
1445 * The returned lists of HBAs and disks may contain duplicates.
1451 dlist_t **disks)
1460 (devconfig_t *)iter->obj, hbas, disks);
1468 * dlist_t **hbas, dlist_t **disks)
1474 * disks - a list of disks updated to inlclude those utilized
1480 * PURPOSE: The volume's components are iterated and the disks and HBAs
1482 * lists of HBAs and disks.
1484 * The returned lists of HBAs and disks may contain duplicates.
1490 dlist_t **disks)
1513 *disks = dlist_append(item, *disks, AT_HEAD);
1534 (devconfig_t *)iter1->obj, hbas, disks);
1549 * RETURNS: int - <0 - if obj1 has fewer available disks than obj2
1550 * 0 - if obj1 has the same # of available disks as obj2
1551 * >0 - if obj1 has more available disks than obj2
1553 * PURPOSE: dlist_t helper which compares the number of available disks
1558 * The number of available disks associated with the HBAs was
2669 /* only slices and disks have aliases */
3338 * Devices handled are slices and disks.