xref: /csrg-svn/sys/tahoe/stand/vdformat/info.c (revision 29531)
1*29531Ssam #ifndef lint
2*29531Ssam static char sccsid[] = "@(#)info.c	1.1 (Berkeley/CCI) 07/05/86";
3*29531Ssam #endif
4*29531Ssam 
5*29531Ssam #include	"vdfmt.h"
6*29531Ssam 
7*29531Ssam /*
8*29531Ssam **
9*29531Ssam */
10*29531Ssam 
11*29531Ssam info()
12*29531Ssam {
13*29531Ssam 	extern boolean	read_bad_sector_map();
14*29531Ssam 	boolean		has_map;
15*29531Ssam 
16*29531Ssam 	cur.state = inf;
17*29531Ssam 	print("Gathering information for ");
18*29531Ssam 	printf("controller %d, drive %d.\n\n", cur.controller, cur.drive);
19*29531Ssam 
20*29531Ssam 	has_map = read_bad_sector_map();
21*29531Ssam 	print("Module serial number is %d.\n", bad_map->bs_id);
22*29531Ssam 	print("Drive type is %s.\n", CURRENT->vc_name);
23*29531Ssam 	if(has_map == true)
24*29531Ssam 		print("Drive contains a bad sector map.\n");
25*29531Ssam 	else
26*29531Ssam 		print("Drive does not contain a bad sector map.\n");
27*29531Ssam 	print_bad_sector_list();
28*29531Ssam 	print("Information display completed successfully.\n");
29*29531Ssam }
30*29531Ssam 
31