lkml.org 
[lkml]   [1996]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: modules memory (Was: sound volume and kerneld)
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



\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.036 / U:1.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site