/illumos-gate/usr/src/cmd/lvm/metassist/layout/ |
H A D | layout_hsp.c | 80 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 D | layout_concat.c | 172 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 D | layout_stripe.c | 52 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 D | layout_mirror.c | 76 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 D | layout_validate.c | 86 * to existing controllers, disks, or slices on the system. 864 /* expand target to all of its disks */ 865 dlist_t *disks = NULL; local 866 if ((error = get_disks_for_target(name, &disks)) == 0) { 867 if ((disks == NULL) || (dlist_length(disks) == 0)) { 875 for (iter = disks;
|
H A D | layout_svm_util.c | 67 * the disks in the set 156 * s. the disks in the named disk set 537 * PURPOSE: Add the disk name to the named disk set's list of disks. 758 * Return a list of disks in the given diskset. 764 * @param disks 765 * RETURN: pointer to the list of disks in the given disk 773 dlist_t **disks) 778 *disks = NULL; 794 *disks = dlist_append(item, *disks, AT_TAI 771 get_disks_in_diskset( char *dsname, dlist_t **disks) argument [all...] |
H A D | layout_discovery.c | 60 * "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 D | layout_request.c | 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_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 D | layout_device_util.c | 63 /* 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/lib/libdiskmgt/common/ |
H A D | disks_private.h | 66 struct disk **disks; member in struct:path 86 struct disk **disks; member in struct:controller_info
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/littleneck/common/ |
H A D | littleneck.c | 789 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",
|
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_diskmgt.c | 684 /* 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/boot/sys/boot/common/ |
H A D | bcache.c | 124 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/libprtdiag_psr/sparc/cherrystone/common/ |
H A D | cherrystone.c | 620 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/daktari/common/ |
H A D | daktari.c | 936 picl_nodehdl_t *disks; local 944 &disks); 958 err = picl_get_propval_by_name(disks[i], PICL_PROP_NAME, name, 977 err = fill_device_from_id(disks[i], "PSVC_PARENT",
|
/illumos-gate/usr/src/cmd/format/ |
H A D | startup.c | 31 * includes reading the data file and the search for disks. 1295 * all the disks in the search path, and creates a list of those that 1328 * If there were disks specified on the command line, 1329 * use those disks, and nothing but those disks. 1338 * If there were no disks specified on the command line, 1339 * search for all disks attached to the system. 1341 fmt_print("Searching for disks..."); 1346 * Find all disks specified in search_path definitions 1434 * If we didn't find any disks, giv 2846 struct disk_info **disks; local [all...] |
/illumos-gate/usr/src/grub/grub-0.97/grub/ |
H A D | asmstub.c | 87 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/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/ |
H A D | psvcpolicy.c | 1390 * verified with an actual probe of internal disks 1713 char *disks[MAX_DISKS] = {"DISK0", "DISK1"}; local 1718 err = check_disk_hotplug(hdlp, disks[i], &disk_present[i], i); 1722 err = check_disk_fault(hdlp, disks[i], disk_present[i]); 1726 err |= light_disk_fault_leds(hdlp, disks[i], disk_present[i]);
|