home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19929 < prev    next >
Encoding:
Text File  |  1992-12-16  |  2.2 KB  |  52 lines

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