From: Johnny Billquist <bqt@softjar.se>
Subject: Re: RMS-11
Date: Thu, 08 Sep 2011 14:32:32 +0200 [thread overview]
Message-ID: <j4acl0$en2$1@Iltempo.Update.UU.SE> (raw)
In-Reply-To: <4e687c78.22576246@news.optusnet.com.au>
On 2011-09-08 11.54, paramucho wrote:
> On Thu, 08 Sep 2011 08:27:28 +0200, Johnny Billquist<bqt@softjar.se>
> wrote:
>
>> On 2011-09-08 08.16, paramucho wrote:
>>> On Wed, 07 Sep 2011 22:06:38 +0200, Johnny Billquist<bqt@softjar.se>
>>> wrote:
>>>
>>>
>>>> In RMS? With the current implementation, FCS calls the device driver to
>>>> get a file id, based on a FNB. RMS claims to open the file without
>>>> calling the device driver at all. So it does not give any error.
>>>> However, trying to do I/O after that, means that my TCP/IP gives an
>>>> error, since there is no connection open on that LUN.
>>>>
>>>>> Can you single step the RMS code... for a while?
>>>>
>>>> I've done it some, and it's tedious and complex. RMS is not a small
>>>> library...
>>>
>>> I think I'm starting to understand the problem.
>>>
>>> Do you have a simple stand-alone RMS test app that demonstrates the
>>> problem? I have RSX-11M 4.4 and I also do testing in RUST/XM using an
>>> RSX AME (which doesn't support PLAS and only has really basic support
>>> for loadable libraries).
>>
>> Yes, I have an extremely short program that demonstrates the problem.
>> However, it isn't of any use to anyone else, since you also need my
>> TCP/IP to test this.
>> It is a question of RMS reacts/behaves with my device/or with devices
>> with different attributes.
>
> All I need to know about your device should be it's unit
> characteristics (record oriented FD.REC etc). That's what RMS will
> know about your device (from GLUN). I should be able to fudge the rest
> of the details to run a simple test program.
Yes, right. As long as you have a device on which to play with...
So, to answer your question, currently the characteristics are set as:
.WORD DV.SQD!DV.SDI!DV.DIR!DV.MNT!DV.REC ; U.CW1
and with that, I get FCS to:
1) Allow foreign filenames (by the combination of DV.SQD and DV.SDI).
2) FCS does not try to do directory lookups (DV.SDI)
3) Call the driver for IO.ENA/IO.FNA/IO.RNA (DV.DIR)
(If the file is to be created, IO.ENA is called, if it's open for
read, then IO.FNA is called, I don't really care about IO.RNA).
This step allows me to do parsing of the filename block and get a
File ID, which is used as an IP address and a port number.
4) Call the driver with IO.ACR/IO.ACE/IO.ACW to actually open the
socket. This call only have a file id as the argument, and it's only
called if DV.MNT is set.
DV.REC is good to have since otherwise FCS will think that this is a
tape device, and will do blocking/deblocking of I/O, as well as expect
ANSI "D" type records. Without DV.REC, FCS will also call the driver
with IO.CRE to create the file. That would not be a problem though, as I
can just ignore it.
Some of these flags, I could consider fooling around with, if it would
get RMS to act the way I want.
Like I said, what I'd like, is calls with IO.FNA/IO.ENA and IO.ACx from
RMS as well.
That said, I might be able to work around this by just using a small
macro routine to complete the opening when using RMS, and then use the
normal routines for the rest of it....
> I have some tools which let me look at the behavior of apps and play
> around with the environment. The first is the RUST RSX AME directive
> trace. Here's an example trace using RSX PIP:
[...]
Hey, nice!
What is RUST though? I know I've seen the name, but I can't remember
right now.
> Using trace I can look at the behavior if different device
> characteristics settings, and I can locate the point at which RMS
> looks at the settings (GLUN).
Right.
> The RUST emulator debugger stores the last few hundred instructions so
> it's simple to walk back through code and I can use WATCH to track
> access to specific pieces of data (such as the unit characteristics).
> If I need anything else I just modify the emulator.
>
> My guess is that RMS is going to need a patch since you want your
> device to look like two different sorts of device to it.
It might actually be a rather complex patch. It might be easier to just
work around in that case. But I don't know for sure, so any help is
appreciated.
>> However, if you want to try and understand anything, you are welcome to
>> log into my development system and step through RMS in there. :-)
>> (It's Mim.Update.UU.SE, guest/guest)
>
> I successfully logged in (after I remembered how HELLO works) and I
> managed to look around, but I couldn't see any test programs.
DU:[IPLIB]TEST4.MAC
Johnny
next prev parent reply other threads:[~2011-09-08 12:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-06 21:49 RMS-11 Johnny Billquist
2011-09-07 15:34 ` RMS-11 Hein RMS van den Heuvel
2011-09-07 20:06 ` RMS-11 Johnny Billquist
2011-09-08 6:16 ` RMS-11 paramucho
2011-09-08 6:27 ` RMS-11 Johnny Billquist
2011-09-08 9:54 ` RMS-11 paramucho
2011-09-08 12:32 ` Johnny Billquist [this message]
2011-09-08 17:12 ` RMS-11 paramucho
2011-09-08 18:41 ` RMS-11 Johnny Billquist
2011-09-09 14:32 ` RMS-11 paramucho
2011-09-09 15:48 ` RMS-11 Johnny Billquist
2011-09-09 16:12 ` RMS-11 paramucho
2011-09-09 17:06 ` RMS-11 Johnny Billquist
2011-09-14 15:29 ` RMS-11 paramucho
2011-09-14 18:55 ` RMS-11 Johnny Billquist
2011-09-08 13:48 ` RMS-11 Bob Koehler
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox