Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Johnny Billquist <bqt@softjar.se>
Subject: Re: QBUS Prototyping
Date: Tue, 13 Apr 2010 09:53:37 +0200	[thread overview]
Message-ID: <hq17u1$tvc$1@Iltempo.Update.UU.SE> (raw)
In-Reply-To: <hq073j$9gb$1@naig.caltech.edu>

glen herrmannsfeldt wrote:
> In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote:
>> Bill Gunshannon wrote:
>>> I would be more likely to look at a very simple ethernet level protocol
>>> that merely knew how to fetch and return raw blocks with a server
>>> process on another machine.  Or maybe that is something that could be
>>> done with LAT.  Is LAT what PDP-11's use to boot over ethernet?
>  
>> No. LAT is for terminal traffic. Booting is done by another protocol, 
>> called MOP.
>  
>> NFS, using UDP is not much more complicated than raw ethernet 
>> frames for reading and writing.
>> However, a big problem is that NFS don't give you a "raw" device. It 
>> actually understands various file operations, which means that if you 
>> have an OS with a different view how a file looks, or different views on 
>> file protection and privileges, which don't map to Unix, then NFS 
>> becomes a problem...
> 
> You can cheat.  Map the whole file system to one big file on
> the NFS server.  Not so convenient from the other side, but it
> should be fine for the PDP-11 side.  That would be similar to the
> way that diskless unix machines swap on NFS.  

Indeed, you could do that.

> Not so convenient in that it doesn't allow one to work with 
> files from other systems, but I think it is all you can do from
> the device driver level.  Otherwise, it has to be done higher
> in the file system code, much higher than the device driver level.

Yes. And just having a container file, which you then create a file 
system inside, for the other system, also makes it impossible for 
several other machines to access the disk. Well, you can, but that will 
corrupt the image.

> It is interesting that in NFS the client works at a higher level,
> and the server at a lower level.  On unix, for example, if you
> mount a disk on a mount point then other files in that part of
> the directory tree aren't visible anymore.  If you mount that
> file system through NFS then those files are visible!  

You are talking about the fact that the exported disk don't carry along 
mount points? Yes, that can seem a bit "weird".

>> I've been considering implementing NFS for RSX, but so far I've decided 
>> against it for that very reason. There is no reasonable way to map 
>> between Unix and RSX, that is useful.
> 
> I did use RSX some years ago, but maybe don't remember it so well.
> Which part doesn't map well?  It does have to be done at a higher level.

There are big headaches here. First of all, the NFS client under RSX (if 
we start at that end) would have to emulate the same operations that 
FILES-11 provide, or else you will not be able to use the file system 
the same way as you use any other disk on RSX.
But FILES-11 stores 20 bytes of metadata outside of the file, for each 
file. And in those 20 bytes you have things file file attributes, record 
length and other information. There is no way to map this to NFS, so 
what should you do with reads/writes to this data?
Second, depending on the contents of that data, the file is processed 
differently. For example, a normal text file in RSX is actually 
represented by a 2-byte length field, followed by the data. No CR or LF 
is included in the record. And records are aligned on even addresses.
So, if you read a text file over NFS, you need to fake something for the 
meta-data, and then you need to read the lines from the file, and at 
each LF, you need to split the data up.
However, NFS don't actually read a record at a time, but reads a disk 
block at a time. And with each line split, the LF removed, and 2 bytes 
of length added, plus a possible padding byte, means that a disk block 
from NFS will end up being slightly more that one disk block under RSX. 
And of course, the opposite needs to be done when writing.
And you don't even know if it actually is a text file, for which this 
should be done.
And changing the lengths also mean that any seeks cannot be converted at 
all, since you don't know where that actually is on the file because of 
record length differences.

I could go on about binary files as well, where you can hit the same 
problems...
And then we have things like owners and file protections, which don't 
map right...

In VMS, this is solved by forcing files on NFS to always have the 
STREAM_LF format. That is a possibility under RSX as well, since you do 
have a STREAM format for RMS. However, FCS have no clue about that 
format, and just about no program can deal with it. So it wouldn't be 
very useful.

> I remember early versions of HP-UX, based on the AT&T unix systems,
> had a short file name limit for native file systems.  That limit was
> not there for NFS mounted file systems.  To do NFS right, it really
> does need to be done at as high a level as possible.  Among others,
> the file name length limit should also disappear for RSX.  
> (Possibly a problem for programs without a big enough buffer for
> a file name input.)

Filenames is possibly a problem, but it' more manageable. RSX have 9+3 
filenames, and a limited set of characters that are allowed. It just 
becomes a question of what to do with files that don't conform to the 
patterns used by RSX. Probably just skip them.
File versions are perhaps a little more tricky, but I think that is an 
obstacle that there also is a simple solution to.

