Re: modules memory (Was: sound volume and kerneld)

Mike Civil (mike@duncodin.demon.co.uk)
Wed, 10 Apr 1996 21:38:59 +0100


In article <96Apr10.082022edt.106763-145+561@vger.rutgers.edu> you write:
>Actually the problem of keeping settings between modules invocation
>is not limited to the sound module. Another module which applies is
>the tape module (i use st.o, but i think also ftape.o applies).
>the problem is remembering the current file position when you have
>multiple filemarks.
>ie: you do
># mt fsf 12
>go drink a coffe while it goes,
># mt status
>and it tells you are at file 0, while the tape IS at file 12 :(

Surely the default action for mt is to use the rewind device (unless you
override it)? Then I'd expect the tape to be at file 0 after the commands
above....:)

As regards the floppy tape driver, the zftape author has done this by not
decrementing the reference count if we use the non-rewind device. This has
the effect of pinning the module until we use a rewind device. Not ideal in
the general case, but it works pretty well for tape handling.

Just my $0.02.

Cheers,

Mike