home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17435 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  2.7 KB

  1. Path: sparky!uunet!europa.asd.contel.com!emory!swrinde!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!ira.uka.de!rz.uni-karlsruhe.de!rz.uni-karlsruhe.de!ry53
  2. From: ry53@rz.uni-karlsruhe.de (Angela Schmidt)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Getting a valid FileSysStartupMsg pointers.
  5. Date: 16 Dec 1992 16:42:48 GMT
  6. Organization: Nessyhoehle@I501.NessyNet.de
  7. Lines: 44
  8. Distribution: world
  9. Message-ID: <1gnma8INNou3@nz12.rz.uni-karlsruhe.de>
  10. References: <1992Dec13.030020.13319@mail.cornell.edu> <37848@cbmvax.commodore.com> <1giehaINN497@nz12.rz.uni-karlsruhe.de> <1992Dec15.110215.18810@odin.diku.dk>
  11. Reply-To: Angela@rz.uni-karlsruhe.de
  12. NNTP-Posting-Host: tp70.rz.uni-karlsruhe.de
  13.  
  14. In article <1992Dec15.110215.18810@odin.diku.dk>, bombadil@diku.dk (Kristian Nielsen) writes:
  15. > ry53@rz.uni-karlsruhe.de (Angela Schmidt) writes:
  16.  
  17. > >Or are there disks which are no real disks...?
  18. > Yes. For example the RAM: disk, or XFH:, or some network file systems
  19. > apparently (?).
  20.  
  21. Hmm - I don't know XFH:, but RAM: puts 0x00000000 into dn_Startup and
  22. so avoids any conflicts with other programs.
  23.  
  24. > The problem is that programs like 'diskcopy' apparently assume that any
  25. > handler that satisfies 'IsFileSystem()' and has a non-null 'startup'
  26. > field is an exec-device based filing system with a valid FSSM. This
  27. > might be the only currently working way, but with the 'Startup' field
  28. > documented and supported in 'mount' it seems seriously broken.
  29.  
  30. I'm writing a disk editor and I have the same problems as DiskCopy.
  31. I don't see any good way to guess if there's a fssm in dn_Startup
  32. or not. TypeOfMem() only works with RAM, but some of the entries in
  33. the fssm can be in ROM or even in the expansion space as well. So
  34. for now, I assume that non-zero-values mean that there is a valid
  35. fssm. I tried TypeOfMem() but I really missed some devices after that,
  36. because their device name (and I think the environment vector, too)
  37. was in ROM.
  38.  
  39. > Anyway, I'd be VERY interested in any opinions on the best way to solve
  40. > this problem (ie. how to pass information to a file system handler that
  41. > cannot provide a valid FSSM). My current approach is to overwrite the
  42. > 'Startup' field in the device node with NULL (!), which is a terrible
  43. > hack IMHO.
  44.  
  45. Hmm - overwriting it with 0x00000000 after you got your information
  46. sounds not too bad (IMHO). You only should remember to restore dn_Startup
  47. before you execute a real ACTION_DIE.
  48.  
  49.      V v
  50.   @/@@=\   Salut,
  51.     00 &=-      Angela 
  52. oOoO_/` \\_
  53.     \ /&\   Angela Schmidt cand. inf. (Nessy@IRC) | Amiga //
  54.   |>O<|         EMail: Angela@rz.uni-karlsruhe.de | 1000 // 
  55.    / \_/\/\/v,  Weekend: +49 731 712316 (9am-9pm) |  \\ // since 
  56.   /___________\ Weekdays: 721 6904263 (10am-11pm) |   \X/ 1986 
  57.