home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!maarten
- From: maarten@fwi.uva.nl (Maarten Carels)
- Subject: Re: How do I mount a SCSI device?
- Message-ID: <1992Sep1.091726.27915@fwi.uva.nl>
- Sender: news@fwi.uva.nl
- Nntp-Posting-Host: mail.fwi.uva.nl
- Organization: FWI, University of Amsterdam
- References: <BtuqLx.2xE@acsu.buffalo.edu> <BtuxzG.J80@world.std.com>
- Distribution: comp
- Date: Tue, 1 Sep 1992 09:17:26 GMT
- Lines: 35
-
- zobkiw@world.std.com (Joe Zobkiw) writes:
- >In article <BtuqLx.2xE@acsu.buffalo.edu> triantos@acsu.buffalo.edu (Nick B Triantos) writes:
- >>Hi,
- >>Forgive me if this is in the FAQ, but I couldn't find it. I'd like to write a
- >>program for myself that, when launched, will simply mount all SCSI devices it
- >>finds in the chain. I've looked in IM for a magic SCSIMount function, or
- >>something reasonably close, and I can't find anything which I can understand.
-
- >Look at the low-level File Manager calls such as PBMountVol...I think this
- >is what you want.
-
- Guess not. There is much more to do for SCSI devices. You have to:
- - determine it's there. Try to read block 0 from the device (you'll need it
- anyway). If you can't read the block, assume no device present.
- - using block 0, locate the driver on the disk, allocate memory in the system
- heap, read the driver, and jsr to it with some parameters in registers.
- - the driver should post a disk inserted event for any partition it wants
- to be mounted. Process all disk inserted events.
-
- Documentation for all of this?
- Inside Mac volume IV and V (SCSI manager, scsi disk layout)
- some technotes
- SCSI Development package (APDA, way out of date, but it some things are only
- documented in comments in the example driver).
-
- Are you sure you want to make such beastie?
- SCSI hacking on macintoshes is fun, but it's not easy (I know, I made disk
- drivers).
-
- --maarten
- --
- In real life: Maarten Carels
- Computer Science Department
- University of Amsterdam
- email: maarten@fwi.uva.nl
-