Lines Matching full:defect
27 * This file contains routines that manipulate the defect list.
56 * the disk uses bad-144 defect mapping.
62 * This routine reads the defect list off the disk. It also reads in the
63 * bad block table if the disk is a BAD144 type. The defect list is
96 fmt_print("Defect list BAD\n"); in read_list()
106 fmt_print("Defect list BAD\n"); in read_list()
112 fmt_print("No defect list found\n"); in read_list()
117 * Loop for each copy of the defect list until we get a good one. in read_list()
201 * This routine either checks or calculates the checksum for a defect
232 * This routine prints a single defect to stdout in a readable format.
239 * Make defect numbering look 1 relative. in pr_defect()
264 * This routine calculates where in a defect list a given defect should
265 * be sorted. It returns the index that the defect should become. The
277 * If it's a logical sector defect, return the entry at the end in sort_defect()
283 * It's a bfi defect. Loop through the defect list. in sort_defect()
287 * If we get to a logical sector defect, put this defect in sort_defect()
293 * If we get to a defect that is past this one in in sort_defect()
294 * cylinder/head/bfi, put this defect right before it. in sort_defect()
309 * Return the index to put the defect at. in sort_defect()
315 * This routine writes the defect list on the back on the disk. It also
353 * calculate how many sectors the defect list will occupy. in write_deflist()
366 "Warning: error saving defect list.\n"); in write_deflist()
374 "Warning: error saving defect list.\n"); in write_deflist()
404 * This routine adds a logical sector to the given defect list.
414 * Calculate the fields for the defect struct. in add_ldef()
424 * Calculate the index into the list that the defect belongs at. in add_ldef()
428 * Add the defect to the list. in add_ldef()
434 * This routine adds the given defect struct to the defect list at
443 * If adding this defect makes the list overflow into another in add_def()
456 * Fill in the created hole with this defect. in add_def()
467 * This routine sets the given defect list back to null.
490 * This routine returns the defect list size