So I wouldn't worry too much about those aspects. It's the actual 
contents of the files that will make it hard.

	Johnny

-- 
Johnny Billquist                  || "I'm on a bus
                                   ||  on a psychedelic trip
email: bqt@softjar.se             ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol


  reply	other threads:[~2010-04-13  7:53 UTC|newest]

Thread overview: 146+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-08 13:52 QBUS Prototyping Bill Gunshannon
2010-04-08 14:38 ` Scott Dorsey
2010-04-08 14:58 ` Al Kossow
2010-04-08 15:44   ` Bill Gunshannon
2010-04-08 20:46     ` John Wallace
2010-04-08 21:01       ` Bill Gunshannon
2010-04-08 21:58         ` Rob Jarratt
2010-04-08 23:00           ` John Wallace
2010-04-09 11:22             ` David Riley
2010-04-09 18:08           ` Johnny Billquist
2010-04-09 18:22             ` Bill Gunshannon
2010-04-10 19:29               ` Johnny Billquist
2010-04-10 21:05                 ` Bill Gunshannon
2010-04-11  9:50                   ` Johnny Billquist
2010-04-11 14:13                     ` Bill Gunshannon
2010-04-09 19:20             ` glen herrmannsfeldt
2010-04-11 22:08             ` Dennis Boone
2010-04-12 11:41               ` dsnyder
2010-04-12 14:46                 ` Al Kossow
2010-04-13 11:08                   ` dsnyder
2010-04-15 17:27             ` Scott Dorsey
2010-04-15 18:29               ` Al Kossow
2010-04-09 19:14           ` glen herrmannsfeldt
2010-04-09 20:02             ` John Wallace
2010-04-09 20:28               ` David Riley
2010-04-10  1:28               ` glen herrmannsfeldt
2010-04-14 22:28               ` Bob Koehler
2010-04-08 21:59         ` glen herrmannsfeldt
2010-04-08 22:38           ` Bill Gunshannon
2010-04-11 10:16             ` glen herrmannsfeldt
2010-04-11 14:24               ` Bill Gunshannon
2010-04-11 17:10                 ` glen herrmannsfeldt
2010-04-12 21:25                 ` Johnny Billquist
2010-04-12 22:02                   ` John Wallace
2010-04-13  7:34                     ` Johnny Billquist
2010-04-19  2:25                       ` John Santos
2010-04-19 11:50                         ` John Wallace
2010-04-19 10:50                       ` VAXman-
2010-04-24 14:55                         ` Bill Gunshannon
2010-04-12 22:33                   ` glen herrmannsfeldt
2010-04-13  7:53                     ` Johnny Billquist [this message]
2010-04-13 12:01                       ` glen herrmannsfeldt
2010-04-16 23:44                         ` Johnny Billquist
2010-04-17  3:15                           ` glen herrmannsfeldt
2010-04-17 21:00                             ` Johnny Billquist
2010-04-18  0:31                               ` glen herrmannsfeldt
2010-04-18 13:23                                 ` Johnny Billquist
2010-04-18 16:58                                   ` glen herrmannsfeldt
2010-04-18 23:02                                     ` Johnny Billquist
2010-04-19  1:39                                       ` glen herrmannsfeldt
2010-04-19 20:22                                         ` Johnny Billquist
2010-04-19 21:27                                           ` glen herrmannsfeldt
2010-04-20 19:36                                           ` Hans Bachner
2010-04-24 15:36                                             ` Steven Schweda
2010-04-25  3:55                                               ` Johnny Billquist
2010-04-25  5:32                                                 ` Steven Schweda
2010-04-25 11:33                                                   ` Johnny Billquist
2010-04-25 12:17                                                     ` glen herrmannsfeldt
2010-04-25 13:31                                                       ` Johnny Billquist
2010-04-25 14:01                                                         ` Steven Schweda
2010-04-25 21:58                                                           ` Johnny Billquist
2010-04-25 13:58                                                     ` Steven Schweda
2010-04-25 21:47                                                       ` Johnny Billquist
2010-04-26 15:40                                                         ` Bob Koehler
2010-04-27  7:37                                                           ` Johnny Billquist
2010-04-27  7:58                                                             ` Bob Eager
2010-04-27 14:56                                                               ` Bob Koehler
2010-04-28  9:06                                                                 ` Johnny Billquist
2010-04-28 12:34                                                                   ` Bob Eager
2010-04-28 14:51                                                                   ` Bob Koehler
2010-04-29  0:18                                                                     ` Johnny Billquist
2010-04-29 15:16                                                                       ` Bob Koehler
2010-04-27 14:53                                                             ` Bob Koehler
2010-04-28  9:11                                                               ` Johnny Billquist
2010-04-28 14:52                                                                 ` Bob Koehler
2010-04-29  0:20                                                                   ` Johnny Billquist
2010-04-29  1:15                                                                     ` Johnny Billquist
2010-04-29  7:01                                                                       ` John Wallace
2010-04-29 11:19                                                                         ` Jerome H. Fine
2010-04-29 18:38                                                                           ` glen herrmannsfeldt
2010-04-29 19:53                                                                             ` Jerome H. Fine
2010-04-29 20:35                                                                               ` glen herrmannsfeldt
2010-04-29 21:43                                                                                 ` Bob Eager
2010-04-30  0:23                                                                                 ` Johnny Billquist
2010-04-30  1:39                                                                                   ` glen herrmannsfeldt
2010-04-30  0:19                                                                               ` Johnny Billquist
2010-04-30 15:04                                                                                 ` Bob Koehler
2010-04-30  0:09                                                                           ` Johnny Billquist
2010-04-30  0:51                                                                             ` Johnny Billquist
2010-04-30  0:58                                                                               ` Johnny Billquist
2010-04-30 11:44                                                                                 ` Jerome H. Fine
2010-04-30 14:59                                                                             ` Bob Koehler
2010-04-30 18:34                                                                               ` glen herrmannsfeldt
2010-04-29 15:19                                                                         ` Bob Koehler
2010-04-30  0:42                                                                           ` Johnny Billquist
2010-04-30  0:04                                                                         ` Johnny Billquist
2010-04-29 15:17                                                                     ` Bob Koehler
2010-04-27 15:43                                                             ` jjh
2010-04-27 16:04                                                               ` Richard B. Gilbert
2010-04-28  9:20                                                                 ` Johnny Billquist
2010-04-28 16:12                                                                   ` Richard B. Gilbert
2010-04-27 22:27                                                               ` Bob Koehler
2010-04-28  9:18                                                               ` Johnny Billquist
2011-04-18 13:00                                                           ` Bob Koehler
2011-04-18 15:06                                                             ` Johnny Billquist
2011-04-18 12:56                                                     ` Bob Koehler
2011-04-18 15:07                                                       ` Johnny Billquist
2011-04-18 17:26                                                         ` Michael Moroney
2011-04-18 17:53                                                           ` Bob Koehler
2011-04-19  3:35                                                           ` Johnny Billquist
2011-04-19 15:34                                                             ` Michael Moroney
2011-04-19 16:47                                                               ` Johnny Billquist
2011-04-18 17:49                                                         ` Bob Koehler
2011-04-19  3:36                                                           ` Johnny Billquist
2011-04-18 12:52                                   ` Bob Koehler
2011-04-18 15:11                                     ` Johnny Billquist
2011-04-18 17:51                                       ` Bob Koehler
2011-04-19 10:29                                     ` FTP is 40 years old Paul Sture
2010-04-09 14:39         ` QBUS Prototyping Bob Koehler
2010-04-09 16:00           ` Bill Gunshannon
2010-04-09 23:16             ` John E. Malmberg
2010-04-15  6:12           ` Antti Louko
2010-04-15 16:24             ` Run.PDP
2010-04-15 16:46               ` Al Kossow
2010-04-15 17:24                 ` glen herrmannsfeldt
2010-04-15 17:20               ` glen herrmannsfeldt
2010-04-16 23:54                 ` Johnny Billquist
2010-04-16 21:59               ` Bob Koehler
2010-04-16 23:56                 ` Johnny Billquist
2010-04-17  9:24               ` jjh
2010-04-17  9:56                 ` glen herrmannsfeldt
2010-04-17 21:04                   ` Johnny Billquist
2010-04-24 15:54                   ` Bill Gunshannon
2010-04-24 15:52                 ` Bill Gunshannon
2010-04-25  4:00                   ` Johnny Billquist
2010-04-25  6:29                     ` glen herrmannsfeldt
2010-04-25  7:42                       ` Wilm Boerhout
2010-04-25 19:57                         ` Antti Louko
2010-04-25 11:40                       ` Johnny Billquist
2010-04-25 21:47                         ` John Wallace
2010-04-26  0:32                           ` Johnny Billquist
2010-04-15 17:19         ` Scott Dorsey
2010-04-09  1:00       ` Richard
2010-04-09 11:34         ` David Riley
2010-04-09 21:24           ` Richard
2010-04-08 20:18 ` JF Mezei
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