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!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!news.glorb.com!usenet.stanford.edu!news.ucr.edu!nntp-server.caltech.edu!not-for-mail From: glen herrmannsfeldt Newsgroups: alt.sys.pdp11,comp.sys.dec,comp.os.vms Subject: Re: QBUS Prototyping Date: Tue, 13 Apr 2010 12:01:46 +0000 (UTC) Organization: California Institute of Technology, Pasadena Message-ID: 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> NNTP-Posting-Host: thalia.ugcs.caltech.edu X-Trace: naig.caltech.edu 1271160106 17779 131.215.176.116 (13 Apr 2010 12:01:46 GMT) X-Complaints-To: abuse@caltech.edu NNTP-Posting-Date: Tue, 13 Apr 2010 12:01:46 +0000 (UTC) User-Agent: tin/1.9.3-20080506 ("Dalintober") (UNIX) (Linux/2.6.26-2-686 (i686)) Xref: g2news1.google.com alt.sys.pdp11:1365 comp.sys.dec:1717 comp.os.vms:27591 In alt.sys.pdp11 Johnny Billquist wrote: (snip, I wrote) >> 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". That, and that it lets you see any files that could be under the mount point. >>> 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? A problem well known in the Apple world. In Macintosh file systems, files have a data fork (the normal part) and resource fork (where data like you mention goes). It is normally handled in NFS, or on other file systems, with an extra file somewhere. The ones I remember put an extra subdirectory in each directory, sometimes with a hidden name (such as .RESOURCE_FORK) and put the data in there. Not great, but it does work. It could also be done with another file in the same directory with a different name. > 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. I believe that there are systems that convert between LF terminated and CRLF terminated records while doing NFS I/O. Not that I would do that, though. > However, NFS don't actually read a record at a time, but reads > a disk block at a time. I believe that the client can read any size desired up to the server specified maximum. Commonly that would be a multiple of the disk block size, but I don't believe that is required. > 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. The client should know that an process accordingly. > 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. Personally, I believe that you shouldn't change the length. Write the bytes as seen by the client, and leave it up to other systems to process accordingly. This problem should also occur with some IBM systems, where record structure is not stored in the file, but otherwise known. I haven't used NFS on such systems to know how it is done, though. > 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. Well, I was suggesting it mostly such that it would only ever be read by the RSX system. That is, as a replacement for older disk hardware. It would be nice to be able to read/write from other systems, but not required. >> 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. If it is done in the file system before that limitation occurs, then it shouldn't be a problem. I don't know the RSX file access code at all, though. There is, as I said, the problem of programs not allowing for enough characters in a file name. > 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. I never use the systems that do CRLF conversion, and in this case I wouldn't expect any conversion. I am sure that others would want it, though. -- glen