Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Jerome H. Fine" <everyone@nospam.com>
Subject: Re: PDP11 Values from MFPT
Date: Tue, 21 Feb 2012 21:51:04 -0500	[thread overview]
Message-ID: <4f445807$0$294$14726298@news.sunsite.dk> (raw)
In-Reply-To: <4f434899.23922519@nntp.aioe.org>

[-- Attachment #1: Type: text/plain, Size: 10471 bytes --]

 >paramucho wrote:

>>On Mon, 20 Feb 2012 22:29:03 -0500, "Jerome H. Fine" wrote:
>
>>>RT-11 does not provide a directory scan system call, so utilities must
>>>access the directory directly to scan them. RT-11 guarantees that a
>>>directory structure begins at block 6 of a file structured device.
>>>
>>Actually, while DEC  ALWAYS starts the directory structure
>>at block 6 of a file structured device, that is not required since
>>in block 1, there is a value which holds the starting block number.
>>
>>I stress that DEC has never used a different value and that ALL
>>present code ignores the starting block number specified within
>>block 1, but it is a possibility.
>>
>Right. I'm aware of that home block value. It was never used by any
>version of RT-11 that I know of. I've sometimes thought it might have
>been used by RTEM. I thought of using it myself when I implemented
>RUST/SJ sub-directories, but it wasn't worth it.
>  
>
However, while I VERY much doubt that there will ever be
a reason to make such a major change to the RT-11 file
structure, it could be done.  Since it would make every
previous version of RT-11 incompatible with the use of
a different starting block number, there seems no reason
at the present time to do so, especially since there is nothing
extra that could be done except in a few cases where the
media has hardware faults in the blocks where the file
directory segments normally are located - blocks 6 to 67.

>>>Early versions of RT-11 supported a mechanism by which the USR would
>>>"callback" a program at critical points with a pointer to the
>>>directory entry being processed. Most if not all this utility code has
>>>been replaced by later system calls which read and write individual
>>>directory entries without a callback. However, except for disk
>>>initialization etc, no RT-11 utility directly modifies a directory
>>>with a .READ/.WRITE sequence.
>>>
>>That "undocumented" "callback" mechanism is still present
>>in RT-11, just not used any more by the latest versions of
>>DEC  SAV files within RT-11.  That code has been
>>replaced by code which uses the additional file EMT
>>requests.
>>
>>So it actually is still possible and still "undocumented".
>>
>>I suspect that versions of PIP which used the "callback"
>>mechanism will still function correctly if the RT-11 version
>>number check is circumvented.
>>
>>There are other still "undocumented" features in RT-11 such
>>as READ  ONLY / WRITE  PROTECTED files.
>>
>They are directory entry flags which were defined in the final stages
>of RT-11. They were barely used. The Read-only flag is copied by
>.LOOKUP, but that's about it. I haven't bothered implementing it
>because the new flags are not backwards compatible with earlier
>versions of RT-11 (which is, historically, partly my fault).
>  
>
Are you suggesting that the PROTECTED bit in the
status word of a file label ever changed from the highest
order bit (bit 15 = 100000 making a word negative) over
the course of RT-11?  Bit 14 (040000) is used as the
READ  ONLY bit and is always compatible with the
other bits that are used.

The bit definition is E.READ and that definition is available
for the first word in a file label for file structures devices
starting with V05.05 of RT-11.  It is used in the RT-11
monitor ONLY  TWICE.

Also, I am not sure what you define as the final stages of
RT-11.  The instruction:
        Bit    #<E.READ>,@R3
first appeared in RMONFB.MAC under V05.05 of RT-11
in 1989, so in my opinion, it was available with the code to
support extended device drivers with 64 devices as opposed
to just 8 devices available under V05.04G of RT-11 in 1988.

While V05.05 of RT-11 was certainly after many of the
early distributions, the addition of enhanced device drivers
was, in my opinion, a very major enhancement and I would
not say it arrived in the final stages.  The pressure on DEC
was probably from the third party developers who supported
a form of enhanced device drivers, but which required another
form to implement.  The DEC method was rather elegant if
I am allowed to say so.  The ONLY major aspect which was
omitted from enhanced MSCP device drivers was the ability
to BOOT more than the first 8 devices.  That additional
enhancement was easily added for an MSCP device with a
single pair of CSR / VECTOR which then required only a
single word to hold the UNIT / PART value (a byte each)
in the boot block.

The only other instruction was:
       Bic    #^C<E.READ>,@SP
in the USR.MAC under V05.05 of RT-11 to support keeping
the E.READ bit in the first of the five CSWs when a .LookUp
was performed.  That takes a total of about 6 instructions in
two locations in the monitor of RT-11 to handle READ  ONLY /
WRITE  PROTECTED files.  Thus, the extra code in the RT-11
monitor is trivial compared to the importance of having
READ  ONLY files.

Obviously, the RT-11 development team had the idea a long
time previous to the appearance of the code in V05.05 of
RT-11.  The fact that the necessary changes to DIR and PIP
were never made indicates something that I find difficult to
understand - if Megan Gentry or someone else on the RT-11
development team could comment as to why the DIR and PIP
code was never implemented and distributed, it would help
to understand what the viewpoint was at DEC.

>[Snip]
>
>However, you don't need to use the USR to open files on special
>directory devices. Instead, you use .SPFUN with the appropriate
>function codes (indeed, that's exactly how the USR handles these
>devices).
>  
>
I don't think that is actually the case.  I seem to remember
that the USR does ordinary .READW and .WRITW on
the file directory to accomplish a .LookUp or a .Enter for
a file.  I can find the code if you would find that helpful.

>>>The "special device" interface and RT-11 directory structure can be
>>>used to simulate other kinds of devices. I use these two features to
>>>implement a transparent remote file system which permits PDP-11 users
>>>access remote directories as if they were local.
>>>
>>Do you have any details that you are willing to share?
>>I know that DO(X).SYS which John Wilson wrote
>>to execute under E11 may do something similar with
>>DOS directories, but I have never used DO(X).SYS
>>and I have not looked at the code.
>>
>I first supported transparent remote directories in the late
>seventies. There are two crucial features in the RUST implementations:
>
>1. Logical names. If you define the following logical name xxx:
>
>. define xxx nf
>
RT-11 does not support the DEFINE command.  In
addition, RUST must obviously have additional data
structures which interact with the USR equivalent.
Can you please describe a bit of how the DEFINE
structures are set up and used?  Unless, of course,
NF: is handled as a device driver.

>Then when you access XXX: the NF driver will look for the logical name
>at the server. (To handle this on Windows I had to implement a Windows
>Logical Name system for my environment). On RUST/SJ the default
>translation for a logical name is usually NF:.
>  
>
It would be helpful to understand a bit more.
This does not seem as if it is present in RT-11.

>>Under RT-11, I have looked at the technical aspects
>>of an LN(X).SYS device handler (Logical Name Device
>>List Pseudo Device Driver) which supports the same
>>functions as the PATH on DOS or the LNL on VMS.
>>Note that in the latter case, many levels of directories
>>can be used under VMS while for RT-11, only a single
>>device name can be used for each entry.  Thus when an
>>RT-11 user wishes to have a .LookUp performed (and
>>ONLY a .LookUp EMT request is supported) on the
>>file LN2:FOOBAR.TYP, the .LookUp EMT request
>>code in the USR knows to search the Logical Name
>>Device List in the specified order. For example, use:
>>
>>LN2:  =>  LD2:, LD1:, DU3:
>>
>>until the specified file with that device name is found.
>>When I wrote the code for the first preliminary version,
>>I used the RT-11 ASSIGN command to:
>>
>>ASSIGN  LD2:  L2A:
>>ASSIGN  LD1:  L2B:
>>ASSIGN  DU3:  L2C:
>>
>>and then searched the four names:  L2A, L2B, L2C and L2D
>>to locate the file name.  After I realized that this would use
>>up too many entries in the ASSIGNed table, I enhanced the
>>code of the LN(X).SYS device driver to hold a "Logical Name
>>Device List" within the device driver file in the same manner
>>as LD(X).SYS so that the ASSIGNed table would not be
>>required.
>>    
>>
>
>RUST systems support DEFINE/PATH to handle this situation:
>
>. define/path sy vm,sy,tmp
>
>instructs the system to search VM:, SY: and TMP:, in that order for
>lookups to SY:.
>
RUST must have additional code and data structures
to support this feature.  If does not seem that RT-11
could easily make this available to the user.

I agree that LN(X).SYS under RT-11 uses the existing
device drivers in the traditional manner, but this allows
the user to also use the existing SET commands in the
normal RT-11 manner.

However, your description of the "DEFINE / PATH"
command suggests a much easier easier way for the
user to accomplish the same thing:

SET  LN2:  DEVICES=VM:,SY:,TMP:

Note that the LN(X).SYS is a completely new device
driver.

>>Is the code that you use to access remote directories supported
>>by both RT-11 and RUST or just RUST?  Have you modified
>>an existing device driver or written a new one? The name
>>RM(X).SYS would be a suitable name for the device driver,
>>but I expect that you did not use those two characters.
>>
>They are all new drivers. I don' use any DEC source code. When I first
>wrote them, many years ago, they also functioned under RT-11, but I
>haven't really tested them there for many years and I guess there are
>some new features which might break. I've just got some real PDP-11s
>working for the first time in a couple of years and I know I have to
>some testing in that general area, so I'll try it out.
>
>The RUST/SJ NFV.SYS is on the RUST/SJ kit. At present it probably only
>work properly with the Windows server NF.EXE, also in the RUST kit.
>WinPCap is also required. The documentation is at 
>http://rust.wikispaces.com/.
>
Thank you for the information thus far.  If you care to
expand, it would be appreciated.

Jerome Fine

[-- Attachment #2: Type: text/html, Size: 12703 bytes --]

  parent reply	other threads:[~2012-02-22  2:50 UTC|newest]

Thread overview: 222+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-15 14:37 PDP11 Values from MFPT Jerome H. Fine
2012-01-18  6:03 ` paramucho
2012-01-18 11:28   ` Johnny Billquist
2012-01-18 13:05     ` glen herrmannsfeldt
2012-01-18 13:26       ` Johnny Billquist
2012-01-26  3:24         ` Jerome H. Fine
2012-01-26 13:38           ` Johnny Billquist
2012-01-29  1:32             ` Jerome H. Fine
2012-01-29  1:43               ` Johnny Billquist
2012-01-26  3:23       ` Jerome H. Fine
2012-01-18 16:02     ` paramucho
2012-01-18 18:12       ` Johnny Billquist
2012-01-19 14:30         ` paramucho
2012-01-19 16:42           ` Johnny Billquist
2012-01-19 20:32             ` glen herrmannsfeldt
2012-01-20 13:32               ` paramucho
2012-01-20 13:29             ` paramucho
2012-01-20 16:48               ` Johnny Billquist
2012-01-21 12:25                 ` paramucho
2012-01-21 20:15                   ` Johnny Billquist
2012-01-26  3:25               ` Jerome H. Fine
2012-01-26  6:09                 ` paramucho
2012-01-26  6:30                   ` paramucho
2012-01-26 13:50                     ` Johnny Billquist
2012-01-29  1:52                       ` Jerome H. Fine
2012-01-29  2:08                         ` Johnny Billquist
2012-01-26 13:48                   ` Johnny Billquist
2012-01-26 13:46                 ` Johnny Billquist
2012-01-29  1:35                   ` Jerome H. Fine
2012-01-18 12:41   ` glen herrmannsfeldt
2012-01-18 13:18     ` Johnny Billquist
2012-01-18 14:28       ` glen herrmannsfeldt
2012-01-18 15:14         ` Johnny Billquist
2012-01-18 21:54           ` glen herrmannsfeldt
2012-01-18 22:32             ` Al Kossow
2012-01-19  0:22             ` Johnny Billquist
2012-01-19  1:30               ` glen herrmannsfeldt
2012-01-19 14:32             ` Bob Koehler
2012-01-19 16:45               ` Johnny Billquist
2012-01-20 17:55                 ` Bob Koehler
2012-01-20 18:38                   ` Bill Gunshannon
2012-01-18 16:25       ` paramucho
2012-01-18 18:00         ` Johnny Billquist
2012-01-19 14:25           ` paramucho
2012-01-19 16:50             ` Johnny Billquist
2012-01-20 13:32               ` paramucho
2012-01-20 16:54                 ` Johnny Billquist
2012-01-21 13:16                   ` paramucho
2012-01-21 13:58                     ` Bob Eager
2012-01-21 20:02                     ` Johnny Billquist
2012-01-22 11:59                     ` Johnny Billquist
2012-01-22 14:03                       ` paramucho
2012-01-22 16:15                         ` Johnny Billquist
2012-01-23  4:14                           ` paramucho
2012-01-18 13:20     ` Bob Eager
2012-01-19 14:29       ` Bob Koehler
2012-01-21 12:44   ` Tim Shoppa
2012-01-21 13:50     ` paramucho
2012-01-22 16:56       ` Tim Shoppa
2012-01-22 18:11         ` glen herrmannsfeldt
2012-01-23  3:52         ` paramucho
2012-01-21 14:25     ` glen herrmannsfeldt
2012-01-21 16:46       ` Bob Eager
2012-01-25 22:12       ` Tim Shoppa
2012-01-26  3:22   ` Jerome H. Fine
2012-01-26 13:46     ` paramucho
2012-01-29  1:34       ` Jerome H. Fine
2012-01-29 15:46         ` paramucho
2012-02-01  3:53           ` Jerome H. Fine
2012-02-01 11:22             ` paramucho
2012-02-01 11:48               ` Johnny Billquist
2012-02-01 13:48                 ` paramucho
2012-02-01 14:43                   ` stan
2012-02-01 16:37                     ` paramucho
2012-02-01 18:05                       ` stan
2012-02-02  2:24                       ` Jerome H. Fine
2012-02-02  0:14                   ` Johnny Billquist
2012-02-02  2:25                     ` Jerome H. Fine
2012-02-02  9:29                       ` Johnny Billquist
2012-02-02 18:52                         ` glen herrmannsfeldt
2012-02-03  0:12                           ` Johnny Billquist
2012-02-03  4:07                           ` Jerome H. Fine
2012-02-03 14:15                             ` Johnny Billquist
2012-02-03 15:00                         ` paramucho
2012-02-02 13:31                     ` paramucho
2012-02-02 19:07                       ` glen herrmannsfeldt
2012-02-03  0:16                         ` Johnny Billquist
2012-02-03  4:23                           ` glen herrmannsfeldt
2012-02-03 12:01                             ` Johnny Billquist
2012-02-03 15:36                           ` Joe Oswald
2012-02-07 10:46                             ` Johnny Billquist
2012-02-03  4:29                         ` Jerome H. Fine
2012-02-03 12:50                           ` Bill Gunshannon
2012-02-04  8:42                             ` Charles Richmond
2012-02-04 13:38                               ` paramucho
2012-02-04 16:03                                 ` Bill Gunshannon
2012-02-04 16:39                                   ` paramucho
2012-02-03 10:48                         ` paramucho
2012-02-03 11:24                       ` Johnny Billquist
2012-02-04 17:06                         ` paramucho
2012-02-04 18:22                           ` paramucho
2012-02-04 18:55                             ` Johnny Billquist
2012-02-04 19:13                               ` Bill Gunshannon
2012-02-05 13:28                                 ` Johnny Billquist
2012-02-05 18:15                                   ` glen herrmannsfeldt
2012-02-04 18:51                           ` Johnny Billquist
2012-02-04 23:09                             ` glen herrmannsfeldt
2012-02-05 14:01                               ` paramucho
2012-02-05 15:31                                 ` Johnny Billquist
2012-02-06 13:50                                   ` paramucho
2012-02-06 14:45                                     ` Johnny Billquist
2012-02-06 14:58                                       ` paramucho
2012-02-06 16:25                                         ` Johnny Billquist
2012-02-05 14:27                               ` Johnny Billquist
2012-02-05 13:57                             ` paramucho
2012-02-05 15:44                               ` Johnny Billquist
2012-02-06 13:51                                 ` paramucho
2012-02-06 14:56                                   ` Johnny Billquist
2012-02-06 16:40                                     ` Johnny Billquist
2012-02-07 14:50                                       ` paramucho
2012-02-07 16:20                                         ` Johnny Billquist
2012-02-08 13:34                                           ` paramucho
2012-02-08 16:03                                             ` Johnny Billquist
2012-02-08 16:58                                               ` paramucho
2012-02-08 22:29                                                 ` Johnny Billquist
2012-02-10 13:12                                                   ` paramucho
2012-02-10 19:20                                                     ` glen herrmannsfeldt
2012-02-11 13:12                                                       ` paramucho
2012-02-11 20:06                                                         ` glen herrmannsfeldt
2012-02-11 20:23                                                         ` Johnny Billquist
2012-02-10 19:29                                                     ` Johnny Billquist
2012-02-11 13:15                                                       ` paramucho
2012-02-11 21:09                                                         ` Johnny Billquist
2012-02-12 17:23                                                           ` paramucho
2012-02-12 18:35                                                             ` paramucho
2012-02-13 17:30                                                               ` paramucho
2012-02-14 13:14                                                               ` Johnny Billquist
2012-02-14 16:20                                                                 ` paramucho
2012-02-14 17:30                                                                   ` Johnny Billquist
2012-02-13 23:18                                                             ` Johnny Billquist
2012-02-14 16:20                                                               ` paramucho
2012-02-14 17:47                                                                 ` Johnny Billquist
2012-02-14 18:17                                                                   ` paramucho
2012-02-14 19:54                                                                     ` Johnny Billquist
2012-02-15 12:58                                                                       ` paramucho
2012-02-15 17:12                                                                         ` Johnny Billquist
2012-02-16 13:54                                                                           ` paramucho
2012-02-16 20:15                                                                             ` Johnny Billquist
2012-02-17 12:41                                                                               ` paramucho
2012-02-17 17:13                                                                                 ` Johnny Billquist
2012-02-18 11:24                                                                                   ` Johnny Billquist
2012-02-18 14:28                                                                                     ` paramucho
2012-02-18 20:07                                                                                       ` Johnny Billquist
2012-02-18 11:55                                                                                   ` paramucho
2012-02-18 20:58                                                                                     ` Johnny Billquist
2012-02-20  2:29                                                                                       ` Jerome H. Fine
2012-02-20  5:54                                                                                         ` paramucho
2012-02-20 17:14                                                                                           ` Jerome H. Fine
2012-02-20 18:05                                                                                             ` Johnny Billquist
2012-02-21  6:16                                                                                               ` paramucho
2012-02-21 17:38                                                                                               ` Jerome H. Fine
2012-02-21 19:31                                                                                                 ` Johnny Billquist
2012-02-20  5:53                                                                                       ` paramucho
2012-02-20 10:28                                                                                         ` Johnny Billquist
2012-02-21  3:33                                                                                           ` Jerome H. Fine
2012-02-21  6:17                                                                                           ` paramucho
2012-02-21 10:23                                                                                             ` Johnny Billquist
2012-02-21 11:37                                                                                               ` paramucho
2012-02-21 14:16                                                                                                 ` Johnny Billquist
2012-02-21 16:42                                                                                                   ` paramucho
2012-02-21 19:43                                                                                                     ` Johnny Billquist
2012-02-22 12:21                                                                                                       ` paramucho
2012-02-22 14:12                                                                                                         ` paramucho
2012-02-22 15:26                                                                                                         ` Johnny Billquist
2012-02-22 14:33                                                                                                       ` paramucho
2012-02-22 15:53                                                                                                         ` Johnny Billquist
2012-02-22 16:48                                                                                                           ` paramucho
2012-02-22 21:17                                                                                                             ` Johnny Billquist
2012-02-23 12:42                                                                                                               ` paramucho
2012-02-23 13:51                                                                                                                 ` paramucho
2012-02-23 15:17                                                                                                                 ` Johnny Billquist
2012-02-20  2:22                                                                                   ` Jerome H. Fine
2012-02-20  6:07                                                                                     ` paramucho
2012-02-21  3:29                                                                                       ` Jerome H. Fine
2012-02-21  8:06                                                                                         ` paramucho
2012-02-21 10:38                                                                                           ` Johnny Billquist
2012-02-21 11:54                                                                                             ` paramucho
2012-02-21 14:20                                                                                               ` Johnny Billquist
2012-02-21 15:13                                                                                                 ` paramucho
2012-02-21 15:20                                                                                                   ` Johnny Billquist
2012-02-22  2:51                                                                                           ` Jerome H. Fine [this message]
2012-02-22  6:37                                                                                             ` paramucho
2012-01-18 11:20 ` Johnny Billquist
2012-01-26  3:21   ` Jerome H. Fine
2012-01-26 14:12     ` Johnny Billquist
2012-01-26 15:26       ` paramucho
2012-01-29  1:41         ` Jerome H. Fine
2012-01-29  2:04           ` Johnny Billquist
2012-01-29  2:31             ` Johnny Billquist
2012-01-29  1:39       ` Jerome H. Fine
2012-01-29  1:45         ` Johnny Billquist
2012-01-30  2:21 ` Bob Supnik
2012-01-31  7:14   ` paramucho
2012-01-31  9:42     ` Johnny Billquist
2012-01-31 14:24       ` Bill Gunshannon
2012-01-31 20:17         ` Johnny Billquist
2012-01-31 21:39           ` Bill Gunshannon
2012-01-31 23:43             ` glen herrmannsfeldt
2012-02-01  3:56             ` Jerome H. Fine
2012-02-01 11:53               ` Johnny Billquist
2012-02-01 13:48                 ` paramucho
2012-02-02  0:20                   ` Johnny Billquist
2012-02-02  2:22                 ` Jerome H. Fine
2012-02-01 12:14             ` Johnny Billquist
2012-02-01 16:27               ` glen herrmannsfeldt
2012-02-01  5:28         ` Charles Richmond
2012-02-01 11:54           ` Johnny Billquist
2012-02-01  3:55       ` Jerome H. Fine
2012-02-01 11:22       ` paramucho
2012-02-01 12:03         ` Johnny Billquist
2012-02-01  3:54   ` Jerome H. Fine
2012-02-01 12:09     ` Johnny Billquist
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