Lines Matching defs:disk

104  * This routine implements the 'disk' command.  It allows the user to
105 * select a disk to be current. The list of choices is the list of
111 struct disk_info *disk;
126 * disk when performing a blind selection. The size should be sufficient
127 * to hold the prompt string, plus 256 characters for the disk name -
134 * disk number to be selected is already in the
140 * Get the disk number the user has given.
143 for (disk = disk_list; disk != NULL; disk = disk->disk_next) {
174 * more style of output for disk selection list.
187 for (disk = disk_list; disk != NULL; disk = disk->disk_next) {
189 * If using more output, account 2 lines for each disk.
225 * If this is the current disk, mark it as
228 if (cur_disk == disk) {
233 pr_diskline(disk, i);
244 * Determine total number of disks, and ask the user which disk he
248 for (disk = disk_list; disk != NULL; disk = disk->disk_next) {
254 index = input(FIO_INT, "Specify disk (enter its number)", ':',
262 * Find the disk chosen. Search through controllers/disks
268 for (disk = disk_list; disk != NULL; disk = disk->disk_next) {
276 impossible("no disk found");
281 "Disk %s selected - is this the desired disk? ", disk->disk_name);
293 init_globals(disk);
301 (disk->label_type != L_TYPE_EFI)) {
331 * If the label of the disk is marked dirty,
332 * see if they'd like to label the disk now.
349 * specify the type of the current disk. It should be necessary only
350 * if the disk was not labelled or was somehow labelled incorrectly.
351 * The list of legal types for the disk comes from information that was
372 * There must be a current disk.
413 * Ask the user which type the disk is.
415 index = input(FIO_INT, "Specify disk type (enter its number)", ':',
564 * the new disk type does not have any defined
591 * User picked an existing disk type.
619 "Cannot set disk type while it has mounted "
628 err_print("Cannot set disk type while its partition are "
640 err_print("Cannot set disk type while its "
646 * mark the disk as not labelled and reload the current
648 * right thing to do, since the size of the disk has probably
658 * Initialize the state of the current disk.
665 * If the label of the disk is marked dirty,
666 * see if they'd like to label the disk now.
690 * There must be a current disk type and a current disk
727 * current disk.
734 * If there is no current disk, say so. Note that this is
742 * Print out the info we have on the current disk.
786 * to format and verify any portion of the disk.
815 * There must be a current disk type and a current disk
836 * can only be retrieved after formatting the disk.
849 * disk as the default, since that is the most likely case.
850 * Note, for disks which must be formatted accross the whole disk,
897 "Cannot format disk while it has mounted partitions.\n\n");
904 err_print("Cannot format disk while its partition are \
913 err_print("Cannot format disk while its partitions "
919 fmt_print("Current disk sector size is %d Byte, format\n"
933 * Check if the protect information of this disk is enabled
944 "The disk will be formatted with protection type 0\n");
958 fmt_print("This disk can support protection types:\n");
1007 fmt_print("\nThe disk is currently formatted with TYPE_%d.\n",
1025 fmt_print("The disk will be formatted to type %d\n", prot_type);
1151 * since we can't access it until after formatting a virgin disk.
1208 * to reallocate sectors on the disk that have gone bad.
1222 * There must be a current disk type (and therefore a current disk).
1229 * The current disk must be formatted for repair to work.
1247 err_print("or disk supports automatic defect management.\n");
1344 * Lock out interrupts so the disk can't get out of sync with
1427 * This routine implements the 'show' command. It translates a disk
1438 * There must be a current disk type, so we will know the geometry.
1445 * Ask the user for a disk block.
1453 bn = input(FIO_BN, "Enter a disk block", ':',
1466 * primary and backup labels onto the current disk.
1475 * There must be a current disk type (and therefore a current disk).
1482 * The current disk must be formatted to label it.
1496 * on the current disk. If so, refuse to label the disk, but
1503 err_print("Cannot label disk while it has "
1511 * on the current disk. If so, refuse to label the disk, but
1516 err_print("Cannot label disk while its "
1525 * are on the disk. If so, refuse to label the disk, but only
1530 err_print("Cannot label disk when "
1598 fmt_print("Warning: This disk has an EFI label. "
1668 fmt_print("Warning: This disk has an SMI label. "
1741 if (check("Ready to label disk, continue")) {
1763 * There must be a current disk type (and therefor a current disk).
1790 * There must be a current disk type (and therefor a current disk).
1804 err_print("or disk supports automatic defect management.\n");
1852 * to search for backup labels on the current disk. This is useful
1854 * partition information for the disk. The disk is relabeled and
1868 * There must be a current disk type (and therefore a current disk).
1875 * The disk must be formatted to read backup labels.
1888 * If we found a primary label on this disk, make sure
1948 * Find out which disk type the backup label claims.
1961 Unknown disk type in backup label\n");
1988 * for the new map is derived from the disk name.
2053 * This routine is called by c_verify() for an EFI labeled disk
2101 * to read the labels on the current disk.
2118 * There must be a current disk type (and therefore a current disk).
2125 * The disk must be formatted to read labels.
2138 * Branch off here if the disk is EFI labelled.
2172 Warning: Primary label on disk appears to be different from\ncurrent label.\n");
2275 Warning: Check the current partitioning and 'label' the disk or use the\n\
2368 * primary and backup labels onto the current disk.
2384 * There must be a current disk type (and therefore a current disk).
2391 * The current disk must be formatted to label it.
2404 * The current disk must be formatted to label it.
2408 "Please select a partition map for the disk first.\n");
2414 * on the current disk. If so, refuse to label the disk, but
2422 "Cannot label disk while it has mounted partitions.\n\n");
2429 * on the current disk. If so, refuse to label the disk, but
2437 "Cannot label disk while its partitions are currently \
2445 * or live upgrade are on the disk. If so, refuse to label the
2446 * disk, but only if we are trying to shrink a partition in
2451 err_print("Cannot label disk while its partitions "
2457 * Prompt for the disk volume name.
2498 if (check("Ready to label disk, continue")) {