05/30/94: Ramdisk by Delphi, | Category: Delphi - System Modules 6809 | 12 comments - (Comments are closed)


87651 30-MAY 20:42 System Modules (6809)
From: WDTV5 To: ALL

I’m in the middle of doing a fresh ramdisk for the os-9’ers, based VERY
loosely on the devpack version but capable of useing ram up to the amount
in the machine even if its a 2 megger!
I started on this because the compiler chokes if /r0 isn’t iniz’ed first,
thinking that was a bug. Well it is and it isn’t. OS-9 is doing that to
us as it does its own “iniz” on the module if it hasn’t been already,
then allows the write of a file to the ramdisk without reporting any
errors. Unforch, if it self initialized it, it also de-inits it at the
end of the write! So the file is lost, and c.pass1 (ansifront) can’t
find the output from c.prep. I want to stop that, effectivly making the
ramdisk refuse to deinit if the directory isn’t empty. I’m torn between
using the regular error paths to report it, or just outputting the
phrase “the root dir isn’t empty” on stderr. If I use an error number,
then the compiler and other progs will probably choke on it anyway when
in fact they could keep on truckin! So I need some input, what do tou
all (you) want it to do. The choices are to ignore it without errors, and
let you folks learn to delete all files before deiniting, haveing an
error mesage pop up at odd times, or returning a process killing error.
What’ll it be folks?
Cheers all, Gene

12 comments to Ramdisk

  • pucc_unknown

    87655 30-MAY 22:48 System Modules (6809)
    RE: Ramdisk (Re: Msg 87651)
    From: JRUPPEL To: WDTV5

    For one who has run up on several problems due to lazy ramdisk etiquette, I
    for one would like a ramdisk to doesn’t go away and won’t choke the process
    I’m running to death if I forget to iniz or forget to empty it before I shut

    it down. Also, my ramdisk is buggy running Supercomm. It goes south even if I
    don’t forget to set it up before using it. Dmode returns a disk sector count
    of over 13 MILLION! I’m running Powerboost, BTW, with a 2-megger.

    John Ruppel

  • pucc_unknown

    87663 31-MAY 02:26 System Modules (6809)
    RE: Ramdisk (Re: Msg 87655)
    From: MITHELEN To: WDTV5

    The only “problem” i see with you idea, is that being able to deiniz the ram
    disk, even with a bunch of file on it, is a goo way to “reformat” it, or
    delete a lot of junk files that may have been left on it…

  • pucc_unknown

    87680 31-MAY 22:08 System Modules (6809)
    RE: Ramdisk (Re: Msg 87655)
    From: WDTV5 To: JRUPPEL

    You’re doing something I’ve not done, use the ramdisk as a dl catcher. I
    always goto the default dir option I’v got programmed into SC23 here.
    Which is direct to my hard drive as i figure if I don’t like it, theres
    always that ‘del’ I wrote to handle bad puppies. So I can’t define by my
    own experience whether or not the ramdisk is flakey when running SC.
    However, I will check into that before I’m done. Right now, whats happening
    to the ramdisk if you forget to Iniz it is that os9 iniz’s it just long
    enough to allow an error free copy into it to take place, but as soon as
    the copy operation is done, os9’s internal link count for that device goes
    back to zero so os9 deinits the darned thiing. Increasing the link count
    in the root directories FD sector does NOT tell os9 to leave it alone.
    According to what I’m reading, and my interpretation of same, if the link
    count is greater than 0, it should leave it alone. It don’t, needless to
    say. I may be able to diddle os9’s own copy of that link count but so far
    have not investigated that path yet, time constraints and all that.
    On another tack, I did figure out how to divide my golf score by 3 legally.
    Easy when you’re in a “best ball” tournament with the 2 top players around.
    I guess putting up with me was their pennance for something or other, but
    we did make enough to get our entry fee back! Small town golf course &
    CC. Cheers John, Gene