File:  [CSRG BSD Unix] / 43BSDReno / sys / tahoestand / vdformat / info.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:57 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

#ifndef lint
static char sccsid[] = "@(#)info.c	1.3 (Berkeley/CCI) 6/24/90";
#endif

#include	"vdfmt.h"

/*
**
*/

info()
{
	extern boolean	read_bad_sector_map();
	boolean		has_map;

	cur.state = inf;
	print("Gathering information for ");
	printf("controller %d, drive %d.\n\n", cur.controller, cur.drive);

	has_map = read_bad_sector_map();
	if(has_map == true) {
		print("Module serial number is %d.\n", bad_map->bs_id);
		print("Drive contains a%s bad sector map.\n",
		    (bad_map == &offset_bad_map) ? "n old-style" : "");
	} else
		print("Drive does not contain a bad sector map.\n");
	print_bad_sector_list();
}


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.