Lines Matching defs:disk

76  * disk is the dm_descriptor_t of the modified disk
77 * accessname is the name to access the disk thru
78 * slices is the list of modified slices on the disk
81 dm_descriptor_t disk;
102 void *disk,
130 /* initialize using the the top-level disk set request... */
179 "disk set request."));
240 * Determines the requested disk set and validates it.
259 /* determine & validate requested disk set name */
447 * Determines if the disk set specified in the request currently
450 * Adds new disks required by the result volumes to the disk set.
452 * Attaches the result volumes to the disk set result.
454 * Convert slice and disk names to preferred names.
456 * Attaches the disk set result to the toplevel request.
496 * PURPOSE: Utility function to convert any slice or disk drive
517 dm_descriptor_t disk = (dm_descriptor_t)0;
540 (error = get_disk_for_named_slice(devname, &disk)) ||
541 (error = get_device_access_name(request, disk,
560 * FUNCTION: add_modified_disk(devconfig_t request, dm_descriptor_t disk);
563 * disk - dm_descriptor_t handle for a disk that has been modified
572 * PURPOSE: Adds the input disk to the list of those that have been
577 * 1. any disk that is to be added to the disk set gets
580 * 2. once a disk is in the disk set, existing slices
586 dm_descriptor_t disk)
596 (void *)(uintptr_t)moddisk->disk,
597 (void *)(uintptr_t)disk) == 0) {
608 error = get_device_access_name(request, disk, &aname);
612 moddisk->disk = disk;
640 * disk set.
643 * disks they use. If a disk is not in the _modified_disks
654 dm_descriptor_t disk = (dm_descriptor_t)0;
676 (error = get_disk_for_named_slice(sname, &disk)) ||
677 (error = add_modified_disk(request, disk));
693 * OUTPUT: diskset - pointer to a devconfig_t representing the disk set,
701 * to the disk set.
707 * for each disk in the list, the list of disks is then attached
708 * to the input disk set.
710 * Modified slices for disks in the disk set are added as well.
723 /* add modified disks to disk set's component list */
740 dm_descriptor_t disk = moddisk->disk;
746 error = is_disk_in_diskset(disk, dsname, &in_set);
748 /* New disk, add it to the disk set */
758 gettext(" must add %s to disk set \"%s\"\n"),
767 /* move moddisk's slice list to disk set comp list */
789 * to be added to the disk set to satisfy the request.
818 * the slices to be removed for each disk
832 * Slice names are constructed using the modified disk's
849 dm_descriptor_t disk = (dm_descriptor_t)0;
855 (void) get_disk_for_named_slice(rmvd->slice_name, &disk);
857 if ((item = dlist_find(mod_disks, (void *)(uintptr_t)disk,
859 /* slice on disk that we don't care about */
895 * the modified slices for each disk
908 * Slice names are constructed using the modified disk's
926 dm_descriptor_t disk;
941 (void) get_disk_for_named_slice(sname, &disk);
943 if ((item = dlist_find(mod_disks, (void *)(uintptr_t)disk,
945 /* slice on disk that we don't care about */
981 * FUNCTION: compare_disk_to_moddisk_disk(void *disk, void *moddisk)
983 * INPUT: disk - opaque pointer to a dm_descriptor_t
986 * RETURNS: int - 0 - if disk == moddisk->disk
989 * PURPOSE: dlist_t helper which compares the input disk dm_descriptor_t
990 * handle to the disk dm_descriptor_t handle in the input
997 void *disk,
1000 assert(disk != (dm_descriptor_t)0);
1003 return (compare_descriptor_names((void *)disk,
1004 (void *)(uintptr_t)((moddisk_t *)moddisk)->disk));
1038 * INPUT: req - pointer to the toplevel disk set devconfig_t request