*BSD News Article 21920


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!math.ohio-state.edu!news2.uunet.ca!fw.novatel.ca!hpeyerl
From: hpeyerl@novatel.ca (Herb Peyerl)
Newsgroups: comp.os.386bsd.questions
Subject: Re: bad144: limited to 126 by information format
Date: 5 Oct 1993 21:58:28 GMT
Organization: NovAtel Communications Ltd.
Lines: 28
Message-ID: <28sqm4$4ki@fw.novatel.ca>
References: <1993Oct04.184143.23884@crash>
NNTP-Posting-Host: sid.corp.novatel.ca
X-Newsreader: TIN [version 1.2 PL0]

Tom Zacharoff (warelock@crash.cts.com) wrote:
: My question is: I have the source code to bad144. There are numerous
: occurrences of the constant 126. If I change this 126 to a larger number like
: some multiple of 126 will this expand the capabilities of bad144 to handle
: more bad sectors? Or is this 126 something that cannot be mucked with? 

: Who can shed some light on this subject? Bad144 seems to work just great
: on the 126 sectors I have given it. Solid as a rock. But I need a bigger
: bad144 table. Help me please!

Look in <sys/dkbad.h> (note "struct dkbad")
Then look in src/sys/arch/i386/isa/wd.c

Basically; you're looking at big changes in the following:

<sys/dkbad.h>
src/sys/arch/i386/isa/wd.c
src/sbin/disklabel/disklabel.c
src/etc/etc.i386/disktab
src/sys/arch/i386/boot/*
src/lib/libc/gen/disklabel.c

And probably a few other things.

--
hpeyerl@novatel.ca                           |  NovAtel Commnications Ltd.
hpeyerl@fsa.ca                               | <nothing I say matters anyway>
       <NetBSD: A drinking group with a serious computing problem!>