File:  [Research Unix] / researchv10dc / cmd / oworm / scsi / worm.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

#include	"scsi.h"
#include	"worm.h"

s_worm(drive, block)
{
	struct scsi_o o;
	register Superblock *s = (Superblock *)o.data;
	int i = 0;

	do {
		Fprint(1, "[%d]@%d: nfree=%d nextfree=%d\n", i++, block, s->nfree, s->nextffree);
		s_read(drive, block, 1, &o);
		block = s->nextsb;
	} while((block > 0) && (block < 1700000));
	Fprint(1, "last block = %d\n", block);
	Fflush(1);
	return(0);
}

unix.superglobalmegacorp.com

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