From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,32247abf28da27d4 X-Google-NewGroupId: yes X-Google-Thread: 1164f8,32247abf28da27d4 X-Google-NewGroupId: yes X-Google-Thread: f7344,32247abf28da27d4 X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,gid3717dac89a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!195.71.90.67.MISMATCH!news.unit0.net!uio.no!news.ctrl-c.liu.se!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail Newsgroups: alt.sys.pdp11,comp.sys.dec,comp.os.vms Subject: Re: QBUS Prototyping Message-ID: From: Johnny Billquist Date: Tue, 13 Apr 2010 09:53:37 +0200 References: <8265dgFs33U3@mid.individual.net> <826bunFpn2U1@mid.individual.net> <21555570-8094-4f6f-b790-18566557980f@h27g2000yqm.googlegroups.com> <826uhoFu5dU1@mid.individual.net> <82747sFu5dU2@mid.individual.net> <82e4csF6ndU2@mid.individual.net> Organization: Update Computer Club NNTP-Posting-Host: 178-83-32-41.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: Iltempo.Update.UU.SE 1271145217 30700 178.83.32.41 (13 Apr 2010 07:53:37 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Tue, 13 Apr 2010 07:53:37 +0000 (UTC) User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) In-Reply-To: Xref: g2news1.google.com alt.sys.pdp11:1363 comp.sys.dec:1715 comp.os.vms:27584 glen herrmannsfeldt wrote: > In alt.sys.pdp11 Johnny Billquist 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