|
|
1.1 ! root 1: #include "vdfmt.h" ! 2: ! 3: /* ! 4: ** ! 5: */ ! 6: ! 7: info() ! 8: { ! 9: extern boolean read_bad_sector_map(); ! 10: boolean has_map; ! 11: ! 12: cur.state = inf; ! 13: print("Gathering information for "); ! 14: printf("controller %d, drive %d.\n\n", cur.controller, cur.drive); ! 15: ! 16: has_map = read_bad_sector_map(); ! 17: print("Module serial number is %d.\n", bad_map->bs_id); ! 18: print("Drive type is %s.\n", CURRENT->type_name); ! 19: if(has_map == true) ! 20: print("Drive contains a bad sector map.\n"); ! 21: else ! 22: print("Drive does not contain a bad sector map.\n"); ! 23: print_bad_sector_list(); ! 24: print("Information display completed successfully.\n"); ! 25: } ! 26:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.