Lines Matching full:defect

28  * This file contains functions to implement the defect menu commands.
39 * This is the working defect list. All the commands here operate on
41 * change their mind at any time without having mangled the current defect
106 * manufacturer's defect list from the current disk.
120 err_print("manufacturer's defect list.\n"); in d_original()
141 fmt_print("Extracting manufacturer's defect list..."); in d_original()
166 * entire defect list from the current disk.
179 err_print("current defect list.\n"); in d_extract()
189 "Cannot extract defect list from an unformatted disk. Continue"))) in d_extract()
209 fmt_print("Extracting defect list..."); in d_extract()
250 * enter the working defect list manually. It loops infinitely until
278 * and fill in the defect entry with the info. in d_add()
295 * about the defect and fill in the defect entry. in d_add()
301 "Enter defect's cylinder number", ':', in d_add()
304 def.head = input(FIO_INT, "Enter defect's head number", in d_add()
307 def.bfi = input(FIO_INT, "Enter defect's bytes-from-index", in d_add()
318 def.nbits = input(FIO_INT, "Enter defect's length (in bits)", in d_add()
322 * Calculate where in the defect list this defect belongs in d_add()
337 * necessary because the routines to add a defect to the list in d_add()
347 * Add the defect to the working list. in d_add()
350 fmt_print("defect number %d added.\n\n", index + 1); in d_add()
353 * Loop back for the next defect. in d_add()
364 * to manually delete a defect from the working list.
384 * Ask the user which defect should be deleted. Bounds are off by in d_delete()
389 num = input(FIO_INT, "Specify defect to be deleted (enter its number)", in d_delete()
397 * Print the defect selected and ask the user for confirmation. in d_delete()
406 * Move down all the defects beyond the one deleted so the defect in d_delete()
421 * Decrement the defect count. in d_delete()
432 fmt_print("defect number %d deleted.\n\n", ++num); in d_delete()
439 * defect list out in human-readable format.
476 * Loop through the each defect in the working list. in d_print()
507 * Print the defect. in d_print()
527 * defect list to a file.
549 * Ask the user for the name of the defect file. Note that the in d_dump()
553 str = (char *)(uintptr_t)input(FIO_OSTR, "Enter name of defect file", in d_dump()
563 err_print("unable to open defect file.\n"); in d_dump()
574 * Loop through each defect in the working list. Write the in d_dump()
575 * defect info to the defect file. in d_dump()
583 fmt_print("defect file updated, total of %d defects.\n", i); in d_dump()
585 * Close the defect file. in d_dump()
615 * Ask the user for the name of the defect file. Note that the in d_load()
618 str = (char *)(uintptr_t)input(FIO_OSTR, "Enter name of defect file", in d_load()
630 * See if the defect file is accessable. If not, we can't load in d_load()
636 err_print("defect file not accessable.\n"); in d_load()
649 * Open the defect file. in d_load()
652 err_print("unable to open defect file.\n"); in d_load()
662 * If the header is wrong, this isn't a good defect file. in d_load()
667 err_print("Defect file is corrupted.\n"); in d_load()
694 * Loop through each defect in the defect file. in d_load()
699 * Scan the info into the defect entry. in d_load()
710 * Check to be sure the checksum from the defect file was correct in d_load()
725 err_print("Defect file is corrupted, working list set to NULL.\n"); in d_load()
730 * Close the defect file. in d_load()
740 * defect list to be set equal to the working defect list. It is the only
758 if (check("Ready to update Current Defect List, continue")) in d_commit()
790 * Kill off any current defect list. in commit_list()
824 fmt_print("Defect List has a total of %d defects.\n", in commit_list()
827 fmt_print("Current Defect List updated, total of %d defects.\n", in commit_list()
836 * manufacturer's defect on the current disk from the defect list
851 err_print("manufacturer's defect list.\n"); in d_create()
861 "Ready to create the manufacturers defect information on the disk.\n\ in d_create()
869 fmt_print("Creating manufacturer's defect list..."); in d_create()
888 * Extract primary defect list - SCSI only
903 fmt_print("Extracting primary defect list..."); in d_primary()