home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!creiman
- From: creiman@netcom.com (Charlie Reiman)
- Subject: Re: How to write a software that simulate a disk drive (volume)
- Message-ID: <1992Dec16.220502.25022@netcom.com>
- Keywords: question, disk drive, volume, big problems, wizards wanted
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- References: <1gnbguINNmr7@urmel.informatik.rwth-aachen.de>
- Date: Wed, 16 Dec 1992 22:05:02 GMT
- Lines: 40
-
- arminl@tabaqui.informatik.rwth-aachen.de (Armin Luetkenhaus) writes:
-
- >I'm going to write a piece of software that simulates a disk drive
- >on the Macintosh.
- >I want to mount a drive, i.e. make it appear on the desktop, make it
- >accessible to all file system calls and map these calls to my own
- >routines.
- >Possible the user interface could be similar to Apple's "AppleShare":
- >Another icon appears in the chooser, the user can click on this icon
- >and a list of the available volumes the user can mount appears.
-
- >Now to my question: I did never write such machine dependent code
- >before. Has anybody experience with such problems and/or can someone
- >give me some hints where I can get information about
- > 1) adding a volume to the desktop
- > 2) write chooser extensions?
- >Any kind of help is welcome!!!
-
- Writing an external file system (High Sierra, Messy DOS mounters, etc)
- is a sticky, nasty, unfun business. The path of least resistance seems
- to be Apple's XFS, which is buried under much offical voodoo. It's
- tough to get any docs for it and Apple keeps saying 'It'll change! Stay
- away! Keep back! We're warning you!'
-
- On the other hand, if you just want to make a _volume_, that's much
- easier. If you rip apart any of the popular RAMDisks, you'll see all
- they do is create a drive entry in the system's queue, mount it, and
- format it. No HFS/XFS mucking required. If you want to really know
- what's going on, get MacNosy and go digging. (Good advice for the above
- case also).
-
- In other words, it's much easier to write something that is only
- block-level aware. If you actually need to map to different directory
- structures or file types, things get rough quickly.
-
- Happy sailing.
-
- --
- Charlie Reiman
- creiman@netcom.com
-