Subject: pdisk binary & source diffs avail. for alpha testing
To: NetBSD Mailing List <port-mac68k@NetBSD.ORG>
From: David A. Gatwood <marsmail@globegate.utm.edu>
List: port-mac68k
Date: 04/12/1998 21:58:14
GENERAL:


Please, if you have a spare hard drive that you don't mind getting horked
if something doesn't work, try this.  :-)  For anyone interested, the
latest version of pdisk fixes whatever caused the sbc driver to spew that
handful of illegal request messages.  Since I don't have a drive to spare,
I've only tested this at reading the partition table, so your mileage may
vary.



KNOWN PROBLEMS:


1.  there's a weird bug in the code that reads command line options, which
causes it to try to use the first argument as the first drive whose
partition table you're playing with.

Workaround: hit Q (that's capital) to skip to the next one, which should
be the drive that you specified on the command line

2.  the help and stuff is MkLinux-y.  No biggie.
3.  you need to comment out the CFLAGS line in the makefile and uncomment
the NetBSD-specific CFLAGS line.



DOWNLOADING:


In order for any of this to work, you either have to download the binary
or a copy of current sources and my diff.  For current sources, download:

ftp://ftp.mklinux.apple.com/pub/wip/pdisk/current/pdisk.src.tar


My patch file for NetBSD-mac68k and a test binary are available at

ftp://globegate.utm.edu/pub/NetBSD/pdisk



PLEA:


If someone knows something about getopt, please take a look at the code
there.  The linux version uses getopt_long, which NetBSD apparently
doesn't have, so the cheap hack way around it is to leave off the last two
args, but apparently something is just different enough under NetBSD to
keep that from working quite right.


DISCLAIMER & LEGAL STUFF:


Neither I nor anyone affiliated with NetBSD, MkLinux, Apple Computer,
OSF/Open Group, or The University of Tennessee at Martin, or anyone else
in the known universe takes any responsibility for the use of this
program under any circumstances, in any situation.  Use it at your own
risk. You have been warned.



Later,
David

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/CC/FA/H/L/MC/M/MU/PA/TW d-@ s:>- a-- C++++>$ UBLAS*++++>$
P+?>$ L+++>$ !E--- W+++>$ N++(+++)>+++$ !o? K-? !w--- !O
M++>$ !V-- PS+>$ !PE- Y+>$ PGP+>$ t+++>$ 5+>++++$ !X- !R tv+>$
b++>$ !DI !D- G++(+++)>$ e>++++ h--! r--- !y-
------END GEEK CODE BLOCK------