|
|
1.1 ! root 1: #ifndef lint ! 2: static char sccsid[] = "@(#)info.c 1.3 (Berkeley/CCI) 6/24/90"; ! 3: #endif ! 4: ! 5: #include "vdfmt.h" ! 6: ! 7: /* ! 8: ** ! 9: */ ! 10: ! 11: info() ! 12: { ! 13: extern boolean read_bad_sector_map(); ! 14: boolean has_map; ! 15: ! 16: cur.state = inf; ! 17: print("Gathering information for "); ! 18: printf("controller %d, drive %d.\n\n", cur.controller, cur.drive); ! 19: ! 20: has_map = read_bad_sector_map(); ! 21: if(has_map == true) { ! 22: print("Module serial number is %d.\n", bad_map->bs_id); ! 23: print("Drive contains a%s bad sector map.\n", ! 24: (bad_map == &offset_bad_map) ? "n old-style" : ""); ! 25: } else ! 26: print("Drive does not contain a bad sector map.\n"); ! 27: print_bad_sector_list(); ! 28: } ! 29:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.