Lines Matching defs:disk

282  * definitions for the search path, known disk types, and known partition
288 * disk/partition/controller definition now keeps a pointer to the
306 * party disk support.
380 * Check for duplicate disk or partitions definitions
461 * search path is a list of disk names that will be searched for by the
490 * Pull in the disk name.
529 * the physical attributes of a brand of disk when connected to a specific
552 * Pull in the name of the disk type.
561 * Allocate space for the disk type and copy in the name.
568 * Save the filename/linenumber where this disk was defined
665 * Found a match. Add this disk type to the list
667 * disk specification correctly.
781 * Add this disk type to the list for the ctlr type
804 sup_change_spec(struct disk_type *disk, char *id)
918 * Add it to the list for this disk type.
920 cp = new_chg_list(disk);
931 * a known partition map for a particular disk type on a particular
937 TOKEN token, cleaned, disk, ctlr, ident;
1043 * If the attribute is the disk, save the disk name and
1046 } else if (strcmp(ident, "disk") == 0) {
1047 (void) strcpy(disk, cleaned);
1053 * disk name, let's see if we can find the controller
1054 * and disk type. This will give us the geometry,
1089 * Attempt to match the specified disk to a known type.
1093 if (strcmp(dtype->dtype_asciilabel, disk) == 0)
1100 datafile_error("Unknown disk '%s'", disk);
1104 * Now that we know the disk type, set up the
1115 * By now, the disk and controller type must be defined
1272 * specified disk/ctlr.
1285 * Open the disk device - just a wrapper for open.
1294 * This routine performs the disk search during startup. It looks for
1308 struct disk_info *disk;
1368 * standard disk naming conventions. This permits
1452 for (disk = disk_list; disk != NULL; disk = disk->disk_next) {
1456 if (disk->disk_flags & DSK_AUTO_CONFIG) {
1460 fmt_print("%s: ", disk->disk_name);
1461 if (disk->disk_flags & DSK_LABEL_DIRTY) {
1466 type = disk->disk_type;
1469 if (disk->label_type == L_TYPE_SOLARIS)
1485 * For a given "logical" disk name as specified in a format.dat
1546 * Get the disk name from the inquiry data
1576 * Add a device to the disk list, if it appears to be a disk,
1604 * Attempt to open the disk. If it fails, skip it.
1617 * Attempt to read the configuration info on the disk.
1618 * Again, if it fails, we assume the disk's not there.
1619 * Note we must close the file for the disk before we
1645 * If the type of disk is one we don't know about,
1668 * disk.
1701 * copy the generic disk ops structure into local copy.
1720 * determine if we're already identified this disk.
1734 * means the disk may be reserved.
1760 * The disk appears to be present. Allocate space for the
1761 * disk structure and add it to the list of found disks.
1782 * Remember the names of the disk
1788 * Remember the lba size of the disk
1800 * Try to match the ctlr for this disk with a ctlr we
1827 * Close the disk and report the error.
1830 err_print("\nError: found disk attached to ");
1872 * By this point, we have a known ctlr. Link the disk
1899 * disk, we can attempt to auto-sense the disk
1914 * a valid label for the disk. Mark
1915 * the disk as needing the label flushed.
1927 * a valid label for the disk.
1942 * appears corrupt, just leave the disk as an unknown type.
1960 * The label looks ok. Mark the disk as labeled.
2032 * Attempt to match the disk type in the label with a
2033 * known disk type.
2041 * If no match was found, we need to create a disk type
2042 * for this disk.
2046 * Allocate space for the disk type and add it
2047 * to the list of disk types for this ctlr type.
2061 * Fill in the drive info from the disk label.
2085 * Mark the disk as needing specification of
2089 * be asked for if this disk is ever selected by
2102 * By this time we have a known disk type. Link the disk
2103 * to the disk type.
2108 * Close the file for this disk
2114 * a known partition map for this disk type.
2124 * map for this disk.
2129 * it to the list of maps for this disk type.
2144 * from the name of this disk. This is necessary
2150 * Fill in the partition info from the disk label.
2187 * disk to the partition map.
2194 * Search the disk list for a disk with the identical configuration.
2217 * This routine checks to see if a given disk type matches the type
2218 * in the disk label.
2249 * in the disk label.
2302 * This routine checks to see if the given disk name refers to the disk
2303 * in the given disk structure.
2306 diskname_match(char *name, struct disk_info *disk)
2313 * Match the name of the disk in the disk_info structure
2315 if (strcmp(name, disk->disk_name) == 0) {
2342 if (disk->disk_dkinfo.dki_ctype == dkinfo.dki_ctype &&
2343 disk->disk_dkinfo.dki_cnum == dkinfo.dki_cnum &&
2344 disk->disk_dkinfo.dki_unit == dkinfo.dki_unit &&
2345 strcmp(disk->disk_dkinfo.dki_dname, dkinfo.dki_dname) == 0) {
2384 * Search through all defined disk types for duplicate entries
2421 * for the same disk. It's possible to have two partitions with
2455 * Determine if two particular disk definitions are inconsistent.
2522 err_print("Inconsistent definitions for disk type '%s'\n",
2691 new_chg_list(struct disk_type *disk)
2698 if (disk->dtype_chglist == NULL) {
2699 disk->dtype_chglist = nc;
2701 for (cp = disk->dtype_chglist; cp->next; cp = cp->next)
2863 * Allocate a simple disk list array and fill it in
2875 * Sort the disk list array
2881 * Rebuild the linked list disk list structure
2898 * Compare two disk names
2973 * check if the disk is already present in
2974 * disk list.
2994 * one of the conventional whole disk name.