home *** CD-ROM | disk | FTP | other *** search
- 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
- From: ry53@rz.uni-karlsruhe.de (Angela Schmidt)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Getting a valid FileSysStartupMsg pointers.
- Date: 16 Dec 1992 16:42:48 GMT
- Organization: Nessyhoehle@I501.NessyNet.de
- Lines: 44
- Distribution: world
- Message-ID: <1gnma8INNou3@nz12.rz.uni-karlsruhe.de>
- References: <1992Dec13.030020.13319@mail.cornell.edu> <37848@cbmvax.commodore.com> <1giehaINN497@nz12.rz.uni-karlsruhe.de> <1992Dec15.110215.18810@odin.diku.dk>
- Reply-To: Angela@rz.uni-karlsruhe.de
- NNTP-Posting-Host: tp70.rz.uni-karlsruhe.de
-
- In article <1992Dec15.110215.18810@odin.diku.dk>, bombadil@diku.dk (Kristian Nielsen) writes:
- > ry53@rz.uni-karlsruhe.de (Angela Schmidt) writes:
-
- > >Or are there disks which are no real disks...?
- >
- > Yes. For example the RAM: disk, or XFH:, or some network file systems
- > apparently (?).
-
- Hmm - I don't know XFH:, but RAM: puts 0x00000000 into dn_Startup and
- so avoids any conflicts with other programs.
-
- > The problem is that programs like 'diskcopy' apparently assume that any
- > handler that satisfies 'IsFileSystem()' and has a non-null 'startup'
- > field is an exec-device based filing system with a valid FSSM. This
- > might be the only currently working way, but with the 'Startup' field
- > documented and supported in 'mount' it seems seriously broken.
-
- I'm writing a disk editor and I have the same problems as DiskCopy.
- I don't see any good way to guess if there's a fssm in dn_Startup
- or not. TypeOfMem() only works with RAM, but some of the entries in
- the fssm can be in ROM or even in the expansion space as well. So
- for now, I assume that non-zero-values mean that there is a valid
- fssm. I tried TypeOfMem() but I really missed some devices after that,
- because their device name (and I think the environment vector, too)
- was in ROM.
-
- > Anyway, I'd be VERY interested in any opinions on the best way to solve
- > this problem (ie. how to pass information to a file system handler that
- > cannot provide a valid FSSM). My current approach is to overwrite the
- > 'Startup' field in the device node with NULL (!), which is a terrible
- > hack IMHO.
-
- Hmm - overwriting it with 0x00000000 after you got your information
- sounds not too bad (IMHO). You only should remember to restore dn_Startup
- before you execute a real ACTION_DIE.
-
- V v
- @/@@=\ Salut,
- 00 &=- Angela
- oOoO_/` \\_
- \ /&\ Angela Schmidt cand. inf. (Nessy@IRC) | Amiga //
- |>O<| EMail: Angela@rz.uni-karlsruhe.de | 1000 //
- / \_/\/\/v, Weekend: +49 731 712316 (9am-9pm) | \\ // since
- /___________\ Weekdays: 721 6904263 (10am-11pm) | \X/ 1986
-