Subject: Re: Patching Kernel for SCSI fix
To: Roger Fischer <rogerf1@mac.com>
From: Allen Briggs <briggs@wasabisystems.com>
List: port-mac68k
Date: 01/13/2001 17:46:48
> I seem to have lost the url that had the patches for fixing the scsi
> performance.  Can somebody please repost them?

Assuming you're talking about the Quadra performance, the patches are
at http://www.ninthwonder.com/~briggs/esp_diffs.gz

These are actually in the -current snapshots that Steve Allen has
produced, and they're in the -current source.  I've submitted the
changes for pullup to the 1.5 branch, but they haven't been pulled
up yet.

> In addition, I'm new to this patching thing, is there a HOWTO on how to
> patch code?

Not really, as far as I know, but then it's pretty straight-forward.
If you look at the (gunzipped) patch file, it contains changes to files
with a header for each file like:
diff -c -r1.25 -r1.27
*** obio/esp.c  2000/06/05 07:59:52     1.25
--- obio/esp.c  2000/12/29 21:31:44     1.27

This says that the diff was made in a directory with obio as a
subdirectory, so cd to .../sys/arch/mac68k.  Now, just run

	patch < .../esp_diffs

(where ... is the path to your gunzipped set of diffs).  It should
tell you what it's doing.  Each file that's patched will be copied
to filename.orig before it's patched.  If it can't find a file to patch,
it will ask you to tell it where to find the file.

-allen

-- 
 Allen Briggs                     briggs@wasabisystems.com
 http://www.wasabisystems.com/    Quality NetBSD CDs, Sales, Support, Service